Class: Fog::Compute::VcloudDirector::TemplateVms

Inherits:
Collection
  • Object
show all
Includes:
VcloudDirector::Query
Defined in:
lib/fog/vcloud_director/models/compute/template_vms.rb

Instance Method Summary collapse

Methods included from VcloudDirector::Query

#find_by_query

Methods inherited from Collection

#all, #get, #get_by_name, #get_everyone, #index

Instance Method Details

#get_single_vm(vm_id) ⇒ Object



16
17
18
19
20
# File 'lib/fog/vcloud_director/models/compute/template_vms.rb', line 16

def get_single_vm(vm_id)
  item = service.get_template_vm(vm_id).body
  return nil unless item
  new(item[:vm])
end

#query_typeObject



22
23
24
# File 'lib/fog/vcloud_director/models/compute/template_vms.rb', line 22

def query_type
  "vm"
end