Daniel Erez has submitted this change and it was merged.
Change subject: restapi: adding support for moving a VM disk
......................................................................
restapi: adding support for moving a VM disk
* Added move action to VmDiskResource interface.
* Added the implementation in BackendVmDiskResource.
* Added tests to BackendVmDiskResourceTest (similar to the tests
of copy disk in BackendTemplateDiskResourceTest).
* Updated rsdl yaml accordingly (similar to copy disk).
* Deprecated move VM (replaced by move disk)
I.e.
deprecated '/api/vms/{vm:id}/move|rel=move'
replaced by '/api/vms/{vm:id}/disks/{disk:id}/move|rel=move'
Change-Id: I1c864a81463388f8ac82eba6f909c5a4359efab6
Bug-Url:
https://bugzilla.redhat.com/883871
Signed-off-by: Daniel Erez <derez(a)redhat.com>
---
M
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/VmDiskResource.java
M
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/VmResource.java
M
backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata_v-3.1.yaml
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmDiskResource.java
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmResource.java
M
backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmDiskResourceTest.java
M
backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmResourceTest.java
7 files changed, 185 insertions(+), 22 deletions(-)
Approvals:
Daniel Erez: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/10676
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1c864a81463388f8ac82eba6f909c5a4359efab6
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <derez(a)redhat.com>
Gerrit-Reviewer: Daniel Erez <derez(a)redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern(a)redhat.com>
Gerrit-Reviewer: Ori Liel <oliel(a)redhat.com>