Skip to content

Commit 19a9ca4

Browse files
committed
CLOUDSTACK-1272: Fix incorrect annotation for service offering id
Fixes param annotation in: api/src/org/apache/cloudstack/api/command/admin/router/UpgradeRouterCmd.java api/src/org/apache/cloudstack/api/command/admin/systemvm/UpgradeSystemVMCmd.java api/src/org/apache/cloudstack/api/command/user/autoscale/CreateAutoScaleVmProfileCmd.java Signed-off-by: Rohit Yadav <bhaisaab@apache.org> (cherry picked from commit 7326bb329c13306281eab208d0f46cfec378245f) Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 3411a6a commit 19a9ca4

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎api/src/org/apache/cloudstack/api/command/admin/router/UpgradeRouterCmd.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import org.apache.cloudstack.api.BaseCmd;
2323
import org.apache.cloudstack.api.Parameter;
2424
import org.apache.cloudstack.api.ServerApiException;
25-
import org.apache.cloudstack.api.response.DiskOfferingResponse;
2625
import org.apache.cloudstack.api.response.DomainRouterResponse;
26+
import org.apache.cloudstack.api.response.ServiceOfferingResponse;
2727
import org.apache.log4j.Logger;
2828

2929
import com.cloud.network.router.VirtualRouter;
@@ -42,7 +42,7 @@ public class UpgradeRouterCmd extends BaseCmd {
4242
required=true, description="The ID of the router")
4343
private Long id;
4444

45-
@Parameter(name=ApiConstants.SERVICE_OFFERING_ID, type=CommandType.UUID, entityType = DiskOfferingResponse.class,
45+
@Parameter(name=ApiConstants.SERVICE_OFFERING_ID, type=CommandType.UUID, entityType = ServiceOfferingResponse.class,
4646
required=true, description="the service offering ID to apply to the domain router")
4747
private Long serviceOfferingId;
4848

‎api/src/org/apache/cloudstack/api/command/admin/systemvm/UpgradeSystemVMCmd.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.apache.cloudstack.api.Parameter;
2424
import org.apache.cloudstack.api.ServerApiException;
2525
import org.apache.cloudstack.api.command.user.vm.UpgradeVMCmd;
26-
import org.apache.cloudstack.api.response.DiskOfferingResponse;
26+
import org.apache.cloudstack.api.response.ServiceOfferingResponse;
2727
import org.apache.cloudstack.api.response.SystemVmResponse;
2828
import org.apache.log4j.Logger;
2929

@@ -48,7 +48,7 @@ public class UpgradeSystemVMCmd extends BaseCmd {
4848
required=true, description="The ID of the system vm")
4949
private Long id;
5050

51-
@Parameter(name=ApiConstants.SERVICE_OFFERING_ID, type=CommandType.UUID, entityType=DiskOfferingResponse.class,
51+
@Parameter(name=ApiConstants.SERVICE_OFFERING_ID, type=CommandType.UUID, entityType=ServiceOfferingResponse.class,
5252
required=true, description="the service offering ID to apply to the system vm")
5353
private Long serviceOfferingId;
5454

‎api/src/org/apache/cloudstack/api/command/user/autoscale/CreateAutoScaleVmProfileCmd.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.apache.cloudstack.api.Parameter;
2727
import org.apache.cloudstack.api.ServerApiException;
2828
import org.apache.cloudstack.api.response.AutoScaleVmProfileResponse;
29-
import org.apache.cloudstack.api.response.DiskOfferingResponse;
29+
import org.apache.cloudstack.api.response.ServiceOfferingResponse;
3030
import org.apache.cloudstack.api.response.TemplateResponse;
3131
import org.apache.cloudstack.api.response.UserResponse;
3232
import org.apache.cloudstack.api.response.ZoneResponse;
@@ -56,7 +56,7 @@ public class CreateAutoScaleVmProfileCmd extends BaseAsyncCreateCmd {
5656
required = true, description = "availability zone for the auto deployed virtual machine")
5757
private Long zoneId;
5858

59-
@Parameter(name = ApiConstants.SERVICE_OFFERING_ID, type = CommandType.UUID, entityType = DiskOfferingResponse.class,
59+
@Parameter(name = ApiConstants.SERVICE_OFFERING_ID, type = CommandType.UUID, entityType = ServiceOfferingResponse.class,
6060
required = true, description = "the service offering of the auto deployed virtual machine")
6161
private Long serviceOfferingId;
6262

0 commit comments

Comments
 (0)