1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloud/models/vdc.rb
2010-05-28 02:31:08 +08:00

36 lines
774 B
Ruby

require 'fog/model'
module Fog
module Vcloud
class Vdc < Fog::Vcloud::Model
identity :href
attribute :name
attribute :other_links, :links
attribute :resource_entity_links, :resource_entities
attribute :network_links, :networks
attribute :cpu_capacity
attribute :storage_capacity
attribute :memory_capacity
attribute :vm_quota
attribute :enabled
attribute :nic_quota
attribute :network_quota
attribute :vcloud_type, :type
attribute :xmlns
attribute :description
attribute :allocation_model
#def networks
# connection.networks(:vdc_uri => @uri)
#end
#def addresses
# connection.addresses(:vdc_uri => @uri)
#end
end
end
end