Search in sources :

Example 1 with V3DiskSnapshots

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;
}
Also used : V3DiskSnapshots(org.ovirt.engine.api.v3.types.V3DiskSnapshots) DiskSnapshots(org.ovirt.engine.api.model.DiskSnapshots)

Example 2 with V3DiskSnapshots

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;
}
Also used : V3DiskSnapshots(org.ovirt.engine.api.v3.types.V3DiskSnapshots)

Aggregations

V3DiskSnapshots (org.ovirt.engine.api.v3.types.V3DiskSnapshots)2 DiskSnapshots (org.ovirt.engine.api.model.DiskSnapshots)1