Class: Fog::ApplicationGateway::AzureRM::FrontendIPConfiguration

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/azurerm/models/application_gateway/frontend_ip_configuration.rb

Overview

Frontend IP Configuration model class for Application Gateway Service

Class Method Summary collapse

Class Method Details

.parse(frontend_ip_configuration) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/fog/azurerm/models/application_gateway/frontend_ip_configuration.rb', line 12

def self.parse(frontend_ip_configuration)
  hash = {}
  hash['id'] = frontend_ip_configuration.id
  hash['name'] = frontend_ip_configuration.name
  hash['public_ip_address_id'] = frontend_ip_configuration.public_ipaddress.id unless frontend_ip_configuration.public_ipaddress.nil?
  hash['private_ip_allocation_method'] = frontend_ip_configuration.private_ipallocation_method
  private_ip_address = frontend_ip_configuration.private_ipaddress
  hash['private_ip_address'] = private_ip_address
  hash['subnet_id'] = frontend_ip_configuration.subnet.id unless frontend_ip_configuration.subnet.nil?
  hash
end