Skip to content

Commit f511bab

Browse files
authored
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 <rohit.yadav@shapeblue.com>
1 parent df4103f commit f511bab

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/response/ProjectResponse.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ public class ProjectResponse extends BaseResponse implements ResourceLimitAndCou
5151
@Param(description = "the domain name where the project belongs to")
5252
private String domain;
5353

54-
@SerializedName(ApiConstants.ACCOUNT)
55-
@Param(description = "the account name of the project's owner")
56-
private String ownerName;
57-
5854
@SerializedName(ApiConstants.OWNER)
5955
@Param(description = "the account name of the project's owners")
6056
private List<Map<String, String>> owners;
@@ -231,10 +227,6 @@ public void setDomain(String domain) {
231227
this.domain = domain;
232228
}
233229

234-
public void setOwner(String owner) {
235-
ownerName = owner;
236-
}
237-
238230
public void setProjectAccountName(String projectAccountName) {
239231
this.projectAccountName = projectAccountName;
240232
}

0 commit comments

Comments
 (0)