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