Search in sources :

Example 1 with V3CpuProfiles

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

the class V3CpuProfilesOutAdapter method adapt.

@Override
public V3CpuProfiles adapt(CpuProfiles from) {
    V3CpuProfiles to = new V3CpuProfiles();
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetActive()) {
        to.setActive(from.getActive());
    }
    if (from.isSetSize()) {
        to.setSize(from.getSize());
    }
    if (from.isSetTotal()) {
        to.setTotal(from.getTotal());
    }
    to.getCpuProfiles().addAll(adaptOut(from.getCpuProfiles()));
    return to;
}
Also used : V3CpuProfiles(org.ovirt.engine.api.v3.types.V3CpuProfiles)

Example 2 with V3CpuProfiles

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

the class V3CpuProfilesInAdapter method adapt.

@Override
public CpuProfiles adapt(V3CpuProfiles from) {
    CpuProfiles to = new CpuProfiles();
    if (from.isSetActions()) {
        to.setActions(adaptIn(from.getActions()));
    }
    if (from.isSetActive()) {
        to.setActive(from.getActive());
    }
    if (from.isSetSize()) {
        to.setSize(from.getSize());
    }
    if (from.isSetTotal()) {
        to.setTotal(from.getTotal());
    }
    to.getCpuProfiles().addAll(adaptIn(from.getCpuProfiles()));
    return to;
}
Also used : V3CpuProfiles(org.ovirt.engine.api.v3.types.V3CpuProfiles) CpuProfiles(org.ovirt.engine.api.model.CpuProfiles)

Aggregations

V3CpuProfiles (org.ovirt.engine.api.v3.types.V3CpuProfiles)2 CpuProfiles (org.ovirt.engine.api.model.CpuProfiles)1