Search in sources :

Example 6 with TransferDiskImageParameters

use of org.ovirt.engine.core.common.action.TransferDiskImageParameters in project ovirt-engine by oVirt.

the class BackendImageTransfersResource method addForImage.

/**
 * Adding using an Image entity - for 4.1 backwards compatibility
 */
@Deprecated
@Override
public Response addForImage(ImageTransfer imageTransfer) {
    TransferDiskImageParameters params = new TransferDiskImageParameters();
    params.setImageGroupID(GuidUtils.asGuid(imageTransfer.getImage().getId()));
    return performCreate(imageTransfer, params);
}
Also used : TransferDiskImageParameters(org.ovirt.engine.core.common.action.TransferDiskImageParameters)

Aggregations

TransferDiskImageParameters (org.ovirt.engine.core.common.action.TransferDiskImageParameters)6 Test (org.junit.Test)1 InOrder (org.mockito.InOrder)1 BaseCommandTest (org.ovirt.engine.core.bll.BaseCommandTest)1 AddDiskParameters (org.ovirt.engine.core.common.action.AddDiskParameters)1 Disk (org.ovirt.engine.core.common.businessentities.storage.Disk)1 DiskImage (org.ovirt.engine.core.common.businessentities.storage.DiskImage)1