Sha256: 72645b733acee5feeebdc52d2307c1ae5537fda9e1bf0e9f1c885f67f54f7da5
Contents?: true
Size: 810 Bytes
Versions: 24
Compression:
Stored size: 810 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudstack/models/compute/egress_firewall_rule' module Fog module Compute class Cloudstack class EgressFirewallRules < Fog::Collection model Fog::Compute::Cloudstack::EgressFirewallRule def all(options = {}) response = service.list_egress_firewall_rules(options) egress_firewall_rules = response["listegressfirewallrulesresponse"]["firewallrule"] || [] load(egress_firewall_rules) end def get(address_id) options = { 'id' => address_id } response = service.list_egress_firewall_rules(options) egress_firewall_rules = response["listegressfirewallrulesresponse"]["firewallrule"].first new(egress_firewall_rules) end end end end end
Version data entries
24 entries across 22 versions & 3 rubygems