Skip to content

Commit 3a6719a

Browse files
author
Abhinandan Prateek
committed
adding annotation to convert the uuids/ids to ids
1 parent 294ad89 commit 3a6719a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎api/src/com/cloud/api/commands/AssignVMCmd.java‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@ public class AssignVMCmd extends BaseCmd {
4848
/////////////////////////////////////////////////////
4949
//////////////// API parameters /////////////////////
5050
/////////////////////////////////////////////////////
51-
51+
52+
@IdentityMapper(entityTableName="vm_instance")
5253
@Parameter(name=ApiConstants.VIRTUAL_MACHINE_ID, type=CommandType.LONG, required=true, description="the vm ID of the user VM to be moved")
5354
private Long virtualMachineId;
5455

55-
@Parameter(name=ApiConstants.ACCOUNT, type=CommandType.STRING, required=true, description="an optional account for the vpn user. Must be used with domainId.")
56+
@Parameter(name=ApiConstants.ACCOUNT, type=CommandType.STRING, required=true, description="account name of the new VM owner.")
5657
private String accountName;
5758

58-
@Parameter(name=ApiConstants.DOMAIN_ID, type=CommandType.LONG, required=true, description="an optional domainId for the vpn user. If the account parameter is used, domainId must also be used.")
59+
@IdentityMapper(entityTableName="domain")
60+
@Parameter(name=ApiConstants.DOMAIN_ID, type=CommandType.LONG, required=true, description="domain id of the new VM owner.")
5961
private Long domainId;
6062

6163
//Network information

0 commit comments

Comments
 (0)