Sha256: e4c15ad236ecfc5589139b9c1d881f25546e240e5701beb01834da0eea9f306c

Contents?: true

Size: 1.56 KB

Versions: 53

Compression:

Stored size: 1.56 KB

Contents

module Fog
  module Network
    class AzureRM
      # LoadBalangcingRule model for Network Service
      class LoadBalangcingRule < Fog::Model
        identity :name
        attribute :id
        attribute :frontend_ip_configuration_id
        attribute :backend_address_pool_id
        attribute :protocol
        attribute :frontend_port
        attribute :backend_port
        attribute :probe_id
        attribute :enable_floating_ip
        attribute :idle_timeout_in_minutes
        attribute :load_distribution

        def self.parse(load_balancing_rule)
          hash = {}
          hash['id'] = load_balancing_rule.id
          hash['name'] = load_balancing_rule.name
          hash['frontend_ip_configuration_id'] = load_balancing_rule.frontend_ipconfiguration.id unless load_balancing_rule.frontend_ipconfiguration.nil?
          hash['backend_address_pool_id'] = load_balancing_rule.backend_address_pool.id unless load_balancing_rule.backend_address_pool.nil?

          hash['protocol'] = load_balancing_rule.protocol
          hash['frontend_port'] = load_balancing_rule.frontend_port
          hash['backend_port'] = load_balancing_rule.backend_port
          hash['probe_id'] = load_balancing_rule.probe.id unless load_balancing_rule.probe.nil?
          hash['enable_floating_ip'] = load_balancing_rule.enable_floating_ip
          hash['idle_timeout_in_minutes'] = load_balancing_rule.idle_timeout_in_minutes
          hash['load_distribution'] = load_balancing_rule.load_distribution
          hash
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 4 rubygems

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