Search in sources :

Example 1 with V3VolumeGroup

use of org.ovirt.engine.api.v3.types.V3VolumeGroup in project ovirt-engine by oVirt.

the class V3VolumeGroupInAdapter method adapt.

@Override
public VolumeGroup adapt(V3VolumeGroup from) {
    VolumeGroup to = new VolumeGroup();
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetLogicalUnits()) {
        to.setLogicalUnits(new LogicalUnits());
        to.getLogicalUnits().getLogicalUnits().addAll(adaptIn(from.getLogicalUnits()));
    }
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    return to;
}
Also used : LogicalUnits(org.ovirt.engine.api.model.LogicalUnits) VolumeGroup(org.ovirt.engine.api.model.VolumeGroup) V3VolumeGroup(org.ovirt.engine.api.v3.types.V3VolumeGroup)

Aggregations

LogicalUnits (org.ovirt.engine.api.model.LogicalUnits)1 VolumeGroup (org.ovirt.engine.api.model.VolumeGroup)1 V3VolumeGroup (org.ovirt.engine.api.v3.types.V3VolumeGroup)1