Class: Fog::Network::AzureRM::NetworkSecurityRule
- Inherits:
-
Model
- Object
- Model
- Fog::Network::AzureRM::NetworkSecurityRule
- Defined in:
- lib/fog/azurerm/models/network/network_security_rule.rb
Overview
Security Rule model for Network Service
Class Method Summary collapse
Class Method Details
.parse(nsr) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/fog/azurerm/models/network/network_security_rule.rb', line 20 def self.parse(nsr) hash = {} hash['id'] = nsr.id hash['name'] = nsr.name hash['resource_group'] = get_resource_from_resource_id(nsr.id, RESOURCE_GROUP_NAME) hash['network_security_group_name'] = get_resource_from_resource_id(nsr.id, RESOURCE_NAME) hash['description'] = nsr.description hash['protocol'] = nsr.protocol hash['source_port_range'] = nsr.source_port_range hash['destination_port_range'] = nsr.destination_port_range hash['source_address_prefix'] = nsr.source_address_prefix hash['destination_address_prefix'] = nsr.destination_address_prefix hash['access'] = nsr.access hash['priority'] = nsr.priority hash['direction'] = nsr.direction hash end |