use of com.emc.storageos.model.vpool.VirtualPoolCommonRestRep in project coprhd-controller by CoprHD.
the class BlockProvider method createVirtualPoolResourceOptions.
public static List<AssetOption> createVirtualPoolResourceOptions(Collection<? extends VirtualPoolCommonRestRep> virtualPools) {
List<AssetOption> options = Lists.newArrayList();
for (VirtualPoolCommonRestRep virtualPool : virtualPools) {
options.add(createVirtualPoolResourceOption(virtualPool));
}
AssetOptionsUtils.sortOptionsByLabel(options);
return options;
}
use of com.emc.storageos.model.vpool.VirtualPoolCommonRestRep in project coprhd-controller by CoprHD.
the class VirtualArrays method virtualPoolsJson.
public static void virtualPoolsJson(String id) {
List<VirtualPoolInfo> items = Lists.newArrayList();
for (VirtualPoolCommonRestRep virtualPool : VirtualPoolUtils.getVirtualPoolsForVirtualArray(uri(id))) {
items.add(new VirtualPoolInfo(virtualPool));
}
renderJSON(DataTablesSupport.createJSON(items, params));
}
Aggregations