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