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_director/models/compute/organization.rb

42 lines
762 B
Ruby
Raw Normal View History

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
class Organization < Model
2013-06-18 11:29:42 -04:00
identity :id
attribute :name
2013-06-18 11:29:42 -04:00
attribute :type
attribute :href
attribute :description, :aliases => :Description
attribute :full_name, :aliases => :FullName
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-06-18 12:56:19 -04:00
def catalogs
requires :id
service.catalogs(:organization => self)
end
def networks
requires :id
service.networks(:organization => self)
end
def tasks
requires :id
service.tasks(:organization => self)
end
2013-06-18 11:29:42 -04:00
end
2013-06-18 11:29:42 -04:00
end
end
end