public class BatchResourceApi extends Object
Constructor and Description |
---|
BatchResourceApi() |
BatchResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiBatchResponse |
execute(ApiBatchRequest body)
Executes a batch of API requests in one database transaction.
|
com.squareup.okhttp.Call |
executeAsync(ApiBatchRequest body,
ApiCallback<ApiBatchResponse> callback)
Executes a batch of API requests in one database transaction.
|
com.squareup.okhttp.Call |
executeCall(ApiBatchRequest body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for execute
|
ApiResponse<ApiBatchResponse> |
executeWithHttpInfo(ApiBatchRequest body)
Executes a batch of API requests in one database transaction.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public BatchResourceApi()
public BatchResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call executeCall(ApiBatchRequest body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body
- Batch of request to execute. (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiBatchResponse execute(ApiBatchRequest body) throws ApiException
body
- Batch of request to execute. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiBatchResponse> executeWithHttpInfo(ApiBatchRequest body) throws ApiException
body
- Batch of request to execute. (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call executeAsync(ApiBatchRequest body, ApiCallback<ApiBatchResponse> callback) throws ApiException
body
- Batch of request to execute. (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.