use of org.ovirt.engine.core.common.action.ImagesContainterParametersBase in project ovirt-engine by oVirt.
the class RemoveSnapshotCommand method buildRemoveCinderSnapshotDiskParameters.
private ImagesContainterParametersBase buildRemoveCinderSnapshotDiskParameters(CinderDisk cinderDisk) {
ImagesContainterParametersBase removeCinderSnapshotParams = new ImagesContainterParametersBase(cinderDisk.getImageId());
removeCinderSnapshotParams.setDestinationImageId(cinderDisk.getImageId());
removeCinderSnapshotParams.setStorageDomainId(cinderDisk.getStorageIds().get(0));
removeCinderSnapshotParams.setParentCommand(getActionType());
removeCinderSnapshotParams.setParentParameters(getParameters());
return removeCinderSnapshotParams;
}
Aggregations