public class QuotaDirectories extends ProjectResources<QuotaDirectoryRestRep> implements TaskResources<QuotaDirectoryRestRep>
Base URL: /file/quotadirectories
| Constructor and Description |
|---|
QuotaDirectories(ViPRCoreClient parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
Task<QuotaDirectoryRestRep> |
createQuotaDirectory(java.net.URI fileSystemId,
QuotaDirectoryCreateParam input)
Begins creating quota-directory for a file system
|
Task<QuotaDirectoryRestRep> |
deleteQuotaDirectory(java.net.URI id,
QuotaDirectoryDeleteParam input)
Begins deleting quota-directory from a file system
|
java.util.List<QuotaDirectoryRestRep> |
getByFileSystem(java.net.URI fileSystemId)
Gets the list of file quota directories for the given file system by ID.
|
java.util.List<QuotaDirectoryRestRep> |
getByFileSystem(java.net.URI fileSystemId,
ResourceFilter<QuotaDirectoryRestRep> filter)
Gets the list of file quota directories for the given file system by ID, optionally filtering the results.
|
QuotaDirectoryRestRep |
getQuotaDirectory(java.net.URI id)
Gets the quota directory by ID.
|
Task<QuotaDirectoryRestRep> |
getTask(java.net.URI id,
java.net.URI taskId)
Gets a single task associated with a given resource by ID.
|
Tasks<QuotaDirectoryRestRep> |
getTasks(java.net.URI id)
Gets the tasks associated with a given resource by ID.
|
java.util.List<NamedRelatedResourceRep> |
listByFileSystem(java.net.URI fileSystemId)
Lists the file quota directories for the given file system by ID.
|
Task<QuotaDirectoryRestRep> |
updateQuotaDirectory(java.net.URI id,
QuotaDirectoryUpdateParam update)
Updates an quota directory from the given quota directory ID.
|
QuotaDirectories |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
QuotaDirectories |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
findByProject, findByProject, findByProject, findByProject, searchgetByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, updateTagsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, updateTagspublic QuotaDirectories(ViPRCoreClient parent, RestClient client)
public QuotaDirectories withInactive(boolean inactive)
AbstractResourceswithInactive in class AbstractResources<QuotaDirectoryRestRep>inactive - whether to include inactive resources.public QuotaDirectories withInternal(boolean internal)
AbstractResourceswithInternal in class AbstractResources<QuotaDirectoryRestRep>internal - whether to include internal resources.public Tasks<QuotaDirectoryRestRep> getTasks(java.net.URI id)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks
getTasks in interface TaskResources<QuotaDirectoryRestRep>id - the resource ID.public Task<QuotaDirectoryRestRep> getTask(java.net.URI id, java.net.URI taskId)
TaskResourcesAPI Call: GET baseUrl/{id}/tasks/{taskId}
getTask in interface TaskResources<QuotaDirectoryRestRep>id - the resource ID.taskId - the task ID.public Task<QuotaDirectoryRestRep> createQuotaDirectory(java.net.URI fileSystemId, QuotaDirectoryCreateParam input)
API Call: POST /file/filesystems/{id}/quota-directories
fileSystemId - the ID of the file system.input - the Quota directory configuration.public Task<QuotaDirectoryRestRep> updateQuotaDirectory(java.net.URI id, QuotaDirectoryUpdateParam update)
API Call: POST /file/quotadirectories/{id}
id - the ID of the quota directory.update - the update configuration.public Task<QuotaDirectoryRestRep> deleteQuotaDirectory(java.net.URI id, QuotaDirectoryDeleteParam input)
API Call: POST /file/quotadirectories/{id}/deactivate
id - the ID of the quota directory.public QuotaDirectoryRestRep getQuotaDirectory(java.net.URI id)
API Call: GET /file/quotadirectories/{id}
id - the ID of the Quota Directorypublic java.util.List<NamedRelatedResourceRep> listByFileSystem(java.net.URI fileSystemId)
API Call: GET /file/filesystems/{fileSystemId}/quota-directories
fileSystemId - the ID of the file system.public java.util.List<QuotaDirectoryRestRep> getByFileSystem(java.net.URI fileSystemId)
This is a convenience method for: getByRefs(listByFileSystem(fileSystemId))
fileSystemId - the ID of the file system.public java.util.List<QuotaDirectoryRestRep> getByFileSystem(java.net.URI fileSystemId, ResourceFilter<QuotaDirectoryRestRep> filter)
This is a convenience method for: getByRefs(listByFileSystem(fileSystemId), filter)
fileSystemId - the ID of the file system.filter - the resource filter to apply to the results as they are returned (optional).