Sha256: a1926cd9e4030848583a978e468d1809e4108768b7244ecca6885a4161701e1e

Contents?: true

Size: 1.12 KB

Versions: 47

Compression:

Stored size: 1.12 KB

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Local Network Gateway Request
      class Real
        def delete_local_network_gateway(resource_group_name, local_network_gateway_name)
          msg = @logger_messages['network']['local_network_gateway']['message']['delete']
                .gsub('NAME', local_network_gateway_name).gsub('RESOURCE_GROUP', resource_group_name)
          Fog::Logger.debug msg
          begin
            @network_client.local_network_gateways.delete(resource_group_name, local_network_gateway_name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Local Network Gateway #{local_network_gateway_name} from Resource group #{resource_group_name} deleted successfully."
          true
        end
      end

      # Mock class for Local Network Gateway Request
      class Mock
        def delete_local_network_gateway(*)
          Fog::Logger.debug 'Local Network Gateway testLocalNetworkGateway from Resource group learn_fog deleted successfully.'
          true
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
far-gem-0.5.6 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
far-gem-0.5.5 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
far-gem-0.5.4 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
far-gem-0.5.3 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
far-gem-0.5.2 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
far-gem-0.5.1 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/network/delete_local_network_gateway.rb