Sha256: b66f8df159a01bae558a6de1ca57d422445d102a3d1cd54cc6a9ffd038f9c8da

Contents?: true

Size: 1.06 KB

Versions: 47

Compression:

Stored size: 1.06 KB

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Network Request
      class Real
        def delete_virtual_network_gateway_connection(resource_group_name, gateway_connection_name)
          msg = @logger_messages['network']['virtual_network_gateway_connection']['message']['delete']
                .gsub('NAME', gateway_connection_name).gsub('RESOURCE_GROUP', resource_group_name)
          Fog::Logger.debug msg
          begin
            @network_client.virtual_network_gateway_connections.delete(resource_group_name, gateway_connection_name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "Virtual Network Gateway Connection #{gateway_connection_name} Deleted Successfully."
          true
        end
      end

      # Mock class for Network Request
      class Mock
        def delete_virtual_network_gateway_connection(*)
          Fog::Logger.debug 'Virtual Network Gateway Connection deleted successfully.'
          true
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.4.1 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/requests/network/delete_virtual_network_gateway_connection.rb