Search in sources :

Example 1 with V3HostNics

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

the class V3HostNicsInAdapter method adapt.

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

Example 2 with V3HostNics

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

the class V3HostNicsOutAdapter method adapt.

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

Aggregations

V3HostNics (org.ovirt.engine.api.v3.types.V3HostNics)2 HostNics (org.ovirt.engine.api.model.HostNics)1