Sha256: e4fbf227f1ed29fee36216d37bf7abcb489c171d720460550cf0aa108a130142
Contents?: true
Size: 737 Bytes
Versions: 24
Compression:
Stored size: 737 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudstack/models/compute/firewall_rule' module Fog module Compute class Cloudstack class FirewallRules < Fog::Collection model Fog::Compute::Cloudstack::FirewallRule def all(options = {}) response = service.list_firewall_rules(options) firewall_rules = response["listfirewallrulesresponse"]["firewallrule"] || [] load(firewall_rules) end def get(address_id) options = { 'id' => address_id } response = service.list_firewall_rules(options) firewall_rules = response["listfirewallrulesresponse"]["firewallrule"].first new(firewall_rules) end end end end end
Version data entries
24 entries across 22 versions & 3 rubygems