Sha256: c0c2384cadeeb22629d44c52f5723d54955050449d2f4c6a1c5fc0c4f9c9edac
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
module Fog module Network class AzureRM # collection class for Network Security Rule class NetworkSecurityRules < Fog::Collection model NetworkSecurityRule attribute :resource_group attribute :network_security_group_name def all requires :resource_group, :network_security_group_name network_security_rules = [] service.list_network_security_rules(resource_group, network_security_group_name).each do |nsr| network_security_rules << NetworkSecurityRule.parse(nsr) end load(network_security_rules) end def get(resource_group, network_security_group_name, name) network_security_rule = service.get_network_security_rule(resource_group, network_security_group_name, name) network_security_rule_obj = NetworkSecurityRule.new(service: service) network_security_rule_obj.merge_attributes(NetworkSecurityRule.parse(network_security_rule)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.0 | lib/fog/azurerm/models/network/network_security_rules.rb |