public class UploadTaskApi extends Object
| 构造器和说明 |
|---|
UploadTaskApi() |
UploadTaskApi(ApiClient apiClient) |
public UploadTaskApi()
public UploadTaskApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public int getHostIndex()
public void setHostIndex(int hostIndex)
public String getCustomBaseUrl()
public void setCustomBaseUrl(String customBaseUrl)
public okhttp3.Call cancelUploadTaskCall(CancelUploadTaskParams cancelUploadTaskParams, ApiCallback _callback) throws ApiException
cancelUploadTaskParams - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<String> cancelUploadTask(CancelUploadTaskParams cancelUploadTaskParams) throws ApiException
cancelUploadTaskParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<String>> cancelUploadTaskWithHttpInfo(CancelUploadTaskParams cancelUploadTaskParams) throws ApiException
cancelUploadTaskParams - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call cancelUploadTaskAsync(CancelUploadTaskParams cancelUploadTaskParams, ApiCallback<List<String>> _callback) throws ApiException
cancelUploadTaskParams - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | * CommonHeader - | |
| 304 | Not modified | - |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getUploadTasksCall(GetUploadTasksRequestBody getUploadTasksRequestBody, ApiCallback _callback) throws ApiException
getUploadTasksRequestBody - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public List<UploadTask> getUploadTasks(GetUploadTasksRequestBody getUploadTasksRequestBody) throws ApiException
getUploadTasksRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<List<UploadTask>> getUploadTasksWithHttpInfo(GetUploadTasksRequestBody getUploadTasksRequestBody) throws ApiException
getUploadTasksRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getUploadTasksAsync(GetUploadTasksRequestBody getUploadTasksRequestBody, ApiCallback<List<UploadTask>> _callback) throws ApiException
getUploadTasksRequestBody - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getUploadTasksConnectionCall(GetUploadTasksConnectionRequestBody getUploadTasksConnectionRequestBody, ApiCallback _callback) throws ApiException
getUploadTasksConnectionRequestBody - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public UploadTaskConnection getUploadTasksConnection(GetUploadTasksConnectionRequestBody getUploadTasksConnectionRequestBody) throws ApiException
getUploadTasksConnectionRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public ApiResponse<UploadTaskConnection> getUploadTasksConnectionWithHttpInfo(GetUploadTasksConnectionRequestBody getUploadTasksConnectionRequestBody) throws ApiException
getUploadTasksConnectionRequestBody - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
public okhttp3.Call getUploadTasksConnectionAsync(GetUploadTasksConnectionRequestBody getUploadTasksConnectionRequestBody, ApiCallback<UploadTaskConnection> _callback) throws ApiException
getUploadTasksConnectionRequestBody - (required)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | * x-tower-request-id - | |
| 400 | Bad request | * CommonHeader - |
| 404 | Not found | * CommonHeader - |
| 500 | Server error | * CommonHeader - |
Copyright © 2025. All rights reserved.