use of com.emc.vipr.client.ViPRCatalogClient2 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);
}
use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.
the class SupportPackageCreator method getOrderTextCreator.
private OrderTextCreator getOrderTextCreator(OrderRestRep order) {
ViPRCatalogClient2 client = catalogApi();
OrderTextCreator creator = new OrderTextCreator();
creator.setOrder(order);
creator.setService(client.services().get(order.getCatalogService()));
creator.setState(client.orders().getExecutionState(order.getId()));
creator.setLogs(client.orders().getLogs(order.getId()));
creator.setExeLogs(client.orders().getExecutionLogs(order.getId()));
return creator;
}
Aggregations