mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
API refactoring -- More parameter for counter group.
This commit is contained in:
parent
44ef998cfc
commit
27482045ce
@ -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;
|
||||
|
||||
// ///////////////////////////////////////////////////
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user