Class: Fog::Network::AzureRM::ApplicationGatewayBackendHttpSetting

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

Overview

Backend Http Settings model class for Network Service

Class Method Summary collapse

Class Method Details

.parse(backend_http_setting) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/fog/azurerm/models/network/application_gateway_backend_http_setting.rb', line 13

def self.parse(backend_http_setting)
  backend_http_setting_properties = backend_http_setting['properties']

  hash = {}
  hash['name'] = backend_http_setting['name']
  unless backend_http_setting_properties.nil?
    hash['port'] = backend_http_setting_properties['port']
    hash['protocol'] = backend_http_setting_properties['protocol']
    hash['cookie_based_affinity'] = backend_http_setting_properties['cookieBasedAffinity']
    hash['request_timeout'] = backend_http_setting_properties['requestTimeout']
    hash['probe'] = backend_http_setting_properties['probe']
    hash
  end
end