Hello! I'm try to create vm from snapshot using ovirt-engine-sdk-ruby
i have script like that
```
vm =
OvirtSDK4::Vm.new({name:"bkp_hanami",cluster:{name:"cluster-nb5"},disk_attachments:[{disk:{image_id:"24da6f72-f43f-4d8c-ad4f-cd3fb4f4ce35",storage_domain:{id:"07aaac7b-fddf-419b-bd40-766b58bf1588"}}},{disk:{image_id:"3db30d08-ff9c-4a6e-9252-dcb9fa01a2d5",storage_domain:{id:"07aaac7b-fddf-419b-bd40-766b58bf1588"}}}],snapshot:{id:"059a03b6-043a-46c8-a6af-07131a71df2a"}})
vms = connection.system_service.vms_service
vms.add_from_snapshot(vm)
```
But as result i'm get
```
OvirtSDK4::Error: Fault reason is "Incomplete parameters". Fault detail is
"Vm [template.id|name] required for add". HTTP response code is 400.
```
Ok, i'm added template id into hash
and as result i'm getted xml
D, [2019-04-11T09:53:38.773430 #66286] DEBUG -- : <vm>
D, [2019-04-11T09:53:38.773511 #66286] DEBUG -- : <name>bkp_hanami</name>
D, [2019-04-11T09:53:38.773585 #66286] DEBUG -- : <cluster>
D, [2019-04-11T09:53:38.773641 #66286] DEBUG -- :
<name>cluster-nb5</name>
D, [2019-04-11T09:53:38.773735 #66286] DEBUG -- : </cluster>
D, [2019-04-11T09:53:38.773823 #66286] DEBUG -- : <disk_attachments>
D, [2019-04-11T09:53:38.773872 #66286] DEBUG -- : <disk_attachment>
D, [2019-04-11T09:53:38.773966 #66286] DEBUG -- : <disk>
D, [2019-04-11T09:53:38.774028 #66286] DEBUG -- :
<image_id>24da6f72-f43f-4d8c-ad4f-cd3fb4f4ce35</image_id>
D, [2019-04-11T09:53:38.774093 #66286] DEBUG -- : <storage_domain
id="07aaac7b-fddf-419b-bd40-766b58bf1588"/>
D, [2019-04-11T09:53:38.774161 #66286] DEBUG -- : </disk>
D, [2019-04-11T09:53:38.774243 #66286] DEBUG -- : </disk_attachment>
D, [2019-04-11T09:53:38.774310 #66286] DEBUG -- : <disk_attachment>
D, [2019-04-11T09:53:38.774393 #66286] DEBUG -- : <disk>
D, [2019-04-11T09:53:38.774463 #66286] DEBUG -- :
<image_id>3db30d08-ff9c-4a6e-9252-dcb9fa01a2d5</image_id>
D, [2019-04-11T09:53:38.774531 #66286] DEBUG -- : <storage_domain
id="07aaac7b-fddf-419b-bd40-766b58bf1588"/>
D, [2019-04-11T09:53:38.774593 #66286] DEBUG -- : </disk>
D, [2019-04-11T09:53:38.774710 #66286] DEBUG -- : </disk_attachment>
D, [2019-04-11T09:53:38.774807 #66286] DEBUG -- : </disk_attachments>
D, [2019-04-11T09:53:38.774869 #66286] DEBUG -- : <template
id="5f3ff226-908c-478a-a2e0-d49f4204c99b"/>
D, [2019-04-11T09:53:38.774957 #66286] DEBUG -- : </vm>
What parameters i'm should pass in function vms_services.add_vm_from_snapshot() to
really creating vm from snapshot
p.s. when i'm use restclient all works great.
(Ovirt 4.2.8, gem ovirt-engine-sdk-4.2.5)