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