Sha256: e1bf3280d4b1a83b09cacdf989a8b36abbe64c481261bfc002d020e461638f37

Contents?: true

Size: 1.33 KB

Versions: 26

Compression:

Stored size: 1.33 KB

Contents

module Fog
  module Vcloud
    class Compute
      class Vdc < 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 :type
        attribute :description, :aliases => :Description
        attribute :network_quota, :aliases => :NetworkQuota, :type => :integer
        attribute :nic_quota, :aliases => :NicQuota, :type => :integer
        attribute :vm_quota, :aliases => :VmQuota, :type => :integer
        attribute :is_enabled, :aliases => :IsEnabled, :type => :boolean
        attribute :compute_capacity, :aliases => :ComputeCapacity
        attribute :storage_capacity, :aliases => :StorageCapacity
        attribute :available_networks, :aliases => :AvailableNetworks, :squash => :Network

        attribute :resource_entities, :aliases => :ResourceEntities, :squash => :ResourceEntity

        has_up :organization

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

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

      end
    end
  end
end

Version data entries

26 entries across 26 versions & 12 rubygems

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