Sha256: 5f7d9e8fe1a9d91868364818a0f36c8f21491927b60b4aeebd35455a3d7b6927

Contents?: true

Size: 767 Bytes

Versions: 2

Compression:

Stored size: 767 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # Backend Address Pool model class for Network Service
      class ApplicationGatewayBackendAddressPool < Fog::Model
        identity :name
        attribute :ip_addresses

        def self.parse(backend_address_pool)
          hash = {}
          unless backend_address_pool['properties'].nil?
            backend_addresses = backend_address_pool['properties']['backendAddresses']
            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?
          end
          hash
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-azure-rm-0.0.4 lib/fog/azurerm/models/network/application_gateway_backend_address_pool.rb
fog-azure-rm-0.0.3 lib/fog/azurerm/models/network/application_gateway_backend_address_pool.rb