Sha256: 99f446f9951a506128f489ed09e7fde7a85e4560e167eeacd3090254c61c82e6
Contents?: true
Size: 936 Bytes
Versions: 2
Compression:
Stored size: 936 Bytes
Contents
module Fog module Network class AzureRM # Real class for Network Request class Real def delete_network_interface(resource_group, name) Fog::Logger.debug "Deleting NetworkInterface #{name} from Resource Group #{resource_group}." begin promise = @network_client.network_interfaces.delete(resource_group, name) response = promise.value! Fog::Logger.debug "NetworkInterface #{name} Deleted Successfully." response rescue MsRestAzure::AzureOperationError => e msg = "Exception deleting Network Interface #{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_interface(_resource_group, _name) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.1 | lib/fog/azurerm/requests/network/delete_network_interface.rb |
fog-azure-rm-0.0.0 | lib/fog/azurerm/requests/network/delete_network_interface.rb |