Sha256: 144be369823b8997874b351af4c50bc89eb939bb4d6979047fd07f50f9c58059

Contents?: true

Size: 818 Bytes

Versions: 64

Compression:

Stored size: 818 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 => "#{service.base_path}/tasks/virtualMachines/#{id}")
        end

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

Version data entries

64 entries across 62 versions & 7 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/firewall_acl.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/firewall_acl.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/firewall_acl.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/lib/fog/compute/ecloud/models/firewall_acl.rb
fog-ecloud-0.3.0 lib/fog/compute/ecloud/models/firewall_acl.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/models/firewall_acl.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/models/firewall_acl.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/models/firewall_acl.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/ecloud/models/compute/firewall_acl.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/models/firewall_acl.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/models/firewall_acl.rb
fog-ecloud-0.0.2 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-ecloud-0.0.1 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.25.0 lib/fog/ecloud/models/compute/firewall_acl.rb
nsidc-fog-1.24.1 lib/fog/ecloud/models/compute/firewall_acl.rb
fog-1.24.0 lib/fog/ecloud/models/compute/firewall_acl.rb
ns-fog-1.22.11 lib/fog/ecloud/models/compute/firewall_acl.rb
ns-fog-1.22.10 lib/fog/ecloud/models/compute/firewall_acl.rb
ns-fog-1.22.9 lib/fog/ecloud/models/compute/firewall_acl.rb
ns-fog-1.22.8 lib/fog/ecloud/models/compute/firewall_acl.rb