bug 12442: DeleteSnapshot policy - UUID to id conversion is corrected by using the right table. Also improved documentation

Reviewed by : Abhi.
This commit is contained in:
Nitin Mehta 2011-12-15 15:00:10 +05:30
parent 23f22259ed
commit 26c8bb74cf
1 changed files with 4 additions and 4 deletions

View File

@ -41,12 +41,12 @@ public class DeleteSnapshotPoliciesCmd extends BaseCmd {
//////////////// API parameters /////////////////////
/////////////////////////////////////////////////////
@IdentityMapper(entityTableName="snapshots")
@Parameter(name=ApiConstants.ID, type=CommandType.LONG, description="the Id of the snapshot")
@IdentityMapper(entityTableName="snapshot_policy")
@Parameter(name=ApiConstants.ID, type=CommandType.LONG, description="the Id of the snapshot policy")
private Long id;
@IdentityMapper(entityTableName="snapshots")
@Parameter(name=ApiConstants.IDS, type=CommandType.LIST, collectionType=CommandType.LONG, description="list of snapshots IDs separated by comma")
@IdentityMapper(entityTableName="snapshot_policy")
@Parameter(name=ApiConstants.IDS, type=CommandType.LIST, collectionType=CommandType.LONG, description="list of snapshots policy IDs separated by comma")
private List<Long> ids;