Class: Fog::VcloudDirector::Compute::TemplateVms
- Inherits:
-
Collection
- Object
- Collection
- Collection
- Fog::VcloudDirector::Compute::TemplateVms
- Includes:
- Query
- Defined in:
- lib/fog/vcloud_director/models/compute/template_vms.rb
Instance Method Summary collapse
Methods included from Query
Methods inherited from Collection
#_item_list, #all, #get, #get_by_name, #get_everyone, #index, #with_item_list
Instance Method Details
#get_single_template_vm(vm_id) ⇒ Object
15 16 17 18 19 |
# File 'lib/fog/vcloud_director/models/compute/template_vms.rb', line 15 def get_single_template_vm(vm_id) item = service.get_template_vm(vm_id).body return nil unless item new(item[:vm]) end |
#query_type ⇒ Object
21 22 23 |
# File 'lib/fog/vcloud_director/models/compute/template_vms.rb', line 21 def query_type "vm" end |