use of com.emc.storageos.model.pools.StoragePoolUpdate in project coprhd-controller by CoprHD.
the class VirtualArrays method updateStoragePools.
/**
* Updates the given storage pools with the virtual array assignment changes.
*
* @param ids
* the storage pool IDs.
* @param changes
* the virtual array changes.
*/
private static void updateStoragePools(List<URI> ids, VirtualArrayAssignmentChanges changes) {
if (ids.isEmpty()) {
return;
}
List<StoragePoolRestRep> storagePools = StoragePoolUtils.getStoragePools(ids);
for (StoragePoolRestRep storagePool : storagePools) {
StoragePoolUpdate update = new StoragePoolUpdate();
update.setVarrayChanges(changes);
StoragePoolUtils.update(storagePool.getId(), update);
}
}
Aggregations