Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CCC8710E1B for ; Wed, 29 Jan 2014 23:23:32 +0000 (UTC) Received: (qmail 23455 invoked by uid 500); 29 Jan 2014 23:23:31 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 23303 invoked by uid 500); 29 Jan 2014 23:23:29 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 23258 invoked by uid 99); 29 Jan 2014 23:23:29 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 23:23:29 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D05BB910D02; Wed, 29 Jan 2014 23:23:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: alena1108@apache.org To: commits@cloudstack.apache.org Date: Wed, 29 Jan 2014 23:23:29 -0000 Message-Id: <9dc0fe15151f40d6ae2ac62bee68fb05@git.apache.org> In-Reply-To: <5a56efdd354247469dbcb57a4a727067@git.apache.org> References: <5a56efdd354247469dbcb57a4a727067@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/4] git commit: updated refs/heads/master to 37fa801 ResizeVolume API - volumeId should be a required parameter Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3b781d1a Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3b781d1a Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3b781d1a Branch: refs/heads/master Commit: 3b781d1a227e59e8a7a1602737ed2cd04d393177 Parents: 68937cd Author: Alena Prokharchyk Authored: Wed Jan 29 10:25:54 2014 -0800 Committer: Alena Prokharchyk Committed: Wed Jan 29 14:57:00 2014 -0800 ---------------------------------------------------------------------- .../cloudstack/api/command/user/volume/ResizeVolumeCmd.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3b781d1a/api/src/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java ---------------------------------------------------------------------- diff --git a/api/src/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java b/api/src/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java index 0cc8039..e691944 100644 --- a/api/src/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java +++ b/api/src/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java @@ -16,8 +16,6 @@ // under the License. package org.apache.cloudstack.api.command.user.volume; -import org.apache.log4j.Logger; - import org.apache.cloudstack.api.APICommand; import org.apache.cloudstack.api.ApiCommandJobType; import org.apache.cloudstack.api.ApiConstants; @@ -28,6 +26,7 @@ import org.apache.cloudstack.api.ServerApiException; import org.apache.cloudstack.api.response.DiskOfferingResponse; import org.apache.cloudstack.api.response.VolumeResponse; import org.apache.cloudstack.context.CallContext; +import org.apache.log4j.Logger; import com.cloud.event.EventTypes; import com.cloud.exception.InvalidParameterValueException; @@ -47,7 +46,7 @@ public class ResizeVolumeCmd extends BaseAsyncCmd { //////////////// API parameters ///////////////////// ///////////////////////////////////////////////////// - @Parameter(name = ApiConstants.ID, entityType = VolumeResponse.class, type = CommandType.UUID, description = "the ID of the disk volume") + @Parameter(name = ApiConstants.ID, entityType = VolumeResponse.class, required = true, type = CommandType.UUID, description = "the ID of the disk volume") private Long id; @Parameter(name = ApiConstants.SIZE, type = CommandType.LONG, required = false, description = "New volume size in G")