Class: Fog::Ecloud::Compute::Vdc

Inherits:
Model show all
Defined in:
lib/fog/compute/models/ecloud/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



29
30
31
# File 'lib/fog/compute/models/ecloud/vdc.rb', line 29

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

#catalogObject



51
52
53
# File 'lib/fog/compute/models/ecloud/vdc.rb', line 51

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

#firewall_aclsObject



55
56
57
# File 'lib/fog/compute/models/ecloud/vdc.rb', line 55

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

#internet_servicesObject



25
26
27
# File 'lib/fog/compute/models/ecloud/vdc.rb', line 25

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

#networksObject



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

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

#public_ipsObject



21
22
23
# File 'lib/fog/compute/models/ecloud/vdc.rb', line 21

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

#serversObject



39
40
41
42
43
# File 'lib/fog/compute/models/ecloud/vdc.rb', line 39

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

#tasksObject



45
46
47
48
49
# File 'lib/fog/compute/models/ecloud/vdc.rb', line 45

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