class Fog::Network::AzureRM::PathRule
Path Rule model class for Network
Service
Public Class Methods
parse(path_rule)
click to toggle source
# File lib/fog/azurerm/models/network/path_rule.rb, line 10 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