This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.15 by this push:
     new f511bab  api: remove account from listProjects API response (#4743)
f511bab is described below

commit f511babc16837f6ee80fb00f031a6edcbdc52b78
Author: Rohit Yadav <[email protected]>
AuthorDate: Sat Mar 6 15:09:06 2021 +0530

    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 <[email protected]>
---
 .../java/org/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 4e2497e..47ebab8 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<Map<String, String>> 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;
     }

Reply via email to