Sha256: 8ea923f0791eddf164e9cabf6acfb38a09ba30e344003cefc2846a0d9069eda1
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
module Fog module Network class AzureRM # URL Path Map model class for Network Service class ApplicationGatewayUrlPathMap < Fog::Model identity :name attribute :default_backend_address_pool_id attribute :default_backend_http_settings_id attribute :path_rules def self.parse(url_path_map) url_path_map_properties = url_path_map['properties'] hash = {} hash['name'] = url_path_map['name'] unless url_path_map_properties.nil? hash['default_backend_address_pool_id'] = url_path_map_properties['defaultBackendAddressPool']['id'] hash['default_backend_http_settings_id'] = url_path_map_properties['defaultBackendHttpSettings']['id'] path_rules = url_path_map_properties['pathRules'] hash['path_rules'] = [] path_rules.each do |rule| path_rule = Fog::Network::AzureRM::PathRule.new hash['path_rules'] << path_rule.merge_attributes(Fog::Network::AzureRM::PathRule.parse(rule)) end unless path_rules.nil? end hash end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.4 | lib/fog/azurerm/models/network/application_gateway_url_path_map.rb |
fog-azure-rm-0.0.3 | lib/fog/azurerm/models/network/application_gateway_url_path_map.rb |