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

Version Path
fog-2.1.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.42.1 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-2.0.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.42.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.41.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.40.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.39.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.38.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.37.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.36.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.35.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-2.0.0.pre.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.34.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.33.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.32.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb
fog-1.31.0 lib/fog/cloudstack/models/compute/egress_firewall_rules.rb