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.3.2 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.3.1 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.3.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.2.7 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.2.6 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.2.5 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.2.4 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.2.3 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.2.2 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.2.1 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.2.0 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.1.3 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.1.2 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.1.1 lib/azure/armrest/network/ip_address_service.rb
azure-armrest-0.1.0 lib/azure/armrest/network/ip_address_service.rb