Fix API moveUser parameters descriptions (#8499)

* Fix API moveUser description

* Add dot to description

* Update api/src/main/java/org/apache/cloudstack/api/command/admin/user/MoveUserCmd.java

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>

---------

Co-authored-by: lucas.martins.scclouds <lucas.martins@scclouds.com.br>
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
This commit is contained in:
Lucas Martins 2024-02-05 05:48:02 -03:00 committed by GitHub
parent 5361b415e6
commit 2f299492f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ import com.cloud.user.User;
import com.google.common.base.Preconditions;
@APICommand(name = "moveUser",
description = "Moves a user to another account",
description = "Moves a user to another account in the same domain.",
responseObject = SuccessResponse.class,
requestHasSensitiveInfo = false,
responseHasSensitiveInfo = false,
@ -56,18 +56,18 @@ public class MoveUserCmd extends BaseCmd {
type = CommandType.UUID,
entityType = UserResponse.class,
required = true,
description = "id of the user to be deleted")
description = "id of the user to be moved.")
private Long id;
@Parameter(name = ApiConstants.ACCOUNT,
type = CommandType.STRING,
description = "Creates the user under the specified account. If no account is specified, the username will be used as the account name.")
description = "Moves the user under the specified account. If no account name is specified, it is necessary to provide an account id.")
private String accountName;
@Parameter(name = ApiConstants.ACCOUNT_ID,
type = CommandType.UUID,
entityType = AccountResponse.class,
description = "Creates the user under the specified domain. Has to be accompanied with the account parameter")
description = "Moves the user under the specified account. If no account id is specified, it is necessary to provide an account name.")
private Long accountId;
@Inject