Class: Fog::ApplicationGateway::AzureRM::IPConfiguration
- Inherits:
-
Model
- Object
- Model
- Fog::ApplicationGateway::AzureRM::IPConfiguration
- Defined in:
- lib/fog/azurerm/models/application_gateway/ip_configuration.rb
Overview
GatewayIPConfiguration model class for Application Gateway Service
Class Method Summary collapse
Class Method Details
.parse(gateway_ip_configuration) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fog/azurerm/models/application_gateway/ip_configuration.rb', line 10 def self.parse(gateway_ip_configuration) hash = {} if gateway_ip_configuration.is_a? Hash hash['id'] = gateway_ip_configuration['id'] hash['name'] = gateway_ip_configuration['name'] hash['subnet_id'] = gateway_ip_configuration['subnet']['id'] unless gateway_ip_configuration['subnet'].nil? else hash['id'] = gateway_ip_configuration.id hash['name'] = gateway_ip_configuration.name hash['subnet_id'] = gateway_ip_configuration.subnet.id unless gateway_ip_configuration.subnet.nil? end hash end |