Class: Fog::ApplicationGateway::AzureRM::BackendAddressPool

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

Overview

Backend Address Pool model class for Application Gateway Service

Class Method Summary collapse

Class Method Details

.parse(backend_address_pool) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fog/azurerm/models/application_gateway/backend_address_pool.rb', line 10

def self.parse(backend_address_pool)
  hash = {}
  backend_addresses = backend_address_pool.backend_addresses
  hash['id'] = backend_address_pool.id
  hash['name'] = backend_address_pool.name
  hash['ip_addresses'] = []
  backend_addresses.each do |ip_address|
    hash['ip_addresses'] << ip_address
  end unless backend_addresses.nil?
  hash
end