2013-06-18 17:29:42 +02:00
|
|
|
require 'fog/core/model'
|
|
|
|
|
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class Vcloudng
|
|
|
|
|
|
|
|
class Organization < Fog::Model
|
|
|
|
|
|
|
|
identity :id
|
|
|
|
|
2013-06-19 17:06:44 +02:00
|
|
|
attribute :name, :aliases => :FullName
|
2013-06-18 17:29:42 +02:00
|
|
|
attribute :type
|
|
|
|
attribute :href
|
2013-06-19 17:06:44 +02:00
|
|
|
attribute :description, :aliases => :Description
|
2013-06-18 18:56:19 +02:00
|
|
|
|
2013-06-18 20:51:12 +02:00
|
|
|
def vdcs
|
|
|
|
requires :id
|
|
|
|
service.vdcs(:organization => self)
|
2013-06-18 18:56:19 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def catalogs
|
|
|
|
requires :id
|
|
|
|
service.catalogs(:organization => self)
|
|
|
|
end
|
|
|
|
|
2013-06-24 17:04:55 +02:00
|
|
|
def networks
|
|
|
|
requires :id
|
|
|
|
service.networks(:organization => self)
|
|
|
|
end
|
|
|
|
|
2013-06-18 17:29:42 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|