2525import org .apache .cloudstack .api .BaseResponse ;
2626import org .apache .cloudstack .api .Parameter ;
2727import com .cloud .serializer .Param ;
28- import com .cloud .utils .IdentityProxy ;
2928import com .cloud .utils .Pair ;
3029import com .google .gson .annotations .SerializedName ;
3130
3231public class AutoScaleVmProfileResponse extends BaseResponse implements ControlledEntityResponse {
3332
3433 @ SerializedName (ApiConstants .ID )
3534 @ Param (description = "the autoscale vm profile ID" )
36- private IdentityProxy id = new IdentityProxy ( "autoscale_vmprofiles" ) ;
35+ private String id ;
3736
3837 /* Parameters related to deploy virtual machine */
3938 @ SerializedName (ApiConstants .ZONE_ID )
4039 @ Param (description = "the availability zone to be used while deploying a virtual machine" )
41- private IdentityProxy zoneId = new IdentityProxy ( "data_center" ) ;
40+ private String zoneId ;
4241
4342 @ SerializedName (ApiConstants .SERVICE_OFFERING_ID )
4443 @ Param (description = "the service offering to be used while deploying a virtual machine" )
45- private IdentityProxy serviceOfferingId = new IdentityProxy ( "disk_offering" ) ;
44+ private String serviceOfferingId ;
4645
4746 @ SerializedName (ApiConstants .TEMPLATE_ID )
4847 @ Param (description = "the template to be used while deploying a virtual machine" )
49- private IdentityProxy templateId = new IdentityProxy ( "vm_template" ) ;
48+ private String templateId ;
5049
5150 @ SerializedName (ApiConstants .OTHER_DEPLOY_PARAMS )
5251 @ Param (description = "parameters other than zoneId/serviceOfferringId/templateId to be used while deploying a virtual machine" )
@@ -64,7 +63,7 @@ public class AutoScaleVmProfileResponse extends BaseResponse implements Controll
6463
6564 @ SerializedName (ApiConstants .AUTOSCALE_USER_ID )
6665 @ Param (description = "the ID of the user used to launch and destroy the VMs" )
67- private IdentityProxy autoscaleUserId = new IdentityProxy ( "user" ) ;
66+ private String autoscaleUserId ;
6867
6968 @ Parameter (name = ApiConstants .CS_URL , type = CommandType .STRING , description = "the API URL including port of the CloudStack Management Server example: http://server.cloud.com:8080/client/api?" )
7069 private String csUrl ;
@@ -93,20 +92,20 @@ public AutoScaleVmProfileResponse() {
9392
9493 }
9594
96- public void setId (Long id ) {
97- this .id . setValue ( id ) ;
95+ public void setId (String id ) {
96+ this .id = id ;
9897 }
9998
100- public void setZoneId (Long zoneId ) {
101- this .zoneId . setValue ( zoneId ) ;
99+ public void setZoneId (String zoneId ) {
100+ this .zoneId = zoneId ;
102101 }
103102
104- public void setServiceOfferingId (Long serviceOfferingId ) {
105- this .serviceOfferingId . setValue ( serviceOfferingId ) ;
103+ public void setServiceOfferingId (String serviceOfferingId ) {
104+ this .serviceOfferingId = serviceOfferingId ;
106105 }
107106
108- public void setTemplateId (Long templateId ) {
109- this .templateId . setValue ( templateId ) ;
107+ public void setTemplateId (String templateId ) {
108+ this .templateId = templateId ;
110109 }
111110
112111 public void setOtherDeployParams (String otherDeployParams ) {
@@ -147,8 +146,8 @@ public void setProjectName(String projectName) {
147146 this .projectName = projectName ;
148147 }
149148
150- public void setAutoscaleUserId (Long autoscaleUserId ) {
151- this .autoscaleUserId . setValue ( autoscaleUserId ) ;
149+ public void setAutoscaleUserId (String autoscaleUserId ) {
150+ this .autoscaleUserId = autoscaleUserId ;
152151 }
153152
154153 public void setDestroyVmGraceperiod (Integer destroyVmGraceperiod ) {
0 commit comments