Search in sources :

Example 26 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class CatalogImageUtils method deleteCatalogImage.

public static void deleteCatalogImage(URI id) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.images().deactivate(id);
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Example 27 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class CatalogServiceUtils method deleteCatalogService.

public static void deleteCatalogService(URI catalogServiceId) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.services().deactivate(catalogServiceId);
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Example 28 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class CatalogCategoryUtils method upgradeCatalog.

public static void upgradeCatalog() {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.categories().upgradeCatalog(uri(Models.currentAdminTenant()));
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Example 29 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class CatalogCategoryUtils method deleteCatalogCategory.

public static void deleteCatalogCategory(URI catalogCategoryId) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    catalog.categories().deactivate(catalogCategoryId);
}
Also used : ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Example 30 with ViPRCatalogClient2

use of com.emc.vipr.client.ViPRCatalogClient2 in project coprhd-controller by CoprHD.

the class AssetOptionUtils method getAssetDependencies.

public static List<String> getAssetDependencies(String assetType, Set<String> availableAssetTypes) {
    ViPRCatalogClient2 catalog = getCatalogClient();
    AssetDependencyRequest request = new AssetDependencyRequest();
    request.setTenantId(uri(Models.currentAdminTenant()));
    request.setAvailableAssetTypes(availableAssetTypes);
    return catalog.assetOptions().getAssetDependencies(assetType, availableAssetTypes);
}
Also used : AssetDependencyRequest(com.emc.vipr.model.catalog.AssetDependencyRequest) ViPRCatalogClient2(com.emc.vipr.client.ViPRCatalogClient2)

Aggregations

ViPRCatalogClient2 (com.emc.vipr.client.ViPRCatalogClient2)32 OrderRestRep (com.emc.vipr.model.catalog.OrderRestRep)7 ApprovalRestRep (com.emc.vipr.model.catalog.ApprovalRestRep)4 CatalogServiceRestRep (com.emc.vipr.model.catalog.CatalogServiceRestRep)4 NamedRelatedResourceRep (com.emc.storageos.model.NamedRelatedResourceRep)2 ViPRHttpException (com.emc.vipr.client.exceptions.ViPRHttpException)2 URI (java.net.URI)2 Date (java.util.Date)2 OrderTextCreator (com.emc.storageos.db.client.util.OrderTextCreator)1 AssetDependencyRequest (com.emc.vipr.model.catalog.AssetDependencyRequest)1 AssetOptionsRequest (com.emc.vipr.model.catalog.AssetOptionsRequest)1 ExecutionLogRestRep (com.emc.vipr.model.catalog.ExecutionLogRestRep)1 ExecutionStateRestRep (com.emc.vipr.model.catalog.ExecutionStateRestRep)1 ExecutionWindowRestRep (com.emc.vipr.model.catalog.ExecutionWindowRestRep)1 OrderLogRestRep (com.emc.vipr.model.catalog.OrderLogRestRep)1 Reference (com.emc.vipr.model.catalog.Reference)1 ScheduledEventRestRep (com.emc.vipr.model.catalog.ScheduledEventRestRep)1 ApprovalRequestInfo (models.datatable.ApprovalsDataTable.ApprovalRequestInfo)1 DateTime (org.joda.time.DateTime)1 Util (play.mvc.Util)1