public class ExecutionWindows2 extends AbstractCatalogBulkResources<ExecutionWindowRestRep> implements TenantResources<ExecutionWindowRestRep>
Constructor and Description |
---|
ExecutionWindows2(ViPRCatalogClient2 parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
ExecutionWindowRestRep |
create(ExecutionWindowCreateParam input)
Creates a execution window
|
void |
deactivate(java.net.URI id)
Deactivates the given execution window by ID.
|
java.util.List<ExecutionWindowRestRep> |
getByTenant(java.net.URI tenantId)
Gets the resources associated with a given tenant.
|
java.util.List<ExecutionWindowRestRep> |
getByTenant(java.net.URI tenantId,
ResourceFilter<ExecutionWindowRestRep> filter)
Gets the resources associated with a given tenant, optionally filtering the results as they are returned.
|
java.util.List<ExecutionWindowRestRep> |
getByUserTenant()
Convenience method for retrieving by user's current tenant.
|
java.util.List<ExecutionWindowRestRep> |
getByUserTenant(ResourceFilter<ExecutionWindowRestRep> 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.
|
ExecutionWindowRestRep |
update(java.net.URI id,
ExecutionWindowUpdateParam input)
Updates the given execution window by ID.
|
getByIds, getByRefs, listBulkIds
addTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags, withInactive, withInternal
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIds, getByRefs
addTags, get, get, getTags, removeTags, search, updateTags
public ExecutionWindows2(ViPRCatalogClient2 parent, RestClient client)
public java.util.List<NamedRelatedResourceRep> listByUserTenant()
TenantResources
Equivalent to: listByTenant(client.getUserTenant())
listByUserTenant
in interface TenantResources<ExecutionWindowRestRep>
TenantResources.listByTenant(URI)
public java.util.List<ExecutionWindowRestRep> getByUserTenant()
TenantResources
Equivalent to: getByTenant(client.getUserTenant())
getByUserTenant
in interface TenantResources<ExecutionWindowRestRep>
TenantResources.getByTenant(URI)
public java.util.List<ExecutionWindowRestRep> getByUserTenant(ResourceFilter<ExecutionWindowRestRep> filter)
TenantResources
Equivalent to: getByTenant(client.getUserTenant(), filter)
getByUserTenant
in interface TenantResources<ExecutionWindowRestRep>
TenantResources.getByTenant(URI, ResourceFilter)
public java.util.List<NamedRelatedResourceRep> listByTenant(java.net.URI tenantId)
TenantResources
listByTenant
in interface TenantResources<ExecutionWindowRestRep>
tenantId
- the tenant ID.public java.util.List<ExecutionWindowRestRep> getByTenant(java.net.URI tenantId)
TenantResources
getByTenant
in interface TenantResources<ExecutionWindowRestRep>
tenantId
- the tenant ID.Resources.getByRefs(java.util.Collection)
public java.util.List<ExecutionWindowRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<ExecutionWindowRestRep> filter)
TenantResources
getByTenant
in interface TenantResources<ExecutionWindowRestRep>
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 ExecutionWindowRestRep create(ExecutionWindowCreateParam input)
API Call: POST /catalog/execution-windows
input
- the execution window configuration.public ExecutionWindowRestRep update(java.net.URI id, ExecutionWindowUpdateParam input)
API Call: PUT /catalog/execution-windows/{id}
id
- the ID of the execution window to update.input
- the update configuration.public void deactivate(java.net.URI id)
API Call: POST /catalog/execution-windows/{id}/deactivate
id
- the ID of execution window to deactivate.