Class DataApi

java.lang.Object
io.lenra.api.internal.client.DataApi

public class DataApi extends Object
  • Constructor Details

    • DataApi

      public DataApi()
    • DataApi

      public DataApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • abortTransactionCall

      public okhttp3.Call abortTransactionCall(ApiCallback _callback) throws ApiException
      Build call for abortTransaction
      Parameters:
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Transaction aborted -
    • abortTransaction

      public void abortTransaction() throws ApiException
      Aborts a transaction
      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 Transaction aborted -
    • abortTransactionWithHttpInfo

      public ApiResponse<Void> abortTransactionWithHttpInfo() throws ApiException
      Aborts a transaction
      Returns:
      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 Transaction aborted -
    • abortTransactionAsync

      public okhttp3.Call abortTransactionAsync(ApiCallback<Void> _callback) throws ApiException
      Aborts a transaction (asynchronously)
      Parameters:
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Transaction aborted -
    • commitTransactionCall

      public okhttp3.Call commitTransactionCall(ApiCallback _callback) throws ApiException
      Build call for commitTransaction
      Parameters:
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Transaction commited -
    • commitTransaction

      public void commitTransaction() throws ApiException
      Commits a transaction
      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 Transaction commited -
    • commitTransactionWithHttpInfo

      public ApiResponse<Void> commitTransactionWithHttpInfo() throws ApiException
      Commits a transaction
      Returns:
      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 Transaction commited -
    • commitTransactionAsync

      public okhttp3.Call commitTransactionAsync(ApiCallback<Void> _callback) throws ApiException
      Commits a transaction (asynchronously)
      Parameters:
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Transaction commited -
    • createDocumentCall

      public okhttp3.Call createDocumentCall(String coll, Object body, ApiCallback _callback) throws ApiException
      Build call for createDocument
      Parameters:
      coll - The document collection name (required)
      body - The document to create (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Document created -
    • createDocument

      public Map<String,Object> createDocument(String coll, Object body) throws ApiException
      Creates one document in database
      Parameters:
      coll - The document collection name (required)
      body - The document to create (required)
      Returns:
      Map<String, Object>
      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 Document created -
    • createDocumentWithHttpInfo

      public ApiResponse<Map<String,Object>> createDocumentWithHttpInfo(String coll, Object body) throws ApiException
      Creates one document in database
      Parameters:
      coll - The document collection name (required)
      body - The document to create (required)
      Returns:
      ApiResponse<Map<String, Object>>
      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 Document created -
    • createDocumentAsync

      public okhttp3.Call createDocumentAsync(String coll, Object body, ApiCallback<Map<String,Object>> _callback) throws ApiException
      Creates one document in database (asynchronously)
      Parameters:
      coll - The document collection name (required)
      body - The document to create (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Document created -
    • createTransactionCall

      public okhttp3.Call createTransactionCall(ApiCallback _callback) throws ApiException
      Build call for createTransaction
      Parameters:
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Transaction created -
    • createTransaction

      public String createTransaction() throws ApiException
      Creates a transaction
      Returns:
      String
      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 Transaction created -
    • createTransactionWithHttpInfo

      public ApiResponse<String> createTransactionWithHttpInfo() throws ApiException
      Creates a transaction
      Returns:
      ApiResponse<String>
      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 Transaction created -
    • createTransactionAsync

      public okhttp3.Call createTransactionAsync(ApiCallback<String> _callback) throws ApiException
      Creates a transaction (asynchronously)
      Parameters:
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Transaction created -
    • deleteCollectionCall

      public okhttp3.Call deleteCollectionCall(String coll, ApiCallback _callback) throws ApiException
      Build call for deleteCollection
      Parameters:
      coll - The document collection name (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Collection deleted -
    • deleteCollection

      public void deleteCollection(String coll) throws ApiException
      Deletes a collection from database
      Parameters:
      coll - The document collection name (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 Collection deleted -
    • deleteCollectionWithHttpInfo

      public ApiResponse<Void> deleteCollectionWithHttpInfo(String coll) throws ApiException
      Deletes a collection from database
      Parameters:
      coll - The document collection name (required)
      Returns:
      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 Collection deleted -
    • deleteCollectionAsync

      public okhttp3.Call deleteCollectionAsync(String coll, ApiCallback<Void> _callback) throws ApiException
      Deletes a collection from database (asynchronously)
      Parameters:
      coll - The document collection name (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Collection deleted -
    • deleteDocumentByIdCall

      public okhttp3.Call deleteDocumentByIdCall(String coll, String id, ApiCallback _callback) throws ApiException
      Build call for deleteDocumentById
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Document deleted -
    • deleteDocumentById

      public Map<String,Object> deleteDocumentById(String coll, String id) throws ApiException
      Deletes a document from database
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      Returns:
      Map<String, Object>
      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 Document deleted -
    • deleteDocumentByIdWithHttpInfo

      public ApiResponse<Map<String,Object>> deleteDocumentByIdWithHttpInfo(String coll, String id) throws ApiException
      Deletes a document from database
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      Returns:
      ApiResponse<Map<String, Object>>
      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 Document deleted -
    • deleteDocumentByIdAsync

      public okhttp3.Call deleteDocumentByIdAsync(String coll, String id, ApiCallback<Map<String,Object>> _callback) throws ApiException
      Deletes a document from database (asynchronously)
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Document deleted -
    • findDocumentsCall

      public okhttp3.Call findDocumentsCall(String coll, FindDocumentsRequest findDocumentsRequest, ApiCallback _callback) throws ApiException
      Build call for findDocuments
      Parameters:
      coll - The document collection name (required)
      findDocumentsRequest - The query to find documents (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Documents found -
    • findDocuments

      public List<Map<String,Object>> findDocuments(String coll, FindDocumentsRequest findDocumentsRequest) throws ApiException
      Finds documents in database
      Parameters:
      coll - The document collection name (required)
      findDocumentsRequest - The query to find documents (required)
      Returns:
      List<Map<String, Object>>
      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 Documents found -
    • findDocumentsWithHttpInfo

      public ApiResponse<List<Map<String,Object>>> findDocumentsWithHttpInfo(String coll, FindDocumentsRequest findDocumentsRequest) throws ApiException
      Finds documents in database
      Parameters:
      coll - The document collection name (required)
      findDocumentsRequest - The query to find documents (required)
      Returns:
      ApiResponse<List<Map<String, Object>>>
      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 Documents found -
    • findDocumentsAsync

      public okhttp3.Call findDocumentsAsync(String coll, FindDocumentsRequest findDocumentsRequest, ApiCallback<List<Map<String,Object>>> _callback) throws ApiException
      Finds documents in database (asynchronously)
      Parameters:
      coll - The document collection name (required)
      findDocumentsRequest - The query to find documents (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Documents found -
    • getDocumentByIdCall

      public okhttp3.Call getDocumentByIdCall(String coll, String id, ApiCallback _callback) throws ApiException
      Build call for getDocumentById
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Document created -
    • getDocumentById

      public Map<String,Object> getDocumentById(String coll, String id) throws ApiException
      Gets a document from database
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      Returns:
      Map<String, Object>
      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 Document created -
    • getDocumentByIdWithHttpInfo

      public ApiResponse<Map<String,Object>> getDocumentByIdWithHttpInfo(String coll, String id) throws ApiException
      Gets a document from database
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      Returns:
      ApiResponse<Map<String, Object>>
      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 Document created -
    • getDocumentByIdAsync

      public okhttp3.Call getDocumentByIdAsync(String coll, String id, ApiCallback<Map<String,Object>> _callback) throws ApiException
      Gets a document from database (asynchronously)
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Document created -
    • getDocumentsCall

      public okhttp3.Call getDocumentsCall(String coll, ApiCallback _callback) throws ApiException
      Build call for getDocuments
      Parameters:
      coll - The document collection name (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Documents found -
    • getDocuments

      public List<Map<String,Object>> getDocuments(String coll) throws ApiException
      Gets documents from database
      Parameters:
      coll - The document collection name (required)
      Returns:
      List<Map<String, Object>>
      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 Documents found -
    • getDocumentsWithHttpInfo

      public ApiResponse<List<Map<String,Object>>> getDocumentsWithHttpInfo(String coll) throws ApiException
      Gets documents from database
      Parameters:
      coll - The document collection name (required)
      Returns:
      ApiResponse<List<Map<String, Object>>>
      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 Documents found -
    • getDocumentsAsync

      public okhttp3.Call getDocumentsAsync(String coll, ApiCallback<List<Map<String,Object>>> _callback) throws ApiException
      Gets documents from database (asynchronously)
      Parameters:
      coll - The document collection name (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Documents found -
    • insertManyDocumentsCall

      public okhttp3.Call insertManyDocumentsCall(String coll, InsertManyDocumentsRequest insertManyDocumentsRequest, ApiCallback _callback) throws ApiException
      Build call for insertManyDocuments
      Parameters:
      coll - The documents collection name (required)
      insertManyDocumentsRequest - The documents to create (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Documents inserted -
    • insertManyDocuments

      public InsertManyDocuments200Response insertManyDocuments(String coll, InsertManyDocumentsRequest insertManyDocumentsRequest) throws ApiException
      Inserts many documents in database
      Parameters:
      coll - The documents collection name (required)
      insertManyDocumentsRequest - The documents to create (required)
      Returns:
      InsertManyDocuments200Response
      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 Documents inserted -
    • insertManyDocumentsWithHttpInfo

      public ApiResponse<InsertManyDocuments200Response> insertManyDocumentsWithHttpInfo(String coll, InsertManyDocumentsRequest insertManyDocumentsRequest) throws ApiException
      Inserts many documents in database
      Parameters:
      coll - The documents collection name (required)
      insertManyDocumentsRequest - The documents to create (required)
      Returns:
      ApiResponse<InsertManyDocuments200Response>
      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 Documents inserted -
    • insertManyDocumentsAsync

      public okhttp3.Call insertManyDocumentsAsync(String coll, InsertManyDocumentsRequest insertManyDocumentsRequest, ApiCallback<InsertManyDocuments200Response> _callback) throws ApiException
      Inserts many documents in database (asynchronously)
      Parameters:
      coll - The documents collection name (required)
      insertManyDocumentsRequest - The documents to create (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Documents inserted -
    • updateDocumentByIdCall

      public okhttp3.Call updateDocumentByIdCall(String coll, String id, Map<String,Object> requestBody, ApiCallback _callback) throws ApiException
      Build call for updateDocumentById
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      requestBody - The document to update (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Document updated -
    • updateDocumentById

      public Map<String,Object> updateDocumentById(String coll, String id, Map<String,Object> requestBody) throws ApiException
      Updates a document in database
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      requestBody - The document to update (required)
      Returns:
      Map<String, Object>
      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 Document updated -
    • updateDocumentByIdWithHttpInfo

      public ApiResponse<Map<String,Object>> updateDocumentByIdWithHttpInfo(String coll, String id, Map<String,Object> requestBody) throws ApiException
      Updates a document in database
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      requestBody - The document to update (required)
      Returns:
      ApiResponse<Map<String, Object>>
      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 Document updated -
    • updateDocumentByIdAsync

      public okhttp3.Call updateDocumentByIdAsync(String coll, String id, Map<String,Object> requestBody, ApiCallback<Map<String,Object>> _callback) throws ApiException
      Updates a document in database (asynchronously)
      Parameters:
      coll - The document collection name (required)
      id - The document identifier (required)
      requestBody - The document to update (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Document updated -
    • updateManyDocumentsCall

      public okhttp3.Call updateManyDocumentsCall(String coll, UpdateManyDocumentsRequest updateManyDocumentsRequest, ApiCallback _callback) throws ApiException
      Build call for updateManyDocuments
      Parameters:
      coll - The document collection name (required)
      updateManyDocumentsRequest - The query to find documents (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details
      Status Code Description Response Headers
      200 Documents updated -
    • updateManyDocuments

      public Object updateManyDocuments(String coll, UpdateManyDocumentsRequest updateManyDocumentsRequest) throws ApiException
      Updates many documents in database
      Parameters:
      coll - The document collection name (required)
      updateManyDocumentsRequest - The query to find documents (required)
      Returns:
      Object
      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 Documents updated -
    • updateManyDocumentsWithHttpInfo

      public ApiResponse<Object> updateManyDocumentsWithHttpInfo(String coll, UpdateManyDocumentsRequest updateManyDocumentsRequest) throws ApiException
      Updates many documents in database
      Parameters:
      coll - The document collection name (required)
      updateManyDocumentsRequest - The query to find documents (required)
      Returns:
      ApiResponse<Object>
      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 Documents updated -
    • updateManyDocumentsAsync

      public okhttp3.Call updateManyDocumentsAsync(String coll, UpdateManyDocumentsRequest updateManyDocumentsRequest, ApiCallback<Object> _callback) throws ApiException
      Updates many documents in database (asynchronously)
      Parameters:
      coll - The document collection name (required)
      updateManyDocumentsRequest - The query to find documents (required)
      _callback - The callback to be executed when the API call finishes
      Returns:
      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 Documents updated -