Class: Fog::Compute::Cloudstack::EgressFirewallRules
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Cloudstack::EgressFirewallRules
- Defined in:
- lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/fog/cloudstack/models/compute/egress_firewall_rules.rb', line 10 def all( = {}) response = service.list_egress_firewall_rules() egress_firewall_rules = response["listegressfirewallrulesresponse"]["firewallrule"] || [] load(egress_firewall_rules) end |
#get(address_id) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/fog/cloudstack/models/compute/egress_firewall_rules.rb', line 16 def get(address_id) = { 'id' => address_id } response = service.list_egress_firewall_rules() egress_firewall_rules = response["listegressfirewallrulesresponse"]["firewallrule"].first new(egress_firewall_rules) end |