Sha256: ab5ea18cacaf15080bcf55742c7e34e9144753d0898befd37070cb2d135383f3
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
module Fog module ApplicationGateway class AzureRM # URL Path Map model class for Application Gateway Service class UrlPathMap < 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) hash = {} hash['name'] = url_path_map.name hash['default_backend_address_pool_id'] = url_path_map.default_backend_address_pool.id unless url_path_map.default_backend_address_pool.nil? hash['default_backend_http_settings_id'] = url_path_map.default_backend_http_settings.id unless url_path_map.default_backend_http_settings.nil? path_rules = url_path_map.path_rules 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? hash end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems