Class: Fog::Network::AzureRM::ApplicationGatewayFrontendPort

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

Overview

Frontenf Port model class for Network Service

Class Method Summary collapse

Class Method Details

.parse(frontend_port) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/azurerm/models/network/application_gateway_frontend_port.rb', line 9

def self.parse(frontend_port)
  frontend_port_properties = frontend_port['properties']

  hash = {}
  hash['name'] = frontend_port['name']
  unless frontend_port_properties['port'].nil?
    hash['port'] = frontend_port_properties['port']
  end
  hash
end