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 |
# File 'lib/fog/azurerm/models/network/frontend_ip_configuration.rb', line 14 def self.parse(frontend_ip_configuration) hash = {} hash['id'] = frontend_ip_configuration.id hash['name'] = frontend_ip_configuration.name hash['subnet_id'] = frontend_ip_configuration.subnet.id unless frontend_ip_configuration.subnet.nil? hash['private_ipaddress'] = frontend_ip_configuration.private_ipaddress if frontend_ip_configuration.respond_to?(:private_ipaddress) hash['private_ipallocation_method'] = frontend_ip_configuration.private_ipallocation_method unless frontend_ip_configuration.private_ipallocation_method.nil? hash['public_ipaddress_id'] = frontend_ip_configuration.public_ipaddress.id unless frontend_ip_configuration.public_ipaddress.nil? hash end |