Class: Fog::Network::AzureRM::InboundNatRule
- Inherits:
-
Model
- Object
- Model
- Fog::Network::AzureRM::InboundNatRule
- Defined in:
- lib/fog/azurerm/models/network/inbound_nat_rule.rb
Overview
InboundNatRule model for Network Service
Class Method Summary collapse
Class Method Details
.parse(inbound_nat_rule) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fog/azurerm/models/network/inbound_nat_rule.rb', line 13 def self.parse(inbound_nat_rule) inbound_nat_rule_prop = inbound_nat_rule['properties'] hash = {} hash['id'] = inbound_nat_rule['id'] hash['name'] = inbound_nat_rule['name'] unless inbound_nat_rule_prop['frontendIPConfiguration'].nil? hash['frontend_ip_configuration_id'] = inbound_nat_rule_prop['frontendIPConfiguration']['id'] end hash['protocol'] = inbound_nat_rule_prop['protocol'] hash['frontend_port'] = inbound_nat_rule_prop['frontendPort'] hash['backend_port'] = inbound_nat_rule_prop['backendPort'] hash end |