Class: Fog::ApplicationGateway::AzureRM::RequestRoutingRule

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/azurerm/models/application_gateway/request_routing_rule.rb

Overview

Request Routing Rule model class for Application Gateway Service

Class Method Summary collapse

Class Method Details

.parse(request_routing_rule) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/azurerm/models/application_gateway/request_routing_rule.rb', line 14

def self.parse(request_routing_rule)
  hash = {}
  hash['id'] = request_routing_rule.id
  hash['name'] = request_routing_rule.name
  hash['type'] = request_routing_rule.rule_type
  hash['http_listener_id'] = request_routing_rule.http_listener.id unless request_routing_rule.http_listener.nil?
  hash['backend_address_pool_id'] = request_routing_rule.backend_address_pool.id unless request_routing_rule.backend_address_pool.nil?
  hash['backend_http_settings_id'] = request_routing_rule.backend_http_settings.id unless request_routing_rule.backend_http_settings.nil?
  hash
end