Sha256: 63227934ffd093a04d3447e9d5610c93f2c230883a5cc892bd52bef696fe8793

Contents?: true

Size: 1.18 KB

Versions: 23

Compression:

Stored size: 1.18 KB

Contents

module Fog
  module Vcloud
    class Compute
      class Organization < Fog::Vcloud::Model

        identity :href, :aliases => :Href
        attribute :links, :aliases => :Link, :type => :array
        ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd

        attribute :name
        attribute :description, :aliases => :Description
        attribute :type
        attribute :full_name, :aliases => :FullName

        def networks
          @networks ||= Fog::Vcloud::Compute::Networks.
            new( :connection => connection,
                 :href => href )
        end

        def tasks
          load_unless_loaded!
          @tasks ||= Fog::Vcloud::Compute::Tasks.
            new( :connection => connection,
                 :href => other_links.find{|l| l[:type] == 'application/vnd.vmware.vcloud.tasksList+xml'}[:href] )
        end

        def vdcs
          @vdcs ||= Fog::Vcloud::Compute::Vdcs.
            new( :connection => connection,
                 :href => href )
        end

        def catalogs
          @catalogs ||= Fog::Vcloud::Compute::Catalogs.
            new( :connection => connection,
                 :href => href )
        end

      end
    end
  end
end

Version data entries

23 entries across 23 versions & 12 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/vcloud/models/compute/organization.rb
fog-nirvanix-1.8.1 lib/fog/vcloud/models/compute/organization.rb
fog-parser-fix-1.6.1 lib/fog/vcloud/models/compute/organization.rb
fog-test-again-1.6.0 lib/fog/vcloud/models/compute/organization.rb
fog-parser-fix-1.6.0 lib/fog/vcloud/models/compute/organization.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/vcloud/models/compute/organization.rb
fog-sgonyea-1.8.1 lib/fog/vcloud/models/compute/organization.rb
fog-1.8.0 lib/fog/vcloud/models/compute/organization.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/vcloud/models/compute/organization.rb
fog-1.7.0 lib/fog/vcloud/models/compute/organization.rb
fog-1.6.0 lib/fog/vcloud/models/compute/organization.rb
fog-1.5.0 lib/fog/vcloud/models/compute/organization.rb
rackspace-fog-1.4.2 lib/rackspace-fog/vcloud/models/compute/organization.rb
fog-1.4.0 lib/fog/vcloud/models/compute/organization.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/organization.rb
michiels-fog-1.3.1 lib/fog/vcloud/models/compute/organization.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/vcloud/models/compute/organization.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/models/compute/organization.rb
fog-1.3.1 lib/fog/vcloud/models/compute/organization.rb
fog-1.3.0 lib/fog/vcloud/models/compute/organization.rb