Sha256: f8ef156fc12e48ec7aa488c1d86efa07a79f83610addc9cc8eab260c35241842
Contents?: true
Size: 982 Bytes
Versions: 1
Compression:
Stored size: 982 Bytes
Contents
module Fog module Sql class AzureRM # Sql Server Collection for Firewall Rules Service class FirewallRules < Fog::Collection attribute :resource_group attribute :server_name model Fog::Sql::AzureRM::FirewallRule def all requires :resource_group, :server_name firewall_rules = [] service.list_firewall_rules(resource_group, server_name).each do |firewall_rule| firewall_rules << Fog::Sql::AzureRM::FirewallRule.parse(firewall_rule) end load(firewall_rules) end def get(resource_group, server_name, rule_name) firewall_rule = service.get_firewall_rule(resource_group, server_name, rule_name) firewall_rule_fog = Fog::Sql::AzureRM::FirewallRule.new(service: service) firewall_rule_fog.merge_attributes(Fog::Sql::AzureRM::FirewallRule.parse(firewall_rule)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.1 | lib/fog/azurerm/models/sql/firewall_rules.rb |