Search in sources :

Example 1 with V3DiskProfiles

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

the class V3DiskProfilesInAdapter method adapt.

@Override
public DiskProfiles adapt(V3DiskProfiles from) {
    DiskProfiles to = new DiskProfiles();
    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.getDiskProfiles().addAll(adaptIn(from.getDiskProfiles()));
    return to;
}
Also used : V3DiskProfiles(org.ovirt.engine.api.v3.types.V3DiskProfiles) DiskProfiles(org.ovirt.engine.api.model.DiskProfiles)

Example 2 with V3DiskProfiles

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

the class V3DiskProfilesOutAdapter method adapt.

@Override
public V3DiskProfiles adapt(DiskProfiles from) {
    V3DiskProfiles to = new V3DiskProfiles();
    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.getDiskProfiles().addAll(adaptOut(from.getDiskProfiles()));
    return to;
}
Also used : V3DiskProfiles(org.ovirt.engine.api.v3.types.V3DiskProfiles)

Aggregations

V3DiskProfiles (org.ovirt.engine.api.v3.types.V3DiskProfiles)2 DiskProfiles (org.ovirt.engine.api.model.DiskProfiles)1