Package com.w3asel.inventree.api
Class BackgroundTaskApi
java.lang.Object
com.w3asel.inventree.api.BackgroundTaskApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbackgroundTaskFailedBulkDestroy(BulkRequest bulkRequest) Perform a DELETE operation against this list endpoint.okhttp3.CallbackgroundTaskFailedBulkDestroyAsync(BulkRequest bulkRequest, ApiCallback<Void> _callback) (asynchronously) Perform a DELETE operation against this list endpoint.okhttp3.CallbackgroundTaskFailedBulkDestroyCall(BulkRequest bulkRequest, ApiCallback _callback) Build call for backgroundTaskFailedBulkDestroybackgroundTaskFailedBulkDestroyWithHttpInfo(BulkRequest bulkRequest) Perform a DELETE operation against this list endpoint.backgroundTaskFailedList(Integer limit, Integer offset, String ordering, String search) Provides a read-only list of currently failed tasks.okhttp3.CallbackgroundTaskFailedListAsync(Integer limit, Integer offset, String ordering, String search, ApiCallback<PaginatedFailedTaskList> _callback) (asynchronously) Provides a read-only list of currently failed tasks.okhttp3.CallbackgroundTaskFailedListCall(Integer limit, Integer offset, String ordering, String search, ApiCallback _callback) Build call for backgroundTaskFailedListbackgroundTaskFailedListWithHttpInfo(Integer limit, Integer offset, String ordering, String search) Provides a read-only list of currently failed tasks.voidbackgroundTaskPendingBulkDestroy(BulkRequest bulkRequest) Perform a DELETE operation against this list endpoint.okhttp3.CallbackgroundTaskPendingBulkDestroyAsync(BulkRequest bulkRequest, ApiCallback<Void> _callback) (asynchronously) Perform a DELETE operation against this list endpoint.okhttp3.CallbackgroundTaskPendingBulkDestroyCall(BulkRequest bulkRequest, ApiCallback _callback) Build call for backgroundTaskPendingBulkDestroybackgroundTaskPendingBulkDestroyWithHttpInfo(BulkRequest bulkRequest) Perform a DELETE operation against this list endpoint.backgroundTaskPendingList(Integer limit, Integer offset) Provides a read-only list of currently pending tasks.okhttp3.CallbackgroundTaskPendingListAsync(Integer limit, Integer offset, ApiCallback<PaginatedPendingTaskList> _callback) (asynchronously) Provides a read-only list of currently pending tasks.okhttp3.CallbackgroundTaskPendingListCall(Integer limit, Integer offset, ApiCallback _callback) Build call for backgroundTaskPendingListbackgroundTaskPendingListWithHttpInfo(Integer limit, Integer offset) Provides a read-only list of currently pending tasks.voidReturn information about the current status of the background task queue.okhttp3.CallbackgroundTaskRetrieveAsync(ApiCallback<Void> _callback) (asynchronously) Return information about the current status of the background task queue.okhttp3.CallbackgroundTaskRetrieveCall(ApiCallback _callback) Build call for backgroundTaskRetrieveReturn information about the current status of the background task queue.backgroundTaskScheduledList(Integer limit, Integer offset, String ordering, String search) Provides a read-only list of currently scheduled tasks.okhttp3.CallbackgroundTaskScheduledListAsync(Integer limit, Integer offset, String ordering, String search, ApiCallback<PaginatedScheduledTaskList> _callback) (asynchronously) Provides a read-only list of currently scheduled tasks.okhttp3.CallbackgroundTaskScheduledListCall(Integer limit, Integer offset, String ordering, String search, ApiCallback _callback) Build call for backgroundTaskScheduledListbackgroundTaskScheduledListWithHttpInfo(Integer limit, Integer offset, String ordering, String search) Provides a read-only list of currently scheduled tasks.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
BackgroundTaskApi
public BackgroundTaskApi() -
BackgroundTaskApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
backgroundTaskFailedBulkDestroyCall
public okhttp3.Call backgroundTaskFailedBulkDestroyCall(@Nonnull BulkRequest bulkRequest, ApiCallback _callback) throws ApiException Build call for backgroundTaskFailedBulkDestroy- Parameters:
bulkRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 204 No response body -
-
backgroundTaskFailedBulkDestroy
Perform a DELETE operation against this list endpoint. Note that the typical DRF list endpoint does not support DELETE, so this method is provided as a custom implementation.- Parameters:
bulkRequest- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 204 No response body -
-
backgroundTaskFailedBulkDestroyWithHttpInfo
public ApiResponse<Void> backgroundTaskFailedBulkDestroyWithHttpInfo(@Nonnull BulkRequest bulkRequest) throws ApiException Perform a DELETE operation against this list endpoint. Note that the typical DRF list endpoint does not support DELETE, so this method is provided as a custom implementation.- Parameters:
bulkRequest- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 204 No response body -
-
backgroundTaskFailedBulkDestroyAsync
public okhttp3.Call backgroundTaskFailedBulkDestroyAsync(@Nonnull BulkRequest bulkRequest, ApiCallback<Void> _callback) throws ApiException (asynchronously) Perform a DELETE operation against this list endpoint. Note that the typical DRF list endpoint does not support DELETE, so this method is provided as a custom implementation.- Parameters:
bulkRequest- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 204 No response body -
-
backgroundTaskFailedListCall
public okhttp3.Call backgroundTaskFailedListCall(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search, ApiCallback _callback) throws ApiException Build call for backgroundTaskFailedList- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: pk, func, started, stopped. (optional)search- A search term. Searched fields: func. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskFailedList
public PaginatedFailedTaskList backgroundTaskFailedList(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search) throws ApiException Provides a read-only list of currently failed tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: pk, func, started, stopped. (optional)search- A search term. Searched fields: func. (optional)- Returns:
- PaginatedFailedTaskList
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskFailedListWithHttpInfo
public ApiResponse<PaginatedFailedTaskList> backgroundTaskFailedListWithHttpInfo(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search) throws ApiException Provides a read-only list of currently failed tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: pk, func, started, stopped. (optional)search- A search term. Searched fields: func. (optional)- Returns:
- ApiResponse<PaginatedFailedTaskList>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskFailedListAsync
public okhttp3.Call backgroundTaskFailedListAsync(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search, ApiCallback<PaginatedFailedTaskList> _callback) throws ApiException (asynchronously) Provides a read-only list of currently failed tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: pk, func, started, stopped. (optional)search- A search term. Searched fields: func. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskPendingBulkDestroyCall
public okhttp3.Call backgroundTaskPendingBulkDestroyCall(@Nonnull BulkRequest bulkRequest, ApiCallback _callback) throws ApiException Build call for backgroundTaskPendingBulkDestroy- Parameters:
bulkRequest- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 204 No response body -
-
backgroundTaskPendingBulkDestroy
Perform a DELETE operation against this list endpoint. Note that the typical DRF list endpoint does not support DELETE, so this method is provided as a custom implementation.- Parameters:
bulkRequest- (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 204 No response body -
-
backgroundTaskPendingBulkDestroyWithHttpInfo
public ApiResponse<Void> backgroundTaskPendingBulkDestroyWithHttpInfo(@Nonnull BulkRequest bulkRequest) throws ApiException Perform a DELETE operation against this list endpoint. Note that the typical DRF list endpoint does not support DELETE, so this method is provided as a custom implementation.- Parameters:
bulkRequest- (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 204 No response body -
-
backgroundTaskPendingBulkDestroyAsync
public okhttp3.Call backgroundTaskPendingBulkDestroyAsync(@Nonnull BulkRequest bulkRequest, ApiCallback<Void> _callback) throws ApiException (asynchronously) Perform a DELETE operation against this list endpoint. Note that the typical DRF list endpoint does not support DELETE, so this method is provided as a custom implementation.- Parameters:
bulkRequest- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 204 No response body -
-
backgroundTaskPendingListCall
public okhttp3.Call backgroundTaskPendingListCall(@Nonnull Integer limit, @Nullable Integer offset, ApiCallback _callback) throws ApiException Build call for backgroundTaskPendingList- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskPendingList
public PaginatedPendingTaskList backgroundTaskPendingList(@Nonnull Integer limit, @Nullable Integer offset) throws ApiException Provides a read-only list of currently pending tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)- Returns:
- PaginatedPendingTaskList
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskPendingListWithHttpInfo
public ApiResponse<PaginatedPendingTaskList> backgroundTaskPendingListWithHttpInfo(@Nonnull Integer limit, @Nullable Integer offset) throws ApiException Provides a read-only list of currently pending tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)- Returns:
- ApiResponse<PaginatedPendingTaskList>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskPendingListAsync
public okhttp3.Call backgroundTaskPendingListAsync(@Nonnull Integer limit, @Nullable Integer offset, ApiCallback<PaginatedPendingTaskList> _callback) throws ApiException (asynchronously) Provides a read-only list of currently pending tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskRetrieveCall
Build call for backgroundTaskRetrieve- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 No response body -
-
backgroundTaskRetrieve
Return information about the current status of the background task queue.- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 No response body -
-
backgroundTaskRetrieveWithHttpInfo
Return information about the current status of the background task queue.- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 No response body -
-
backgroundTaskRetrieveAsync
(asynchronously) Return information about the current status of the background task queue.- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 No response body -
-
backgroundTaskScheduledListCall
public okhttp3.Call backgroundTaskScheduledListCall(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search, ApiCallback _callback) throws ApiException Build call for backgroundTaskScheduledList- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: pk, func, last_run, next_run. (optional)search- A search term. Searched fields: func. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskScheduledList
public PaginatedScheduledTaskList backgroundTaskScheduledList(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search) throws ApiException Provides a read-only list of currently scheduled tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: pk, func, last_run, next_run. (optional)search- A search term. Searched fields: func. (optional)- Returns:
- PaginatedScheduledTaskList
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskScheduledListWithHttpInfo
public ApiResponse<PaginatedScheduledTaskList> backgroundTaskScheduledListWithHttpInfo(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search) throws ApiException Provides a read-only list of currently scheduled tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: pk, func, last_run, next_run. (optional)search- A search term. Searched fields: func. (optional)- Returns:
- ApiResponse<PaginatedScheduledTaskList>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-
backgroundTaskScheduledListAsync
public okhttp3.Call backgroundTaskScheduledListAsync(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search, ApiCallback<PaginatedScheduledTaskList> _callback) throws ApiException (asynchronously) Provides a read-only list of currently scheduled tasks.- Parameters:
limit- Number of results to return per page. (required)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: pk, func, last_run, next_run. (optional)search- A search term. Searched fields: func. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 -
-