Sha256: ac92908ae20f434e703e5eab1dd7d54ff839060a02a1d0008cd24f822378fc51
Contents?: true
Size: 801 Bytes
Versions: 2
Compression:
Stored size: 801 Bytes
Contents
require 'fog/core/collection' require 'fog/azurerm/models/network/network_security_group' module Fog module Network class AzureRM # collection class for Network Security Group class NetworkSecurityGroups < Fog::Collection model Fog::Network::AzureRM::NetworkSecurityGroup attribute :resource_group 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 def get(identity) all.find { |f| f.name == identity } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.3 | lib/fog/azurerm/models/network/network_security_groups.rb |
fog-azure-rm-0.0.2 | lib/fog/azurerm/models/network/network_security_groups.rb |