Sha256: 83f3b1f1df101d4d57357c1686976ebb2306f8b52a447532a8892f98b42c5ec8

Contents?: true

Size: 715 Bytes

Versions: 46

Compression:

Stored size: 715 Bytes

Contents

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

        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
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
far-gem-0.5.6 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
far-gem-0.5.5 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
far-gem-0.5.4 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
far-gem-0.5.3 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
far-gem-0.5.2 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
far-gem-0.5.1 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/application_gateway/backend_address_pool.rb