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

com.finbourne.horizon.api.ProcessHistoryApi Maven / Gradle / Ivy

The newest version!
/*
 * FINBOURNE Horizon API
 *
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package com.finbourne.horizon.api;

import com.finbourne.horizon.ApiCallback;
import com.finbourne.horizon.ApiClient;
import com.finbourne.horizon.ApiException;
import com.finbourne.horizon.ApiResponse;
import com.finbourne.horizon.Configuration;
import com.finbourne.horizon.Pair;
import com.finbourne.horizon.ProgressRequestBody;
import com.finbourne.horizon.ProgressResponseBody;
import com.finbourne.horizon.extensions.ConfigurationOptions;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.finbourne.horizon.model.AuditCompleteRequest;
import com.finbourne.horizon.model.AuditCompleteResponse;
import com.finbourne.horizon.model.AuditUpdateRequest;
import com.finbourne.horizon.model.AuditUpdateResponse;
import com.finbourne.horizon.model.LusidProblemDetails;
import com.finbourne.horizon.model.PagedResourceListOfProcessInformation;
import com.finbourne.horizon.model.PagedResourceListOfProcessUpdateResult;
import com.finbourne.horizon.model.ProcessInformation;
import com.finbourne.horizon.model.QueryRequest;

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

public class ProcessHistoryApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    private okhttp3.Call createCompleteEventCall(AuditCompleteRequest auditCompleteRequest, final ApiCallback _callback) throws ApiException {
        return createCompleteEventCall(auditCompleteRequest,  _callback, new ConfigurationOptions());
    }

    private okhttp3.Call createCompleteEventCall(AuditCompleteRequest auditCompleteRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

        // Determine Base Path to Use
        if (localCustomBaseUrl != null){
            basePath = localCustomBaseUrl;
        } else if ( localBasePaths.length > 0 ) {
            basePath = localBasePaths[localHostIndex];
        } else {
            basePath = null;
        }

        Object localVarPostBody = auditCompleteRequest;

        // create path and map variables
        String localVarPath = "/api/process-history/event/complete";

        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-patch+json",
            "application/json",
            "text/json",
            "application/*+json"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        if (localVarContentType != null) {
            localVarHeaderParams.put("Content-Type", localVarContentType);
        }

        String[] localVarAuthNames = new String[] { "oauth2" };
        return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call createCompleteEventValidateBeforeCall(AuditCompleteRequest auditCompleteRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
        // verify the required parameter 'auditCompleteRequest' is set
        if (auditCompleteRequest == null) {
            throw new ApiException("Missing the required parameter 'auditCompleteRequest' when calling createCompleteEvent(Async)");
        }

        return createCompleteEventCall(auditCompleteRequest, _callback, opts);

    }


    private ApiResponse createCompleteEventWithHttpInfo(AuditCompleteRequest auditCompleteRequest) throws ApiException {
        okhttp3.Call localVarCall = createCompleteEventValidateBeforeCall(auditCompleteRequest, null, new ConfigurationOptions());
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private ApiResponse createCompleteEventWithHttpInfo(AuditCompleteRequest auditCompleteRequest, ConfigurationOptions opts) throws ApiException {
        okhttp3.Call localVarCall = createCompleteEventValidateBeforeCall(auditCompleteRequest, null, opts);
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call createCompleteEventAsync(AuditCompleteRequest auditCompleteRequest, final ApiCallback _callback) throws ApiException {

        okhttp3.Call localVarCall = createCompleteEventValidateBeforeCall(auditCompleteRequest, _callback, new ConfigurationOptions());
        Type localVarReturnType = new TypeToken(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    private okhttp3.Call createCompleteEventAsync(AuditCompleteRequest auditCompleteRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {

        okhttp3.Call localVarCall = createCompleteEventValidateBeforeCall(auditCompleteRequest, _callback, opts);
        Type localVarReturnType = new TypeToken(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    public class APIcreateCompleteEventRequest {
        private final AuditCompleteRequest auditCompleteRequest;

        private APIcreateCompleteEventRequest(AuditCompleteRequest auditCompleteRequest) {
            this.auditCompleteRequest = auditCompleteRequest;
        }

        /**
         * Build call for createCompleteEvent
         * @param _callback ApiCallback API callback
         * @return Call to execute
         * @throws ApiException If fail to serialize the request body object
         * @http.response.details
         
Status Code Description Response Headers
201 Created -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createCompleteEventCall(auditCompleteRequest, _callback); } /** * Execute createCompleteEvent request * @return AuditCompleteResponse * @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
201 Created -
0 Error response -
*/ public AuditCompleteResponse execute() throws ApiException { ApiResponse localVarResp = createCompleteEventWithHttpInfo(auditCompleteRequest); return localVarResp.getData(); } /** * Execute createCompleteEvent request. Use any specified configuration options to override any other configuration for this request only. * @return AuditCompleteResponse * @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
201 Created -
0 Error response -
*/ public AuditCompleteResponse execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = createCompleteEventWithHttpInfo(auditCompleteRequest, opts); return localVarResp.getData(); } /** * Execute createCompleteEvent request with HTTP info returned * @return ApiResponse<AuditCompleteResponse> * @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
201 Created -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createCompleteEventWithHttpInfo(auditCompleteRequest); } /** * Execute createCompleteEvent request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<AuditCompleteResponse> * @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
201 Created -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return createCompleteEventWithHttpInfo(auditCompleteRequest, opts); } /** * Execute createCompleteEvent request (asynchronously) * @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
201 Created -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createCompleteEventAsync(auditCompleteRequest, _callback); } /** * Execute createCompleteEvent request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @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
201 Created -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return createCompleteEventAsync(auditCompleteRequest, _callback, opts); } } /** * [EARLY ACCESS] CreateCompleteEvent: Write a completed event to the Horizon Dashboard * * @param auditCompleteRequest (required) * @return APIcreateCompleteEventRequest * @http.response.details
Status Code Description Response Headers
201 Created -
0 Error response -
*/ public APIcreateCompleteEventRequest createCompleteEvent(AuditCompleteRequest auditCompleteRequest) { return new APIcreateCompleteEventRequest(auditCompleteRequest); } private okhttp3.Call createUpdateEventCall(AuditUpdateRequest auditUpdateRequest, final ApiCallback _callback) throws ApiException { return createUpdateEventCall(auditUpdateRequest, _callback, new ConfigurationOptions()); } private okhttp3.Call createUpdateEventCall(AuditUpdateRequest auditUpdateRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = auditUpdateRequest; // create path and map variables String localVarPath = "/api/process-history/event/update"; 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-patch+json", "application/json", "text/json", "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call createUpdateEventValidateBeforeCall(AuditUpdateRequest auditUpdateRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'auditUpdateRequest' is set if (auditUpdateRequest == null) { throw new ApiException("Missing the required parameter 'auditUpdateRequest' when calling createUpdateEvent(Async)"); } return createUpdateEventCall(auditUpdateRequest, _callback, opts); } private ApiResponse createUpdateEventWithHttpInfo(AuditUpdateRequest auditUpdateRequest) throws ApiException { okhttp3.Call localVarCall = createUpdateEventValidateBeforeCall(auditUpdateRequest, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse createUpdateEventWithHttpInfo(AuditUpdateRequest auditUpdateRequest, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = createUpdateEventValidateBeforeCall(auditUpdateRequest, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call createUpdateEventAsync(AuditUpdateRequest auditUpdateRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createUpdateEventValidateBeforeCall(auditUpdateRequest, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call createUpdateEventAsync(AuditUpdateRequest auditUpdateRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = createUpdateEventValidateBeforeCall(auditUpdateRequest, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIcreateUpdateEventRequest { private final AuditUpdateRequest auditUpdateRequest; private APIcreateUpdateEventRequest(AuditUpdateRequest auditUpdateRequest) { this.auditUpdateRequest = auditUpdateRequest; } /** * Build call for createUpdateEvent * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 Created -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createUpdateEventCall(auditUpdateRequest, _callback); } /** * Execute createUpdateEvent request * @return AuditUpdateResponse * @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
201 Created -
0 Error response -
*/ public AuditUpdateResponse execute() throws ApiException { ApiResponse localVarResp = createUpdateEventWithHttpInfo(auditUpdateRequest); return localVarResp.getData(); } /** * Execute createUpdateEvent request. Use any specified configuration options to override any other configuration for this request only. * @return AuditUpdateResponse * @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
201 Created -
0 Error response -
*/ public AuditUpdateResponse execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = createUpdateEventWithHttpInfo(auditUpdateRequest, opts); return localVarResp.getData(); } /** * Execute createUpdateEvent request with HTTP info returned * @return ApiResponse<AuditUpdateResponse> * @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
201 Created -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createUpdateEventWithHttpInfo(auditUpdateRequest); } /** * Execute createUpdateEvent request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<AuditUpdateResponse> * @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
201 Created -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return createUpdateEventWithHttpInfo(auditUpdateRequest, opts); } /** * Execute createUpdateEvent request (asynchronously) * @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
201 Created -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createUpdateEventAsync(auditUpdateRequest, _callback); } /** * Execute createUpdateEvent request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @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
201 Created -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return createUpdateEventAsync(auditUpdateRequest, _callback, opts); } } /** * [EARLY ACCESS] CreateUpdateEvent: Write an update event to the Horizon Dashboard * * @param auditUpdateRequest (required) * @return APIcreateUpdateEventRequest * @http.response.details
Status Code Description Response Headers
201 Created -
0 Error response -
*/ public APIcreateUpdateEventRequest createUpdateEvent(AuditUpdateRequest auditUpdateRequest) { return new APIcreateUpdateEventRequest(auditUpdateRequest); } private okhttp3.Call getLatestRunsCall(final ApiCallback _callback) throws ApiException { return getLatestRunsCall( _callback, new ConfigurationOptions()); } private okhttp3.Call getLatestRunsCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/process-history/$latestRuns"; 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); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call getLatestRunsValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return getLatestRunsCall(_callback, opts); } private ApiResponse> getLatestRunsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getLatestRunsValidateBeforeCall(null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse> getLatestRunsWithHttpInfo(ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getLatestRunsValidateBeforeCall(null, opts); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getLatestRunsAsync(final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getLatestRunsValidateBeforeCall(_callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call getLatestRunsAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getLatestRunsValidateBeforeCall(_callback, opts); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetLatestRunsRequest { private APIgetLatestRunsRequest() { } /** * Build call for getLatestRuns * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getLatestRunsCall(_callback); } /** * Execute getLatestRuns request * @return List<ProcessInformation> * @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 Success -
0 Error response -
*/ public List execute() throws ApiException { ApiResponse> localVarResp = getLatestRunsWithHttpInfo(); return localVarResp.getData(); } /** * Execute getLatestRuns request. Use any specified configuration options to override any other configuration for this request only. * @return List<ProcessInformation> * @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 Success -
0 Error response -
*/ public List execute(ConfigurationOptions opts) throws ApiException { ApiResponse> localVarResp = getLatestRunsWithHttpInfo(opts); return localVarResp.getData(); } /** * Execute getLatestRuns request with HTTP info returned * @return ApiResponse<List<ProcessInformation>> * @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 Success -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo() throws ApiException { return getLatestRunsWithHttpInfo(); } /** * Execute getLatestRuns request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<List<ProcessInformation>> * @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 Success -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getLatestRunsWithHttpInfo(opts); } /** * Execute getLatestRuns request (asynchronously) * @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 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { return getLatestRunsAsync(_callback); } /** * Execute getLatestRuns request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @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 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { return getLatestRunsAsync(_callback, opts); } } /** * [EARLY ACCESS] GetLatestRuns: Get latest run for each process * * @return APIgetLatestRunsRequest * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public APIgetLatestRunsRequest getLatestRuns() { return new APIgetLatestRunsRequest(); } private okhttp3.Call processEntryUpdatesCall(String runId, QueryRequest queryRequest, final ApiCallback _callback) throws ApiException { return processEntryUpdatesCall(runId, queryRequest, _callback, new ConfigurationOptions()); } private okhttp3.Call processEntryUpdatesCall(String runId, QueryRequest queryRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = queryRequest; // create path and map variables String localVarPath = "/api/process-history/entries/$query"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (runId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("runId", runId)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json-patch+json", "application/json", "text/json", "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call processEntryUpdatesValidateBeforeCall(String runId, QueryRequest queryRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'runId' is set if (runId == null) { throw new ApiException("Missing the required parameter 'runId' when calling processEntryUpdates(Async)"); } // verify the required parameter 'queryRequest' is set if (queryRequest == null) { throw new ApiException("Missing the required parameter 'queryRequest' when calling processEntryUpdates(Async)"); } return processEntryUpdatesCall(runId, queryRequest, _callback, opts); } private ApiResponse processEntryUpdatesWithHttpInfo(String runId, QueryRequest queryRequest) throws ApiException { okhttp3.Call localVarCall = processEntryUpdatesValidateBeforeCall(runId, queryRequest, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse processEntryUpdatesWithHttpInfo(String runId, QueryRequest queryRequest, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = processEntryUpdatesValidateBeforeCall(runId, queryRequest, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call processEntryUpdatesAsync(String runId, QueryRequest queryRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = processEntryUpdatesValidateBeforeCall(runId, queryRequest, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call processEntryUpdatesAsync(String runId, QueryRequest queryRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = processEntryUpdatesValidateBeforeCall(runId, queryRequest, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIprocessEntryUpdatesRequest { private final String runId; private final QueryRequest queryRequest; private APIprocessEntryUpdatesRequest(String runId, QueryRequest queryRequest) { this.runId = runId; this.queryRequest = queryRequest; } /** * Build call for processEntryUpdates * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return processEntryUpdatesCall(runId, queryRequest, _callback); } /** * Execute processEntryUpdates request * @return PagedResourceListOfProcessUpdateResult * @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 Success -
0 Error response -
*/ public PagedResourceListOfProcessUpdateResult execute() throws ApiException { ApiResponse localVarResp = processEntryUpdatesWithHttpInfo(runId, queryRequest); return localVarResp.getData(); } /** * Execute processEntryUpdates request. Use any specified configuration options to override any other configuration for this request only. * @return PagedResourceListOfProcessUpdateResult * @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 Success -
0 Error response -
*/ public PagedResourceListOfProcessUpdateResult execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = processEntryUpdatesWithHttpInfo(runId, queryRequest, opts); return localVarResp.getData(); } /** * Execute processEntryUpdates request with HTTP info returned * @return ApiResponse<PagedResourceListOfProcessUpdateResult> * @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 Success -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return processEntryUpdatesWithHttpInfo(runId, queryRequest); } /** * Execute processEntryUpdates request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<PagedResourceListOfProcessUpdateResult> * @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 Success -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return processEntryUpdatesWithHttpInfo(runId, queryRequest, opts); } /** * Execute processEntryUpdates request (asynchronously) * @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 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return processEntryUpdatesAsync(runId, queryRequest, _callback); } /** * Execute processEntryUpdates request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @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 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return processEntryUpdatesAsync(runId, queryRequest, _callback, opts); } } /** * [EARLY ACCESS] ProcessEntryUpdates: Get process entry updates for a query * * @param runId (required) * @param queryRequest (required) * @return APIprocessEntryUpdatesRequest * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public APIprocessEntryUpdatesRequest processEntryUpdates(String runId, QueryRequest queryRequest) { return new APIprocessEntryUpdatesRequest(runId, queryRequest); } private okhttp3.Call processHistoryEntriesCall(QueryRequest queryRequest, String processName, final ApiCallback _callback) throws ApiException { return processHistoryEntriesCall(queryRequest, processName, _callback, new ConfigurationOptions()); } private okhttp3.Call processHistoryEntriesCall(QueryRequest queryRequest, String processName, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = queryRequest; // create path and map variables String localVarPath = "/api/process-history/$query"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (processName != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("processName", processName)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json-patch+json", "application/json", "text/json", "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call processHistoryEntriesValidateBeforeCall(QueryRequest queryRequest, String processName, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'queryRequest' is set if (queryRequest == null) { throw new ApiException("Missing the required parameter 'queryRequest' when calling processHistoryEntries(Async)"); } return processHistoryEntriesCall(queryRequest, processName, _callback, opts); } private ApiResponse processHistoryEntriesWithHttpInfo(QueryRequest queryRequest, String processName) throws ApiException { okhttp3.Call localVarCall = processHistoryEntriesValidateBeforeCall(queryRequest, processName, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse processHistoryEntriesWithHttpInfo(QueryRequest queryRequest, String processName, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = processHistoryEntriesValidateBeforeCall(queryRequest, processName, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call processHistoryEntriesAsync(QueryRequest queryRequest, String processName, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = processHistoryEntriesValidateBeforeCall(queryRequest, processName, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call processHistoryEntriesAsync(QueryRequest queryRequest, String processName, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = processHistoryEntriesValidateBeforeCall(queryRequest, processName, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIprocessHistoryEntriesRequest { private final QueryRequest queryRequest; private String processName; private APIprocessHistoryEntriesRequest(QueryRequest queryRequest) { this.queryRequest = queryRequest; } /** * Set processName * @param processName (optional) * @return APIprocessHistoryEntriesRequest */ public APIprocessHistoryEntriesRequest processName(String processName) { this.processName = processName; return this; } /** * Build call for processHistoryEntries * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return processHistoryEntriesCall(queryRequest, processName, _callback); } /** * Execute processHistoryEntries request * @return PagedResourceListOfProcessInformation * @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 Success -
0 Error response -
*/ public PagedResourceListOfProcessInformation execute() throws ApiException { ApiResponse localVarResp = processHistoryEntriesWithHttpInfo(queryRequest, processName); return localVarResp.getData(); } /** * Execute processHistoryEntries request. Use any specified configuration options to override any other configuration for this request only. * @return PagedResourceListOfProcessInformation * @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 Success -
0 Error response -
*/ public PagedResourceListOfProcessInformation execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = processHistoryEntriesWithHttpInfo(queryRequest, processName, opts); return localVarResp.getData(); } /** * Execute processHistoryEntries request with HTTP info returned * @return ApiResponse<PagedResourceListOfProcessInformation> * @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 Success -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return processHistoryEntriesWithHttpInfo(queryRequest, processName); } /** * Execute processHistoryEntries request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<PagedResourceListOfProcessInformation> * @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 Success -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return processHistoryEntriesWithHttpInfo(queryRequest, processName, opts); } /** * Execute processHistoryEntries request (asynchronously) * @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 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return processHistoryEntriesAsync(queryRequest, processName, _callback); } /** * Execute processHistoryEntries request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @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 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return processHistoryEntriesAsync(queryRequest, processName, _callback, opts); } } /** * [EARLY ACCESS] ProcessHistoryEntries: Get process history entries * * @param queryRequest (required) * @return APIprocessHistoryEntriesRequest * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public APIprocessHistoryEntriesRequest processHistoryEntries(QueryRequest queryRequest) { return new APIprocessHistoryEntriesRequest(queryRequest); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy