Change in ovirt-engine[master]: restapi: user cannnot take a vm from pool via restapi #86443...

mpastern at redhat.com mpastern at redhat.com
Thu Oct 11 14:55:05 UTC 2012


Michael Pasternak has submitted this change and it was merged.

Change subject: restapi: user cannnot take a vm from pool via restapi #864438
......................................................................


restapi: user cannnot take a vm from pool via restapi #864438

This patch implements new action /allocatevm in vmpool [1] for user
to take vm from the pool,

also this patche introduces new generic and type independent resolver
pattern callback on the action, in this case BE action on vmpool returns
vm id which is later transformed to vm ref in api action response.

[1] POST /api/vmpools/{vmpool:id}/allocatevm

https://bugzilla.redhat.com/show_bug.cgi?id=864438

Change-Id: Icdd917a5f443bd7e8d06b582ae4559bef90608e6
Signed-off-by: Michael Pasternak <mpastern at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/VmPoolResource.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/AbstractBackendActionableResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/AbstractBackendResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmPoolResource.java
A backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmPoolResourceTest.java
6 files changed, 372 insertions(+), 2 deletions(-)

Approvals:
  Michael Pasternak: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/8488
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icdd917a5f443bd7e8d06b582ae4559bef90608e6
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>



More information about the Engine-commits mailing list