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.15.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.14.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.13.1 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.13.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.12.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.11.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.16 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.10.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.15 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.14 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.13 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.12 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.11 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.10 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.9 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.8 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.7 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.6 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.5 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.9.4 lib/azure/armrest/network/ip_address_service.rb