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.5.3 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.5.2 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.5.1 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.5.0 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
phpfog-fog-0.4.1.3 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
phpfog-fog-0.4.1.2 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
phpfog-fog-0.4.1.1 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
phpfog-fog-0.4.1 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.4.1 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.4.0 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.34 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.33 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.32 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.31 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.30 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.29 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.28 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.27 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.26 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb
fog-0.3.25 lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb