Sha256: e8f635f590846eca0702f24e7eff9da0c87828fff4d4be9d57ff942f7d26b321
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
module Fog module Network class AzureRM # Real class for Network Request class Real def delete_network_security_group(resource_group, name) Fog::Logger.debug "Deleting Network Security Group: #{name}..." begin promise = @network_client.network_security_groups.delete(resource_group, name) promise.value! Fog::Logger.debug "Network Security Group #{name} deleted successfully." true rescue MsRestAzure::AzureOperationError => e msg = "Exception deleting Network Security Group #{name} in Resource Group: #{resource_group}. #{e.body['error']['message']}" raise msg end end end # Mock class for Network Request class Mock def delete_network_security_group(resource_group, name) Fog::Logger.debug "Network Security Group #{name} from Resource group #{resource_group} deleted successfully." true end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.4 | lib/fog/azurerm/requests/network/delete_network_security_group.rb |
fog-azure-rm-0.0.3 | lib/fog/azurerm/requests/network/delete_network_security_group.rb |