Daniel Erez has posted comments on this change.

Change subject: restapi: CRUD for OpenStackVolume authentication keys
......................................................................


Patch Set 7:

(4 comments)

https://gerrit.ovirt.org/#/c/41969/7/backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/openstack/OpenStackVolumeAuthenticationKeyResource.java
File 
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/openstack/OpenStackVolumeAuthenticationKeyResource.java:

Line 35:     @Consumes({ApiMediaType.APPLICATION_XML, 
ApiMediaType.APPLICATION_JSON, ApiMediaType.APPLICATION_X_YAML})
Line 36:     public OpenstackVolumeAuthenticationKey 
update(OpenstackVolumeAuthenticationKey resource);
Line 37: 
Line 38:     @DELETE
Line 39:     Response remove();
> Consider using "public" in all the methods, or in none of them. IDEs compla
Done


https://gerrit.ovirt.org/#/c/41969/7/backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/openstack/OpenStackVolumeAuthenticationKeysResource.java
File 
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/openstack/OpenStackVolumeAuthenticationKeysResource.java:

Line 38:     @Consumes({ApiMediaType.APPLICATION_XML, 
ApiMediaType.APPLICATION_JSON, ApiMediaType.APPLICATION_X_YAML})
Line 39:     public Response add(OpenstackVolumeAuthenticationKey 
authenticationKey);
Line 40: 
Line 41:     @Path("{id}")
Line 42:     OpenStackVolumeAuthenticationKeyResource 
getOpenStackVolumeAuthenticationKey(@PathParam("id") String id);
> Consider adding "public" to all or none of the methods of the interface.
Done


https://gerrit.ovirt.org/#/c/41969/7/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
File 
backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml:

Line 3924:   request:
Line 3925:     body:
Line 3926:       parameterType: OpenstackVolumeAuthenticationKey
Line 3927:       signatures:
Line 3928:       - mandatoryArguments: {}
> This shouldn't be needed, but if you are having trouble we can leave it.
done. the dash did the trick :)
Line 3929:         optionalArguments:
Line 3930:           openstack_volume_authentication_key.value: xs:string
Line 3931:           openstack_volume_authentication_key.usage_type: xs:string
Line 3932:           openstack_volume_authentication_key.description: xs:string


https://gerrit.ovirt.org/#/c/41969/7/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/openstack/OpenStackVolumeAuthenticationKeyMapper.java
File 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/openstack/OpenStackVolumeAuthenticationKeyMapper.java:

Line 70:                 entity.setUsageType(map(usageType, null));
Line 71:             }
Line 72:         }
Line 73:         if (model.isSetOpenstackVolumeProvider()) {
Line 74:             
entity.setProviderId(GuidUtils.asGuid(model.getOpenstackVolumeProvider().getId()));
> The id of the provider may be missing, as the user may send the following:
Done
Line 75:         }
Line 76:         return entity;
Line 77:     }
Line 78: 


-- 
To view, visit https://gerrit.ovirt.org/41969
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I1041a9760c29919d86da5479ce29db666d18a924
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to