Sha256: 67fb365b9669ca4aa9ccb655e3e1ebbe0d56c442ad920b8ee9b2b1bf08b4ee4b

Contents?: true

Size: 1.19 KB

Versions: 44

Compression:

Stored size: 1.19 KB

Contents

module Fog
  module Network
    class AzureRM
      # FrontendIPConfiguration model for Network Service
      class FrontendIPConfiguration < Fog::Model
        identity :name
        attribute :id
        attribute :load_balancing_rules
        attribute :private_ipaddress
        attribute :private_ipallocation_method
        attribute :subnet_id
        attribute :public_ipaddress_id

        def self.parse(frontend_ip_configuration)
          hash = {}
          hash['id'] = frontend_ip_configuration.id
          hash['name'] = frontend_ip_configuration.name
          hash['subnet_id'] = frontend_ip_configuration.subnet.id unless frontend_ip_configuration.subnet.nil?
          hash['private_ipaddress'] = frontend_ip_configuration.private_ipaddress if frontend_ip_configuration.respond_to?(:private_ipaddress)
          hash['private_ipallocation_method'] = frontend_ip_configuration.private_ipallocation_method unless frontend_ip_configuration.private_ipallocation_method.nil?
          hash['public_ipaddress_id'] = frontend_ip_configuration.public_ipaddress.id unless frontend_ip_configuration.public_ipaddress.nil?
          hash
        end
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 4 rubygems

Version Path
fog-azure-rm-0.4.1 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/models/network/frontend_ip_configuration.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/models/network/frontend_ip_configuration.rb