Sha256: 39bf52760ef52a7143914e2d820e8d0b46d2650a61ee84b81101152d4e6f9b7b

Contents?: true

Size: 814 Bytes

Versions: 28

Compression:

Stored size: 814 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(:service => service, :href => "/cloudapi/ecloud/tasks/virtualMachines/#{id}")
        end

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

Version data entries

28 entries across 28 versions & 6 rubygems

Version Path
fog-1.11.0 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.10.1 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-test-me-1.10.0 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.10.0 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.9.0 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/ecloud/models/compute/firewall_acl.rb