lib/fog/azurerm/models/application_gateway/gateway.rb in fog-azure-rm-0.3.3 vs lib/fog/azurerm/models/application_gateway/gateway.rb in fog-azure-rm-0.3.4

- old
+ new

@@ -20,10 +20,11 @@ attribute :backend_address_pools attribute :backend_http_settings_list attribute :http_listeners attribute :url_path_maps attribute :request_routing_rules + attribute :tags def self.parse(gateway) hash = {} hash['name'] = gateway.name hash['id'] = gateway.id @@ -94,10 +95,12 @@ hash['request_routing_rules'] = [] gateway.request_routing_rules.each do |rule| request_routing_rule = Fog::ApplicationGateway::AzureRM::RequestRoutingRule.new hash['request_routing_rules'] << request_routing_rule.merge_attributes(Fog::ApplicationGateway::AzureRM::RequestRoutingRule.parse(rule)) end unless gateway.request_routing_rules.nil? + + hash['tags'] = gateway.tags hash end def save requires :name, :location, :resource_group, :sku_name, :sku_tier, :sku_capacity, :gateway_ip_configurations, :frontend_ip_configurations, :frontend_ports, :backend_address_pools, :backend_http_settings_list, :http_listeners, :request_routing_rules @@ -131,10 +134,11 @@ probes: probes, backend_address_pools: backend_address_pools, backend_http_settings_list: backend_http_settings_list, http_listeners: http_listeners, url_path_maps: url_path_maps, - request_routing_rules: request_routing_rules + request_routing_rules: request_routing_rules, + tags: tags } end def validate_gateway_ip_configurations(gateway_ip_configurations) if gateway_ip_configurations.is_a?(Array)