Class: Fog::Compute::VcloudDirector::TemplateVm
- Inherits:
-
Model
- Object
- Model
- Model
- Fog::Compute::VcloudDirector::TemplateVm
show all
- Defined in:
- lib/fog/vcloud_director/models/compute/template_vm.rb
Instance Method Summary
collapse
Methods inherited from Model
#initialize, #inspect, #lazy_load_attrs, #make_attr_loaded_method, #make_lazy_load_method
Instance Method Details
#customization ⇒ Object
28
29
30
31
32
|
# File 'lib/fog/vcloud_director/models/compute/template_vm.rb', line 28
def customization
requires :id
data = service.get_vm_customization(id).body
service.vm_customizations.new(data)
end
|
#disks ⇒ Object
40
41
42
43
|
# File 'lib/fog/vcloud_director/models/compute/template_vm.rb', line 40
def disks
requires :id
service.disks(:vm => self)
end
|
#network ⇒ Object
34
35
36
37
38
|
# File 'lib/fog/vcloud_director/models/compute/template_vm.rb', line 34
def network
requires :id
data = service.get_vm_network(id).body
service.vm_networks.new(data)
end
|
#reload ⇒ Object
16
17
18
19
20
|
# File 'lib/fog/vcloud_director/models/compute/template_vm.rb', line 16
def reload
self.vapp_template_id = collection.vapp_template.id
self.vapp_template_name = collection.vapp_template.name
end
|
23
24
25
26
|
# File 'lib/fog/vcloud_director/models/compute/template_vm.rb', line 23
def tags
requires :id
service.tags(:vm => self)
end
|
#vapp_template ⇒ Object
46
47
48
|
# File 'lib/fog/vcloud_director/models/compute/template_vm.rb', line 46
def vapp_template
service.vapp_templates.get(vapp_template_id)
end
|