public ArrayList<BiosType> getBiosTypeList() { return new ArrayList<>(Arrays.asList(BiosType.values())); }
userDefinedProperties)); entity.setCustomEmulatedMachine(rs.getString("custom_emulated_machine")); entity.setBiosType(BiosType.forValue(rs.getInt("bios_type"))); entity.setCustomCpuName(rs.getString("custom_cpu_name")); entity.setSmallIconId(getGuid(rs, SMALL_ICON_ID_COLUMN));
public void updateInterfaceList(final Version clusterVersion) { AsyncDataProvider.getInstance().getDiskInterfaceList(getVm().getOs(), clusterVersion, getVm().getBiosType().getChipsetType(), new AsyncQuery<>( diskInterfaces -> { if (Boolean.FALSE.equals(getIsVirtioScsiEnabled().getEntity())) { diskInterfaces.remove(DiskInterface.VirtIO_SCSI); } setInterfaces(diskInterfaces); })); }
_writer.writeElement(BIOS_TYPE, String.valueOf(vmBase.getBiosType().getValue())); writeCustomCpuName();
val -> vmBase.setMigrationPolicyId(Guid.createGuidFromString(val))); consumeReadProperty(content, CUSTOM_EMULATED_MACHINE, val -> vmBase.setCustomEmulatedMachine(val)); consumeReadProperty(content, BIOS_TYPE, val -> vmBase.setBiosType(BiosType.forValue(Integer.parseInt(val)))); consumeReadProperty(content, CUSTOM_CPU_NAME, val -> vmBase.setCustomCpuName(val)); consumeReadProperty(content, PREDEFINED_PROPERTIES, val -> vmBase.setPredefinedProperties(val));
getVm().getClusterCompatibilityVersion(), getVm().getBiosType().getChipsetType(), new AsyncQuery<>( diskInterfaces -> AsyncDataProvider.getInstance().isVirtioScsiEnabledForVm(new AsyncQuery<>(