lib/fog/azurerm/models/network/load_balancer.rb in fog-azure-rm-0.3.3 vs lib/fog/azurerm/models/network/load_balancer.rb in fog-azure-rm-0.3.4

- old
+ new

@@ -11,19 +11,21 @@ attribute :backend_address_pool_names attribute :load_balancing_rules attribute :probes attribute :inbound_nat_rules attribute :inbound_nat_pools + attribute :tags # @param [Object] load_balancer def self.parse(load_balancer) hash = {} hash['id'] = load_balancer.id hash['name'] = load_balancer.name hash['location'] = load_balancer.location hash['resource_group'] = get_resource_group_from_id(load_balancer.id) hash['backend_address_pool_names'] = load_balancer.backend_address_pools.map(&:id) unless load_balancer.backend_address_pools.nil? + hash['tags'] = load_balancer.tags hash['frontend_ip_configurations'] = [] load_balancer.frontend_ipconfigurations.each do |fic| frontend_ip_configuration = Fog::Network::AzureRM::FrontendIPConfiguration.new hash['frontend_ip_configurations'] << frontend_ip_configuration.merge_attributes(Fog::Network::AzureRM::FrontendIPConfiguration.parse(fic)) @@ -63,10 +65,10 @@ validate_load_balancing_rules(load_balancing_rules) unless load_balancing_rules.nil? validate_probes(probes) unless probes.nil? validate_inbound_nat_rules(inbound_nat_rules) unless inbound_nat_rules.nil? validate_inbound_nat_pools(inbound_nat_pools) unless inbound_nat_pools.nil? - load_balancer = service.create_load_balancer(name, location, resource_group, frontend_ip_configurations, backend_address_pool_names, load_balancing_rules, probes, inbound_nat_rules, inbound_nat_pools) + load_balancer = service.create_load_balancer(name, location, resource_group, frontend_ip_configurations, backend_address_pool_names, load_balancing_rules, probes, inbound_nat_rules, inbound_nat_pools, tags) merge_attributes(Fog::Network::AzureRM::LoadBalancer.parse(load_balancer)) end def validate_load_balancing_rules(load_balancing_rules)