Package com.w3asel.inventree.api
Class GenericApi
java.lang.Object
com.w3asel.inventree.api.GenericApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenericStatusCustomCreate(CustomState customState) List view for all custom states.okhttp3.CallgenericStatusCustomCreateAsync(CustomState customState, ApiCallback<CustomState> _callback) (asynchronously) List view for all custom states.okhttp3.CallgenericStatusCustomCreateCall(CustomState customState, ApiCallback _callback) Build call for genericStatusCustomCreategenericStatusCustomCreateWithHttpInfo(CustomState customState) List view for all custom states.voidDetail view for a particular custom states.okhttp3.CallgenericStatusCustomDestroyAsync(Integer id, ApiCallback<Void> _callback) (asynchronously) Detail view for a particular custom states.okhttp3.CallgenericStatusCustomDestroyCall(Integer id, ApiCallback _callback) Build call for genericStatusCustomDestroyDetail view for a particular custom states.genericStatusCustomList(Integer limit, Integer model, Integer offset, String ordering, String referenceStatus, String search) Override the GET method to determine export options.okhttp3.CallgenericStatusCustomListAsync(Integer limit, Integer model, Integer offset, String ordering, String referenceStatus, String search, ApiCallback<PaginatedCustomStateList> _callback) (asynchronously) Override the GET method to determine export options.okhttp3.CallgenericStatusCustomListCall(Integer limit, Integer model, Integer offset, String ordering, String referenceStatus, String search, ApiCallback _callback) Build call for genericStatusCustomListgenericStatusCustomListWithHttpInfo(Integer limit, Integer model, Integer offset, String ordering, String referenceStatus, String search) Override the GET method to determine export options.genericStatusCustomPartialUpdate(Integer id, PatchedCustomState patchedCustomState) Detail view for a particular custom states.okhttp3.CallgenericStatusCustomPartialUpdateAsync(Integer id, PatchedCustomState patchedCustomState, ApiCallback<CustomState> _callback) (asynchronously) Detail view for a particular custom states.okhttp3.CallgenericStatusCustomPartialUpdateCall(Integer id, PatchedCustomState patchedCustomState, ApiCallback _callback) Build call for genericStatusCustomPartialUpdategenericStatusCustomPartialUpdateWithHttpInfo(Integer id, PatchedCustomState patchedCustomState) Detail view for a particular custom states.Detail view for a particular custom states.okhttp3.CallgenericStatusCustomRetrieveAsync(Integer id, ApiCallback<CustomState> _callback) (asynchronously) Detail view for a particular custom states.okhttp3.CallgenericStatusCustomRetrieveCall(Integer id, ApiCallback _callback) Build call for genericStatusCustomRetrieveDetail view for a particular custom states.genericStatusCustomUpdate(Integer id, CustomState customState) Detail view for a particular custom states.okhttp3.CallgenericStatusCustomUpdateAsync(Integer id, CustomState customState, ApiCallback<CustomState> _callback) (asynchronously) Detail view for a particular custom states.okhttp3.CallgenericStatusCustomUpdateCall(Integer id, CustomState customState, ApiCallback _callback) Build call for genericStatusCustomUpdategenericStatusCustomUpdateWithHttpInfo(Integer id, CustomState customState) Detail view for a particular custom states.genericStatusRetrieve(String statusmodel) Retrieve information about a specific status codevoidPerform a GET request to learn information about status codes.okhttp3.CallgenericStatusRetrieveAllAsync(ApiCallback<Void> _callback) (asynchronously) Perform a GET request to learn information about status codes.okhttp3.CallgenericStatusRetrieveAllCall(ApiCallback _callback) Build call for genericStatusRetrieveAllPerform a GET request to learn information about status codes.okhttp3.CallgenericStatusRetrieveAsync(String statusmodel, ApiCallback<GenericStateClass> _callback) (asynchronously) Retrieve information about a specific status codeokhttp3.CallgenericStatusRetrieveCall(String statusmodel, ApiCallback _callback) Build call for genericStatusRetrievegenericStatusRetrieveWithHttpInfo(String statusmodel) Retrieve information about a specific status codeintvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
GenericApi
public GenericApi() -
GenericApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
genericStatusCustomCreateCall
public okhttp3.Call genericStatusCustomCreateCall(@Nonnull CustomState customState, ApiCallback _callback) throws ApiException Build call for genericStatusCustomCreate- Parameters:
customState- (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 -
-
genericStatusCustomCreate
List view for all custom states.- Parameters:
customState- (required)- Returns:
- CustomState
- 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 -
-
genericStatusCustomCreateWithHttpInfo
public ApiResponse<CustomState> genericStatusCustomCreateWithHttpInfo(@Nonnull CustomState customState) throws ApiException List view for all custom states.- Parameters:
customState- (required)- Returns:
- ApiResponse<CustomState>
- 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 -
-
genericStatusCustomCreateAsync
public okhttp3.Call genericStatusCustomCreateAsync(@Nonnull CustomState customState, ApiCallback<CustomState> _callback) throws ApiException (asynchronously) List view for all custom states.- Parameters:
customState- (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 -
-
genericStatusCustomDestroyCall
public okhttp3.Call genericStatusCustomDestroyCall(@Nonnull Integer id, ApiCallback _callback) throws ApiException Build call for genericStatusCustomDestroy- Parameters:
id- (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 -
-
genericStatusCustomDestroy
Detail view for a particular custom states.- Parameters:
id- (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 -
-
genericStatusCustomDestroyWithHttpInfo
public ApiResponse<Void> genericStatusCustomDestroyWithHttpInfo(@Nonnull Integer id) throws ApiException Detail view for a particular custom states.- Parameters:
id- (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 -
-
genericStatusCustomDestroyAsync
public okhttp3.Call genericStatusCustomDestroyAsync(@Nonnull Integer id, ApiCallback<Void> _callback) throws ApiException (asynchronously) Detail view for a particular custom states.- Parameters:
id- (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 -
-
genericStatusCustomListCall
public okhttp3.Call genericStatusCustomListCall(@Nonnull Integer limit, @Nullable Integer model, @Nullable Integer offset, @Nullable String ordering, @Nullable String referenceStatus, @Nullable String search, ApiCallback _callback) throws ApiException Build call for genericStatusCustomList- Parameters:
limit- Number of results to return per page. (required)model- (optional)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: key. (optional)referenceStatus- (optional)search- A search term. Searched fields: key, label, name, reference_status. (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 -
-
genericStatusCustomList
public PaginatedCustomStateList genericStatusCustomList(@Nonnull Integer limit, @Nullable Integer model, @Nullable Integer offset, @Nullable String ordering, @Nullable String referenceStatus, @Nullable String search) throws ApiException Override the GET method to determine export options.- Parameters:
limit- Number of results to return per page. (required)model- (optional)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: key. (optional)referenceStatus- (optional)search- A search term. Searched fields: key, label, name, reference_status. (optional)- Returns:
- PaginatedCustomStateList
- 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 -
-
genericStatusCustomListWithHttpInfo
public ApiResponse<PaginatedCustomStateList> genericStatusCustomListWithHttpInfo(@Nonnull Integer limit, @Nullable Integer model, @Nullable Integer offset, @Nullable String ordering, @Nullable String referenceStatus, @Nullable String search) throws ApiException Override the GET method to determine export options.- Parameters:
limit- Number of results to return per page. (required)model- (optional)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: key. (optional)referenceStatus- (optional)search- A search term. Searched fields: key, label, name, reference_status. (optional)- Returns:
- ApiResponse<PaginatedCustomStateList>
- 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 -
-
genericStatusCustomListAsync
public okhttp3.Call genericStatusCustomListAsync(@Nonnull Integer limit, @Nullable Integer model, @Nullable Integer offset, @Nullable String ordering, @Nullable String referenceStatus, @Nullable String search, ApiCallback<PaginatedCustomStateList> _callback) throws ApiException (asynchronously) Override the GET method to determine export options.- Parameters:
limit- Number of results to return per page. (required)model- (optional)offset- The initial index from which to return the results. (optional)ordering- Which field to use when ordering the results. Possible fields: key. (optional)referenceStatus- (optional)search- A search term. Searched fields: key, label, name, reference_status. (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 -
-
genericStatusCustomPartialUpdateCall
public okhttp3.Call genericStatusCustomPartialUpdateCall(@Nonnull Integer id, @Nullable PatchedCustomState patchedCustomState, ApiCallback _callback) throws ApiException Build call for genericStatusCustomPartialUpdate- Parameters:
id- (required)patchedCustomState- (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 -
-
genericStatusCustomPartialUpdate
public CustomState genericStatusCustomPartialUpdate(@Nonnull Integer id, @Nullable PatchedCustomState patchedCustomState) throws ApiException Detail view for a particular custom states.- Parameters:
id- (required)patchedCustomState- (optional)- Returns:
- CustomState
- 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 -
-
genericStatusCustomPartialUpdateWithHttpInfo
public ApiResponse<CustomState> genericStatusCustomPartialUpdateWithHttpInfo(@Nonnull Integer id, @Nullable PatchedCustomState patchedCustomState) throws ApiException Detail view for a particular custom states.- Parameters:
id- (required)patchedCustomState- (optional)- Returns:
- ApiResponse<CustomState>
- 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 -
-
genericStatusCustomPartialUpdateAsync
public okhttp3.Call genericStatusCustomPartialUpdateAsync(@Nonnull Integer id, @Nullable PatchedCustomState patchedCustomState, ApiCallback<CustomState> _callback) throws ApiException (asynchronously) Detail view for a particular custom states.- Parameters:
id- (required)patchedCustomState- (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 -
-
genericStatusCustomRetrieveCall
public okhttp3.Call genericStatusCustomRetrieveCall(@Nonnull Integer id, ApiCallback _callback) throws ApiException Build call for genericStatusCustomRetrieve- Parameters:
id- (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 -
-
genericStatusCustomRetrieve
Detail view for a particular custom states.- Parameters:
id- (required)- Returns:
- CustomState
- 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 -
-
genericStatusCustomRetrieveWithHttpInfo
public ApiResponse<CustomState> genericStatusCustomRetrieveWithHttpInfo(@Nonnull Integer id) throws ApiException Detail view for a particular custom states.- Parameters:
id- (required)- Returns:
- ApiResponse<CustomState>
- 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 -
-
genericStatusCustomRetrieveAsync
public okhttp3.Call genericStatusCustomRetrieveAsync(@Nonnull Integer id, ApiCallback<CustomState> _callback) throws ApiException (asynchronously) Detail view for a particular custom states.- Parameters:
id- (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 -
-
genericStatusCustomUpdateCall
public okhttp3.Call genericStatusCustomUpdateCall(@Nonnull Integer id, @Nonnull CustomState customState, ApiCallback _callback) throws ApiException Build call for genericStatusCustomUpdate- Parameters:
id- (required)customState- (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 -
-
genericStatusCustomUpdate
public CustomState genericStatusCustomUpdate(@Nonnull Integer id, @Nonnull CustomState customState) throws ApiException Detail view for a particular custom states.- Parameters:
id- (required)customState- (required)- Returns:
- CustomState
- 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 -
-
genericStatusCustomUpdateWithHttpInfo
public ApiResponse<CustomState> genericStatusCustomUpdateWithHttpInfo(@Nonnull Integer id, @Nonnull CustomState customState) throws ApiException Detail view for a particular custom states.- Parameters:
id- (required)customState- (required)- Returns:
- ApiResponse<CustomState>
- 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 -
-
genericStatusCustomUpdateAsync
public okhttp3.Call genericStatusCustomUpdateAsync(@Nonnull Integer id, @Nonnull CustomState customState, ApiCallback<CustomState> _callback) throws ApiException (asynchronously) Detail view for a particular custom states.- Parameters:
id- (required)customState- (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 -
-
genericStatusRetrieveCall
public okhttp3.Call genericStatusRetrieveCall(@Nonnull String statusmodel, ApiCallback _callback) throws ApiException Build call for genericStatusRetrieve- Parameters:
statusmodel- (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 - 400 Invalid request -
-
genericStatusRetrieve
Retrieve information about a specific status code- Parameters:
statusmodel- (required)- Returns:
- GenericStateClass
- 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 - 400 Invalid request -
-
genericStatusRetrieveWithHttpInfo
public ApiResponse<GenericStateClass> genericStatusRetrieveWithHttpInfo(@Nonnull String statusmodel) throws ApiException Retrieve information about a specific status code- Parameters:
statusmodel- (required)- Returns:
- ApiResponse<GenericStateClass>
- 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 - 400 Invalid request -
-
genericStatusRetrieveAsync
public okhttp3.Call genericStatusRetrieveAsync(@Nonnull String statusmodel, ApiCallback<GenericStateClass> _callback) throws ApiException (asynchronously) Retrieve information about a specific status code- Parameters:
statusmodel- (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 - 400 Invalid request -
-
genericStatusRetrieveAllCall
Build call for genericStatusRetrieveAll- 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 -
-
genericStatusRetrieveAll
Perform a GET request to learn information about status codes.- 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 -
-
genericStatusRetrieveAllWithHttpInfo
Perform a GET request to learn information about status codes.- 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 -
-
genericStatusRetrieveAllAsync
(asynchronously) Perform a GET request to learn information about status codes.- 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 -
-