Sha256: 38507da93aa4dedd0ccb5de4530d5f8b1af31ceb5f415e90ad3bcd6684aa723f
Contents?: true
Size: 931 Bytes
Versions: 1
Compression:
Stored size: 931 Bytes
Contents
module Fog module Network class AzureRM # Real class for Network Request class Real def delete_subnet(resource_group, virtual_network_name, subnet_name) Fog::Logger.debug "Deleting Subnet: #{name}..." begin promise = @network_client.subnets.delete(resource_group, virtual_network_name, subnet_name) response = promise.value! Fog::Logger.debug "Subnet #{name} deleted successfully." response rescue MsRestAzure::AzureOperationError => e msg = "Exception deleting Subnet #{subnet_name} in Resource Group: #{resource_group}. #{e.body['error']['message']}" raise msg end end end # Mock class for Network Request class Mock def delete_subnet(_resource_group, _virtual_network_name, _subnet_name) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.0 | lib/fog/azurerm/requests/network/delete_subnet.rb |