Search in sources :

Example 1 with V3IscsiBonds

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

the class V3IscsiBondsOutAdapter method adapt.

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

Example 2 with V3IscsiBonds

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

the class V3IscsiBondsInAdapter method adapt.

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

Aggregations

V3IscsiBonds (org.ovirt.engine.api.v3.types.V3IscsiBonds)2 IscsiBonds (org.ovirt.engine.api.model.IscsiBonds)1