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

#collection, #connection

Instance Method Summary collapse

Methods inherited from Model

#load_unless_loaded!, #reload

Methods inherited from Model

#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

#backup_internet_servicesObject



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

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

#catalogObject



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

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

#firewall_aclsObject



56
57
58
# File 'lib/fog/vcloud/terremark/ecloud/models/vdc.rb', line 56

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



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

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



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

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

#tasksObject



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

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