Class: Fog::Network::AzureRM::PathRule
- Inherits:
-
Model
- Object
- Model
- Fog::Network::AzureRM::PathRule
- Defined in:
- lib/fog/azurerm/models/network/path_rule.rb
Overview
Path Rule model class for Network Service
Class Method Summary collapse
Class Method Details
.parse(path_rule) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# 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 |