Class: Azure::Armrest::Network::IpAddressService
- Inherits:
-
ResourceGroupBasedService
- Object
- ArmrestService
- ResourceGroupBasedService
- Azure::Armrest::Network::IpAddressService
- Defined in:
- lib/azure/armrest/network/ip_address_service.rb
Overview
Class for managing public IP addresss.
Constant Summary
Constants inherited from ResourceGroupBasedService
ResourceGroupBasedService::SERVICE_NAME_MAP
Instance Attribute Summary
Attributes inherited from ArmrestService
#api_version, #armrest_configuration, #base_url, #provider, #service_name
Instance Method Summary collapse
-
#get_ip(ip_name, resource_group = armrest_configuration.resource_group) ⇒ Object
(also: #get_ip_address)
Shortcut method that returns just the IP address for the given public IP address name.
-
#initialize(armrest_configuration, options = {}) ⇒ IpAddressService
constructor
Creates and returns a new IpAddressService instance.
Methods inherited from ResourceGroupBasedService
#create, #delete, #delete_by_id, #get, #get_by_id, #list, #list_all
Methods inherited from ArmrestService
configure, #get_provider, #get_subscription, #list_locations, #list_resource_groups, #list_resources, #list_subscriptions, #locations, #poll, #tags, #tenants, #wait
Constructor Details
#initialize(armrest_configuration, options = {}) ⇒ IpAddressService
Creates and returns a new IpAddressService instance.
9 10 11 |
# File 'lib/azure/armrest/network/ip_address_service.rb', line 9 def initialize(armrest_configuration, = {}) super(armrest_configuration, 'publicIPAddresses', 'Microsoft.Network', ) end |
Instance Method Details
#get_ip(ip_name, resource_group = armrest_configuration.resource_group) ⇒ Object Also known as: get_ip_address
Shortcut method that returns just the IP address for the given public IP address name.
16 17 18 |
# File 'lib/azure/armrest/network/ip_address_service.rb', line 16 def get_ip(ip_name, resource_group = armrest_configuration.resource_group) get(ip_name, resource_group).properties.ip_address end |