use of org.ovirt.engine.core.common.action.CreateSnapshotFromTemplateParameters in project ovirt-engine by oVirt.
the class AddVmCommand method buildDiskCreationParameters.
protected CreateSnapshotFromTemplateParameters buildDiskCreationParameters(DiskImage image) {
CreateSnapshotFromTemplateParameters tempVar = new CreateSnapshotFromTemplateParameters(image.getImageId(), getParameters().getVmStaticData().getId());
tempVar.setDestStorageDomainId(diskInfoDestinationMap.get(image.getId()).getStorageIds().get(0));
tempVar.setDiskAlias(diskInfoDestinationMap.get(image.getId()).getDiskAlias());
tempVar.setStorageDomainId(image.getStorageIds().get(0));
tempVar.setVmSnapshotId(getVmSnapshotId());
tempVar.setParentCommand(ActionType.AddVm);
tempVar.setEntityInfo(getParameters().getEntityInfo());
tempVar.setParentParameters(getParameters());
tempVar.setQuotaId(diskInfoDestinationMap.get(image.getId()).getQuotaId());
tempVar.setDiskProfileId(diskInfoDestinationMap.get(image.getId()).getDiskProfileId());
return tempVar;
}
Aggregations