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

com.confidentify.client.api.DatasetsApi Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
/*
 * Confidentify API
 * Services that let you build confidence and identify matches in customer data. ## Features overview * Contact data processing services (tagged with `process`) which offer   validation and enrichment backed by inference and knowledge on complex   data types such as names, email addresses, phone numbers.  * Data matching and searching services (tagged with `matching`) that    allow you to identify duplicated data or matches against third party   contact data list.  * Dataset management services (tagged with `dataset`) that allow record storage and retrieval. ## Integrator notes: * Use the `/auth` endpoint to get an access token. Access tokens are temporary, so design the client the be capable of renewing it. * The APIs are rate-limited, so design the client to be capable of retrying with some delay upon HTTP 429 responses. 
 *
 * The version of the OpenAPI document: 1.1.0
 * 
 *
 * 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.confidentify.client.api;

import com.confidentify.client.ApiCallback;
import com.confidentify.client.ApiClient;
import com.confidentify.client.ApiException;
import com.confidentify.client.ApiResponse;
import com.confidentify.client.Configuration;
import com.confidentify.client.Pair;
import com.confidentify.client.ProgressRequestBody;
import com.confidentify.client.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import java.math.BigDecimal;
import com.confidentify.client.model.DatasetAll;
import com.confidentify.client.model.DatasetBase;
import com.confidentify.client.model.DatasetCreateRequest;
import com.confidentify.client.model.DatasetCreateResponse;
import com.confidentify.client.model.DatasetListResponse;
import com.confidentify.client.model.DatasetRecordAll;
import com.confidentify.client.model.IngestDocumentsRequest;
import com.confidentify.client.model.IngestFileRequest;
import com.confidentify.client.model.IngestFileResponse;
import com.confidentify.client.model.RecordsQueryResponse;
import com.confidentify.client.model.RecordsUploadRequest;

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

public class DatasetsApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for datasetByIdDelete
     * @param datasetId  (required)
     * @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 Success -
404 Not found The dataset was not found -
*/ public okhttp3.Call datasetByIdDeleteCall(String datasetId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/datasets/{dataset_id}" .replaceAll("\\{" + "dataset_id" + "\\}", localVarApiClient.escapeString(datasetId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call datasetByIdDeleteValidateBeforeCall(String datasetId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetId' is set if (datasetId == null) { throw new ApiException("Missing the required parameter 'datasetId' when calling datasetByIdDelete(Async)"); } okhttp3.Call localVarCall = datasetByIdDeleteCall(datasetId, _callback); return localVarCall; } /** * Delete dataset * * @param datasetId (required) * @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 -
404 Not found The dataset was not found -
*/ public void datasetByIdDelete(String datasetId) throws ApiException { datasetByIdDeleteWithHttpInfo(datasetId); } /** * Delete dataset * * @param datasetId (required) * @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
200 Success -
404 Not found The dataset was not found -
*/ public ApiResponse datasetByIdDeleteWithHttpInfo(String datasetId) throws ApiException { okhttp3.Call localVarCall = datasetByIdDeleteValidateBeforeCall(datasetId, null); return localVarApiClient.execute(localVarCall); } /** * Delete dataset (asynchronously) * * @param datasetId (required) * @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 -
404 Not found The dataset was not found -
*/ public okhttp3.Call datasetByIdDeleteAsync(String datasetId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = datasetByIdDeleteValidateBeforeCall(datasetId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for datasetByIdGet * @param datasetId (required) * @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 Success -
404 Not found The dataset was not found -
*/ public okhttp3.Call datasetByIdGetCall(String datasetId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/datasets/{dataset_id}" .replaceAll("\\{" + "dataset_id" + "\\}", localVarApiClient.escapeString(datasetId.toString())); 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call datasetByIdGetValidateBeforeCall(String datasetId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetId' is set if (datasetId == null) { throw new ApiException("Missing the required parameter 'datasetId' when calling datasetByIdGet(Async)"); } okhttp3.Call localVarCall = datasetByIdGetCall(datasetId, _callback); return localVarCall; } /** * Get dataset information * * @param datasetId (required) * @return DatasetAll * @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 -
404 Not found The dataset was not found -
*/ public DatasetAll datasetByIdGet(String datasetId) throws ApiException { ApiResponse localVarResp = datasetByIdGetWithHttpInfo(datasetId); return localVarResp.getData(); } /** * Get dataset information * * @param datasetId (required) * @return ApiResponse<DatasetAll> * @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 -
404 Not found The dataset was not found -
*/ public ApiResponse datasetByIdGetWithHttpInfo(String datasetId) throws ApiException { okhttp3.Call localVarCall = datasetByIdGetValidateBeforeCall(datasetId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get dataset information (asynchronously) * * @param datasetId (required) * @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 -
404 Not found The dataset was not found -
*/ public okhttp3.Call datasetByIdGetAsync(String datasetId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = datasetByIdGetValidateBeforeCall(datasetId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for datasetRecordByIdDelete * @param datasetId (required) * @param recordId (required) * @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 Success -
404 Not found The dataset or record was not found -
*/ public okhttp3.Call datasetRecordByIdDeleteCall(String datasetId, String recordId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/datasets/{dataset_id}/records/{record_id}" .replaceAll("\\{" + "dataset_id" + "\\}", localVarApiClient.escapeString(datasetId.toString())) .replaceAll("\\{" + "record_id" + "\\}", localVarApiClient.escapeString(recordId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call datasetRecordByIdDeleteValidateBeforeCall(String datasetId, String recordId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetId' is set if (datasetId == null) { throw new ApiException("Missing the required parameter 'datasetId' when calling datasetRecordByIdDelete(Async)"); } // verify the required parameter 'recordId' is set if (recordId == null) { throw new ApiException("Missing the required parameter 'recordId' when calling datasetRecordByIdDelete(Async)"); } okhttp3.Call localVarCall = datasetRecordByIdDeleteCall(datasetId, recordId, _callback); return localVarCall; } /** * Delete dataset record * * @param datasetId (required) * @param recordId (required) * @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 -
404 Not found The dataset or record was not found -
*/ public void datasetRecordByIdDelete(String datasetId, String recordId) throws ApiException { datasetRecordByIdDeleteWithHttpInfo(datasetId, recordId); } /** * Delete dataset record * * @param datasetId (required) * @param recordId (required) * @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
200 Success -
404 Not found The dataset or record was not found -
*/ public ApiResponse datasetRecordByIdDeleteWithHttpInfo(String datasetId, String recordId) throws ApiException { okhttp3.Call localVarCall = datasetRecordByIdDeleteValidateBeforeCall(datasetId, recordId, null); return localVarApiClient.execute(localVarCall); } /** * Delete dataset record (asynchronously) * * @param datasetId (required) * @param recordId (required) * @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 -
404 Not found The dataset or record was not found -
*/ public okhttp3.Call datasetRecordByIdDeleteAsync(String datasetId, String recordId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = datasetRecordByIdDeleteValidateBeforeCall(datasetId, recordId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for datasetRecordByIdGet * @param datasetId (required) * @param recordId (required) * @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 Success -
404 Not found The dataset or record was not found -
*/ public okhttp3.Call datasetRecordByIdGetCall(String datasetId, String recordId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/datasets/{dataset_id}/records/{record_id}" .replaceAll("\\{" + "dataset_id" + "\\}", localVarApiClient.escapeString(datasetId.toString())) .replaceAll("\\{" + "record_id" + "\\}", localVarApiClient.escapeString(recordId.toString())); 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call datasetRecordByIdGetValidateBeforeCall(String datasetId, String recordId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetId' is set if (datasetId == null) { throw new ApiException("Missing the required parameter 'datasetId' when calling datasetRecordByIdGet(Async)"); } // verify the required parameter 'recordId' is set if (recordId == null) { throw new ApiException("Missing the required parameter 'recordId' when calling datasetRecordByIdGet(Async)"); } okhttp3.Call localVarCall = datasetRecordByIdGetCall(datasetId, recordId, _callback); return localVarCall; } /** * Get dataset record information * * @param datasetId (required) * @param recordId (required) * @return DatasetRecordAll * @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 -
404 Not found The dataset or record was not found -
*/ public DatasetRecordAll datasetRecordByIdGet(String datasetId, String recordId) throws ApiException { ApiResponse localVarResp = datasetRecordByIdGetWithHttpInfo(datasetId, recordId); return localVarResp.getData(); } /** * Get dataset record information * * @param datasetId (required) * @param recordId (required) * @return ApiResponse<DatasetRecordAll> * @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 -
404 Not found The dataset or record was not found -
*/ public ApiResponse datasetRecordByIdGetWithHttpInfo(String datasetId, String recordId) throws ApiException { okhttp3.Call localVarCall = datasetRecordByIdGetValidateBeforeCall(datasetId, recordId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get dataset record information (asynchronously) * * @param datasetId (required) * @param recordId (required) * @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 -
404 Not found The dataset or record was not found -
*/ public okhttp3.Call datasetRecordByIdGetAsync(String datasetId, String recordId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = datasetRecordByIdGetValidateBeforeCall(datasetId, recordId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for datasetsGet * @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 Success -
*/ public okhttp3.Call datasetsGetCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/datasets"; 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call datasetsGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = datasetsGetCall(_callback); return localVarCall; } /** * Get available datasets * * @return DatasetListResponse * @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 -
*/ public DatasetListResponse datasetsGet() throws ApiException { ApiResponse localVarResp = datasetsGetWithHttpInfo(); return localVarResp.getData(); } /** * Get available datasets * * @return ApiResponse<DatasetListResponse> * @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 -
*/ public ApiResponse datasetsGetWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = datasetsGetValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get available datasets (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 -
*/ public okhttp3.Call datasetsGetAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = datasetsGetValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for datasetsPost * @param datasetCreateRequest (required) * @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
201 Created -
400 Bad request Typically because a required property was missing or the `schema` could not be parsed -
*/ public okhttp3.Call datasetsPostCall(DatasetCreateRequest datasetCreateRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = datasetCreateRequest; // create path and map variables String localVarPath = "/datasets"; 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call datasetsPostValidateBeforeCall(DatasetCreateRequest datasetCreateRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetCreateRequest' is set if (datasetCreateRequest == null) { throw new ApiException("Missing the required parameter 'datasetCreateRequest' when calling datasetsPost(Async)"); } okhttp3.Call localVarCall = datasetsPostCall(datasetCreateRequest, _callback); return localVarCall; } /** * Create dataset * * @param datasetCreateRequest (required) * @return DatasetCreateResponse * @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 -
400 Bad request Typically because a required property was missing or the `schema` could not be parsed -
*/ public DatasetCreateResponse datasetsPost(DatasetCreateRequest datasetCreateRequest) throws ApiException { ApiResponse localVarResp = datasetsPostWithHttpInfo(datasetCreateRequest); return localVarResp.getData(); } /** * Create dataset * * @param datasetCreateRequest (required) * @return ApiResponse<DatasetCreateResponse> * @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 -
400 Bad request Typically because a required property was missing or the `schema` could not be parsed -
*/ public ApiResponse datasetsPostWithHttpInfo(DatasetCreateRequest datasetCreateRequest) throws ApiException { okhttp3.Call localVarCall = datasetsPostValidateBeforeCall(datasetCreateRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create dataset (asynchronously) * * @param datasetCreateRequest (required) * @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 -
400 Bad request Typically because a required property was missing or the `schema` could not be parsed -
*/ public okhttp3.Call datasetsPostAsync(DatasetCreateRequest datasetCreateRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = datasetsPostValidateBeforeCall(datasetCreateRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for ingestDocumentsPost * @param datasetId (required) * @param ingestDocumentsRequest (required) * @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
202 Accepted Records will be added and indexed asynchronously -
*/ public okhttp3.Call ingestDocumentsPostCall(String datasetId, IngestDocumentsRequest ingestDocumentsRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = ingestDocumentsRequest; // create path and map variables String localVarPath = "/datasets/{dataset_id}/ingest_documents" .replaceAll("\\{" + "dataset_id" + "\\}", localVarApiClient.escapeString(datasetId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call ingestDocumentsPostValidateBeforeCall(String datasetId, IngestDocumentsRequest ingestDocumentsRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetId' is set if (datasetId == null) { throw new ApiException("Missing the required parameter 'datasetId' when calling ingestDocumentsPost(Async)"); } // verify the required parameter 'ingestDocumentsRequest' is set if (ingestDocumentsRequest == null) { throw new ApiException("Missing the required parameter 'ingestDocumentsRequest' when calling ingestDocumentsPost(Async)"); } okhttp3.Call localVarCall = ingestDocumentsPostCall(datasetId, ingestDocumentsRequest, _callback); return localVarCall; } /** * Initiate ingestion of data from a list of documents. * Using this endpoint you can initiate data ingestion based on text documents. Each document will be processed using the `identify` service and the resolved/identified entities will then be added to the dataset as records. * @param datasetId (required) * @param ingestDocumentsRequest (required) * @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
202 Accepted Records will be added and indexed asynchronously -
*/ public void ingestDocumentsPost(String datasetId, IngestDocumentsRequest ingestDocumentsRequest) throws ApiException { ingestDocumentsPostWithHttpInfo(datasetId, ingestDocumentsRequest); } /** * Initiate ingestion of data from a list of documents. * Using this endpoint you can initiate data ingestion based on text documents. Each document will be processed using the `identify` service and the resolved/identified entities will then be added to the dataset as records. * @param datasetId (required) * @param ingestDocumentsRequest (required) * @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
202 Accepted Records will be added and indexed asynchronously -
*/ public ApiResponse ingestDocumentsPostWithHttpInfo(String datasetId, IngestDocumentsRequest ingestDocumentsRequest) throws ApiException { okhttp3.Call localVarCall = ingestDocumentsPostValidateBeforeCall(datasetId, ingestDocumentsRequest, null); return localVarApiClient.execute(localVarCall); } /** * Initiate ingestion of data from a list of documents. (asynchronously) * Using this endpoint you can initiate data ingestion based on text documents. Each document will be processed using the `identify` service and the resolved/identified entities will then be added to the dataset as records. * @param datasetId (required) * @param ingestDocumentsRequest (required) * @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
202 Accepted Records will be added and indexed asynchronously -
*/ public okhttp3.Call ingestDocumentsPostAsync(String datasetId, IngestDocumentsRequest ingestDocumentsRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = ingestDocumentsPostValidateBeforeCall(datasetId, ingestDocumentsRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for ingestFilePost * @param datasetId (required) * @param ingestFileRequest (required) * @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 File ingestion staged - upload URL provided. responses: -
*/ public okhttp3.Call ingestFilePostCall(String datasetId, IngestFileRequest ingestFileRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = ingestFileRequest; // create path and map variables String localVarPath = "/datasets/{dataset_id}/ingest_file" .replaceAll("\\{" + "dataset_id" + "\\}", localVarApiClient.escapeString(datasetId.toString())); 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call ingestFilePostValidateBeforeCall(String datasetId, IngestFileRequest ingestFileRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetId' is set if (datasetId == null) { throw new ApiException("Missing the required parameter 'datasetId' when calling ingestFilePost(Async)"); } // verify the required parameter 'ingestFileRequest' is set if (ingestFileRequest == null) { throw new ApiException("Missing the required parameter 'ingestFileRequest' when calling ingestFilePost(Async)"); } okhttp3.Call localVarCall = ingestFilePostCall(datasetId, ingestFileRequest, _callback); return localVarCall; } /** * Initiate ingestion of data from file upload. * Using this endpoint you can initiate data ingestion based on file upload. This endpoint does not accept the actual file for processing, but will validate the request and provide a presigned URL with which the client can continue. The uploaded file will be handled according to the `file_type` provided in the request. In the response of this request, a upload file URL will be provided. The client is expected to `PUT` the file contents towards this URL. Once the file has been uploaded, it will be handled asynchronously. * @param datasetId (required) * @param ingestFileRequest (required) * @return IngestFileResponse * @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 File ingestion staged - upload URL provided. responses: -
*/ public IngestFileResponse ingestFilePost(String datasetId, IngestFileRequest ingestFileRequest) throws ApiException { ApiResponse localVarResp = ingestFilePostWithHttpInfo(datasetId, ingestFileRequest); return localVarResp.getData(); } /** * Initiate ingestion of data from file upload. * Using this endpoint you can initiate data ingestion based on file upload. This endpoint does not accept the actual file for processing, but will validate the request and provide a presigned URL with which the client can continue. The uploaded file will be handled according to the `file_type` provided in the request. In the response of this request, a upload file URL will be provided. The client is expected to `PUT` the file contents towards this URL. Once the file has been uploaded, it will be handled asynchronously. * @param datasetId (required) * @param ingestFileRequest (required) * @return ApiResponse<IngestFileResponse> * @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 File ingestion staged - upload URL provided. responses: -
*/ public ApiResponse ingestFilePostWithHttpInfo(String datasetId, IngestFileRequest ingestFileRequest) throws ApiException { okhttp3.Call localVarCall = ingestFilePostValidateBeforeCall(datasetId, ingestFileRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Initiate ingestion of data from file upload. (asynchronously) * Using this endpoint you can initiate data ingestion based on file upload. This endpoint does not accept the actual file for processing, but will validate the request and provide a presigned URL with which the client can continue. The uploaded file will be handled according to the `file_type` provided in the request. In the response of this request, a upload file URL will be provided. The client is expected to `PUT` the file contents towards this URL. Once the file has been uploaded, it will be handled asynchronously. * @param datasetId (required) * @param ingestFileRequest (required) * @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 File ingestion staged - upload URL provided. responses: -
*/ public okhttp3.Call ingestFilePostAsync(String datasetId, IngestFileRequest ingestFileRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = ingestFilePostValidateBeforeCall(datasetId, ingestFileRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for recordsGet * @param datasetId (required) * @param pageSize The page size for the response content (optional, default to 100d) * @param pageAfter A cursor ID to provide for getting the next page of the records. (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 Success -
404 Not found The dataset was not found -
*/ public okhttp3.Call recordsGetCall(String datasetId, BigDecimal pageSize, String pageAfter, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/datasets/{dataset_id}/records" .replaceAll("\\{" + "dataset_id" + "\\}", localVarApiClient.escapeString(datasetId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[size]", pageSize)); } if (pageAfter != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[after]", pageAfter)); } 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call recordsGetValidateBeforeCall(String datasetId, BigDecimal pageSize, String pageAfter, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetId' is set if (datasetId == null) { throw new ApiException("Missing the required parameter 'datasetId' when calling recordsGet(Async)"); } okhttp3.Call localVarCall = recordsGetCall(datasetId, pageSize, pageAfter, _callback); return localVarCall; } /** * Query records * * @param datasetId (required) * @param pageSize The page size for the response content (optional, default to 100d) * @param pageAfter A cursor ID to provide for getting the next page of the records. (optional) * @return RecordsQueryResponse * @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 -
404 Not found The dataset was not found -
*/ public RecordsQueryResponse recordsGet(String datasetId, BigDecimal pageSize, String pageAfter) throws ApiException { ApiResponse localVarResp = recordsGetWithHttpInfo(datasetId, pageSize, pageAfter); return localVarResp.getData(); } /** * Query records * * @param datasetId (required) * @param pageSize The page size for the response content (optional, default to 100d) * @param pageAfter A cursor ID to provide for getting the next page of the records. (optional) * @return ApiResponse<RecordsQueryResponse> * @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 -
404 Not found The dataset was not found -
*/ public ApiResponse recordsGetWithHttpInfo(String datasetId, BigDecimal pageSize, String pageAfter) throws ApiException { okhttp3.Call localVarCall = recordsGetValidateBeforeCall(datasetId, pageSize, pageAfter, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Query records (asynchronously) * * @param datasetId (required) * @param pageSize The page size for the response content (optional, default to 100d) * @param pageAfter A cursor ID to provide for getting the next page of the records. (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 Success -
404 Not found The dataset was not found -
*/ public okhttp3.Call recordsGetAsync(String datasetId, BigDecimal pageSize, String pageAfter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = recordsGetValidateBeforeCall(datasetId, pageSize, pageAfter, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for recordsPost * @param datasetId (required) * @param recordsUploadRequest (required) * @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
202 Accepted Records will be indexed asynchronously -
400 Bad request Typically because one or more records did not conform to the `schema` of the dataset -
404 Not found The dataset was not found -
*/ public okhttp3.Call recordsPostCall(String datasetId, RecordsUploadRequest recordsUploadRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = recordsUploadRequest; // create path and map variables String localVarPath = "/datasets/{dataset_id}/records" .replaceAll("\\{" + "dataset_id" + "\\}", localVarApiClient.escapeString(datasetId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { }; 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[] { "bearerAuth", "oAuth2ClientCredentials" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call recordsPostValidateBeforeCall(String datasetId, RecordsUploadRequest recordsUploadRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'datasetId' is set if (datasetId == null) { throw new ApiException("Missing the required parameter 'datasetId' when calling recordsPost(Async)"); } // verify the required parameter 'recordsUploadRequest' is set if (recordsUploadRequest == null) { throw new ApiException("Missing the required parameter 'recordsUploadRequest' when calling recordsPost(Async)"); } okhttp3.Call localVarCall = recordsPostCall(datasetId, recordsUploadRequest, _callback); return localVarCall; } /** * Upload records * * @param datasetId (required) * @param recordsUploadRequest (required) * @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
202 Accepted Records will be indexed asynchronously -
400 Bad request Typically because one or more records did not conform to the `schema` of the dataset -
404 Not found The dataset was not found -
*/ public void recordsPost(String datasetId, RecordsUploadRequest recordsUploadRequest) throws ApiException { recordsPostWithHttpInfo(datasetId, recordsUploadRequest); } /** * Upload records * * @param datasetId (required) * @param recordsUploadRequest (required) * @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
202 Accepted Records will be indexed asynchronously -
400 Bad request Typically because one or more records did not conform to the `schema` of the dataset -
404 Not found The dataset was not found -
*/ public ApiResponse recordsPostWithHttpInfo(String datasetId, RecordsUploadRequest recordsUploadRequest) throws ApiException { okhttp3.Call localVarCall = recordsPostValidateBeforeCall(datasetId, recordsUploadRequest, null); return localVarApiClient.execute(localVarCall); } /** * Upload records (asynchronously) * * @param datasetId (required) * @param recordsUploadRequest (required) * @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
202 Accepted Records will be indexed asynchronously -
400 Bad request Typically because one or more records did not conform to the `schema` of the dataset -
404 Not found The dataset was not found -
*/ public okhttp3.Call recordsPostAsync(String datasetId, RecordsUploadRequest recordsUploadRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = recordsPostValidateBeforeCall(datasetId, recordsUploadRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy