Search in sources :

Example 1 with VirtualPoolCommonRestRep

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;
}
Also used : AssetOption(com.emc.vipr.model.catalog.AssetOption) VirtualPoolCommonRestRep(com.emc.storageos.model.vpool.VirtualPoolCommonRestRep)

Example 2 with VirtualPoolCommonRestRep

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));
}
Also used : VirtualPoolInfo(models.datatable.VirtualPoolDataTable.VirtualPoolInfo) VirtualPoolCommonRestRep(com.emc.storageos.model.vpool.VirtualPoolCommonRestRep)

Aggregations

VirtualPoolCommonRestRep (com.emc.storageos.model.vpool.VirtualPoolCommonRestRep)2 AssetOption (com.emc.vipr.model.catalog.AssetOption)1 VirtualPoolInfo (models.datatable.VirtualPoolDataTable.VirtualPoolInfo)1