Sha256: bb203d289696f9b6541165f96c5df23309e090851ce8932ecc971f670e829e8d

Contents?: true

Size: 1.13 KB

Versions: 46

Compression:

Stored size: 1.13 KB

Contents

module Fog
  module ApplicationGateway
    class AzureRM
      # URL Path Map model class for Application Gateway Service
      class UrlPathMap < Fog::Model
        identity :name
        attribute :id
        attribute :default_backend_address_pool_id
        attribute :default_backend_http_settings_id
        attribute :path_rules

        def self.parse(url_path_map)
          hash = {}
          hash['id'] = url_path_map.id
          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

46 entries across 46 versions & 4 rubygems

Version Path
fog-azure-rm-0.4.1 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.4.0 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.9 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.8 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.7 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.6 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.5 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.4 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-temp-0.0.4 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-temp-0.0.3 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.3 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-temp-0.0.2 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-temp-0.0.1 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.2 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-downgraded-0.3.1 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.1 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-downgraded-0.3.0 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.3.0 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.2.7 lib/fog/azurerm/models/application_gateway/url_path_map.rb
fog-azure-rm-0.2.6 lib/fog/azurerm/models/application_gateway/url_path_map.rb