Sha256: e89bad5ec2e2cba7b7ae6aeaae95628254c181f132567c6d5f3672a7ddebece5

Contents?: true

Size: 824 Bytes

Versions: 47

Compression:

Stored size: 824 Bytes

Contents

module Fog
  module Network
    class AzureRM
      # Path Rule model class for Network Service
      class PathRule < Fog::Model
        attribute :paths
        attribute :backend_address_pool_id
        attribute :backend_http_settings_id

        def self.parse(path_rule)
          paths = path_rule['paths']

          hash = {}
          hash['paths'] = []
          paths.each do |path|
            hash['paths'] << path
          end unless paths.nil?

          unless path_rule['backendAddressPool'].nil?
            hash['backend_address_pool_id'] = path_rule['backendAddressPool']['id']
          end
          unless path_rule['backendHttpsettings'].nil?
            hash['backend_http_settings_id'] = path_rule['backendHttpsettings']['id']
          end
          hash
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.5.3 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.5.2 lib/fog/azurerm/models/network/path_rule.rb
far-gem-0.5.6 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.5.1 lib/fog/azurerm/models/network/path_rule.rb
far-gem-0.5.5 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.5.0 lib/fog/azurerm/models/network/path_rule.rb
far-gem-0.5.4 lib/fog/azurerm/models/network/path_rule.rb
far-gem-0.5.3 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.4.9 lib/fog/azurerm/models/network/path_rule.rb
far-gem-0.5.2 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.4.8 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.4.7 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.4.6 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.4.5 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-temp-0.0.5 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.4.4 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.4.3 lib/fog/azurerm/models/network/path_rule.rb
far-gem-0.5.1 lib/fog/azurerm/models/network/path_rule.rb
fog-azure-rm-0.4.2 lib/fog/azurerm/models/network/path_rule.rb