Package io.lenra.api.internal.client
Class DataApi
java.lang.Object
io.lenra.api.internal.client.DataApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAborts a transactionokhttp3.CallabortTransactionAsync(ApiCallback<Void> _callback) Aborts a transaction (asynchronously)okhttp3.CallabortTransactionCall(ApiCallback _callback) Build call for abortTransactionAborts a transactionvoidCommits a transactionokhttp3.CallcommitTransactionAsync(ApiCallback<Void> _callback) Commits a transaction (asynchronously)okhttp3.CallcommitTransactionCall(ApiCallback _callback) Build call for commitTransactionCommits a transactioncreateDocument(String coll, Object body) Creates one document in databaseokhttp3.CallcreateDocumentAsync(String coll, Object body, ApiCallback<Map<String, Object>> _callback) Creates one document in database (asynchronously)okhttp3.CallcreateDocumentCall(String coll, Object body, ApiCallback _callback) Build call for createDocumentcreateDocumentWithHttpInfo(String coll, Object body) Creates one document in databaseCreates a transactionokhttp3.CallcreateTransactionAsync(ApiCallback<String> _callback) Creates a transaction (asynchronously)okhttp3.CallcreateTransactionCall(ApiCallback _callback) Build call for createTransactionCreates a transactionvoiddeleteCollection(String coll) Deletes a collection from databaseokhttp3.CalldeleteCollectionAsync(String coll, ApiCallback<Void> _callback) Deletes a collection from database (asynchronously)okhttp3.CalldeleteCollectionCall(String coll, ApiCallback _callback) Build call for deleteCollectionDeletes a collection from databasedeleteDocumentById(String coll, String id) Deletes a document from databaseokhttp3.CalldeleteDocumentByIdAsync(String coll, String id, ApiCallback<Map<String, Object>> _callback) Deletes a document from database (asynchronously)okhttp3.CalldeleteDocumentByIdCall(String coll, String id, ApiCallback _callback) Build call for deleteDocumentByIddeleteDocumentByIdWithHttpInfo(String coll, String id) Deletes a document from databasefindDocuments(String coll, FindDocumentsRequest findDocumentsRequest) Finds documents in databaseokhttp3.CallfindDocumentsAsync(String coll, FindDocumentsRequest findDocumentsRequest, ApiCallback<List<Map<String, Object>>> _callback) Finds documents in database (asynchronously)okhttp3.CallfindDocumentsCall(String coll, FindDocumentsRequest findDocumentsRequest, ApiCallback _callback) Build call for findDocumentsfindDocumentsWithHttpInfo(String coll, FindDocumentsRequest findDocumentsRequest) Finds documents in databasegetDocumentById(String coll, String id) Gets a document from databaseokhttp3.CallgetDocumentByIdAsync(String coll, String id, ApiCallback<Map<String, Object>> _callback) Gets a document from database (asynchronously)okhttp3.CallgetDocumentByIdCall(String coll, String id, ApiCallback _callback) Build call for getDocumentByIdgetDocumentByIdWithHttpInfo(String coll, String id) Gets a document from databasegetDocuments(String coll) Gets documents from databaseokhttp3.CallgetDocumentsAsync(String coll, ApiCallback<List<Map<String, Object>>> _callback) Gets documents from database (asynchronously)okhttp3.CallgetDocumentsCall(String coll, ApiCallback _callback) Build call for getDocumentsGets documents from databaseintinsertManyDocuments(String coll, InsertManyDocumentsRequest insertManyDocumentsRequest) Inserts many documents in databaseokhttp3.CallinsertManyDocumentsAsync(String coll, InsertManyDocumentsRequest insertManyDocumentsRequest, ApiCallback<InsertManyDocuments200Response> _callback) Inserts many documents in database (asynchronously)okhttp3.CallinsertManyDocumentsCall(String coll, InsertManyDocumentsRequest insertManyDocumentsRequest, ApiCallback _callback) Build call for insertManyDocumentsinsertManyDocumentsWithHttpInfo(String coll, InsertManyDocumentsRequest insertManyDocumentsRequest) Inserts many documents in databasevoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) Updates a document in databaseokhttp3.CallupdateDocumentByIdAsync(String coll, String id, Map<String, Object> requestBody, ApiCallback<Map<String, Object>> _callback) Updates a document in database (asynchronously)okhttp3.CallupdateDocumentByIdCall(String coll, String id, Map<String, Object> requestBody, ApiCallback _callback) Build call for updateDocumentByIdUpdates a document in databaseupdateManyDocuments(String coll, UpdateManyDocumentsRequest updateManyDocumentsRequest) Updates many documents in databaseokhttp3.CallupdateManyDocumentsAsync(String coll, UpdateManyDocumentsRequest updateManyDocumentsRequest, ApiCallback<Object> _callback) Updates many documents in database (asynchronously)okhttp3.CallupdateManyDocumentsCall(String coll, UpdateManyDocumentsRequest updateManyDocumentsRequest, ApiCallback _callback) Build call for updateManyDocumentsupdateManyDocumentsWithHttpInfo(String coll, UpdateManyDocumentsRequest updateManyDocumentsRequest) Updates many documents in database
-
Constructor Details
-
DataApi
public DataApi() -
DataApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
abortTransactionCall
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
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
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
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
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
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
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
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
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 ApiExceptionCreates 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
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
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
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
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
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
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
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
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 ApiExceptionDeletes 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 ApiExceptionFinds 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
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 ApiExceptionGets 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
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
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 ApiExceptionGets 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 ApiExceptionBuild 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 ApiExceptionUpdates 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 ApiExceptionUpdates 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, throws ApiExceptionObject>> _callback) 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 -
-