use of org.ovirt.engine.api.model.OpenStackVolumeProviders in project ovirt-engine by oVirt.
the class BackendOpenStackVolumeProvidersResource method mapCollection.
private OpenStackVolumeProviders mapCollection(List<Provider> entities) {
OpenStackVolumeProviders collection = new OpenStackVolumeProviders();
for (Provider entity : entities) {
OpenStackVolumeProvider provider = map(entity);
collection.getOpenStackVolumeProviders().add(addLinks(populate(provider, entity)));
}
return collection;
}
use of org.ovirt.engine.api.model.OpenStackVolumeProviders 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;
}
Aggregations