From f511babc16837f6ee80fb00f031a6edcbdc52b78 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Sat, 6 Mar 2021 15:09:06 +0530 Subject: [PATCH] api: remove account from listProjects API response (#4743) The `account` is no longer set in the listProjects API response that is still mentioned in the API docs. API consumers should now use the `owner` key from the listProjects API response which returns a list of owners (accounts and users). Signed-off-by: Rohit Yadav --- .../apache/cloudstack/api/response/ProjectResponse.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/src/main/java/org/apache/cloudstack/api/response/ProjectResponse.java b/api/src/main/java/org/apache/cloudstack/api/response/ProjectResponse.java index 4e2497e645b..47ebab8756f 100644 --- a/api/src/main/java/org/apache/cloudstack/api/response/ProjectResponse.java +++ b/api/src/main/java/org/apache/cloudstack/api/response/ProjectResponse.java @@ -51,10 +51,6 @@ public class ProjectResponse extends BaseResponse implements ResourceLimitAndCou @Param(description = "the domain name where the project belongs to") private String domain; - @SerializedName(ApiConstants.ACCOUNT) - @Param(description = "the account name of the project's owner") - private String ownerName; - @SerializedName(ApiConstants.OWNER) @Param(description = "the account name of the project's owners") private List> owners; @@ -231,10 +227,6 @@ public class ProjectResponse extends BaseResponse implements ResourceLimitAndCou this.domain = domain; } - public void setOwner(String owner) { - ownerName = owner; - } - public void setProjectAccountName(String projectAccountName) { this.projectAccountName = projectAccountName; }