Search in sources :

Example 1 with AssetOptionsRequest

use of com.emc.vipr.model.catalog.AssetOptionsRequest in project coprhd-controller by CoprHD.

the class AssetOptions method getAssetOptions.

public List<AssetOption> getAssetOptions(String assetType, Map<String, String> assetParameters) {
    AssetOptionsRequest request = new AssetOptionsRequest();
    request.setTenantId(uri(parent.getUserInfo().getTenant()));
    request.setAvailableAssets(assetParameters);
    return getAssetOptions(assetType, request);
}
Also used : AssetOptionsRequest(com.emc.vipr.model.catalog.AssetOptionsRequest)

Example 2 with AssetOptionsRequest

use of com.emc.vipr.model.catalog.AssetOptionsRequest in project coprhd-controller by CoprHD.

the class AssetOptionUtils method getAssetOptions.

public static List<AssetOption> getAssetOptions(String assetType, Map<String, String> assetParameters) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    AssetOptionsRequest request = new AssetOptionsRequest();
    request.setTenantId(uri(Models.currentAdminTenant()));
    request.setAvailableAssets(assetParameters);
    return catalog.assetOptions().getAssetOptions(assetType, request);
}
Also used : AssetOptionsRequest(com.emc.vipr.model.catalog.AssetOptionsRequest) ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Aggregations

AssetOptionsRequest (com.emc.vipr.model.catalog.AssetOptionsRequest)2 ViPRCatalogClient2 (com.emc.vipr.client.ViPRCatalogClient2)1