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