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;
}
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;
}
Aggregations