Ori Liel has posted comments on this change.

Change subject: rest: Add support for REST to get all the unregistered entities
......................................................................


Patch Set 12:

(3 comments)

http://gerrit.ovirt.org/#/c/26483/12/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainTemplateResource.java
File 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainTemplateResource.java:

Line 38:         return addLinks(populate(map(entity, null), entity), null, new 
String[0]);
Line 39:     }
Line 40: 
Line 41:     @Override
Line 42:     public Response register(Action action) {
> same comments as for BackendStorageDomainVmResource
ignore
Line 43:         validateParameters(action, "cluster.id|name");
Line 44:         ImportVmTemplateParameters params = new 
ImportVmTemplateParameters();
Line 45:         params.setContainerId(guid);
Line 46:         params.setVdsGroupId(getClusterId(action));


http://gerrit.ovirt.org/#/c/26483/12/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainVmResource.java
File 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainVmResource.java:

Line 39:     @Override
Line 40:     public Response register(Action action) {
Line 41:         validateParameters(action, "cluster.id|name");
Line 42:         ImportVmParameters params = new ImportVmParameters();
Line 43:         params.setContainerId(guid);
> Why is it called 'Container id'?
nevermind
Line 44:         params.setVdsGroupId(getClusterId(action));
Line 45:         params.setImagesExistOnStorageDomain(true);
Line 46: 
Line 47:         if (action.isSetClone()) {


Line 45:         params.setImagesExistOnStorageDomain(true);
Line 46: 
Line 47:         if (action.isSetClone()) {
Line 48:             params.setImportAsNewEntity(action.isClone());
Line 49:             if (action.isSetVm() && action.getVm().isSetName()) {
> Is VM name only relevant when clone=true? If so, there should be two separa
nevermind, ignore this
Line 50:                 params.getVm().setName(action.getVm().getName());
Line 51:             }
Line 52:         }
Line 53: 


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia4a020c4c653b0fafed16c1d29924223f9b2879f
Gerrit-PatchSet: 12
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Ori Liel <ol...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to