Sha256: 50b876a0f704dbd4eeb87f81892c0c5dab3662e549ceb2021cb50d0ab2321f1d

Contents?: true

Size: 668 Bytes

Versions: 6

Compression:

Stored size: 668 Bytes

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      # Backend Address Pool model class for Application Gateway Service
      class BackendAddressPool < Fog::Model
        identity :name
        attribute :ip_addresses

        def self.parse(backend_address_pool)
          hash = {}
          backend_addresses = backend_address_pool.backend_addresses
          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
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.1 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.1.0 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.0.9 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.0.8 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.0.6 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.0.5 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb