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

org.openapitools.client.api.TelemetryApi 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.ExceptionDto;
import org.openapitools.client.model.TelemetryConfigurationDto;

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

public class TelemetryApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for configureTelemetry
     * @param telemetryConfigurationDto  (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
204 Request successful. -
401 If the user who perform the operation is not a <b>camunda-admin</b> user. -
*/ public okhttp3.Call configureTelemetryCall(TelemetryConfigurationDto telemetryConfigurationDto, final ApiCallback _callback) throws ApiException { Object localVarPostBody = telemetryConfigurationDto; // create path and map variables String localVarPath = "/telemetry/configuration"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 configureTelemetryValidateBeforeCall(TelemetryConfigurationDto telemetryConfigurationDto, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = configureTelemetryCall(telemetryConfigurationDto, _callback); return localVarCall; } /** * Configure Telemetry * Configures whether Camunda receives data collection of the process engine setup and usage. * @param telemetryConfigurationDto (optional) * @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
204 Request successful. -
401 If the user who perform the operation is not a <b>camunda-admin</b> user. -
*/ public void configureTelemetry(TelemetryConfigurationDto telemetryConfigurationDto) throws ApiException { configureTelemetryWithHttpInfo(telemetryConfigurationDto); } /** * Configure Telemetry * Configures whether Camunda receives data collection of the process engine setup and usage. * @param telemetryConfigurationDto (optional) * @return ApiResponse<Void> * @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
204 Request successful. -
401 If the user who perform the operation is not a <b>camunda-admin</b> user. -
*/ public ApiResponse configureTelemetryWithHttpInfo(TelemetryConfigurationDto telemetryConfigurationDto) throws ApiException { okhttp3.Call localVarCall = configureTelemetryValidateBeforeCall(telemetryConfigurationDto, null); return localVarApiClient.execute(localVarCall); } /** * Configure Telemetry (asynchronously) * Configures whether Camunda receives data collection of the process engine setup and usage. * @param telemetryConfigurationDto (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
204 Request successful. -
401 If the user who perform the operation is not a <b>camunda-admin</b> user. -
*/ public okhttp3.Call configureTelemetryAsync(TelemetryConfigurationDto telemetryConfigurationDto, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = configureTelemetryValidateBeforeCall(telemetryConfigurationDto, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getTelemetryConfiguration * @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. -
401 If the user who perform the operation is not a <b>camunda-admin</b> user. -
*/ public okhttp3.Call getTelemetryConfigurationCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/telemetry/configuration"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); 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 getTelemetryConfigurationValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTelemetryConfigurationCall(_callback); return localVarCall; } /** * Fetch Telemetry Configuration * Fetches Telemetry Configuration. * @return TelemetryConfigurationDto * @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. -
401 If the user who perform the operation is not a <b>camunda-admin</b> user. -
*/ public TelemetryConfigurationDto getTelemetryConfiguration() throws ApiException { ApiResponse localVarResp = getTelemetryConfigurationWithHttpInfo(); return localVarResp.getData(); } /** * Fetch Telemetry Configuration * Fetches Telemetry Configuration. * @return ApiResponse<TelemetryConfigurationDto> * @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. -
401 If the user who perform the operation is not a <b>camunda-admin</b> user. -
*/ public ApiResponse getTelemetryConfigurationWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTelemetryConfigurationValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Fetch Telemetry Configuration (asynchronously) * Fetches Telemetry Configuration. * @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. -
401 If the user who perform the operation is not a <b>camunda-admin</b> user. -
*/ public okhttp3.Call getTelemetryConfigurationAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTelemetryConfigurationValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy