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