Search in sources :

Example 1 with V3GuestNicsConfiguration

use of org.ovirt.engine.api.v3.types.V3GuestNicsConfiguration in project ovirt-engine by oVirt.

the class V3InitializationOutAdapter method adapt.

@Override
public V3Initialization adapt(Initialization from) {
    V3Initialization to = new V3Initialization();
    if (from.isSetActiveDirectoryOu()) {
        to.setActiveDirectoryOu(from.getActiveDirectoryOu());
    }
    if (from.isSetAuthorizedSshKeys()) {
        to.setAuthorizedSshKeys(from.getAuthorizedSshKeys());
    }
    if (from.isSetCloudInit()) {
        to.setCloudInit(adaptOut(from.getCloudInit()));
    }
    if (from.isSetConfiguration()) {
        to.setConfiguration(adaptOut(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 V3GuestNicsConfiguration());
        to.getNicConfigurations().getNicConfigurations().addAll(adaptOut(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;
}
Also used : V3GuestNicsConfiguration(org.ovirt.engine.api.v3.types.V3GuestNicsConfiguration) V3Initialization(org.ovirt.engine.api.v3.types.V3Initialization)

Aggregations

V3GuestNicsConfiguration (org.ovirt.engine.api.v3.types.V3GuestNicsConfiguration)1 V3Initialization (org.ovirt.engine.api.v3.types.V3Initialization)1