public class AttachmentsApi extends Object
| Constructor and Description |
|---|
AttachmentsApi() |
AttachmentsApi(ApiClient apiClient) |
public AttachmentsApi()
public AttachmentsApi(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 deleteAttachmentCall(String hash, ApiCallback _callback) throws QaseException
hash - Hash. (required)_callback - Callback for upload/download progressQaseException - If fail to serialize the request body objectpublic HashResponse deleteAttachment(String hash) throws QaseException
hash - Hash. (required)QaseException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<HashResponse> deleteAttachmentWithHttpInfo(String hash) throws QaseException
hash - Hash. (required)QaseException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deleteAttachmentAsync(String hash, ApiCallback<HashResponse> _callback) throws QaseException
hash - Hash. (required)_callback - The callback to be executed when the API call finishesQaseException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call getAttachmentCall(String hash, ApiCallback _callback) throws QaseException
hash - Hash. (required)_callback - Callback for upload/download progressQaseException - If fail to serialize the request body objectpublic AttachmentResponse getAttachment(String hash) throws QaseException
hash - Hash. (required)QaseException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AttachmentResponse> getAttachmentWithHttpInfo(String hash) throws QaseException
hash - Hash. (required)QaseException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getAttachmentAsync(String hash, ApiCallback<AttachmentResponse> _callback) throws QaseException
hash - Hash. (required)_callback - The callback to be executed when the API call finishesQaseException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call getAttachmentsCall(Integer limit, Integer offset, ApiCallback _callback) throws QaseException
limit - A number of entities in result set. (optional, default to 10)offset - How many entities should be skipped. (optional, default to 0)_callback - Callback for upload/download progressQaseException - If fail to serialize the request body objectpublic AttachmentListResponse getAttachments(Integer limit, Integer offset) throws QaseException
limit - A number of entities in result set. (optional, default to 10)offset - How many entities should be skipped. (optional, default to 0)QaseException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AttachmentListResponse> getAttachmentsWithHttpInfo(Integer limit, Integer offset) throws QaseException
limit - A number of entities in result set. (optional, default to 10)offset - How many entities should be skipped. (optional, default to 0)QaseException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getAttachmentsAsync(Integer limit, Integer offset, ApiCallback<AttachmentListResponse> _callback) throws QaseException
limit - A number of entities in result set. (optional, default to 10)offset - How many entities should be skipped. (optional, default to 0)_callback - The callback to be executed when the API call finishesQaseException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call uploadAttachmentCall(String code, List<File> _file, ApiCallback _callback) throws QaseException
code - Code of project, where to search entities. (required)_file - (optional)_callback - Callback for upload/download progressQaseException - If fail to serialize the request body objectpublic AttachmentUploadsResponse uploadAttachment(String code, List<File> _file) throws QaseException
code - Code of project, where to search entities. (required)_file - (optional)QaseException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AttachmentUploadsResponse> uploadAttachmentWithHttpInfo(String code, List<File> _file) throws QaseException
code - Code of project, where to search entities. (required)_file - (optional)QaseException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call uploadAttachmentAsync(String code, List<File> _file, ApiCallback<AttachmentUploadsResponse> _callback) throws QaseException
code - Code of project, where to search entities. (required)_file - (optional)_callback - The callback to be executed when the API call finishesQaseException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2023. All rights reserved.