Sha256: 9b0993b21a5a4e9be373aaa96679a782bb21fa700715c7f4bf9e2e9cbf70852c
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
module Fog module Network class AzureRM # Real class for Network Request class Real def delete_virtual_network_gateway(resource_group_name, virtual_network_gateway_name) msg = "Deleting Virtual Network Gateway #{virtual_network_gateway_name} from Resource Group #{resource_group_name}." Fog::Logger.debug msg begin @network_client.virtual_network_gateways.delete(resource_group_name, virtual_network_gateway_name) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end Fog::Logger.debug "Virtual Network Gateway #{virtual_network_gateway_name} Deleted Successfully." true end end # Mock class for Network Request class Mock def delete_virtual_network_gateway(resource_group_name, virtual_network_gateway_name) Fog::Logger.debug "Virtual Network Gateway #{virtual_network_gateway_name} from Resource group #{resource_group_name} deleted successfully." true end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems