Class: Fog::Vcloud::Compute::Organization

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/vcloud/models/compute/organization.rb

Instance Attribute Summary

Attributes inherited from Model

#loaded

Instance Method Summary collapse

Methods inherited from Model

has_up, #link_up, #load_unless_loaded!, #reload

Instance Method Details

#catalogsObject



33
34
35
36
37
# File 'lib/fog/vcloud/models/compute/organization.rb', line 33

def catalogs
  @catalogs ||= Fog::Vcloud::Compute::Catalogs.
    new( :service => service,
         :href => href )
end

#networksObject



14
15
16
17
18
# File 'lib/fog/vcloud/models/compute/organization.rb', line 14

def networks
  @networks ||= Fog::Vcloud::Compute::Networks.
    new( :service => service,
         :href => href )
end

#tasksObject



20
21
22
23
24
25
# File 'lib/fog/vcloud/models/compute/organization.rb', line 20

def tasks
  load_unless_loaded!
  @tasks ||= Fog::Vcloud::Compute::Tasks.
    new( :service => service,
         :href => other_links.find{|l| l[:type] == 'application/vnd.vmware.vcloud.tasksList+xml'}[:href] )
end

#vdcsObject



27
28
29
30
31
# File 'lib/fog/vcloud/models/compute/organization.rb', line 27

def vdcs
  @vdcs ||= Fog::Vcloud::Compute::Vdcs.
    new( :service => service,
         :href => href )
end