Class: Fog::Network::AzureRM::PublicIps
- Inherits:
-
Collection
- Object
- Collection
- Fog::Network::AzureRM::PublicIps
- Defined in:
- lib/fog/azurerm/models/network/public_ips.rb
Overview
PublicIPs collection class for Network Service
Instance Method Summary collapse
- #all ⇒ Object
- #check_public_ip_exists(resource_group, name) ⇒ Object
- #get(resource_group_name, public_ip_name) ⇒ Object
Instance Method Details
#all ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/fog/azurerm/models/network/public_ips.rb', line 9 def all requires :resource_group public_ips = [] service.list_public_ips(resource_group).each do |pip| public_ips << Fog::Network::AzureRM::PublicIp.parse(pip) end load(public_ips) end |
#check_public_ip_exists(resource_group, name) ⇒ Object
24 25 26 |
# File 'lib/fog/azurerm/models/network/public_ips.rb', line 24 def check_public_ip_exists(resource_group, name) service.check_public_ip_exists(resource_group, name) end |
#get(resource_group_name, public_ip_name) ⇒ Object
18 19 20 21 22 |
# File 'lib/fog/azurerm/models/network/public_ips.rb', line 18 def get(resource_group_name, public_ip_name) public_ip = service.get_public_ip(resource_group_name, public_ip_name) public_ip_fog = Fog::Network::AzureRM::PublicIp.new(service: service) public_ip_fog.merge_attributes(Fog::Network::AzureRM::PublicIp.parse(public_ip)) end |