All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openapitools.client.api.SchemaLogApi Maven / Gradle / Ivy

There is a newer version: 7.22.0-alpha1
Show newest version
/*
 * Camunda BPM REST API
 * OpenApi Spec for Camunda BPM REST API.
 *
 * The version of the OpenAPI document: 7.14.0-alpha4
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.api;

import org.openapitools.client.ApiCallback;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.ProgressRequestBody;
import org.openapitools.client.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import org.openapitools.client.model.SchemaLogEntryDto;
import org.openapitools.client.model.SchemaLogQueryDto;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SchemaLogApi {
    private ApiClient localVarApiClient;

    public SchemaLogApi() {
        this(Configuration.getDefaultApiClient());
    }

    public SchemaLogApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    /**
     * Build call for getSchemaLog
     * @param version Only return schema log entries with a specific version. (optional)
     * @param firstResult Pagination of results. Specifies the index of the first result to return. (optional)
     * @param maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
200 Request successful. **Note**: In order to get any results a user of group `camunda-admin` must be authenticated. -
*/ public okhttp3.Call getSchemaLogCall(String version, Integer firstResult, Integer maxResults, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/schema/log"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (version != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("version", version)); } if (firstResult != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("firstResult", firstResult)); } if (maxResults != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxResults", maxResults)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSchemaLogValidateBeforeCall(String version, Integer firstResult, Integer maxResults, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSchemaLogCall(version, firstResult, maxResults, _callback); return localVarCall; } /** * * Queries for schema log entries that fulfill given parameters. * @param version Only return schema log entries with a specific version. (optional) * @param firstResult Pagination of results. Specifies the index of the first result to return. (optional) * @param maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional) * @return List<SchemaLogEntryDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Request successful. **Note**: In order to get any results a user of group `camunda-admin` must be authenticated. -
*/ public List getSchemaLog(String version, Integer firstResult, Integer maxResults) throws ApiException { ApiResponse> localVarResp = getSchemaLogWithHttpInfo(version, firstResult, maxResults); return localVarResp.getData(); } /** * * Queries for schema log entries that fulfill given parameters. * @param version Only return schema log entries with a specific version. (optional) * @param firstResult Pagination of results. Specifies the index of the first result to return. (optional) * @param maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional) * @return ApiResponse<List<SchemaLogEntryDto>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Request successful. **Note**: In order to get any results a user of group `camunda-admin` must be authenticated. -
*/ public ApiResponse> getSchemaLogWithHttpInfo(String version, Integer firstResult, Integer maxResults) throws ApiException { okhttp3.Call localVarCall = getSchemaLogValidateBeforeCall(version, firstResult, maxResults, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Queries for schema log entries that fulfill given parameters. * @param version Only return schema log entries with a specific version. (optional) * @param firstResult Pagination of results. Specifies the index of the first result to return. (optional) * @param maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Request successful. **Note**: In order to get any results a user of group `camunda-admin` must be authenticated. -
*/ public okhttp3.Call getSchemaLogAsync(String version, Integer firstResult, Integer maxResults, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getSchemaLogValidateBeforeCall(version, firstResult, maxResults, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for querySchemaLog * @param firstResult Pagination of results. Specifies the index of the first result to return. (optional) * @param maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional) * @param schemaLogQueryDto (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Request successful. **Note**: In order to get any results a user of group camunda-admin must be authenticated. -
*/ public okhttp3.Call querySchemaLogCall(Integer firstResult, Integer maxResults, SchemaLogQueryDto schemaLogQueryDto, final ApiCallback _callback) throws ApiException { Object localVarPostBody = schemaLogQueryDto; // create path and map variables String localVarPath = "/schema/log"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (firstResult != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("firstResult", firstResult)); } if (maxResults != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxResults", maxResults)); } Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call querySchemaLogValidateBeforeCall(Integer firstResult, Integer maxResults, SchemaLogQueryDto schemaLogQueryDto, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = querySchemaLogCall(firstResult, maxResults, schemaLogQueryDto, _callback); return localVarCall; } /** * * Queries for schema log entries that fulfill given parameters. * @param firstResult Pagination of results. Specifies the index of the first result to return. (optional) * @param maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional) * @param schemaLogQueryDto (optional) * @return List<SchemaLogEntryDto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Request successful. **Note**: In order to get any results a user of group camunda-admin must be authenticated. -
*/ public List querySchemaLog(Integer firstResult, Integer maxResults, SchemaLogQueryDto schemaLogQueryDto) throws ApiException { ApiResponse> localVarResp = querySchemaLogWithHttpInfo(firstResult, maxResults, schemaLogQueryDto); return localVarResp.getData(); } /** * * Queries for schema log entries that fulfill given parameters. * @param firstResult Pagination of results. Specifies the index of the first result to return. (optional) * @param maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional) * @param schemaLogQueryDto (optional) * @return ApiResponse<List<SchemaLogEntryDto>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Request successful. **Note**: In order to get any results a user of group camunda-admin must be authenticated. -
*/ public ApiResponse> querySchemaLogWithHttpInfo(Integer firstResult, Integer maxResults, SchemaLogQueryDto schemaLogQueryDto) throws ApiException { okhttp3.Call localVarCall = querySchemaLogValidateBeforeCall(firstResult, maxResults, schemaLogQueryDto, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Queries for schema log entries that fulfill given parameters. * @param firstResult Pagination of results. Specifies the index of the first result to return. (optional) * @param maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. (optional) * @param schemaLogQueryDto (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Request successful. **Note**: In order to get any results a user of group camunda-admin must be authenticated. -
*/ public okhttp3.Call querySchemaLogAsync(Integer firstResult, Integer maxResults, SchemaLogQueryDto schemaLogQueryDto, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = querySchemaLogValidateBeforeCall(firstResult, maxResults, schemaLogQueryDto, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy