public class CatalogImages extends AbstractCatalogBulkResources<CatalogImageRestRep> implements TenantResources<CatalogImageRestRep>
| Constructor and Description |
|---|
CatalogImages(ViPRCatalogClient2 parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
CatalogImageRestRep |
create(CatalogImageCreateParam input)
Creates a catalog image
|
void |
deactivate(java.net.URI id)
Deactivates the given catalog image by ID.
|
java.util.List<CatalogImageRestRep> |
getByTenant(java.net.URI tenantId)
Gets the resources associated with a given tenant.
|
java.util.List<CatalogImageRestRep> |
getByTenant(java.net.URI tenantId,
ResourceFilter<CatalogImageRestRep> filter)
Gets the resources associated with a given tenant, optionally filtering the results as they are returned.
|
java.util.List<CatalogImageRestRep> |
getByUserTenant()
Convenience method for retrieving by user's current tenant.
|
java.util.List<CatalogImageRestRep> |
getByUserTenant(ResourceFilter<CatalogImageRestRep> filter)
Convenience method for retrieving by user's current tenant.
|
java.util.List<NamedRelatedResourceRep> |
listByTenant(java.net.URI tenantId)
Lists resources associated with a given tenant.
|
java.util.List<NamedRelatedResourceRep> |
listByUserTenant()
Convenience method for listing by the user's current tenant.
|
CatalogImageRestRep |
update(java.net.URI id,
CatalogImageUpdateParam input)
Updates the given catalog image by ID.
|
getByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags, withInactive, withInternalequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, search, updateTagspublic CatalogImages(ViPRCatalogClient2 parent, RestClient client)
public java.util.List<NamedRelatedResourceRep> listByUserTenant()
TenantResourcesEquivalent to: listByTenant(client.getUserTenant())
listByUserTenant in interface TenantResources<CatalogImageRestRep>TenantResources.listByTenant(URI)public java.util.List<CatalogImageRestRep> getByUserTenant()
TenantResourcesEquivalent to: getByTenant(client.getUserTenant())
getByUserTenant in interface TenantResources<CatalogImageRestRep>TenantResources.getByTenant(URI)public java.util.List<CatalogImageRestRep> getByUserTenant(ResourceFilter<CatalogImageRestRep> filter)
TenantResourcesEquivalent to: getByTenant(client.getUserTenant(), filter)
getByUserTenant in interface TenantResources<CatalogImageRestRep>TenantResources.getByTenant(URI, ResourceFilter)public java.util.List<NamedRelatedResourceRep> listByTenant(java.net.URI tenantId)
TenantResourceslistByTenant in interface TenantResources<CatalogImageRestRep>tenantId - the tenant ID.public java.util.List<CatalogImageRestRep> getByTenant(java.net.URI tenantId)
TenantResourcesgetByTenant in interface TenantResources<CatalogImageRestRep>tenantId - the tenant ID.Resources.getByRefs(java.util.Collection)public java.util.List<CatalogImageRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<CatalogImageRestRep> filter)
TenantResourcesgetByTenant in interface TenantResources<CatalogImageRestRep>tenantId - the tenant ID.filter - the resource filter to apply to the results as they are returned (optional).Resources.getByRefs(java.util.Collection, ResourceFilter)public CatalogImageRestRep create(CatalogImageCreateParam input)
API Call: POST /catalog/images
input - the catalog image configuration.public CatalogImageRestRep update(java.net.URI id, CatalogImageUpdateParam input)
API Call: PUT /catalog/images/{id}
id - the ID of the catalog image to update.input - the update configuration.public void deactivate(java.net.URI id)
API Call: POST /catalog/images/{id}/deactivate
id - the ID of catalog image to deactivate.