use of org.ovirt.engine.api.model.NicConfigurations in project ovirt-engine by oVirt.
the class V3InitializationInAdapter method adapt.
@Override
public Initialization adapt(V3Initialization from) {
Initialization to = new Initialization();
if (from.isSetActiveDirectoryOu()) {
to.setActiveDirectoryOu(from.getActiveDirectoryOu());
}
if (from.isSetAuthorizedSshKeys()) {
to.setAuthorizedSshKeys(from.getAuthorizedSshKeys());
}
if (from.isSetCloudInit()) {
to.setCloudInit(adaptIn(from.getCloudInit()));
}
if (from.isSetConfiguration()) {
to.setConfiguration(adaptIn(from.getConfiguration()));
}
if (from.isSetCustomScript()) {
to.setCustomScript(from.getCustomScript());
}
if (from.isSetDnsSearch()) {
to.setDnsSearch(from.getDnsSearch());
}
if (from.isSetDnsServers()) {
to.setDnsServers(from.getDnsServers());
}
if (from.isSetDomain()) {
to.setDomain(from.getDomain());
}
if (from.isSetHostName()) {
to.setHostName(from.getHostName());
}
if (from.isSetInputLocale()) {
to.setInputLocale(from.getInputLocale());
}
if (from.isSetNicConfigurations()) {
to.setNicConfigurations(new NicConfigurations());
to.getNicConfigurations().getNicConfigurations().addAll(adaptIn(from.getNicConfigurations().getNicConfigurations()));
}
if (from.isSetOrgName()) {
to.setOrgName(from.getOrgName());
}
if (from.isSetRegenerateIds()) {
to.setRegenerateIds(from.isRegenerateIds());
}
if (from.isSetRegenerateSshKeys()) {
to.setRegenerateSshKeys(from.isRegenerateSshKeys());
}
if (from.isSetRootPassword()) {
to.setRootPassword(from.getRootPassword());
}
if (from.isSetSystemLocale()) {
to.setSystemLocale(from.getSystemLocale());
}
if (from.isSetTimezone()) {
to.setTimezone(from.getTimezone());
}
if (from.isSetUiLanguage()) {
to.setUiLanguage(from.getUiLanguage());
}
if (from.isSetUserLocale()) {
to.setUserLocale(from.getUserLocale());
}
if (from.isSetUserName()) {
to.setUserName(from.getUserName());
}
if (from.isSetWindowsLicenseKey()) {
to.setWindowsLicenseKey(from.getWindowsLicenseKey());
}
return to;
}
Aggregations