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

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