Class: Fog::Network::AzureRM::NetworkSecurityGroups
- Inherits:
-
Collection
- Object
- Collection
- Fog::Network::AzureRM::NetworkSecurityGroups
- Defined in:
- lib/fog/azurerm/models/network/network_security_groups.rb
Overview
collection class for Network Security Group
Instance Method Summary collapse
- #all ⇒ Object
- #check_net_sec_group_exists(resource_group, name) ⇒ Object
- #get(resource_group, name) ⇒ Object
Instance Method Details
#all ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/fog/azurerm/models/network/network_security_groups.rb', line 9 def all requires :resource_group network_security_groups = [] service.list_network_security_groups(resource_group).each do |nsg| network_security_groups << Fog::Network::AzureRM::NetworkSecurityGroup.parse(nsg) end load(network_security_groups) end |
#check_net_sec_group_exists(resource_group, name) ⇒ Object
24 25 26 |
# File 'lib/fog/azurerm/models/network/network_security_groups.rb', line 24 def check_net_sec_group_exists(resource_group, name) service.check_net_sec_group_exists(resource_group, name) end |
#get(resource_group, name) ⇒ Object
18 19 20 21 22 |
# File 'lib/fog/azurerm/models/network/network_security_groups.rb', line 18 def get(resource_group, name) network_security_group = service.get_network_security_group(resource_group, name) network_security_group_fog = Fog::Network::AzureRM::NetworkSecurityGroup.new(service: service) network_security_group_fog.merge_attributes(Fog::Network::AzureRM::NetworkSecurityGroup.parse(network_security_group)) end |