Sha256: 3b4b7bb809538e8d7105b8dcb7a71bf6bd0f1bd1dc028924fe1a1c8104115aa3

Contents?: true

Size: 887 Bytes

Versions: 47

Compression:

Stored size: 887 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # Real class for Network Request
      class Real
        def delete_network_interface(resource_group, name)
          msg = "Deleting NetworkInterface #{name} from Resource Group #{resource_group}"
          Fog::Logger.debug msg
          begin
            @network_client.network_interfaces.delete(resource_group, name)
          rescue MsRestAzure::AzureOperationError => e
            raise_azure_exception(e, msg)
          end
          Fog::Logger.debug "NetworkInterface #{name} Deleted Successfully."
          true
        end
      end

      # Mock class for Network Request
      class Mock
        def delete_network_interface(resource_group, name)
          Fog::Logger.debug "Network Interface #{name} from Resource group #{resource_group} deleted successfully."
          true
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/requests/network/delete_network_interface.rb
far-gem-0.5.6 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/requests/network/delete_network_interface.rb
far-gem-0.5.5 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/requests/network/delete_network_interface.rb
far-gem-0.5.4 lib/fog/azurerm/requests/network/delete_network_interface.rb
far-gem-0.5.3 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/requests/network/delete_network_interface.rb
far-gem-0.5.2 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/requests/network/delete_network_interface.rb
far-gem-0.5.1 lib/fog/azurerm/requests/network/delete_network_interface.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/requests/network/delete_network_interface.rb