2013-06-18 11:29:42 -04:00
|
|
|
require 'fog/core/model'
|
|
|
|
|
|
|
|
module Fog
|
|
|
|
module Compute
|
2013-08-27 05:19:54 -04:00
|
|
|
class VcloudDirector
|
2013-06-18 11:29:42 -04:00
|
|
|
|
2013-07-09 07:31:43 -04:00
|
|
|
class Organization < Model
|
2013-09-10 13:01:42 -04:00
|
|
|
|
2013-06-18 11:29:42 -04:00
|
|
|
identity :id
|
2013-09-10 13:01:42 -04:00
|
|
|
|
2013-09-14 14:24:19 -04:00
|
|
|
attribute :name
|
2013-06-18 11:29:42 -04:00
|
|
|
attribute :type
|
|
|
|
attribute :href
|
2013-06-19 11:06:44 -04:00
|
|
|
attribute :description, :aliases => :Description
|
2013-09-14 14:24:19 -04:00
|
|
|
attribute :full_name, :aliases => :FullName
|
2013-09-10 13:01:42 -04:00
|
|
|
|
2013-06-18 14:51:12 -04:00
|
|
|
def vdcs
|
|
|
|
requires :id
|
|
|
|
service.vdcs(:organization => self)
|
2013-06-18 12:56:19 -04:00
|
|
|
end
|
2013-09-10 13:01:42 -04:00
|
|
|
|
2013-06-18 12:56:19 -04:00
|
|
|
def catalogs
|
|
|
|
requires :id
|
|
|
|
service.catalogs(:organization => self)
|
|
|
|
end
|
2013-09-10 13:01:42 -04:00
|
|
|
|
2013-06-24 11:04:55 -04:00
|
|
|
def networks
|
|
|
|
requires :id
|
|
|
|
service.networks(:organization => self)
|
|
|
|
end
|
2013-09-10 13:01:42 -04:00
|
|
|
|
|
|
|
def tasks
|
|
|
|
requires :id
|
|
|
|
service.tasks(:organization => self)
|
|
|
|
end
|
|
|
|
|
2013-06-18 11:29:42 -04:00
|
|
|
end
|
2013-09-10 13:01:42 -04:00
|
|
|
|
2013-06-18 11:29:42 -04:00
|
|
|
end
|
|
|
|
end
|
2013-09-10 13:01:42 -04:00
|
|
|
end
|