Sha256: 232798569e2e2932662da718a9dfda841c09af9d46f5d81fbbea1c373c80df35

Contents?: true

Size: 820 Bytes

Versions: 14

Compression:

Stored size: 820 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class FirewallAcl < Fog::Ecloud::Model
        identity :href

        attribute :type, :aliases => :Type
        attribute :links, :aliases => :Links
        attribute :permission, :aliases => :Permission
        attribute :acl_type, :aliases => :AclType
        attribute :port_type, :aliases => :PortType
        attribute :protocol, :aliases => :Protocol
        attribute :source, :aliases => :Source
        attribute :destination, :aliases => :Destination
        attribute :port_range, :aliases => :PortRange

        def tasks
          @tasks = Fog::Compute::Ecloud::Tasks.new(:connection => connection, :href => "/cloudapi/ecloud/tasks/virtualMachines/#{id}")
        end

        def id
          href.scan(/\d+/)[0]
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 8 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-nirvanix-1.8.1 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-parser-fix-1.6.1 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-test-again-1.6.0 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-parser-fix-1.6.0 lib/fog/ecloud/models/compute/firewall_acl.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/ecloud/models/compute/firewall_acl.rb
fog-sgonyea-1.8.1 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.8.0 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.7.0 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.6.0 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.5.0 lib/fog/ecloud/models/compute/firewall_acl.rb
rackspace-fog-1.4.2 lib/rackspace-fog/ecloud/models/compute/firewall_acl.rb
fog-1.4.0 lib/fog/ecloud/models/compute/firewall_acl.rb