mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
34 lines
No EOL
687 B
Ruby
34 lines
No EOL
687 B
Ruby
require 'fog/core/model'
|
|
|
|
module Fog
|
|
module Compute
|
|
class Vcloudng
|
|
|
|
class Organization < Fog::Model
|
|
|
|
identity :id
|
|
|
|
attribute :name, :aliases => :FullName
|
|
attribute :type
|
|
attribute :href
|
|
attribute :description, :aliases => :Description
|
|
|
|
def vdcs
|
|
requires :id
|
|
service.vdcs(:organization => self)
|
|
end
|
|
|
|
def catalogs
|
|
requires :id
|
|
service.catalogs(:organization => self)
|
|
end
|
|
|
|
def networks
|
|
requires :id
|
|
service.networks(:organization => self)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end |