Package ai.reveng.api
Class FirmwareApi
java.lang.Object
ai.reveng.api.FirmwareApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBinariesForFirmwareTask(String taskId) Upload firmware for unpacking Uploads a firmware file and begins a 'Firmware Unpacker' task.okhttp3.CallgetBinariesForFirmwareTaskAsync(String taskId, ApiCallback<Object> _callback) Upload firmware for unpacking (asynchronously) Uploads a firmware file and begins a 'Firmware Unpacker' task.okhttp3.CallgetBinariesForFirmwareTaskCall(String taskId, ApiCallback _callback) Build call for getBinariesForFirmwareTaskUpload firmware for unpacking Uploads a firmware file and begins a 'Firmware Unpacker' task.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) uploadFirmware(File _file, String password) Upload firmware for unpacking Uploads a firmware file and begins a 'Firmware Unpacker' task.okhttp3.CalluploadFirmwareAsync(File _file, String password, ApiCallback<Object> _callback) Upload firmware for unpacking (asynchronously) Uploads a firmware file and begins a 'Firmware Unpacker' task.okhttp3.CalluploadFirmwareCall(File _file, String password, ApiCallback _callback) Build call for uploadFirmwareuploadFirmwareWithHttpInfo(File _file, String password) Upload firmware for unpacking Uploads a firmware file and begins a 'Firmware Unpacker' task.
-
Constructor Details
-
FirmwareApi
public FirmwareApi() -
FirmwareApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getBinariesForFirmwareTaskCall
public okhttp3.Call getBinariesForFirmwareTaskCall(@Nonnull String taskId, ApiCallback _callback) throws ApiException Build call for getBinariesForFirmwareTask- Parameters:
taskId- (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 Successful Response - 422 Invalid request parameters -
-
getBinariesForFirmwareTask
Upload firmware for unpacking Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.- Parameters:
taskId- (required)- Returns:
- Object
- 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 Successful Response - 422 Invalid request parameters -
-
getBinariesForFirmwareTaskWithHttpInfo
public ApiResponse<Object> getBinariesForFirmwareTaskWithHttpInfo(@Nonnull String taskId) throws ApiException Upload firmware for unpacking Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.- Parameters:
taskId- (required)- Returns:
- ApiResponse<Object>
- 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 Successful Response - 422 Invalid request parameters -
-
getBinariesForFirmwareTaskAsync
public okhttp3.Call getBinariesForFirmwareTaskAsync(@Nonnull String taskId, ApiCallback<Object> _callback) throws ApiException Upload firmware for unpacking (asynchronously) Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.- Parameters:
taskId- (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 Successful Response - 422 Invalid request parameters -
-
uploadFirmwareCall
public okhttp3.Call uploadFirmwareCall(@Nonnull File _file, @Nullable String password, ApiCallback _callback) throws ApiException Build call for uploadFirmware- Parameters:
_file- (required)password- (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 201 Successful Response - 422 Unprocessable Entity - 500 Internal Server Error -
-
uploadFirmware
Upload firmware for unpacking Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.- Parameters:
_file- (required)password- (optional)- Returns:
- Object
- 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 Successful Response - 422 Unprocessable Entity - 500 Internal Server Error -
-
uploadFirmwareWithHttpInfo
public ApiResponse<Object> uploadFirmwareWithHttpInfo(@Nonnull File _file, @Nullable String password) throws ApiException Upload firmware for unpacking Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.- Parameters:
_file- (required)password- (optional)- Returns:
- ApiResponse<Object>
- 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 Successful Response - 422 Unprocessable Entity - 500 Internal Server Error -
-
uploadFirmwareAsync
public okhttp3.Call uploadFirmwareAsync(@Nonnull File _file, @Nullable String password, ApiCallback<Object> _callback) throws ApiException Upload firmware for unpacking (asynchronously) Uploads a firmware file and begins a 'Firmware Unpacker' task. Returns a result identifier, which can be used to poll for the response.- Parameters:
_file- (required)password- (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 201 Successful Response - 422 Unprocessable Entity - 500 Internal Server Error -
-