Updated Branches: refs/heads/api_refactoring 44ef998cf -> 27482045c
API refactoring -- More parameter for counter group. Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/27482045 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/27482045 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/27482045 Branch: refs/heads/api_refactoring Commit: 27482045ceef4ee4e8165c21f97c24200888beed Parents: 44ef998 Author: Fang Wang <[email protected]> Authored: Fri Dec 14 11:31:05 2012 -0800 Committer: Rohit Yadav <[email protected]> Committed: Fri Dec 14 11:52:08 2012 -0800 ---------------------------------------------------------------------- .../command/admin/autoscale/DeleteCounterCmd.java | 3 ++- .../cloudstack/api/response/CounterResponse.java | 4 ++++ 2 files changed, 6 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/27482045/api/src/org/apache/cloudstack/api/command/admin/autoscale/DeleteCounterCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/admin/autoscale/DeleteCounterCmd.java b/api/src/org/apache/cloudstack/api/command/admin/autoscale/DeleteCounterCmd.java index 1e7f70a..0476278 100644 --- a/api/src/org/apache/cloudstack/api/command/admin/autoscale/DeleteCounterCmd.java +++ b/api/src/org/apache/cloudstack/api/command/admin/autoscale/DeleteCounterCmd.java @@ -26,6 +26,7 @@ import org.apache.cloudstack.api.IdentityMapper; import org.apache.cloudstack.api.Implementation; import org.apache.cloudstack.api.Parameter; import org.apache.cloudstack.api.ServerApiException; +import org.apache.cloudstack.api.response.CounterResponse; import org.apache.cloudstack.api.response.SuccessResponse; import com.cloud.async.AsyncJob; import com.cloud.event.EventTypes; @@ -42,7 +43,7 @@ public class DeleteCounterCmd extends BaseAsyncCmd { // /////////////////////////////////////////////////// @IdentityMapper(entityTableName = "counter") - @Parameter(name = ApiConstants.ID, type = CommandType.LONG, required = true, description = "the ID of the counter") + @Parameter(name = ApiConstants.ID, type = CommandType.LONG, required = true, description = "the ID of the counter", entityType=CounterResponse.class) private Long id; // /////////////////////////////////////////////////// http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/27482045/api/src/org/apache/cloudstack/api/response/CounterResponse.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/response/CounterResponse.java b/api/src/org/apache/cloudstack/api/response/CounterResponse.java index 5260f1e..f3cf3b3 100644 --- a/api/src/org/apache/cloudstack/api/response/CounterResponse.java +++ b/api/src/org/apache/cloudstack/api/response/CounterResponse.java @@ -18,12 +18,16 @@ package org.apache.cloudstack.api.response; import org.apache.cloudstack.api.ApiConstants; +import org.apache.cloudstack.api.Entity; + +import com.cloud.network.as.Counter; import com.cloud.serializer.Param; import com.cloud.utils.IdentityProxy; import com.google.gson.annotations.SerializedName; import org.apache.cloudstack.api.BaseResponse; @SuppressWarnings("unused") +@Entity(value=Counter.class) public class CounterResponse extends BaseResponse { @SerializedName("id") @Param(description = "the id of the Counter")
