use of org.ovirt.engine.core.common.action.MoveDisksParameters in project ovirt-engine by oVirt.
the class BackendVmDiskResource method move.
@Override
public Response move(Action action) {
validateParameters(action, "storageDomain.id|name");
Guid storageDomainId = getStorageDomainId(action);
Disk disk = getDisk();
Guid sourceStorageDomainId = getSourceStorageDomainId(disk);
Guid imageId = getDiskImageId(disk.getImageId());
MoveDiskParameters innerParams = new MoveDiskParameters(imageId, sourceStorageDomainId, storageDomainId);
innerParams.setImageGroupID(asGuid(disk.getId()));
MoveDisksParameters params = new MoveDisksParameters(Collections.singletonList(innerParams));
return doAction(ActionType.MoveDisk, params, action);
}
Aggregations