Package com.w3asel.inventree.api
Class AdminApi
java.lang.Object
com.w3asel.inventree.api.AdminApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidList view for all accessed configurations.okhttp3.CalladminConfigListAsync(ApiCallback<Void> _callback) (asynchronously) List view for all accessed configurations.okhttp3.CalladminConfigListCall(ApiCallback _callback) Build call for adminConfigListList view for all accessed configurations.voidDetail view for an individual configuration.okhttp3.CalladminConfigRetrieveAsync(String key, ApiCallback<Void> _callback) (asynchronously) Detail view for an individual configuration.okhttp3.CalladminConfigRetrieveCall(String key, ApiCallback _callback) Build call for adminConfigRetrieveDetail view for an individual configuration.voidadminEmailBulkDestroy(BulkRequest bulkRequest) Perform a DELETE operation against this list endpoint.okhttp3.CalladminEmailBulkDestroyAsync(BulkRequest bulkRequest, ApiCallback<Void> _callback) (asynchronously) Perform a DELETE operation against this list endpoint.okhttp3.CalladminEmailBulkDestroyCall(BulkRequest bulkRequest, ApiCallback _callback) Build call for adminEmailBulkDestroyadminEmailBulkDestroyWithHttpInfo(BulkRequest bulkRequest) Perform a DELETE operation against this list endpoint.voidadminEmailDestroy(UUID globalId) Detail view for an email object.okhttp3.CalladminEmailDestroyAsync(UUID globalId, ApiCallback<Void> _callback) (asynchronously) Detail view for an email object.okhttp3.CalladminEmailDestroyCall(UUID globalId, ApiCallback _callback) Build call for adminEmailDestroyadminEmailDestroyWithHttpInfo(UUID globalId) Detail view for an email object.adminEmailList(Integer limit, Integer offset, String ordering, String search) List view for email objects.okhttp3.CalladminEmailListAsync(Integer limit, Integer offset, String ordering, String search, ApiCallback<PaginatedEmailMessageList> _callback) (asynchronously) List view for email objects.okhttp3.CalladminEmailListCall(Integer limit, Integer offset, String ordering, String search, ApiCallback _callback) Build call for adminEmailListadminEmailListWithHttpInfo(Integer limit, Integer offset, String ordering, String search) List view for email objects.adminEmailRetrieve(UUID globalId) Detail view for an email object.okhttp3.CalladminEmailRetrieveAsync(UUID globalId, ApiCallback<EmailMessage> _callback) (asynchronously) Detail view for an email object.okhttp3.CalladminEmailRetrieveCall(UUID globalId, ApiCallback _callback) Build call for adminEmailRetrieveadminEmailRetrieveWithHttpInfo(UUID globalId) Detail view for an email object.adminEmailTestCreate(TestEmail testEmail) Send a test email.okhttp3.CalladminEmailTestCreateAsync(TestEmail testEmail, ApiCallback<TestEmail> _callback) (asynchronously) Send a test email.okhttp3.CalladminEmailTestCreateCall(TestEmail testEmail, ApiCallback _callback) Build call for adminEmailTestCreateadminEmailTestCreateWithHttpInfo(TestEmail testEmail) Send a test email.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
AdminApi
public AdminApi() -
AdminApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
adminConfigListCall
Build call for adminConfigList- 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 -
-
adminConfigList
List view for all accessed configurations.- 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 -
-
adminConfigListWithHttpInfo
List view for all accessed configurations.- 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 -
-
adminConfigListAsync
(asynchronously) List view for all accessed configurations.- 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 -
-
adminConfigRetrieveCall
public okhttp3.Call adminConfigRetrieveCall(@Nonnull String key, ApiCallback _callback) throws ApiException Build call for adminConfigRetrieve- Parameters:
key- (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 200 No response body -
-
adminConfigRetrieve
Detail view for an individual configuration.- Parameters:
key- (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 200 No response body -
-
adminConfigRetrieveWithHttpInfo
Detail view for an individual configuration.- Parameters:
key- (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 200 No response body -
-
adminConfigRetrieveAsync
public okhttp3.Call adminConfigRetrieveAsync(@Nonnull String key, ApiCallback<Void> _callback) throws ApiException (asynchronously) Detail view for an individual configuration.- Parameters:
key- (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 200 No response body -
-
adminEmailBulkDestroyCall
public okhttp3.Call adminEmailBulkDestroyCall(@Nonnull BulkRequest bulkRequest, ApiCallback _callback) throws ApiException Build call for adminEmailBulkDestroy- 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 -
-
adminEmailBulkDestroy
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 -
-
adminEmailBulkDestroyWithHttpInfo
public ApiResponse<Void> adminEmailBulkDestroyWithHttpInfo(@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 -
-
adminEmailBulkDestroyAsync
public okhttp3.Call adminEmailBulkDestroyAsync(@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 -
-
adminEmailDestroyCall
public okhttp3.Call adminEmailDestroyCall(@Nonnull UUID globalId, ApiCallback _callback) throws ApiException Build call for adminEmailDestroy- Parameters:
globalId- (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 -
-
adminEmailDestroy
Detail view for an email object.- Parameters:
globalId- (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 -
-
adminEmailDestroyWithHttpInfo
Detail view for an email object.- Parameters:
globalId- (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 -
-
adminEmailDestroyAsync
public okhttp3.Call adminEmailDestroyAsync(@Nonnull UUID globalId, ApiCallback<Void> _callback) throws ApiException (asynchronously) Detail view for an email object.- Parameters:
globalId- (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 -
-
adminEmailListCall
public okhttp3.Call adminEmailListCall(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search, ApiCallback _callback) throws ApiException Build call for adminEmailList- 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: created, subject, to, sender, status, timestamp, direction. (optional)search- A search term. Searched fields: global_id, message_id_key, sender, subject, thread_id_key, to. (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 -
-
adminEmailList
public PaginatedEmailMessageList adminEmailList(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search) throws ApiException List view for email objects.- 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: created, subject, to, sender, status, timestamp, direction. (optional)search- A search term. Searched fields: global_id, message_id_key, sender, subject, thread_id_key, to. (optional)- Returns:
- PaginatedEmailMessageList
- 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 -
-
adminEmailListWithHttpInfo
public ApiResponse<PaginatedEmailMessageList> adminEmailListWithHttpInfo(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search) throws ApiException List view for email objects.- 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: created, subject, to, sender, status, timestamp, direction. (optional)search- A search term. Searched fields: global_id, message_id_key, sender, subject, thread_id_key, to. (optional)- Returns:
- ApiResponse<PaginatedEmailMessageList>
- 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 -
-
adminEmailListAsync
public okhttp3.Call adminEmailListAsync(@Nonnull Integer limit, @Nullable Integer offset, @Nullable String ordering, @Nullable String search, ApiCallback<PaginatedEmailMessageList> _callback) throws ApiException (asynchronously) List view for email objects.- 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: created, subject, to, sender, status, timestamp, direction. (optional)search- A search term. Searched fields: global_id, message_id_key, sender, subject, thread_id_key, to. (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 -
-
adminEmailRetrieveCall
public okhttp3.Call adminEmailRetrieveCall(@Nonnull UUID globalId, ApiCallback _callback) throws ApiException Build call for adminEmailRetrieve- Parameters:
globalId- (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 200 -
-
adminEmailRetrieve
Detail view for an email object.- Parameters:
globalId- (required)- Returns:
- EmailMessage
- 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 -
-
adminEmailRetrieveWithHttpInfo
public ApiResponse<EmailMessage> adminEmailRetrieveWithHttpInfo(@Nonnull UUID globalId) throws ApiException Detail view for an email object.- Parameters:
globalId- (required)- Returns:
- ApiResponse<EmailMessage>
- 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 -
-
adminEmailRetrieveAsync
public okhttp3.Call adminEmailRetrieveAsync(@Nonnull UUID globalId, ApiCallback<EmailMessage> _callback) throws ApiException (asynchronously) Detail view for an email object.- Parameters:
globalId- (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 200 -
-
adminEmailTestCreateCall
public okhttp3.Call adminEmailTestCreateCall(@Nonnull TestEmail testEmail, ApiCallback _callback) throws ApiException Build call for adminEmailTestCreate- Parameters:
testEmail- (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 201 -
-
adminEmailTestCreate
Send a test email.- Parameters:
testEmail- (required)- Returns:
- TestEmail
- 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 201 -
-
adminEmailTestCreateWithHttpInfo
public ApiResponse<TestEmail> adminEmailTestCreateWithHttpInfo(@Nonnull TestEmail testEmail) throws ApiException Send a test email.- Parameters:
testEmail- (required)- Returns:
- ApiResponse<TestEmail>
- 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 201 -
-
adminEmailTestCreateAsync
public okhttp3.Call adminEmailTestCreateAsync(@Nonnull TestEmail testEmail, ApiCallback<TestEmail> _callback) throws ApiException (asynchronously) Send a test email.- Parameters:
testEmail- (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 201 -
-