Package com.w3asel.inventree.api
Class ActionApi
java.lang.Object
com.w3asel.inventree.api.ActionApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionCreate(ActionPlugin actionPlugin) This function checks if all required info was submitted and then performs a plugin_action or returns an error.okhttp3.CallactionCreateAsync(ActionPlugin actionPlugin, ApiCallback<ActionPlugin> _callback) (asynchronously) This function checks if all required info was submitted and then performs a plugin_action or returns an error.okhttp3.CallactionCreateCall(ActionPlugin actionPlugin, ApiCallback _callback) Build call for actionCreateactionCreateWithHttpInfo(ActionPlugin actionPlugin) This function checks if all required info was submitted and then performs a plugin_action or returns an error.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
ActionApi
public ActionApi() -
ActionApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
actionCreateCall
public okhttp3.Call actionCreateCall(@Nonnull ActionPlugin actionPlugin, ApiCallback _callback) throws ApiException Build call for actionCreate- Parameters:
actionPlugin- (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 -
-
actionCreate
This function checks if all required info was submitted and then performs a plugin_action or returns an error.- Parameters:
actionPlugin- (required)- Returns:
- ActionPlugin
- 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 -
-
actionCreateWithHttpInfo
public ApiResponse<ActionPlugin> actionCreateWithHttpInfo(@Nonnull ActionPlugin actionPlugin) throws ApiException This function checks if all required info was submitted and then performs a plugin_action or returns an error.- Parameters:
actionPlugin- (required)- Returns:
- ApiResponse<ActionPlugin>
- 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 -
-
actionCreateAsync
public okhttp3.Call actionCreateAsync(@Nonnull ActionPlugin actionPlugin, ApiCallback<ActionPlugin> _callback) throws ApiException (asynchronously) This function checks if all required info was submitted and then performs a plugin_action or returns an error.- Parameters:
actionPlugin- (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 -
-