Sha256: a50ef9b85de2e7bcde0bf9359028a1ee3236dbc5a0ce0d533a3af8d1c71345dd

Contents?: true

Size: 818 Bytes

Versions: 29

Compression:

Stored size: 818 Bytes

Contents

require 'fog/vcloud/terremark/ecloud/models/firewall_acl'

module Fog
  class Vcloud
    module Terremark
      class Ecloud

        class FirewallAcls < Fog::Vcloud::Collection

          model Fog::Vcloud::Terremark::Ecloud::FirewallAcl

          attribute :href, :aliases => :Href

          def all
            check_href! :message => "the Firewall ACL href for the network you want to enumerate"
            if data = connection.get_firewall_acls(href).body[:FirewallAcl]
              data = [ data ] if data.is_a?(Hash)
              load(data)
            end
          end

          def get(uri)
            if data = connection.get_firewall_acl(uri).body
              new(data)
            end
          rescue Fog::Errors::NotFound
            nil
          end

        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
fog-0.3.24 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.23 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.22 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.21 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.20 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.19 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.18 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.17 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb