Class: Fog::Network::AzureRM::FrontendIPConfiguration
- Inherits:
-
Model
- Object
- Model
- Fog::Network::AzureRM::FrontendIPConfiguration
- Defined in:
- lib/fog/azurerm/models/network/frontend_ip_configuration.rb
Overview
FrontendIPConfiguration model for Network Service
Class Method Summary collapse
Class Method Details
.parse(frontend_ip_configuration) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/fog/azurerm/models/network/frontend_ip_configuration.rb', line 14 def self.parse(frontend_ip_configuration) hash = {} hash['name'] = frontend_ip_configuration['name'] subnet = frontend_ip_configuration['properties']['subnet'] hash['subnet_id'] = subnet['id'] unless subnet.nil? private_ip_address = frontend_ip_configuration['properties']['private_ipaddress'] unless private_ip_address.nil? hash['private_ipaddress'] = private_ip_address end private_ipallocation_method = frontend_ip_configuration['properties']['privateIPAllocationMethod'] unless private_ipallocation_method.nil? hash['private_ipallocation_method'] = private_ipallocation_method end public_ip_address = frontend_ip_configuration['properties']['publicIPAddress'] unless public_ip_address.nil? hash['public_ip_address_id'] = public_ip_address['id'] end hash end |