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