You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/01/28 14:48:49 UTC
[8/12] git commit: make API changeServiceForVirtualMachine work by
changing @entityType of parameter serviceOfferingId to
ServiceOfferingResponse
make API changeServiceForVirtualMachine work by changing @entityType of parameter serviceOfferingId to ServiceOfferingResponse
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/e13d9327
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/e13d9327
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/e13d9327
Branch: refs/heads/marvin-refactor-phase1
Commit: e13d93279eaa8fa0e7a8e3374160d6c5125013e3
Parents: 453f749
Author: Mice Xia <mi...@tcloudcomputing.com>
Authored: Mon Jan 28 15:39:54 2013 +0800
Committer: Mice Xia <mi...@tcloudcomputing.com>
Committed: Mon Jan 28 15:39:54 2013 +0800
----------------------------------------------------------------------
.../api/command/user/vm/UpgradeVMCmd.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/e13d9327/api/src/org/apache/cloudstack/api/command/user/vm/UpgradeVMCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/vm/UpgradeVMCmd.java b/api/src/org/apache/cloudstack/api/command/user/vm/UpgradeVMCmd.java
index 6c2e0f1..0ab9a33 100644
--- a/api/src/org/apache/cloudstack/api/command/user/vm/UpgradeVMCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/vm/UpgradeVMCmd.java
@@ -21,7 +21,7 @@ import org.apache.log4j.Logger;
import org.apache.cloudstack.api.APICommand;
-import org.apache.cloudstack.api.response.DiskOfferingResponse;
+import org.apache.cloudstack.api.response.ServiceOfferingResponse;
import org.apache.cloudstack.api.response.UserVmResponse;
import com.cloud.exception.InvalidParameterValueException;
import com.cloud.offering.ServiceOffering;
@@ -44,7 +44,7 @@ public class UpgradeVMCmd extends BaseCmd {
required=true, description="The ID of the virtual machine")
private Long id;
- @Parameter(name=ApiConstants.SERVICE_OFFERING_ID, type=CommandType.UUID, entityType=DiskOfferingResponse.class,
+ @Parameter(name=ApiConstants.SERVICE_OFFERING_ID, type=CommandType.UUID, entityType=ServiceOfferingResponse.class,
required=true, description="the service offering ID to apply to the virtual machine")
private Long serviceOfferingId;