api: Fix correct annotation value in template cmds for template id Signed-off-by: Rohit Yadav <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/effa67ab Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/effa67ab Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/effa67ab Branch: refs/heads/marvin-refactor Commit: effa67abf4b4da5b42b3ced499b53de9292cb37e Parents: 9014a3f Author: Rohit Yadav <[email protected]> Authored: Wed Jan 23 16:00:39 2013 -0800 Committer: Prasanna Santhanam <[email protected]> Committed: Thu Jan 24 17:48:36 2013 +0530 ---------------------------------------------------------------------- .../command/user/template/DeleteTemplateCmd.java | 4 ++-- .../command/user/template/ExtractTemplateCmd.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/effa67ab/api/src/org/apache/cloudstack/api/command/user/template/DeleteTemplateCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/user/template/DeleteTemplateCmd.java b/api/src/org/apache/cloudstack/api/command/user/template/DeleteTemplateCmd.java index 8ee3041..12359bf 100644 --- a/api/src/org/apache/cloudstack/api/command/user/template/DeleteTemplateCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/template/DeleteTemplateCmd.java @@ -17,7 +17,7 @@ package org.apache.cloudstack.api.command.user.template; import org.apache.cloudstack.api.*; -import org.apache.cloudstack.api.response.UserVmResponse; +import org.apache.cloudstack.api.response.TemplateResponse; import org.apache.cloudstack.api.response.ZoneResponse; import org.apache.log4j.Logger; @@ -38,7 +38,7 @@ public class DeleteTemplateCmd extends BaseAsyncCmd { //////////////// API parameters ///////////////////// ///////////////////////////////////////////////////// - @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType = UserVmResponse.class, + @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType = TemplateResponse.class, required=true, description="the ID of the template") private Long id; http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/effa67ab/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java b/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java index 54f3e37..8b4e809 100644 --- a/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/template/ExtractTemplateCmd.java @@ -17,7 +17,7 @@ package org.apache.cloudstack.api.command.user.template; import org.apache.cloudstack.api.*; -import org.apache.cloudstack.api.response.UserVmResponse; +import org.apache.cloudstack.api.response.TemplateResponse; import org.apache.cloudstack.api.response.ZoneResponse; import org.apache.log4j.Logger; @@ -40,7 +40,7 @@ public class ExtractTemplateCmd extends BaseAsyncCmd { //////////////// API parameters ///////////////////// ///////////////////////////////////////////////////// - @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType = UserVmResponse.class, + @Parameter(name=ApiConstants.ID, type=CommandType.UUID, entityType = TemplateResponse.class, required=true, description="the ID of the template") private Long id;
