Sha256: 8cd72f5f50aad4035b4d57c4a03d90813d334eff80f82df50fe58c0da0f6352d
Contents?: true
Size: 868 Bytes
Versions: 6
Compression:
Stored size: 868 Bytes
Contents
module Fog module Network class AzureRM # Real class for Network Request class Real def delete_virtual_network(resource_group, name) msg = "Deleting Virtual Network: #{name}" Fog::Logger.debug msg begin @network_client.virtual_networks.delete(resource_group, name) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end Fog::Logger.debug "Virtual Network #{name} deleted successfully." true end end # Mock class for Network Request class Mock def delete_virtual_network(resource_group, name) Fog::Logger.debug "Virtual Network #{name} from Resource group #{resource_group} deleted successfully." true end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems