use of com.woorea.openstack.cinder.model.VolumeType in project ovirt-engine by oVirt.
the class OpenStackVolumeProviderProxy method getVolumeTypes.
public List<CinderVolumeType> getVolumeTypes() {
ArrayList<CinderVolumeType> cinderVolumeTypes = new ArrayList<>();
OpenStackRequest<VolumeTypes> listRequest = getClient(getTenantId()).volumeTypes().list();
VolumeTypes volumeTypes = listRequest.execute();
for (VolumeType volumeType : volumeTypes) {
CinderVolumeType cinderVolumeType = new CinderVolumeType(volumeType.getId(), volumeType.getName(), volumeType.getExtraSpecs());
cinderVolumeTypes.add(cinderVolumeType);
}
return cinderVolumeTypes;
}
Aggregations