Class: Fog::Vcloud::Terremark::Ecloud::Vdc

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/vcloud/terremark/ecloud/models/vdc.rb

Instance Attribute Summary

Attributes inherited from Model

#loaded

Attributes inherited from Model

#connection

Instance Method Summary collapse

Methods inherited from Model

#load_unless_loaded!, #reload

Methods inherited from Model

#collection, #initialize, #inspect, #reload, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #identity, #identity=, #merge_attributes, #new_record?, #requires

Constructor Details

This class inherits a constructor from Fog::Model

Instance Method Details

#catalogObject



48
49
50
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 48

def catalog
  @catalog ||= collection_based_on_type("application/vnd.vmware.vcloud.catalog+xml")
end

#firewall_aclsObject



52
53
54
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 52

def firewall_acls
  @firewall_acls ||= collection_based_on_type("application/vnd.tmrk.ecloud.firewallAclsList+xml")
end

#internet_servicesObject



26
27
28
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 26

def internet_services
  @internet_services ||= collection_based_on_type("application/vnd.tmrk.ecloud.internetServicesList+xml")
end

#networksObject



30
31
32
33
34
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 30

def networks
  @networks ||= Fog::Vcloud::Terremark::Ecloud::Networks.
    new( :connection => connection,
         :href => href )
end

#public_ipsObject



22
23
24
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 22

def public_ips
  @public_ips ||= collection_based_on_type("application/vnd.tmrk.ecloud.publicIpsList+xml")
end

#serversObject



36
37
38
39
40
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 36

def servers
  @servers ||= Fog::Vcloud::Terremark::Ecloud::Servers.
    new( :connection => connection,
         :href => href )
end

#tasksObject



42
43
44
45
46
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 42

def tasks
  @tasks ||= Fog::Vcloud::Terremark::Ecloud::Tasks.
    new( :connection => connection,
         :href => href + "/tasksList" )
end