From edb4b844d6a8883ec5d402a2fcaf2d6c5812a95a Mon Sep 17 00:00:00 2001 From: Naredula Janardhana Reddy Date: Wed, 30 Nov 2011 23:09:14 +0530 Subject: [PATCH] bug 10796: uuid changes in list response. --- .../api/response/LBStickinessResponse.java | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/api/src/com/cloud/api/response/LBStickinessResponse.java b/api/src/com/cloud/api/response/LBStickinessResponse.java index de646c9c52e..bbc06f2af58 100644 --- a/api/src/com/cloud/api/response/LBStickinessResponse.java +++ b/api/src/com/cloud/api/response/LBStickinessResponse.java @@ -40,10 +40,10 @@ public class LBStickinessResponse extends BaseResponse { @SerializedName("account") @Param(description = "the account of the Stickiness policy") private String accountName; - - @SerializedName("domainid") - @Param(description = "the domain ID of the Stickiness policy") - private Long domainId; + + @SerializedName(ApiConstants.DOMAIN_ID) + @Param(description = "the domain ID of the load balancer rule") + private IdentityProxy domainId = new IdentityProxy("domain"); @SerializedName("domain") @Param(description = "the domain of the Stickiness policy") @@ -52,10 +52,10 @@ public class LBStickinessResponse extends BaseResponse { @SerializedName("state") @Param(description = "the state of the policy") private String state; - + @SerializedName(ApiConstants.ZONE_ID) - @Param(description = "the id of the zone the policy belongs to") - private Long zoneId; + @Param(description = "the id of the zone the rule belongs to") + private IdentityProxy zoneId = new IdentityProxy("data_center"); @SerializedName("stickinesspolicy") @Param(description = "the list of stickinesspolicies", responseObject = LBStickinessPolicyResponse.class) @@ -96,19 +96,15 @@ public class LBStickinessResponse extends BaseResponse { public void setAccountName(String accountName) { this.accountName = accountName; } - - public Long getDomainId() { - return domainId; - } - public Long getZoneId() { - return zoneId; - } - public void setDomainId(Long domainId) { - this.domainId = domainId; + this.domainId.setValue(domainId); } - + + public void setZoneId(Long zoneId) { + this.zoneId.setValue(zoneId); + } + public String getDomainName() { return domainName; }