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