use of org.ovirt.engine.api.v3.types.V3VirtualNumaNodes in project ovirt-engine by oVirt.
the class V3VirtualNumaNodesInAdapter method adapt.
@Override
public VirtualNumaNodes adapt(V3VirtualNumaNodes from) {
VirtualNumaNodes to = new VirtualNumaNodes();
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.getVirtualNumaNodes().addAll(adaptIn(from.getVirtualNumaNodes()));
return to;
}
use of org.ovirt.engine.api.v3.types.V3VirtualNumaNodes in project ovirt-engine by oVirt.
the class V3VirtualNumaNodesOutAdapter method adapt.
@Override
public V3VirtualNumaNodes adapt(VirtualNumaNodes from) {
V3VirtualNumaNodes to = new V3VirtualNumaNodes();
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.getVirtualNumaNodes().addAll(adaptOut(from.getVirtualNumaNodes()));
return to;
}
Aggregations