Sha256: bf83d2e13266269cb1aba43dab8f56155c924197df7497930e901d1a607ad355

Contents?: true

Size: 756 Bytes

Versions: 75

Compression:

Stored size: 756 Bytes

Contents

module Azure
  module Armrest
    module Network
      # Class for managing public IP addresss.
      class IpAddressService < ResourceGroupBasedService

        # Creates and returns a new IpAddressService instance.
        #
        def initialize(armrest_configuration, options = {})
          super(armrest_configuration, 'publicIPAddresses', 'Microsoft.Network', options)
        end

        # Shortcut method that returns just the IP address for the given public
        # IP address name.
        #
        def get_ip(ip_name, resource_group = armrest_configuration.resource_group)
          get(ip_name, resource_group).properties.ip_address
        end

        alias get_ip_address get_ip
      end
    end # Network
  end # Armrest
end # Azure

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
azure-armrest-0.9.3 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.2 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.8.7 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.8.6 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.8.5 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.1 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.8.4 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.8.3 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.8.2 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.8.1 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.8.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.7.5 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.7.4 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.7.3 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.7.2 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.7.1 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.7.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.6.1 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.6.0 lib/azure/armrest/network/ip_address_service.rb