Sha256: 07b9c0dcffb9c193ac8d9e6fdfd42d2f466a1260e68904b014074602b7269af8

Contents?: true

Size: 891 Bytes

Versions: 47

Compression:

Stored size: 891 Bytes

Contents

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

      # Mock class for Network Request
      class Mock
        def delete_public_ip(resource_group, name)
          Fog::Logger.debug "Public IP #{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.4.1 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/requests/network/delete_public_ip.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/requests/network/delete_public_ip.rb