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