Search in sources :

Example 1 with V3VnicProfiles

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

the class V3VnicProfilesInAdapter method adapt.

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

Example 2 with V3VnicProfiles

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

the class V3VnicProfilesOutAdapter method adapt.

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

Aggregations

V3VnicProfiles (org.ovirt.engine.api.v3.types.V3VnicProfiles)2 VnicProfiles (org.ovirt.engine.api.model.VnicProfiles)1