lib/azure/armrest/network/ip_address_service.rb
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