mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 12481: Added account ID to listusers response
status 12481: resolved fixed reviewed-by: Nitin
This commit is contained in:
parent
bc32e0e60c
commit
6f9bc008f4
@ -67,6 +67,10 @@ public class UserResponse extends BaseResponse {
|
||||
@SerializedName("secretkey") @Param(description="the secret key of the user")
|
||||
private String secretKey;
|
||||
|
||||
@SerializedName("accountid") @Param(description="the account ID of the user")
|
||||
private IdentityProxy accountId = new IdentityProxy("account");
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id.getValue();
|
||||
}
|
||||
@ -178,4 +182,11 @@ public class UserResponse extends BaseResponse {
|
||||
public void setSecretKey(String secretKey) {
|
||||
this.secretKey = secretKey;
|
||||
}
|
||||
public Long getAccountId() {
|
||||
return accountId.getValue();
|
||||
}
|
||||
|
||||
public void setAccountId(Long accountId) {
|
||||
this.accountId.setValue(accountId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -372,6 +372,7 @@ public class ApiResponseHelper implements ResponseGenerator {
|
||||
userResponse.setUsername(user.getUsername());
|
||||
userResponse.setApiKey(user.getApiKey());
|
||||
userResponse.setSecretKey(user.getSecretKey());
|
||||
userResponse.setAccountId((user.getAccountId()));
|
||||
userResponse.setObjectName("user");
|
||||
|
||||
return userResponse;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user