diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java
index add8a4865..54eb6a9af 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java
@@ -1,11 +1,15 @@
package com.sap.ai.sdk.grounding.client;
import com.google.common.annotations.Beta;
-import com.sap.ai.sdk.grounding.model.Pipeline;
+import com.sap.ai.sdk.grounding.model.CreatePipeline;
+import com.sap.ai.sdk.grounding.model.DocumentsStatusResponse;
+import com.sap.ai.sdk.grounding.model.GetPipeline;
+import com.sap.ai.sdk.grounding.model.GetPipelineExecutionById;
+import com.sap.ai.sdk.grounding.model.GetPipelineExecutions;
+import com.sap.ai.sdk.grounding.model.GetPipelineStatus;
+import com.sap.ai.sdk.grounding.model.GetPipelines;
+import com.sap.ai.sdk.grounding.model.PipelineDocumentResponse;
import com.sap.ai.sdk.grounding.model.PipelineId;
-import com.sap.ai.sdk.grounding.model.PipelinePostRequst;
-import com.sap.ai.sdk.grounding.model.PipelineStatus;
-import com.sap.ai.sdk.grounding.model.Pipelines;
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination;
import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient;
import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService;
@@ -25,13 +29,17 @@
import org.springframework.web.util.UriComponentsBuilder;
/**
- * Document Grounding Pipeline API in version 0.1.0.
+ * Grounding in version 0.1.0.
*
- *
SAP AI Core - API Specification AI Data Management api's
+ *
Grounding is a service designed to handle data-related tasks, such as grounding and retrieval,
+ * using vector databases. It provides specialized data retrieval through these databases, grounding
+ * the retrieval process with your own external and context-relevant data. Grounding combines
+ * generative AI capabilities with the ability to use real-time, precise data to improve
+ * decision-making and business operations for specific AI-driven business solutions.
*/
public class PipelinesApi extends AbstractOpenApiService {
/**
- * Instantiates this API class to invoke operations on the Document Grounding Pipeline API.
+ * Instantiates this API class to invoke operations on the Grounding.
*
* @param httpDestination The destination that API should be used with
*/
@@ -40,8 +48,8 @@ public PipelinesApi(@Nonnull final Destination httpDestination) {
}
/**
- * Instantiates this API class to invoke operations on the Document Grounding Pipeline API based
- * on a given {@link ApiClient}.
+ * Instantiates this API class to invoke operations on the Grounding based on a given {@link
+ * ApiClient}.
*
* @param apiClient ApiClient to invoke the API on
*/
@@ -51,22 +59,24 @@ public PipelinesApi(@Nonnull final ApiClient apiClient) {
}
/**
- * Create a pipeline
+ * Pipeline Creation
+ *
+ *
Create a pipeline
*
*
201 - Returns pipelineId on successful creation.
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param pipelinePostRequst The value for the parameter pipelinePostRequst
+ * @param aiResourceGroup Resource Group ID
+ * @param createPipeline The value for the parameter createPipeline
* @return PipelineId
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public PipelineId createPipeline(
- @Nonnull final String aiResourceGroup, @Nonnull final PipelinePostRequst pipelinePostRequst)
+ @Nonnull final String aiResourceGroup, @Nonnull final CreatePipeline createPipeline)
throws OpenApiRequestException {
- final Object localVarPostBody = pipelinePostRequst;
+ final Object localVarPostBody = createPipeline;
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
@@ -74,10 +84,10 @@ public PipelineId createPipeline(
"Missing the required parameter 'aiResourceGroup' when calling createPipeline");
}
- // verify the required parameter 'pipelinePostRequst' is set
- if (pipelinePostRequst == null) {
+ // verify the required parameter 'createPipeline' is set
+ if (createPipeline == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'pipelinePostRequst' when calling pipelineV1PipelineEndpointsCreatePipeline");
+ "Missing the required parameter 'createPipeline' when calling pipelineV1PipelineEndpointsCreatePipeline");
}
final String localVarPath = UriComponentsBuilder.fromPath("/pipelines").build().toUriString();
@@ -114,13 +124,15 @@ public PipelineId createPipeline(
}
/**
- * Delete a pipeline by pipeline id
+ * Delete pipeline
+ *
+ *
Delete a pipeline by pipeline id
*
*
204 - No Content
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
+ * @param aiResourceGroup Resource Group ID
* @param pipelineId The ID of the pipeline to delete.
* @return An OpenApiResponse containing the status code of the HttpResponse.
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
@@ -184,24 +196,26 @@ public OpenApiResponse deletePipelineById(
}
/**
- * Get all pipelines
+ * Get Pipelines
+ *
+ *
Get all pipelines
*
*
200 - Returns all pipelines for the tenant.
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup (required) The value for the parameter aiResourceGroup
+ * @param aiResourceGroup (required) Resource Group ID
* @param $top (optional) Number of results to display
* @param $skip (optional) Number of results to be skipped from the ordered list of results
* @param $count (optional) When the $count field is set to false, the response contains a count
* of the items present in the response. When the $count field is set to true, the response
* contains a count of all the items present on the server, and not just the ones in the
* response. When the $count field is not passed, it is false by default.
- * @return Pipelines
+ * @return GetPipelines
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public Pipelines getAllPipelines(
+ public GetPipelines getAllPipelines(
@Nonnull final String aiResourceGroup,
@Nullable final Integer $top,
@Nullable final Integer $skip,
@@ -237,8 +251,8 @@ public Pipelines getAllPipelines(
final String[] localVarAuthNames = new String[] {};
- final ParameterizedTypeReference localVarReturnType =
- new ParameterizedTypeReference() {};
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
return apiClient.invokeAPI(
localVarPath,
HttpMethod.GET,
@@ -253,36 +267,40 @@ public Pipelines getAllPipelines(
}
/**
- * Get all pipelines
+ * Get Pipelines
+ *
+ * Get all pipelines
*
*
200 - Returns all pipelines for the tenant.
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @return Pipelines
+ * @param aiResourceGroup Resource Group ID
+ * @return GetPipelines
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public Pipelines getAllPipelines(@Nonnull final String aiResourceGroup)
+ public GetPipelines getAllPipelines(@Nonnull final String aiResourceGroup)
throws OpenApiRequestException {
return getAllPipelines(aiResourceGroup, null, null, null);
}
/**
- * Get details of a pipeline by pipeline id
+ * Get details of a Pipeline
+ *
+ *
Get details of a pipeline by pipeline id
*
*
200 - Returns the pipeline for an pipelineId
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
+ * @param aiResourceGroup Resource Group ID
* @param pipelineId The ID of the pipeline to get.
- * @return Pipeline
+ * @return GetPipeline
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public Pipeline getPipelineById(
+ public GetPipeline getPipelineDetailsById(
@Nonnull final String aiResourceGroup, @Nonnull final String pipelineId)
throws OpenApiRequestException {
final Object localVarPostBody = null;
@@ -290,13 +308,13 @@ public Pipeline getPipelineById(
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling getPipelineById");
+ "Missing the required parameter 'aiResourceGroup' when calling getPipelineDetailsById");
}
// verify the required parameter 'pipelineId' is set
if (pipelineId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'pipelineId' when calling getPipelineById");
+ "Missing the required parameter 'pipelineId' when calling getPipelineDetailsById");
}
// create path and map variables
@@ -323,8 +341,87 @@ public Pipeline getPipelineById(
final String[] localVarAuthNames = new String[] {};
- final ParameterizedTypeReference localVarReturnType =
- new ParameterizedTypeReference() {};
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ HttpMethod.GET,
+ localVarQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType);
+ }
+
+ /**
+ * Get Document by ID for a Pipeline
+ *
+ * Retrieve details of a specific document associated with a pipeline.
+ *
+ *
200 - Returns a response to document id.
+ *
+ * @param aiResourceGroup Resource Group ID
+ * @param pipelineId The ID of the pipeline to get.
+ * @param documentId The ID of the document to get.
+ * @return PipelineDocumentResponse
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public PipelineDocumentResponse getDocumentByIdForPipeline(
+ @Nonnull final String aiResourceGroup,
+ @Nonnull final String pipelineId,
+ @Nonnull final String documentId)
+ throws OpenApiRequestException {
+ final Object localVarPostBody = null;
+
+ // verify the required parameter 'aiResourceGroup' is set
+ if (aiResourceGroup == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'aiResourceGroup' when calling getDocumentByIdForPipeline");
+ }
+
+ // verify the required parameter 'pipelineId' is set
+ if (pipelineId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'pipelineId' when calling getDocumentByIdForPipeline");
+ }
+
+ // verify the required parameter 'documentId' is set
+ if (documentId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'documentId' when calling getDocumentByIdForPipeline");
+ }
+
+ // create path and map variables
+ final Map localVarPathParams = new HashMap();
+ localVarPathParams.put("pipelineId", pipelineId);
+ localVarPathParams.put("documentId", documentId);
+ final String localVarPath =
+ UriComponentsBuilder.fromPath("/pipelines/{pipelineId}/documents/{documentId}")
+ .buildAndExpand(localVarPathParams)
+ .toUriString();
+
+ final MultiValueMap localVarQueryParams =
+ new LinkedMultiValueMap();
+ final HttpHeaders localVarHeaderParams = new HttpHeaders();
+ final MultiValueMap localVarFormParams =
+ new LinkedMultiValueMap();
+
+ if (aiResourceGroup != null)
+ localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
+
+ final String[] localVarAccepts = {"application/json"};
+ final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {};
+ final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ final String[] localVarAuthNames = new String[] {};
+
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
return apiClient.invokeAPI(
localVarPath,
HttpMethod.GET,
@@ -339,19 +436,518 @@ public Pipeline getPipelineById(
}
/**
- * Get pipeline status by pipeline id
+ * Get Documents for a Pipeline
+ *
+ * Retrieve all documents associated with a specific pipeline. Optionally, filter the results
+ * using query parameters.
+ *
+ *
200 - Returns all documents for a pipeline.
+ *
+ * @param aiResourceGroup (required) Resource Group ID
+ * @param pipelineId (required) The ID of the pipeline to get.
+ * @param $top (optional) Number of results to display
+ * @param $skip (optional) Number of results to be skipped from the ordered list of results
+ * @param $count (optional) When the $count field is set to false, the response contains a count
+ * of the items present in the response. When the $count field is set to true, the response
+ * contains a count of all the items present on the server, and not just the ones in the
+ * response. When the $count field is not passed, it is false by default.
+ * @return DocumentsStatusResponse
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public DocumentsStatusResponse getAllDocumentsForPipeline(
+ @Nonnull final String aiResourceGroup,
+ @Nonnull final String pipelineId,
+ @Nullable final Integer $top,
+ @Nullable final Integer $skip,
+ @Nullable final Boolean $count)
+ throws OpenApiRequestException {
+ final Object localVarPostBody = null;
+
+ // verify the required parameter 'aiResourceGroup' is set
+ if (aiResourceGroup == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'aiResourceGroup' when calling getAllDocumentsForPipeline");
+ }
+
+ // verify the required parameter 'pipelineId' is set
+ if (pipelineId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'pipelineId' when calling getAllDocumentsForPipeline");
+ }
+
+ // create path and map variables
+ final Map localVarPathParams = new HashMap();
+ localVarPathParams.put("pipelineId", pipelineId);
+ final String localVarPath =
+ UriComponentsBuilder.fromPath("/pipelines/{pipelineId}/documents")
+ .buildAndExpand(localVarPathParams)
+ .toUriString();
+
+ final MultiValueMap localVarQueryParams =
+ new LinkedMultiValueMap();
+ final HttpHeaders localVarHeaderParams = new HttpHeaders();
+ final MultiValueMap localVarFormParams =
+ new LinkedMultiValueMap();
+
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top));
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip));
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count));
+
+ if (aiResourceGroup != null)
+ localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
+
+ final String[] localVarAccepts = {"application/json"};
+ final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {};
+ final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ final String[] localVarAuthNames = new String[] {};
+
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ HttpMethod.GET,
+ localVarQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType);
+ }
+
+ /**
+ * Get Documents for a Pipeline
+ *
+ * Retrieve all documents associated with a specific pipeline. Optionally, filter the results
+ * using query parameters.
+ *
+ *
200 - Returns all documents for a pipeline.
+ *
+ * @param aiResourceGroup Resource Group ID
+ * @param pipelineId The ID of the pipeline to get.
+ * @return DocumentsStatusResponse
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public DocumentsStatusResponse getAllDocumentsForPipeline(
+ @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId)
+ throws OpenApiRequestException {
+ return getAllDocumentsForPipeline(aiResourceGroup, pipelineId, null, null, null);
+ }
+
+ /**
+ * Get Pipeline Execution by ID
+ *
+ *
Retrieve details of a specific pipeline execution by its execution ID.
+ *
+ *
200 - Returns a response to execution id
+ *
+ * @param aiResourceGroup Resource Group ID
+ * @param pipelineId The ID of the pipeline
+ * @param executionId The ID of the execution
+ * @return GetPipelineExecutionById
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public GetPipelineExecutionById getExecutionDetailsByIdForPipelineExecution(
+ @Nonnull final String aiResourceGroup,
+ @Nonnull final String pipelineId,
+ @Nonnull final String executionId)
+ throws OpenApiRequestException {
+ final Object localVarPostBody = null;
+
+ // verify the required parameter 'aiResourceGroup' is set
+ if (aiResourceGroup == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'aiResourceGroup' when calling getExecutionDetailsByIdForPipelineExecution");
+ }
+
+ // verify the required parameter 'pipelineId' is set
+ if (pipelineId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'pipelineId' when calling getExecutionDetailsByIdForPipelineExecution");
+ }
+
+ // verify the required parameter 'executionId' is set
+ if (executionId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'executionId' when calling getExecutionDetailsByIdForPipelineExecution");
+ }
+
+ // create path and map variables
+ final Map localVarPathParams = new HashMap();
+ localVarPathParams.put("pipelineId", pipelineId);
+ localVarPathParams.put("executionId", executionId);
+ final String localVarPath =
+ UriComponentsBuilder.fromPath("/pipelines/{pipelineId}/executions/{executionId}")
+ .buildAndExpand(localVarPathParams)
+ .toUriString();
+
+ final MultiValueMap localVarQueryParams =
+ new LinkedMultiValueMap();
+ final HttpHeaders localVarHeaderParams = new HttpHeaders();
+ final MultiValueMap localVarFormParams =
+ new LinkedMultiValueMap();
+
+ if (aiResourceGroup != null)
+ localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
+
+ final String[] localVarAccepts = {"application/json"};
+ final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {};
+ final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ final String[] localVarAuthNames = new String[] {};
+
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ HttpMethod.GET,
+ localVarQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType);
+ }
+
+ /**
+ * Get Document by ID for a Pipeline Execution
+ *
+ * Retrieve details of a specific document associated with a pipeline execution.
+ *
+ *
200 - Returns a response to execution id and document id.
+ *
+ * @param aiResourceGroup Resource Group ID
+ * @param pipelineId The ID of the pipeline
+ * @param executionId The ID of the execution
+ * @param documentId The ID of the document to get.
+ * @return PipelineDocumentResponse
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public PipelineDocumentResponse getDocumentByIdForPipelineExecution(
+ @Nonnull final String aiResourceGroup,
+ @Nonnull final String pipelineId,
+ @Nonnull final String executionId,
+ @Nonnull final String documentId)
+ throws OpenApiRequestException {
+ final Object localVarPostBody = null;
+
+ // verify the required parameter 'aiResourceGroup' is set
+ if (aiResourceGroup == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'aiResourceGroup' when calling getDocumentByIdForPipelineExecution");
+ }
+
+ // verify the required parameter 'pipelineId' is set
+ if (pipelineId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'pipelineId' when calling getDocumentByIdForPipelineExecution");
+ }
+
+ // verify the required parameter 'executionId' is set
+ if (executionId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'executionId' when calling getDocumentByIdForPipelineExecution");
+ }
+
+ // verify the required parameter 'documentId' is set
+ if (documentId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'documentId' when calling getDocumentByIdForPipelineExecution");
+ }
+
+ // create path and map variables
+ final Map localVarPathParams = new HashMap();
+ localVarPathParams.put("pipelineId", pipelineId);
+ localVarPathParams.put("executionId", executionId);
+ localVarPathParams.put("documentId", documentId);
+ final String localVarPath =
+ UriComponentsBuilder.fromPath(
+ "/pipelines/{pipelineId}/executions/{executionId}/documents/{documentId}")
+ .buildAndExpand(localVarPathParams)
+ .toUriString();
+
+ final MultiValueMap localVarQueryParams =
+ new LinkedMultiValueMap();
+ final HttpHeaders localVarHeaderParams = new HttpHeaders();
+ final MultiValueMap localVarFormParams =
+ new LinkedMultiValueMap();
+
+ if (aiResourceGroup != null)
+ localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
+
+ final String[] localVarAccepts = {"application/json"};
+ final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {};
+ final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ final String[] localVarAuthNames = new String[] {};
+
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ HttpMethod.GET,
+ localVarQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType);
+ }
+
+ /**
+ * Get Documents for a Pipeline Execution
+ *
+ * Retrieve all documents associated with a specific pipeline execution. Optionally, filter the
+ * results using query parameters.
+ *
+ *
200 - Returns a response to execution id
+ *
+ * @param aiResourceGroup (required) Resource Group ID
+ * @param pipelineId (required) The ID of the pipeline
+ * @param executionId (required) The ID of the execution
+ * @param $top (optional) Number of results to display
+ * @param $skip (optional) Number of results to be skipped from the ordered list of results
+ * @param $count (optional) When the $count field is set to false, the response contains a count
+ * of the items present in the response. When the $count field is set to true, the response
+ * contains a count of all the items present on the server, and not just the ones in the
+ * response. When the $count field is not passed, it is false by default.
+ * @return DocumentsStatusResponse
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public DocumentsStatusResponse getDocumentsForPipelineExecution(
+ @Nonnull final String aiResourceGroup,
+ @Nonnull final String pipelineId,
+ @Nonnull final String executionId,
+ @Nullable final Integer $top,
+ @Nullable final Integer $skip,
+ @Nullable final Boolean $count)
+ throws OpenApiRequestException {
+ final Object localVarPostBody = null;
+
+ // verify the required parameter 'aiResourceGroup' is set
+ if (aiResourceGroup == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'aiResourceGroup' when calling getDocumentsForPipelineExecution");
+ }
+
+ // verify the required parameter 'pipelineId' is set
+ if (pipelineId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'pipelineId' when calling getDocumentsForPipelineExecution");
+ }
+
+ // verify the required parameter 'executionId' is set
+ if (executionId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'executionId' when calling getDocumentsForPipelineExecution");
+ }
+
+ // create path and map variables
+ final Map localVarPathParams = new HashMap();
+ localVarPathParams.put("pipelineId", pipelineId);
+ localVarPathParams.put("executionId", executionId);
+ final String localVarPath =
+ UriComponentsBuilder.fromPath("/pipelines/{pipelineId}/executions/{executionId}/documents")
+ .buildAndExpand(localVarPathParams)
+ .toUriString();
+
+ final MultiValueMap localVarQueryParams =
+ new LinkedMultiValueMap();
+ final HttpHeaders localVarHeaderParams = new HttpHeaders();
+ final MultiValueMap localVarFormParams =
+ new LinkedMultiValueMap();
+
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top));
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip));
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count));
+
+ if (aiResourceGroup != null)
+ localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
+
+ final String[] localVarAccepts = {"application/json"};
+ final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {};
+ final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ final String[] localVarAuthNames = new String[] {};
+
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ HttpMethod.GET,
+ localVarQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType);
+ }
+
+ /**
+ * Get Documents for a Pipeline Execution
+ *
+ * Retrieve all documents associated with a specific pipeline execution. Optionally, filter the
+ * results using query parameters.
+ *
+ *
200 - Returns a response to execution id
+ *
+ * @param aiResourceGroup Resource Group ID
+ * @param pipelineId The ID of the pipeline
+ * @param executionId The ID of the execution
+ * @return DocumentsStatusResponse
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public DocumentsStatusResponse getDocumentsForPipelineExecution(
+ @Nonnull final String aiResourceGroup,
+ @Nonnull final String pipelineId,
+ @Nonnull final String executionId)
+ throws OpenApiRequestException {
+ return getDocumentsForPipelineExecution(
+ aiResourceGroup, pipelineId, executionId, null, null, null);
+ }
+
+ /**
+ * Get Pipeline Executions
+ *
+ *
Retrieve all executions for a specific pipeline. Optionally, filter to get only the last
+ * execution.
+ *
+ *
200 - Returns all executions
+ *
+ * @param aiResourceGroup (required) Resource Group ID
+ * @param pipelineId (required) The ID of the pipeline
+ * @param lastExecution (optional) Filter to get the last execution
+ * @param $top (optional) Number of results to display
+ * @param $skip (optional) Number of results to be skipped from the ordered list of results
+ * @param $count (optional) When the $count field is set to false, the response contains a count
+ * of the items present in the response. When the $count field is set to true, the response
+ * contains a count of all the items present on the server, and not just the ones in the
+ * response. When the $count field is not passed, it is false by default.
+ * @return GetPipelineExecutions
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public GetPipelineExecutions getAllExecutionsForPipeline(
+ @Nonnull final String aiResourceGroup,
+ @Nonnull final String pipelineId,
+ @Nullable final Boolean lastExecution,
+ @Nullable final Integer $top,
+ @Nullable final Integer $skip,
+ @Nullable final Boolean $count)
+ throws OpenApiRequestException {
+ final Object localVarPostBody = null;
+
+ // verify the required parameter 'aiResourceGroup' is set
+ if (aiResourceGroup == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'aiResourceGroup' when calling getAllExecutionsForPipeline");
+ }
+
+ // verify the required parameter 'pipelineId' is set
+ if (pipelineId == null) {
+ throw new OpenApiRequestException(
+ "Missing the required parameter 'pipelineId' when calling getAllExecutionsForPipeline");
+ }
+
+ // create path and map variables
+ final Map localVarPathParams = new HashMap();
+ localVarPathParams.put("pipelineId", pipelineId);
+ final String localVarPath =
+ UriComponentsBuilder.fromPath("/pipelines/{pipelineId}/executions")
+ .buildAndExpand(localVarPathParams)
+ .toUriString();
+
+ final MultiValueMap localVarQueryParams =
+ new LinkedMultiValueMap();
+ final HttpHeaders localVarHeaderParams = new HttpHeaders();
+ final MultiValueMap localVarFormParams =
+ new LinkedMultiValueMap();
+
+ localVarQueryParams.putAll(
+ apiClient.parameterToMultiValueMap(null, "lastExecution", lastExecution));
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top));
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip));
+ localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count));
+
+ if (aiResourceGroup != null)
+ localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
+
+ final String[] localVarAccepts = {"application/json"};
+ final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ final String[] localVarContentTypes = {};
+ final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ final String[] localVarAuthNames = new String[] {};
+
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ HttpMethod.GET,
+ localVarQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType);
+ }
+
+ /**
+ * Get Pipeline Executions
+ *
+ * Retrieve all executions for a specific pipeline. Optionally, filter to get only the last
+ * execution.
+ *
+ *
200 - Returns all executions
+ *
+ * @param aiResourceGroup Resource Group ID
+ * @param pipelineId The ID of the pipeline
+ * @return GetPipelineExecutions
+ * @throws OpenApiRequestException if an error occurs while attempting to invoke the API
+ */
+ @Nonnull
+ public GetPipelineExecutions getAllExecutionsForPipeline(
+ @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId)
+ throws OpenApiRequestException {
+ return getAllExecutionsForPipeline(aiResourceGroup, pipelineId, null, null, null, null);
+ }
+
+ /**
+ * Get status of Pipeline
+ *
+ *
Get pipeline status by pipeline id
*
*
200 - Returns the pipeline status for an pipelineId.
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
+ * @param aiResourceGroup Resource Group ID
* @param pipelineId The ID of the pipeline to get status.
- * @return PipelineStatus
+ * @return GetPipelineStatus
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public PipelineStatus getPipelineStatus(
+ public GetPipelineStatus getPipelineStatusById(
@Nonnull final String aiResourceGroup, @Nonnull final String pipelineId)
throws OpenApiRequestException {
final Object localVarPostBody = null;
@@ -359,13 +955,13 @@ public PipelineStatus getPipelineStatus(
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling getPipelineStatus");
+ "Missing the required parameter 'aiResourceGroup' when calling getPipelineStatusById");
}
// verify the required parameter 'pipelineId' is set
if (pipelineId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'pipelineId' when calling getPipelineStatus");
+ "Missing the required parameter 'pipelineId' when calling getPipelineStatusById");
}
// create path and map variables
@@ -392,8 +988,8 @@ public PipelineStatus getPipelineStatus(
final String[] localVarAuthNames = new String[] {};
- final ParameterizedTypeReference localVarReturnType =
- new ParameterizedTypeReference() {};
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
return apiClient.invokeAPI(
localVarPath,
HttpMethod.GET,
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/RetrievalApi.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/RetrievalApi.java
index 9eb45f896..27a9795c1 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/RetrievalApi.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/RetrievalApi.java
@@ -3,8 +3,8 @@
import com.google.common.annotations.Beta;
import com.sap.ai.sdk.grounding.model.DataRepositories;
import com.sap.ai.sdk.grounding.model.DataRepository;
-import com.sap.ai.sdk.grounding.model.RetievalSearchResults;
-import com.sap.ai.sdk.grounding.model.RetrievalSearchInput;
+import com.sap.ai.sdk.grounding.model.SearchInput;
+import com.sap.ai.sdk.grounding.model.SearchResults;
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination;
import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient;
import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService;
@@ -24,13 +24,17 @@
import org.springframework.web.util.UriComponentsBuilder;
/**
- * Document Grounding Pipeline API in version 0.1.0.
+ * Grounding in version 0.1.0.
*
- * SAP AI Core - API Specification AI Data Management api's
+ *
Grounding is a service designed to handle data-related tasks, such as grounding and retrieval,
+ * using vector databases. It provides specialized data retrieval through these databases, grounding
+ * the retrieval process with your own external and context-relevant data. Grounding combines
+ * generative AI capabilities with the ability to use real-time, precise data to improve
+ * decision-making and business operations for specific AI-driven business solutions.
*/
public class RetrievalApi extends AbstractOpenApiService {
/**
- * Instantiates this API class to invoke operations on the Document Grounding Pipeline API.
+ * Instantiates this API class to invoke operations on the Grounding.
*
* @param httpDestination The destination that API should be used with
*/
@@ -39,8 +43,8 @@ public RetrievalApi(@Nonnull final Destination httpDestination) {
}
/**
- * Instantiates this API class to invoke operations on the Document Grounding Pipeline API based
- * on a given {@link ApiClient}.
+ * Instantiates this API class to invoke operations on the Grounding based on a given {@link
+ * ApiClient}.
*
* @param apiClient ApiClient to invoke the API on
*/
@@ -52,13 +56,13 @@ public RetrievalApi(@Nonnull final ApiClient apiClient) {
/**
* List all DataRepository objects.
*
- *
List all DataRepository objects.
+ *
List all Data Repositories
*
*
200 - Successful Response
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup (required) The value for the parameter aiResourceGroup
+ * @param aiResourceGroup (required) Resource Group ID
* @param $top (optional) Number of results to display
* @param $skip (optional) Number of results to be skipped from the ordered list of results
* @param $count (optional) When the $count field is set to false, the response contains a count
@@ -124,13 +128,13 @@ public DataRepositories getDataRepositories(
/**
* List all DataRepository objects.
*
- *
List all DataRepository objects.
+ *
List all Data Repositories
*
*
200 - Successful Response
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
+ * @param aiResourceGroup Resource Group ID
* @return DataRepositories
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@@ -143,7 +147,7 @@ public DataRepositories getDataRepositories(@Nonnull final String aiResourceGrou
/**
* List single DataRepository object.
*
- *
List single DataRepository object.
+ *
List data repository by id
*
*
200 - Successful Response
*
@@ -153,8 +157,8 @@ public DataRepositories getDataRepositories(@Nonnull final String aiResourceGrou
*
*
404 - The specification of the resource was incorrect
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param repositoryId The value for the parameter repositoryId
+ * @param aiResourceGroup Resource Group ID
+ * @param repositoryId Repository ID
* @return DataRepository
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@@ -216,7 +220,7 @@ public DataRepository getDataRepositoryById(
}
/**
- * Retrieve relevant content given a query string.
+ * Retrieve relevant content
*
*
Retrieve relevant content given a query string.
*
@@ -226,17 +230,16 @@ public DataRepository getDataRepositoryById(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param retrievalSearchInput The value for the parameter retrievalSearchInput
- * @return RetievalSearchResults
+ * @param aiResourceGroup Resource Group ID
+ * @param searchInput The value for the parameter searchInput
+ * @return SearchResults
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public RetievalSearchResults search(
- @Nonnull final String aiResourceGroup,
- @Nonnull final RetrievalSearchInput retrievalSearchInput)
+ public SearchResults search(
+ @Nonnull final String aiResourceGroup, @Nonnull final SearchInput searchInput)
throws OpenApiRequestException {
- final Object localVarPostBody = retrievalSearchInput;
+ final Object localVarPostBody = searchInput;
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
@@ -244,10 +247,10 @@ public RetievalSearchResults search(
"Missing the required parameter 'aiResourceGroup' when calling search");
}
- // verify the required parameter 'retrievalSearchInput' is set
- if (retrievalSearchInput == null) {
+ // verify the required parameter 'searchInput' is set
+ if (searchInput == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'retrievalSearchInput' when calling retrievalV1RetrievalEndpointsSearch");
+ "Missing the required parameter 'searchInput' when calling retrievalV1RetrievalEndpointsSearch");
}
final String localVarPath =
@@ -269,8 +272,8 @@ public RetievalSearchResults search(
final String[] localVarAuthNames = new String[] {};
- final ParameterizedTypeReference localVarReturnType =
- new ParameterizedTypeReference() {};
+ final ParameterizedTypeReference localVarReturnType =
+ new ParameterizedTypeReference() {};
return apiClient.invokeAPI(
localVarPath,
HttpMethod.POST,
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java
index 7a9d27e9b..1366c6078 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/VectorApi.java
@@ -33,13 +33,17 @@
import org.springframework.web.util.UriComponentsBuilder;
/**
- * Document Grounding Pipeline API in version 0.1.0.
+ * Grounding in version 0.1.0.
*
- * SAP AI Core - API Specification AI Data Management api's
+ *
Grounding is a service designed to handle data-related tasks, such as grounding and retrieval,
+ * using vector databases. It provides specialized data retrieval through these databases, grounding
+ * the retrieval process with your own external and context-relevant data. Grounding combines
+ * generative AI capabilities with the ability to use real-time, precise data to improve
+ * decision-making and business operations for specific AI-driven business solutions.
*/
public class VectorApi extends AbstractOpenApiService {
/**
- * Instantiates this API class to invoke operations on the Document Grounding Pipeline API.
+ * Instantiates this API class to invoke operations on the Grounding.
*
* @param httpDestination The destination that API should be used with
*/
@@ -48,8 +52,8 @@ public VectorApi(@Nonnull final Destination httpDestination) {
}
/**
- * Instantiates this API class to invoke operations on the Document Grounding Pipeline API based
- * on a given {@link ApiClient}.
+ * Instantiates this API class to invoke operations on the Grounding based on a given {@link
+ * ApiClient}.
*
* @param apiClient ApiClient to invoke the API on
*/
@@ -70,7 +74,7 @@ public VectorApi(@Nonnull final ApiClient apiClient) {
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
+ * @param aiResourceGroup Resource Group ID
* @param collectionRequest The value for the parameter collectionRequest
* @return An OpenApiResponse containing the status code of the HttpResponse.
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
@@ -142,14 +146,14 @@ public OpenApiResponse createCollection(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param collectionId The value for the parameter collectionId
+ * @param aiResourceGroup Resource Group ID
+ * @param collectionId Collection ID
* @param documentCreateRequest The value for the parameter documentCreateRequest
* @return DocumentsListResponse
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public DocumentsListResponse createDocuments(
+ public DocumentsListResponse createCollectionDocuments(
@Nonnull final String aiResourceGroup,
@Nonnull final UUID collectionId,
@Nonnull final DocumentCreateRequest documentCreateRequest)
@@ -159,13 +163,13 @@ public DocumentsListResponse createDocuments(
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling createDocuments");
+ "Missing the required parameter 'aiResourceGroup' when calling createCollectionDocuments");
}
// verify the required parameter 'collectionId' is set
if (collectionId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'collectionId' when calling createDocuments");
+ "Missing the required parameter 'collectionId' when calling createCollectionDocuments");
}
// verify the required parameter 'documentCreateRequest' is set
@@ -227,8 +231,8 @@ public DocumentsListResponse createDocuments(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param collectionId The value for the parameter collectionId
+ * @param aiResourceGroup Resource Group ID
+ * @param collectionId Collection ID
* @return An OpenApiResponse containing the status code of the HttpResponse.
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@@ -303,14 +307,14 @@ public OpenApiResponse deleteCollectionById(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param collectionId The value for the parameter collectionId
- * @param documentId The value for the parameter documentId
+ * @param aiResourceGroup Resource Group ID
+ * @param collectionId Collection ID
+ * @param documentId Document ID
* @return An OpenApiResponse containing the status code of the HttpResponse.
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public OpenApiResponse deleteDocumentById(
+ public OpenApiResponse deleteCollectionById(
@Nonnull final String aiResourceGroup,
@Nonnull final UUID collectionId,
@Nonnull final UUID documentId)
@@ -320,19 +324,19 @@ public OpenApiResponse deleteDocumentById(
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling deleteDocumentById");
+ "Missing the required parameter 'aiResourceGroup' when calling deleteCollectionById");
}
// verify the required parameter 'collectionId' is set
if (collectionId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'collectionId' when calling deleteDocumentById");
+ "Missing the required parameter 'collectionId' when calling deleteCollectionById");
}
// verify the required parameter 'documentId' is set
if (documentId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'documentId' when calling deleteDocumentById");
+ "Missing the required parameter 'documentId' when calling deleteCollectionById");
}
// create path and map variables
@@ -385,7 +389,7 @@ public OpenApiResponse deleteDocumentById(
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup (required) The value for the parameter aiResourceGroup
+ * @param aiResourceGroup (required) Resource Group ID
* @param $top (optional) Number of results to display
* @param $skip (optional) Number of results to be skipped from the ordered list of results
* @param $count (optional) When the $count field is set to false, the response contains a count
@@ -457,7 +461,7 @@ public CollectionsListResponse getAllCollections(
*
*
400 - The specification of the resource was incorrect
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
+ * @param aiResourceGroup Resource Group ID
* @return CollectionsListResponse
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@@ -480,8 +484,8 @@ public CollectionsListResponse getAllCollections(@Nonnull final String aiResourc
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup (required) The value for the parameter aiResourceGroup
- * @param collectionId (required) The value for the parameter collectionId
+ * @param aiResourceGroup (required) Resource Group ID
+ * @param collectionId (required) Collection ID
* @param $top (optional) Number of results to display
* @param $skip (optional) Number of results to be skipped from the ordered list of results
* @param $count (optional) When the $count field is set to false, the response contains a count
@@ -492,7 +496,7 @@ public CollectionsListResponse getAllCollections(@Nonnull final String aiResourc
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public Documents getAllDocuments(
+ public Documents getDocumentsByCollectionId(
@Nonnull final String aiResourceGroup,
@Nonnull final UUID collectionId,
@Nullable final Integer $top,
@@ -504,13 +508,13 @@ public Documents getAllDocuments(
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling getAllDocuments");
+ "Missing the required parameter 'aiResourceGroup' when calling getDocumentsByCollectionId");
}
// verify the required parameter 'collectionId' is set
if (collectionId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'collectionId' when calling getAllDocuments");
+ "Missing the required parameter 'collectionId' when calling getDocumentsByCollectionId");
}
// create path and map variables
@@ -569,16 +573,16 @@ public Documents getAllDocuments(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param collectionId The value for the parameter collectionId
+ * @param aiResourceGroup Resource Group ID
+ * @param collectionId Collection ID
* @return Documents
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public Documents getAllDocuments(
+ public Documents getDocumentsByCollectionId(
@Nonnull final String aiResourceGroup, @Nonnull final UUID collectionId)
throws OpenApiRequestException {
- return getAllDocuments(aiResourceGroup, collectionId, null, null, null);
+ return getDocumentsByCollectionId(aiResourceGroup, collectionId, null, null, null);
}
/**
@@ -594,8 +598,8 @@ public Documents getAllDocuments(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param collectionId The value for the parameter collectionId
+ * @param aiResourceGroup Resource Group ID
+ * @param collectionId Collection ID
* @return Collection
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@@ -669,13 +673,13 @@ public Collection getCollectionById(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param id The value for the parameter id
+ * @param aiResourceGroup Resource Group ID
+ * @param id Collection ID
* @return VectorV1VectorEndpointsGetCollectionCreationStatus200Response
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public VectorV1VectorEndpointsGetCollectionCreationStatus200Response getCollectionCreationStatus(
+ public VectorV1VectorEndpointsGetCollectionCreationStatus200Response getCollectionStatus(
@Nonnull final String aiResourceGroup, @Nonnull final UUID id)
throws OpenApiRequestException {
final Object localVarPostBody = null;
@@ -683,13 +687,13 @@ public VectorV1VectorEndpointsGetCollectionCreationStatus200Response getCollecti
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling getCollectionCreationStatus");
+ "Missing the required parameter 'aiResourceGroup' when calling getCollectionStatus");
}
// verify the required parameter 'id' is set
if (id == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'id' when calling getCollectionCreationStatus");
+ "Missing the required parameter 'id' when calling getCollectionStatus");
}
// create path and map variables
@@ -746,8 +750,8 @@ public VectorV1VectorEndpointsGetCollectionCreationStatus200Response getCollecti
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param id The value for the parameter id
+ * @param aiResourceGroup Resource Group ID
+ * @param id Collection ID
* @return VectorV1VectorEndpointsGetCollectionDeletionStatus200Response
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@@ -823,14 +827,14 @@ public VectorV1VectorEndpointsGetCollectionDeletionStatus200Response getCollecti
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param collectionId The value for the parameter collectionId
- * @param documentId The value for the parameter documentId
+ * @param aiResourceGroup Resource Group ID
+ * @param collectionId Collection ID
+ * @param documentId Document ID
* @return DocumentResponse
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public DocumentResponse getDocumentById(
+ public DocumentResponse getDocumentByIdForCollection(
@Nonnull final String aiResourceGroup,
@Nonnull final UUID collectionId,
@Nonnull final UUID documentId)
@@ -840,19 +844,19 @@ public DocumentResponse getDocumentById(
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling getDocumentById");
+ "Missing the required parameter 'aiResourceGroup' when calling getDocumentByIdForCollection");
}
// verify the required parameter 'collectionId' is set
if (collectionId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'collectionId' when calling getDocumentById");
+ "Missing the required parameter 'collectionId' when calling getDocumentByIdForCollection");
}
// verify the required parameter 'documentId' is set
if (documentId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'documentId' when calling getDocumentById");
+ "Missing the required parameter 'documentId' when calling getDocumentByIdForCollection");
}
// create path and map variables
@@ -898,7 +902,7 @@ public DocumentResponse getDocumentById(
/**
* Search chunk by vector
*
- *
Search chunk by vector
+ *
Search chunks
*
*
200 - Successful Response
*
@@ -908,13 +912,13 @@ public DocumentResponse getDocumentById(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
+ * @param aiResourceGroup Resource Group ID
* @param textSearchRequest The value for the parameter textSearchRequest
* @return SearchResults
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public SearchResults search(
+ public SearchResults vectorSearchByChunk(
@Nonnull final String aiResourceGroup, @Nonnull final TextSearchRequest textSearchRequest)
throws OpenApiRequestException {
final Object localVarPostBody = textSearchRequest;
@@ -922,13 +926,13 @@ public SearchResults search(
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling search");
+ "Missing the required parameter 'aiResourceGroup' when calling vectorSearchByChunk");
}
// verify the required parameter 'textSearchRequest' is set
if (textSearchRequest == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'textSearchRequest' when calling vectorV1VectorEndpointsSearch");
+ "Missing the required parameter 'textSearchRequest' when calling vectorV1VectorEndpointsSearchChunk");
}
final String localVarPath =
@@ -978,14 +982,14 @@ public SearchResults search(
*
*
422 - There are validation issues with the data.
*
- * @param aiResourceGroup The value for the parameter aiResourceGroup
- * @param collectionId The value for the parameter collectionId
+ * @param aiResourceGroup Resource Group ID
+ * @param collectionId Collection ID
* @param documentUpdateRequest The value for the parameter documentUpdateRequest
* @return DocumentsListResponse
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
- public DocumentsListResponse updateDocuments(
+ public DocumentsListResponse insertOrUpdateDocumentsInCollection(
@Nonnull final String aiResourceGroup,
@Nonnull final UUID collectionId,
@Nonnull final DocumentUpdateRequest documentUpdateRequest)
@@ -995,13 +999,13 @@ public DocumentsListResponse updateDocuments(
// verify the required parameter 'aiResourceGroup' is set
if (aiResourceGroup == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'aiResourceGroup' when calling updateDocuments");
+ "Missing the required parameter 'aiResourceGroup' when calling insertOrUpdateDocumentsInCollection");
}
// verify the required parameter 'collectionId' is set
if (collectionId == null) {
throw new OpenApiRequestException(
- "Missing the required parameter 'collectionId' when calling updateDocuments");
+ "Missing the required parameter 'collectionId' when calling insertOrUpdateDocumentsInCollection");
}
// verify the required parameter 'documentUpdateRequest' is set
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ApiError.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ApiError.java
index 1f51261b7..8c6d2cead 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ApiError.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/ApiError.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java
index 371ac7c3e..b23bfcf24 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BaseDocument.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BasePipelineResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BasePipelineResponse.java
new file mode 100644
index 000000000..09f758b55
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/BasePipelineResponse.java
@@ -0,0 +1,270 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** BasePipelineResponse */
+// CHECKSTYLE:OFF
+public class BasePipelineResponse
+// CHECKSTYLE:ON
+{
+ @JsonProperty("id")
+ private String id;
+
+ @JsonProperty("type")
+ private String type;
+
+ @JsonProperty("metadata")
+ private MetaData metadata;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for BasePipelineResponse. */
+ protected BasePipelineResponse() {}
+
+ /**
+ * Set the id of this {@link BasePipelineResponse} instance and return the same instance.
+ *
+ * @param id The id of this {@link BasePipelineResponse}
+ * @return The same instance of this {@link BasePipelineResponse} class
+ */
+ @Nonnull
+ public BasePipelineResponse id(@Nonnull final String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get id
+ *
+ * @return id The id of this {@link BasePipelineResponse} instance.
+ */
+ @Nonnull
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Set the id of this {@link BasePipelineResponse} instance.
+ *
+ * @param id The id of this {@link BasePipelineResponse}
+ */
+ public void setId(@Nonnull final String id) {
+ this.id = id;
+ }
+
+ /**
+ * Set the type of this {@link BasePipelineResponse} instance and return the same instance.
+ *
+ * @param type The type of this {@link BasePipelineResponse}
+ * @return The same instance of this {@link BasePipelineResponse} class
+ */
+ @Nonnull
+ public BasePipelineResponse type(@Nonnull final String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get type
+ *
+ * @return type The type of this {@link BasePipelineResponse} instance.
+ */
+ @Nonnull
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Set the type of this {@link BasePipelineResponse} instance.
+ *
+ * @param type The type of this {@link BasePipelineResponse}
+ */
+ public void setType(@Nonnull final String type) {
+ this.type = type;
+ }
+
+ /**
+ * Set the metadata of this {@link BasePipelineResponse} instance and return the same instance.
+ *
+ * @param metadata The metadata of this {@link BasePipelineResponse}
+ * @return The same instance of this {@link BasePipelineResponse} class
+ */
+ @Nonnull
+ public BasePipelineResponse metadata(@Nullable final MetaData metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get metadata
+ *
+ * @return metadata The metadata of this {@link BasePipelineResponse} instance.
+ */
+ @Nonnull
+ public MetaData getMetadata() {
+ return metadata;
+ }
+
+ /**
+ * Set the metadata of this {@link BasePipelineResponse} instance.
+ *
+ * @param metadata The metadata of this {@link BasePipelineResponse}
+ */
+ public void setMetadata(@Nullable final MetaData metadata) {
+ this.metadata = metadata;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link BasePipelineResponse}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link BasePipelineResponse} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "BasePipelineResponse has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link BasePipelineResponse} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (id != null) declaredFields.put("id", id);
+ if (type != null) declaredFields.put("type", type);
+ if (metadata != null) declaredFields.put("metadata", metadata);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link BasePipelineResponse} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final BasePipelineResponse basePipelineResponse = (BasePipelineResponse) o;
+ return Objects.equals(this.cloudSdkCustomFields, basePipelineResponse.cloudSdkCustomFields)
+ && Objects.equals(this.id, basePipelineResponse.id)
+ && Objects.equals(this.type, basePipelineResponse.type)
+ && Objects.equals(this.metadata, basePipelineResponse.metadata);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, type, metadata, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class BasePipelineResponse {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link BasePipelineResponse}
+ * instance with all required arguments.
+ */
+ public static Builder create() {
+ return (id) -> (type) -> new BasePipelineResponse().id(id).type(type);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the id of this {@link BasePipelineResponse} instance.
+ *
+ * @param id The id of this {@link BasePipelineResponse}
+ * @return The BasePipelineResponse builder.
+ */
+ Builder1 id(@Nonnull final String id);
+ }
+
+ /** Builder helper class. */
+ public interface Builder1 {
+ /**
+ * Set the type of this {@link BasePipelineResponse} instance.
+ *
+ * @param type The type of this {@link BasePipelineResponse}
+ * @return The BasePipelineResponse instance.
+ */
+ BasePipelineResponse type(@Nonnull final String type);
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Chunk.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Chunk.java
index f70d1424f..836a24ae7 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Chunk.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Chunk.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Collection.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Collection.java
index 3aa28b4f3..e7eab9bed 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Collection.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Collection.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -66,7 +66,7 @@ public Collection title(@Nullable final String title) {
*
* @return title The title of this {@link Collection} instance.
*/
- @Nonnull
+ @Nullable
public String getTitle() {
return title;
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionCreatedResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionCreatedResponse.java
index 2e92d289e..cbf3612d7 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionCreatedResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionCreatedResponse.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionDeletedResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionDeletedResponse.java
index 89ec30e63..2c2251b29 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionDeletedResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionDeletedResponse.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionPendingResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionPendingResponse.java
index 7c330f35d..ed5259502 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionPendingResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionPendingResponse.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -15,7 +15,6 @@
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.net.URI;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.NoSuchElementException;
@@ -32,7 +31,7 @@ public class CollectionPendingResponse
// CHECKSTYLE:ON
{
@JsonProperty("Location")
- private URI location;
+ private String location;
@JsonProperty("status")
private String status;
@@ -51,7 +50,7 @@ protected CollectionPendingResponse() {}
* @return The same instance of this {@link CollectionPendingResponse} class
*/
@Nonnull
- public CollectionPendingResponse location(@Nonnull final URI location) {
+ public CollectionPendingResponse location(@Nonnull final String location) {
this.location = location;
return this;
}
@@ -62,7 +61,7 @@ public CollectionPendingResponse location(@Nonnull final URI location) {
* @return location The location of this {@link CollectionPendingResponse} instance.
*/
@Nonnull
- public URI getLocation() {
+ public String getLocation() {
return location;
}
@@ -71,7 +70,7 @@ public URI getLocation() {
*
* @param location The location of this {@link CollectionPendingResponse}
*/
- public void setLocation(@Nonnull final URI location) {
+ public void setLocation(@Nonnull final String location) {
this.location = location;
}
@@ -222,7 +221,7 @@ public interface Builder {
* @param location The location of this {@link CollectionPendingResponse}
* @return The CollectionPendingResponse builder.
*/
- Builder1 location(@Nonnull final URI location);
+ Builder1 location(@Nonnull final String location);
}
/** Builder helper class. */
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionRequest.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionRequest.java
index e2e553550..8826a7af0 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionRequest.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionRequest.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -62,7 +62,7 @@ public CollectionRequest title(@Nullable final String title) {
*
* @return title The title of this {@link CollectionRequest} instance.
*/
- @Nonnull
+ @Nullable
public String getTitle() {
return title;
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionsListResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionsListResponse.java
index 9d83c0ba3..96201b2fb 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionsListResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CollectionsListResponse.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -31,18 +31,49 @@
public class CollectionsListResponse
// CHECKSTYLE:ON
{
- @JsonProperty("resources")
- private List resources = new ArrayList<>();
-
@JsonProperty("count")
private Integer count;
+ @JsonProperty("resources")
+ private List resources = new ArrayList<>();
+
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
/** Default constructor for CollectionsListResponse. */
protected CollectionsListResponse() {}
+ /**
+ * Set the count of this {@link CollectionsListResponse} instance and return the same instance.
+ *
+ * @param count The count of this {@link CollectionsListResponse}
+ * @return The same instance of this {@link CollectionsListResponse} class
+ */
+ @Nonnull
+ public CollectionsListResponse count(@Nullable final Integer count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get count
+ *
+ * @return count The count of this {@link CollectionsListResponse} instance.
+ */
+ @Nonnull
+ public Integer getCount() {
+ return count;
+ }
+
+ /**
+ * Set the count of this {@link CollectionsListResponse} instance.
+ *
+ * @param count The count of this {@link CollectionsListResponse}
+ */
+ public void setCount(@Nullable final Integer count) {
+ this.count = count;
+ }
+
/**
* Set the resources of this {@link CollectionsListResponse} instance and return the same
* instance.
@@ -90,37 +121,6 @@ public void setResources(@Nonnull final List resources) {
this.resources = resources;
}
- /**
- * Set the count of this {@link CollectionsListResponse} instance and return the same instance.
- *
- * @param count The count of this {@link CollectionsListResponse}
- * @return The same instance of this {@link CollectionsListResponse} class
- */
- @Nonnull
- public CollectionsListResponse count(@Nullable final Integer count) {
- this.count = count;
- return this;
- }
-
- /**
- * Get count
- *
- * @return count The count of this {@link CollectionsListResponse} instance.
- */
- @Nonnull
- public Integer getCount() {
- return count;
- }
-
- /**
- * Set the count of this {@link CollectionsListResponse} instance.
- *
- * @param count The count of this {@link CollectionsListResponse}
- */
- public void setCount(@Nullable final Integer count) {
- this.count = count;
- }
-
/**
* Get the names of the unrecognizable properties of the {@link CollectionsListResponse}.
*
@@ -160,8 +160,8 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
@Nonnull
public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
- if (resources != null) declaredFields.put("resources", resources);
if (count != null) declaredFields.put("count", count);
+ if (resources != null) declaredFields.put("resources", resources);
return declaredFields;
}
@@ -187,13 +187,13 @@ public boolean equals(@Nullable final java.lang.Object o) {
}
final CollectionsListResponse collectionsListResponse = (CollectionsListResponse) o;
return Objects.equals(this.cloudSdkCustomFields, collectionsListResponse.cloudSdkCustomFields)
- && Objects.equals(this.resources, collectionsListResponse.resources)
- && Objects.equals(this.count, collectionsListResponse.count);
+ && Objects.equals(this.count, collectionsListResponse.count)
+ && Objects.equals(this.resources, collectionsListResponse.resources);
}
@Override
public int hashCode() {
- return Objects.hash(resources, count, cloudSdkCustomFields);
+ return Objects.hash(count, resources, cloudSdkCustomFields);
}
@Override
@@ -201,8 +201,8 @@ public int hashCode() {
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class CollectionsListResponse {\n");
- sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
+ sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineConfiguration.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CommonConfiguration.java
similarity index 55%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineConfiguration.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CommonConfiguration.java
index 0b424bc3a..2d07db9f7 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineConfiguration.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CommonConfiguration.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -23,32 +23,28 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** PipelineConfiguration */
+/** CommonConfiguration */
// CHECKSTYLE:OFF
-public class PipelineConfiguration
+public class CommonConfiguration
// CHECKSTYLE:ON
{
@JsonProperty("destination")
private String destination;
- @JsonProperty("sharePoint")
- private PipelineConfigurationSharePoint sharePoint;
-
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for PipelineConfiguration. */
- protected PipelineConfiguration() {}
+ /** Default constructor for CommonConfiguration. */
+ protected CommonConfiguration() {}
/**
- * Set the destination of this {@link PipelineConfiguration} instance and return the same
- * instance.
+ * Set the destination of this {@link CommonConfiguration} instance and return the same instance.
*
- * @param destination The destination of this {@link PipelineConfiguration}
- * @return The same instance of this {@link PipelineConfiguration} class
+ * @param destination The destination of this {@link CommonConfiguration}
+ * @return The same instance of this {@link CommonConfiguration} class
*/
@Nonnull
- public PipelineConfiguration destination(@Nullable final String destination) {
+ public CommonConfiguration destination(@Nonnull final String destination) {
this.destination = destination;
return this;
}
@@ -56,7 +52,7 @@ public PipelineConfiguration destination(@Nullable final String destination) {
/**
* Get destination
*
- * @return destination The destination of this {@link PipelineConfiguration} instance.
+ * @return destination The destination of this {@link CommonConfiguration} instance.
*/
@Nonnull
public String getDestination() {
@@ -64,48 +60,16 @@ public String getDestination() {
}
/**
- * Set the destination of this {@link PipelineConfiguration} instance.
+ * Set the destination of this {@link CommonConfiguration} instance.
*
- * @param destination The destination of this {@link PipelineConfiguration}
+ * @param destination The destination of this {@link CommonConfiguration}
*/
- public void setDestination(@Nullable final String destination) {
+ public void setDestination(@Nonnull final String destination) {
this.destination = destination;
}
/**
- * Set the sharePoint of this {@link PipelineConfiguration} instance and return the same instance.
- *
- * @param sharePoint The sharePoint of this {@link PipelineConfiguration}
- * @return The same instance of this {@link PipelineConfiguration} class
- */
- @Nonnull
- public PipelineConfiguration sharePoint(
- @Nullable final PipelineConfigurationSharePoint sharePoint) {
- this.sharePoint = sharePoint;
- return this;
- }
-
- /**
- * Get sharePoint
- *
- * @return sharePoint The sharePoint of this {@link PipelineConfiguration} instance.
- */
- @Nonnull
- public PipelineConfigurationSharePoint getSharePoint() {
- return sharePoint;
- }
-
- /**
- * Set the sharePoint of this {@link PipelineConfiguration} instance.
- *
- * @param sharePoint The sharePoint of this {@link PipelineConfiguration}
- */
- public void setSharePoint(@Nullable final PipelineConfigurationSharePoint sharePoint) {
- this.sharePoint = sharePoint;
- }
-
- /**
- * Get the names of the unrecognizable properties of the {@link PipelineConfiguration}.
+ * Get the names of the unrecognizable properties of the {@link CommonConfiguration}.
*
* @return The set of properties names
*/
@@ -116,7 +80,7 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link PipelineConfiguration} instance.
+ * Get the value of an unrecognizable property of this {@link CommonConfiguration} instance.
*
* @deprecated Use {@link #toMap()} instead.
* @param name The name of the property
@@ -128,13 +92,13 @@ public Set getCustomFieldNames() {
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
throw new NoSuchElementException(
- "PipelineConfiguration has no field with name '" + name + "'.");
+ "CommonConfiguration has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link PipelineConfiguration} instance including
+ * Get the value of all properties of this {@link CommonConfiguration} instance including
* unrecognized properties.
*
* @return The map of all properties
@@ -144,12 +108,11 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
if (destination != null) declaredFields.put("destination", destination);
- if (sharePoint != null) declaredFields.put("sharePoint", sharePoint);
return declaredFields;
}
/**
- * Set an unrecognizable property of this {@link PipelineConfiguration} instance. If the map
+ * Set an unrecognizable property of this {@link CommonConfiguration} instance. If the map
* previously contained a mapping for the key, the old value is replaced by the specified value.
*
* @param customFieldName The name of the property
@@ -168,24 +131,22 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final PipelineConfiguration pipelineConfiguration = (PipelineConfiguration) o;
- return Objects.equals(this.cloudSdkCustomFields, pipelineConfiguration.cloudSdkCustomFields)
- && Objects.equals(this.destination, pipelineConfiguration.destination)
- && Objects.equals(this.sharePoint, pipelineConfiguration.sharePoint);
+ final CommonConfiguration commonConfiguration = (CommonConfiguration) o;
+ return Objects.equals(this.cloudSdkCustomFields, commonConfiguration.cloudSdkCustomFields)
+ && Objects.equals(this.destination, commonConfiguration.destination);
}
@Override
public int hashCode() {
- return Objects.hash(destination, sharePoint, cloudSdkCustomFields);
+ return Objects.hash(destination, cloudSdkCustomFields);
}
@Override
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class PipelineConfiguration {\n");
+ sb.append("class CommonConfiguration {\n");
sb.append(" destination: ").append(toIndentedString(destination)).append("\n");
- sb.append(" sharePoint: ").append(toIndentedString(sharePoint)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
@@ -203,8 +164,22 @@ private String toIndentedString(final java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
- /** Create a new {@link PipelineConfiguration} instance. No arguments are required. */
- public static PipelineConfiguration create() {
- return new PipelineConfiguration();
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link CommonConfiguration}
+ * instance with all required arguments.
+ */
+ public static Builder create() {
+ return (destination) -> new CommonConfiguration().destination(destination);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the destination of this {@link CommonConfiguration} instance.
+ *
+ * @param destination The destination of this {@link CommonConfiguration}
+ * @return The CommonConfiguration instance.
+ */
+ CommonConfiguration destination(@Nonnull final String destination);
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CreatePipeline.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CreatePipeline.java
new file mode 100644
index 000000000..17804cd51
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/CreatePipeline.java
@@ -0,0 +1,31 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+
+/** CreatePipeline */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true)
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = MSSharePointPipelineCreateRequest.class, name = "MSSharePoint"),
+ @JsonSubTypes.Type(value = S3PipelineCreateRequest.class, name = "S3"),
+ @JsonSubTypes.Type(value = SFTPPipelineCreateRequest.class, name = "SFTP"),
+ @JsonSubTypes.Type(
+ value = MSSharePointPipelineCreateRequest.class,
+ name = "MSSharePointPipelineCreateRequest"),
+ @JsonSubTypes.Type(value = S3PipelineCreateRequest.class, name = "S3PipelineCreateRequest"),
+ @JsonSubTypes.Type(value = SFTPPipelineCreateRequest.class, name = "SFTPPipelineCreateRequest"),
+})
+public interface CreatePipeline {
+ Object getType();
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositories.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositories.java
index 0ecb91c66..17a68b141 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositories.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositories.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -31,18 +31,49 @@
public class DataRepositories
// CHECKSTYLE:ON
{
- @JsonProperty("resources")
- private List resources = new ArrayList<>();
-
@JsonProperty("count")
private Integer count;
+ @JsonProperty("resources")
+ private List resources = new ArrayList<>();
+
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
/** Default constructor for DataRepositories. */
protected DataRepositories() {}
+ /**
+ * Set the count of this {@link DataRepositories} instance and return the same instance.
+ *
+ * @param count The count of this {@link DataRepositories}
+ * @return The same instance of this {@link DataRepositories} class
+ */
+ @Nonnull
+ public DataRepositories count(@Nullable final Integer count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get count
+ *
+ * @return count The count of this {@link DataRepositories} instance.
+ */
+ @Nonnull
+ public Integer getCount() {
+ return count;
+ }
+
+ /**
+ * Set the count of this {@link DataRepositories} instance.
+ *
+ * @param count The count of this {@link DataRepositories}
+ */
+ public void setCount(@Nullable final Integer count) {
+ this.count = count;
+ }
+
/**
* Set the resources of this {@link DataRepositories} instance and return the same instance.
*
@@ -89,37 +120,6 @@ public void setResources(@Nonnull final List resources) {
this.resources = resources;
}
- /**
- * Set the count of this {@link DataRepositories} instance and return the same instance.
- *
- * @param count The count of this {@link DataRepositories}
- * @return The same instance of this {@link DataRepositories} class
- */
- @Nonnull
- public DataRepositories count(@Nullable final Integer count) {
- this.count = count;
- return this;
- }
-
- /**
- * Get count
- *
- * @return count The count of this {@link DataRepositories} instance.
- */
- @Nonnull
- public Integer getCount() {
- return count;
- }
-
- /**
- * Set the count of this {@link DataRepositories} instance.
- *
- * @param count The count of this {@link DataRepositories}
- */
- public void setCount(@Nullable final Integer count) {
- this.count = count;
- }
-
/**
* Get the names of the unrecognizable properties of the {@link DataRepositories}.
*
@@ -158,8 +158,8 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
@Nonnull
public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
- if (resources != null) declaredFields.put("resources", resources);
if (count != null) declaredFields.put("count", count);
+ if (resources != null) declaredFields.put("resources", resources);
return declaredFields;
}
@@ -185,13 +185,13 @@ public boolean equals(@Nullable final java.lang.Object o) {
}
final DataRepositories dataRepositories = (DataRepositories) o;
return Objects.equals(this.cloudSdkCustomFields, dataRepositories.cloudSdkCustomFields)
- && Objects.equals(this.resources, dataRepositories.resources)
- && Objects.equals(this.count, dataRepositories.count);
+ && Objects.equals(this.count, dataRepositories.count)
+ && Objects.equals(this.resources, dataRepositories.resources);
}
@Override
public int hashCode() {
- return Objects.hash(resources, count, cloudSdkCustomFields);
+ return Objects.hash(count, resources, cloudSdkCustomFields);
}
@Override
@@ -199,8 +199,8 @@ public int hashCode() {
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class DataRepositories {\n");
- sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
+ sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepository.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepository.java
index d68e4e6e7..a6e60689b 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepository.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepository.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalPerFilterSearchResult.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryPerFilterSearchResult.java
similarity index 54%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalPerFilterSearchResult.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryPerFilterSearchResult.java
index 1ae502495..5d0584af8 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalPerFilterSearchResult.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryPerFilterSearchResult.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -25,32 +25,32 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** RetievalPerFilterSearchResult */
+/** DataRepositoryPerFilterSearchResult */
// CHECKSTYLE:OFF
-public class RetievalPerFilterSearchResult
+public class DataRepositoryPerFilterSearchResult
// CHECKSTYLE:ON
{
@JsonProperty("filterId")
private String filterId;
@JsonProperty("results")
- private List results = new ArrayList<>();
+ private List results = new ArrayList<>();
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for RetievalPerFilterSearchResult. */
- protected RetievalPerFilterSearchResult() {}
+ /** Default constructor for DataRepositoryPerFilterSearchResult. */
+ protected DataRepositoryPerFilterSearchResult() {}
/**
- * Set the filterId of this {@link RetievalPerFilterSearchResult} instance and return the same
- * instance.
+ * Set the filterId of this {@link DataRepositoryPerFilterSearchResult} instance and return the
+ * same instance.
*
- * @param filterId The filterId of this {@link RetievalPerFilterSearchResult}
- * @return The same instance of this {@link RetievalPerFilterSearchResult} class
+ * @param filterId The filterId of this {@link DataRepositoryPerFilterSearchResult}
+ * @return The same instance of this {@link DataRepositoryPerFilterSearchResult} class
*/
@Nonnull
- public RetievalPerFilterSearchResult filterId(@Nonnull final String filterId) {
+ public DataRepositoryPerFilterSearchResult filterId(@Nonnull final String filterId) {
this.filterId = filterId;
return this;
}
@@ -58,7 +58,7 @@ public RetievalPerFilterSearchResult filterId(@Nonnull final String filterId) {
/**
* Get filterId
*
- * @return filterId The filterId of this {@link RetievalPerFilterSearchResult} instance.
+ * @return filterId The filterId of this {@link DataRepositoryPerFilterSearchResult} instance.
*/
@Nonnull
public String getFilterId() {
@@ -66,37 +66,37 @@ public String getFilterId() {
}
/**
- * Set the filterId of this {@link RetievalPerFilterSearchResult} instance.
+ * Set the filterId of this {@link DataRepositoryPerFilterSearchResult} instance.
*
- * @param filterId The filterId of this {@link RetievalPerFilterSearchResult}
+ * @param filterId The filterId of this {@link DataRepositoryPerFilterSearchResult}
*/
public void setFilterId(@Nonnull final String filterId) {
this.filterId = filterId;
}
/**
- * Set the results of this {@link RetievalPerFilterSearchResult} instance and return the same
- * instance.
+ * Set the results of this {@link DataRepositoryPerFilterSearchResult} instance and return the
+ * same instance.
*
* @param results List of returned results.
- * @return The same instance of this {@link RetievalPerFilterSearchResult} class
+ * @return The same instance of this {@link DataRepositoryPerFilterSearchResult} class
*/
@Nonnull
- public RetievalPerFilterSearchResult results(
- @Nullable final List results) {
+ public DataRepositoryPerFilterSearchResult results(
+ @Nullable final List results) {
this.results = results;
return this;
}
/**
- * Add one results instance to this {@link RetievalPerFilterSearchResult}.
+ * Add one results instance to this {@link DataRepositoryPerFilterSearchResult}.
*
* @param resultsItem The results that should be added
- * @return The same instance of type {@link RetievalPerFilterSearchResult}
+ * @return The same instance of type {@link DataRepositoryPerFilterSearchResult}
*/
@Nonnull
- public RetievalPerFilterSearchResult addResultsItem(
- @Nonnull final RetievalDataRepositorySearchResult resultsItem) {
+ public DataRepositoryPerFilterSearchResult addResultsItem(
+ @Nonnull final DataRepositorySearchResult resultsItem) {
if (this.results == null) {
this.results = new ArrayList<>();
}
@@ -107,24 +107,25 @@ public RetievalPerFilterSearchResult addResultsItem(
/**
* List of returned results.
*
- * @return results The results of this {@link RetievalPerFilterSearchResult} instance.
+ * @return results The results of this {@link DataRepositoryPerFilterSearchResult} instance.
*/
@Nonnull
- public List getResults() {
+ public List getResults() {
return results;
}
/**
- * Set the results of this {@link RetievalPerFilterSearchResult} instance.
+ * Set the results of this {@link DataRepositoryPerFilterSearchResult} instance.
*
* @param results List of returned results.
*/
- public void setResults(@Nullable final List results) {
+ public void setResults(@Nullable final List results) {
this.results = results;
}
/**
- * Get the names of the unrecognizable properties of the {@link RetievalPerFilterSearchResult}.
+ * Get the names of the unrecognizable properties of the {@link
+ * DataRepositoryPerFilterSearchResult}.
*
* @return The set of properties names
*/
@@ -135,7 +136,7 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link RetievalPerFilterSearchResult}
+ * Get the value of an unrecognizable property of this {@link DataRepositoryPerFilterSearchResult}
* instance.
*
* @deprecated Use {@link #toMap()} instead.
@@ -148,13 +149,13 @@ public Set getCustomFieldNames() {
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
throw new NoSuchElementException(
- "RetievalPerFilterSearchResult has no field with name '" + name + "'.");
+ "DataRepositoryPerFilterSearchResult has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link RetievalPerFilterSearchResult} instance
+ * Get the value of all properties of this {@link DataRepositoryPerFilterSearchResult} instance
* including unrecognized properties.
*
* @return The map of all properties
@@ -169,8 +170,8 @@ public Map toMap() {
}
/**
- * Set an unrecognizable property of this {@link RetievalPerFilterSearchResult} instance. If the
- * map previously contained a mapping for the key, the old value is replaced by the specified
+ * Set an unrecognizable property of this {@link DataRepositoryPerFilterSearchResult} instance. If
+ * the map previously contained a mapping for the key, the old value is replaced by the specified
* value.
*
* @param customFieldName The name of the property
@@ -189,12 +190,12 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final RetievalPerFilterSearchResult retievalPerFilterSearchResult =
- (RetievalPerFilterSearchResult) o;
+ final DataRepositoryPerFilterSearchResult dataRepositoryPerFilterSearchResult =
+ (DataRepositoryPerFilterSearchResult) o;
return Objects.equals(
- this.cloudSdkCustomFields, retievalPerFilterSearchResult.cloudSdkCustomFields)
- && Objects.equals(this.filterId, retievalPerFilterSearchResult.filterId)
- && Objects.equals(this.results, retievalPerFilterSearchResult.results);
+ this.cloudSdkCustomFields, dataRepositoryPerFilterSearchResult.cloudSdkCustomFields)
+ && Objects.equals(this.filterId, dataRepositoryPerFilterSearchResult.filterId)
+ && Objects.equals(this.results, dataRepositoryPerFilterSearchResult.results);
}
@Override
@@ -206,7 +207,7 @@ public int hashCode() {
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class RetievalPerFilterSearchResult {\n");
+ sb.append("class DataRepositoryPerFilterSearchResult {\n");
sb.append(" filterId: ").append(toIndentedString(filterId)).append("\n");
sb.append(" results: ").append(toIndentedString(results)).append("\n");
cloudSdkCustomFields.forEach(
@@ -228,20 +229,20 @@ private String toIndentedString(final java.lang.Object o) {
/**
* Create a type-safe, fluent-api builder object to construct a new {@link
- * RetievalPerFilterSearchResult} instance with all required arguments.
+ * DataRepositoryPerFilterSearchResult} instance with all required arguments.
*/
public static Builder create() {
- return (filterId) -> new RetievalPerFilterSearchResult().filterId(filterId);
+ return (filterId) -> new DataRepositoryPerFilterSearchResult().filterId(filterId);
}
/** Builder helper class. */
public interface Builder {
/**
- * Set the filterId of this {@link RetievalPerFilterSearchResult} instance.
+ * Set the filterId of this {@link DataRepositoryPerFilterSearchResult} instance.
*
- * @param filterId The filterId of this {@link RetievalPerFilterSearchResult}
- * @return The RetievalPerFilterSearchResult instance.
+ * @param filterId The filterId of this {@link DataRepositoryPerFilterSearchResult}
+ * @return The DataRepositoryPerFilterSearchResult instance.
*/
- RetievalPerFilterSearchResult filterId(@Nonnull final String filterId);
+ DataRepositoryPerFilterSearchResult filterId(@Nonnull final String filterId);
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalDataRepositorySearchResult.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResult.java
similarity index 62%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalDataRepositorySearchResult.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResult.java
index 7b125d369..423e8208a 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalDataRepositorySearchResult.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResult.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -23,9 +23,9 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** RetievalDataRepositorySearchResult */
+/** DataRepositorySearchResult */
// CHECKSTYLE:OFF
-public class RetievalDataRepositorySearchResult
+public class DataRepositorySearchResult
// CHECKSTYLE:ON
{
@JsonProperty("dataRepository")
@@ -34,18 +34,18 @@ public class RetievalDataRepositorySearchResult
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for RetievalDataRepositorySearchResult. */
- protected RetievalDataRepositorySearchResult() {}
+ /** Default constructor for DataRepositorySearchResult. */
+ protected DataRepositorySearchResult() {}
/**
- * Set the dataRepository of this {@link RetievalDataRepositorySearchResult} instance and return
- * the same instance.
+ * Set the dataRepository of this {@link DataRepositorySearchResult} instance and return the same
+ * instance.
*
- * @param dataRepository The dataRepository of this {@link RetievalDataRepositorySearchResult}
- * @return The same instance of this {@link RetievalDataRepositorySearchResult} class
+ * @param dataRepository The dataRepository of this {@link DataRepositorySearchResult}
+ * @return The same instance of this {@link DataRepositorySearchResult} class
*/
@Nonnull
- public RetievalDataRepositorySearchResult dataRepository(
+ public DataRepositorySearchResult dataRepository(
@Nonnull final DataRepositoryWithDocuments dataRepository) {
this.dataRepository = dataRepository;
return this;
@@ -54,8 +54,7 @@ public RetievalDataRepositorySearchResult dataRepository(
/**
* Get dataRepository
*
- * @return dataRepository The dataRepository of this {@link RetievalDataRepositorySearchResult}
- * instance.
+ * @return dataRepository The dataRepository of this {@link DataRepositorySearchResult} instance.
*/
@Nonnull
public DataRepositoryWithDocuments getDataRepository() {
@@ -63,17 +62,16 @@ public DataRepositoryWithDocuments getDataRepository() {
}
/**
- * Set the dataRepository of this {@link RetievalDataRepositorySearchResult} instance.
+ * Set the dataRepository of this {@link DataRepositorySearchResult} instance.
*
- * @param dataRepository The dataRepository of this {@link RetievalDataRepositorySearchResult}
+ * @param dataRepository The dataRepository of this {@link DataRepositorySearchResult}
*/
public void setDataRepository(@Nonnull final DataRepositoryWithDocuments dataRepository) {
this.dataRepository = dataRepository;
}
/**
- * Get the names of the unrecognizable properties of the {@link
- * RetievalDataRepositorySearchResult}.
+ * Get the names of the unrecognizable properties of the {@link DataRepositorySearchResult}.
*
* @return The set of properties names
*/
@@ -84,7 +82,7 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link RetievalDataRepositorySearchResult}
+ * Get the value of an unrecognizable property of this {@link DataRepositorySearchResult}
* instance.
*
* @deprecated Use {@link #toMap()} instead.
@@ -97,14 +95,14 @@ public Set getCustomFieldNames() {
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
throw new NoSuchElementException(
- "RetievalDataRepositorySearchResult has no field with name '" + name + "'.");
+ "DataRepositorySearchResult has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link RetievalDataRepositorySearchResult} instance
- * including unrecognized properties.
+ * Get the value of all properties of this {@link DataRepositorySearchResult} instance including
+ * unrecognized properties.
*
* @return The map of all properties
*/
@@ -117,9 +115,8 @@ public Map toMap() {
}
/**
- * Set an unrecognizable property of this {@link RetievalDataRepositorySearchResult} instance. If
- * the map previously contained a mapping for the key, the old value is replaced by the specified
- * value.
+ * Set an unrecognizable property of this {@link DataRepositorySearchResult} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
*
* @param customFieldName The name of the property
* @param customFieldValue The value of the property
@@ -137,11 +134,10 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final RetievalDataRepositorySearchResult retievalDataRepositorySearchResult =
- (RetievalDataRepositorySearchResult) o;
+ final DataRepositorySearchResult dataRepositorySearchResult = (DataRepositorySearchResult) o;
return Objects.equals(
- this.cloudSdkCustomFields, retievalDataRepositorySearchResult.cloudSdkCustomFields)
- && Objects.equals(this.dataRepository, retievalDataRepositorySearchResult.dataRepository);
+ this.cloudSdkCustomFields, dataRepositorySearchResult.cloudSdkCustomFields)
+ && Objects.equals(this.dataRepository, dataRepositorySearchResult.dataRepository);
}
@Override
@@ -153,7 +149,7 @@ public int hashCode() {
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class RetievalDataRepositorySearchResult {\n");
+ sb.append("class DataRepositorySearchResult {\n");
sb.append(" dataRepository: ").append(toIndentedString(dataRepository)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
@@ -174,22 +170,21 @@ private String toIndentedString(final java.lang.Object o) {
/**
* Create a type-safe, fluent-api builder object to construct a new {@link
- * RetievalDataRepositorySearchResult} instance with all required arguments.
+ * DataRepositorySearchResult} instance with all required arguments.
*/
public static Builder create() {
- return (dataRepository) ->
- new RetievalDataRepositorySearchResult().dataRepository(dataRepository);
+ return (dataRepository) -> new DataRepositorySearchResult().dataRepository(dataRepository);
}
/** Builder helper class. */
public interface Builder {
/**
- * Set the dataRepository of this {@link RetievalDataRepositorySearchResult} instance.
+ * Set the dataRepository of this {@link DataRepositorySearchResult} instance.
*
- * @param dataRepository The dataRepository of this {@link RetievalDataRepositorySearchResult}
- * @return The RetievalDataRepositorySearchResult instance.
+ * @param dataRepository The dataRepository of this {@link DataRepositorySearchResult}
+ * @return The DataRepositorySearchResult instance.
*/
- RetievalDataRepositorySearchResult dataRepository(
+ DataRepositorySearchResult dataRepository(
@Nonnull final DataRepositoryWithDocuments dataRepository);
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalSearchResults.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResults.java
similarity index 62%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalSearchResults.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResults.java
index 060878e7c..392df0da3 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalSearchResults.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositorySearchResults.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -26,9 +26,9 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** RetievalSearchResults */
+/** DataRepositorySearchResults */
// CHECKSTYLE:OFF
-public class RetievalSearchResults
+public class DataRepositorySearchResults
// CHECKSTYLE:ON
{
@JsonProperty("results")
@@ -37,29 +37,30 @@ public class RetievalSearchResults
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for RetievalSearchResults. */
- protected RetievalSearchResults() {}
+ /** Default constructor for DataRepositorySearchResults. */
+ protected DataRepositorySearchResults() {}
/**
- * Set the results of this {@link RetievalSearchResults} instance and return the same instance.
+ * Set the results of this {@link DataRepositorySearchResults} instance and return the same
+ * instance.
*
* @param results List of returned results.
- * @return The same instance of this {@link RetievalSearchResults} class
+ * @return The same instance of this {@link DataRepositorySearchResults} class
*/
@Nonnull
- public RetievalSearchResults results(@Nonnull final List results) {
+ public DataRepositorySearchResults results(@Nonnull final List results) {
this.results = results;
return this;
}
/**
- * Add one results instance to this {@link RetievalSearchResults}.
+ * Add one results instance to this {@link DataRepositorySearchResults}.
*
* @param resultsItem The results that should be added
- * @return The same instance of type {@link RetievalSearchResults}
+ * @return The same instance of type {@link DataRepositorySearchResults}
*/
@Nonnull
- public RetievalSearchResults addResultsItem(@Nonnull final ResultsInner1 resultsItem) {
+ public DataRepositorySearchResults addResultsItem(@Nonnull final ResultsInner1 resultsItem) {
if (this.results == null) {
this.results = new ArrayList<>();
}
@@ -70,7 +71,7 @@ public RetievalSearchResults addResultsItem(@Nonnull final ResultsInner1 results
/**
* List of returned results.
*
- * @return results The results of this {@link RetievalSearchResults} instance.
+ * @return results The results of this {@link DataRepositorySearchResults} instance.
*/
@Nonnull
public List getResults() {
@@ -78,7 +79,7 @@ public List getResults() {
}
/**
- * Set the results of this {@link RetievalSearchResults} instance.
+ * Set the results of this {@link DataRepositorySearchResults} instance.
*
* @param results List of returned results.
*/
@@ -87,7 +88,7 @@ public void setResults(@Nonnull final List results) {
}
/**
- * Get the names of the unrecognizable properties of the {@link RetievalSearchResults}.
+ * Get the names of the unrecognizable properties of the {@link DataRepositorySearchResults}.
*
* @return The set of properties names
*/
@@ -98,7 +99,8 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link RetievalSearchResults} instance.
+ * Get the value of an unrecognizable property of this {@link DataRepositorySearchResults}
+ * instance.
*
* @deprecated Use {@link #toMap()} instead.
* @param name The name of the property
@@ -110,13 +112,13 @@ public Set getCustomFieldNames() {
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
throw new NoSuchElementException(
- "RetievalSearchResults has no field with name '" + name + "'.");
+ "DataRepositorySearchResults has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link RetievalSearchResults} instance including
+ * Get the value of all properties of this {@link DataRepositorySearchResults} instance including
* unrecognized properties.
*
* @return The map of all properties
@@ -130,7 +132,7 @@ public Map toMap() {
}
/**
- * Set an unrecognizable property of this {@link RetievalSearchResults} instance. If the map
+ * Set an unrecognizable property of this {@link DataRepositorySearchResults} instance. If the map
* previously contained a mapping for the key, the old value is replaced by the specified value.
*
* @param customFieldName The name of the property
@@ -149,9 +151,10 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final RetievalSearchResults retievalSearchResults = (RetievalSearchResults) o;
- return Objects.equals(this.cloudSdkCustomFields, retievalSearchResults.cloudSdkCustomFields)
- && Objects.equals(this.results, retievalSearchResults.results);
+ final DataRepositorySearchResults dataRepositorySearchResults = (DataRepositorySearchResults) o;
+ return Objects.equals(
+ this.cloudSdkCustomFields, dataRepositorySearchResults.cloudSdkCustomFields)
+ && Objects.equals(this.results, dataRepositorySearchResults.results);
}
@Override
@@ -163,7 +166,7 @@ public int hashCode() {
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class RetievalSearchResults {\n");
+ sb.append("class DataRepositorySearchResults {\n");
sb.append(" results: ").append(toIndentedString(results)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
@@ -183,30 +186,30 @@ private String toIndentedString(final java.lang.Object o) {
}
/**
- * Create a type-safe, fluent-api builder object to construct a new {@link RetievalSearchResults}
- * instance with all required arguments.
+ * Create a type-safe, fluent-api builder object to construct a new {@link
+ * DataRepositorySearchResults} instance with all required arguments.
*/
public static Builder create() {
- return (results) -> new RetievalSearchResults().results(results);
+ return (results) -> new DataRepositorySearchResults().results(results);
}
/** Builder helper class. */
public interface Builder {
/**
- * Set the results of this {@link RetievalSearchResults} instance.
+ * Set the results of this {@link DataRepositorySearchResults} instance.
*
* @param results List of returned results.
- * @return The RetievalSearchResults instance.
+ * @return The DataRepositorySearchResults instance.
*/
- RetievalSearchResults results(@Nonnull final List results);
+ DataRepositorySearchResults results(@Nonnull final List results);
/**
- * Set the results of this {@link RetievalSearchResults} instance.
+ * Set the results of this {@link DataRepositorySearchResults} instance.
*
* @param results List of returned results.
- * @return The RetievalSearchResults instance.
+ * @return The DataRepositorySearchResults instance.
*/
- default RetievalSearchResults results(@Nonnull final ResultsInner1... results) {
+ default DataRepositorySearchResults results(@Nonnull final ResultsInner1... results) {
return results(Arrays.asList(results));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryType.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryType.java
index 0d7d8fff9..b3cc53040 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryType.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryType.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -19,6 +19,8 @@
public enum DataRepositoryType {
VECTOR("vector"),
+ HELP_SAP_COM("help.sap.com"),
+
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private final String value;
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryWithDocuments.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryWithDocuments.java
index 95a009f35..b2dbc8cec 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryWithDocuments.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DataRepositoryWithDocuments.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -42,7 +42,7 @@ public class DataRepositoryWithDocuments
private List metadata = new ArrayList<>();
@JsonProperty("documents")
- private List documents = new ArrayList<>();
+ private List documents = new ArrayList<>();
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
@@ -171,7 +171,7 @@ public void setMetadata(@Nullable final List metadata) {
* @return The same instance of this {@link DataRepositoryWithDocuments} class
*/
@Nonnull
- public DataRepositoryWithDocuments documents(@Nonnull final List documents) {
+ public DataRepositoryWithDocuments documents(@Nonnull final List documents) {
this.documents = documents;
return this;
}
@@ -183,8 +183,7 @@ public DataRepositoryWithDocuments documents(@Nonnull final List();
}
@@ -198,7 +197,7 @@ public DataRepositoryWithDocuments addDocumentsItem(
* @return documents The documents of this {@link DataRepositoryWithDocuments} instance.
*/
@Nonnull
- public List getDocuments() {
+ public List getDocuments() {
return documents;
}
@@ -207,7 +206,7 @@ public List getDocuments() {
*
* @param documents The documents of this {@link DataRepositoryWithDocuments}
*/
- public void setDocuments(@Nonnull final List documents) {
+ public void setDocuments(@Nonnull final List documents) {
this.documents = documents;
}
@@ -359,7 +358,7 @@ public interface Builder2 {
* @param documents The documents of this {@link DataRepositoryWithDocuments}
* @return The DataRepositoryWithDocuments instance.
*/
- DataRepositoryWithDocuments documents(@Nonnull final List documents);
+ DataRepositoryWithDocuments documents(@Nonnull final List documents);
/**
* Set the documents of this {@link DataRepositoryWithDocuments} instance.
@@ -367,7 +366,7 @@ public interface Builder2 {
* @param documents The documents of this {@link DataRepositoryWithDocuments}
* @return The DataRepositoryWithDocuments instance.
*/
- default DataRepositoryWithDocuments documents(@Nonnull final RetrievalDocument... documents) {
+ default DataRepositoryWithDocuments documents(@Nonnull final Document... documents) {
return documents(Arrays.asList(documents));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DetailsErrorResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DetailsErrorResponse.java
index d0852bc24..a3b26e424 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DetailsErrorResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DetailsErrorResponse.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalDocument.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Document.java
similarity index 58%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalDocument.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Document.java
index b85085236..f60c56b31 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetrievalDocument.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Document.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -26,9 +26,9 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** RetrievalDocument */
+/** Document */
// CHECKSTYLE:OFF
-public class RetrievalDocument
+public class Document
// CHECKSTYLE:ON
{
@JsonProperty("id")
@@ -43,17 +43,17 @@ public class RetrievalDocument
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for RetrievalDocument. */
- protected RetrievalDocument() {}
+ /** Default constructor for Document. */
+ protected Document() {}
/**
- * Set the id of this {@link RetrievalDocument} instance and return the same instance.
+ * Set the id of this {@link Document} instance and return the same instance.
*
- * @param id The id of this {@link RetrievalDocument}
- * @return The same instance of this {@link RetrievalDocument} class
+ * @param id The id of this {@link Document}
+ * @return The same instance of this {@link Document} class
*/
@Nonnull
- public RetrievalDocument id(@Nonnull final String id) {
+ public Document id(@Nonnull final String id) {
this.id = id;
return this;
}
@@ -61,7 +61,7 @@ public RetrievalDocument id(@Nonnull final String id) {
/**
* Get id
*
- * @return id The id of this {@link RetrievalDocument} instance.
+ * @return id The id of this {@link Document} instance.
*/
@Nonnull
public String getId() {
@@ -69,34 +69,34 @@ public String getId() {
}
/**
- * Set the id of this {@link RetrievalDocument} instance.
+ * Set the id of this {@link Document} instance.
*
- * @param id The id of this {@link RetrievalDocument}
+ * @param id The id of this {@link Document}
*/
public void setId(@Nonnull final String id) {
this.id = id;
}
/**
- * Set the metadata of this {@link RetrievalDocument} instance and return the same instance.
+ * Set the metadata of this {@link Document} instance and return the same instance.
*
- * @param metadata The metadata of this {@link RetrievalDocument}
- * @return The same instance of this {@link RetrievalDocument} class
+ * @param metadata The metadata of this {@link Document}
+ * @return The same instance of this {@link Document} class
*/
@Nonnull
- public RetrievalDocument metadata(@Nullable final List metadata) {
+ public Document metadata(@Nullable final List metadata) {
this.metadata = metadata;
return this;
}
/**
- * Add one metadata instance to this {@link RetrievalDocument}.
+ * Add one metadata instance to this {@link Document}.
*
* @param metadataItem The metadata that should be added
- * @return The same instance of type {@link RetrievalDocument}
+ * @return The same instance of type {@link Document}
*/
@Nonnull
- public RetrievalDocument addMetadataItem(@Nonnull final DocumentKeyValueListPair metadataItem) {
+ public Document addMetadataItem(@Nonnull final DocumentKeyValueListPair metadataItem) {
if (this.metadata == null) {
this.metadata = new ArrayList<>();
}
@@ -107,7 +107,7 @@ public RetrievalDocument addMetadataItem(@Nonnull final DocumentKeyValueListPair
/**
* Get metadata
*
- * @return metadata The metadata of this {@link RetrievalDocument} instance.
+ * @return metadata The metadata of this {@link Document} instance.
*/
@Nonnull
public List getMetadata() {
@@ -115,34 +115,34 @@ public List getMetadata() {
}
/**
- * Set the metadata of this {@link RetrievalDocument} instance.
+ * Set the metadata of this {@link Document} instance.
*
- * @param metadata The metadata of this {@link RetrievalDocument}
+ * @param metadata The metadata of this {@link Document}
*/
public void setMetadata(@Nullable final List metadata) {
this.metadata = metadata;
}
/**
- * Set the chunks of this {@link RetrievalDocument} instance and return the same instance.
+ * Set the chunks of this {@link Document} instance and return the same instance.
*
- * @param chunks The chunks of this {@link RetrievalDocument}
- * @return The same instance of this {@link RetrievalDocument} class
+ * @param chunks The chunks of this {@link Document}
+ * @return The same instance of this {@link Document} class
*/
@Nonnull
- public RetrievalDocument chunks(@Nonnull final List chunks) {
+ public Document chunks(@Nonnull final List chunks) {
this.chunks = chunks;
return this;
}
/**
- * Add one chunks instance to this {@link RetrievalDocument}.
+ * Add one chunks instance to this {@link Document}.
*
* @param chunksItem The chunks that should be added
- * @return The same instance of type {@link RetrievalDocument}
+ * @return The same instance of type {@link Document}
*/
@Nonnull
- public RetrievalDocument addChunksItem(@Nonnull final Chunk chunksItem) {
+ public Document addChunksItem(@Nonnull final Chunk chunksItem) {
if (this.chunks == null) {
this.chunks = new ArrayList<>();
}
@@ -153,7 +153,7 @@ public RetrievalDocument addChunksItem(@Nonnull final Chunk chunksItem) {
/**
* Get chunks
*
- * @return chunks The chunks of this {@link RetrievalDocument} instance.
+ * @return chunks The chunks of this {@link Document} instance.
*/
@Nonnull
public List getChunks() {
@@ -161,16 +161,16 @@ public List getChunks() {
}
/**
- * Set the chunks of this {@link RetrievalDocument} instance.
+ * Set the chunks of this {@link Document} instance.
*
- * @param chunks The chunks of this {@link RetrievalDocument}
+ * @param chunks The chunks of this {@link Document}
*/
public void setChunks(@Nonnull final List chunks) {
this.chunks = chunks;
}
/**
- * Get the names of the unrecognizable properties of the {@link RetrievalDocument}.
+ * Get the names of the unrecognizable properties of the {@link Document}.
*
* @return The set of properties names
*/
@@ -181,7 +181,7 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link RetrievalDocument} instance.
+ * Get the value of an unrecognizable property of this {@link Document} instance.
*
* @deprecated Use {@link #toMap()} instead.
* @param name The name of the property
@@ -192,14 +192,14 @@ public Set getCustomFieldNames() {
@Deprecated
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
- throw new NoSuchElementException("RetrievalDocument has no field with name '" + name + "'.");
+ throw new NoSuchElementException("Document has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link RetrievalDocument} instance including
- * unrecognized properties.
+ * Get the value of all properties of this {@link Document} instance including unrecognized
+ * properties.
*
* @return The map of all properties
*/
@@ -214,8 +214,8 @@ public Map toMap() {
}
/**
- * Set an unrecognizable property of this {@link RetrievalDocument} instance. If the map
- * previously contained a mapping for the key, the old value is replaced by the specified value.
+ * Set an unrecognizable property of this {@link Document} instance. If the map previously
+ * contained a mapping for the key, the old value is replaced by the specified value.
*
* @param customFieldName The name of the property
* @param customFieldValue The value of the property
@@ -233,11 +233,11 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final RetrievalDocument retrievalDocument = (RetrievalDocument) o;
- return Objects.equals(this.cloudSdkCustomFields, retrievalDocument.cloudSdkCustomFields)
- && Objects.equals(this.id, retrievalDocument.id)
- && Objects.equals(this.metadata, retrievalDocument.metadata)
- && Objects.equals(this.chunks, retrievalDocument.chunks);
+ final Document document = (Document) o;
+ return Objects.equals(this.cloudSdkCustomFields, document.cloudSdkCustomFields)
+ && Objects.equals(this.id, document.id)
+ && Objects.equals(this.metadata, document.metadata)
+ && Objects.equals(this.chunks, document.chunks);
}
@Override
@@ -249,7 +249,7 @@ public int hashCode() {
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class RetrievalDocument {\n");
+ sb.append("class Document {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append(" chunks: ").append(toIndentedString(chunks)).append("\n");
@@ -271,20 +271,20 @@ private String toIndentedString(final java.lang.Object o) {
}
/**
- * Create a type-safe, fluent-api builder object to construct a new {@link RetrievalDocument}
- * instance with all required arguments.
+ * Create a type-safe, fluent-api builder object to construct a new {@link Document} instance with
+ * all required arguments.
*/
public static Builder create() {
- return (id) -> (chunks) -> new RetrievalDocument().id(id).chunks(chunks);
+ return (id) -> (chunks) -> new Document().id(id).chunks(chunks);
}
/** Builder helper class. */
public interface Builder {
/**
- * Set the id of this {@link RetrievalDocument} instance.
+ * Set the id of this {@link Document} instance.
*
- * @param id The id of this {@link RetrievalDocument}
- * @return The RetrievalDocument builder.
+ * @param id The id of this {@link Document}
+ * @return The Document builder.
*/
Builder1 id(@Nonnull final String id);
}
@@ -292,20 +292,20 @@ public interface Builder {
/** Builder helper class. */
public interface Builder1 {
/**
- * Set the chunks of this {@link RetrievalDocument} instance.
+ * Set the chunks of this {@link Document} instance.
*
- * @param chunks The chunks of this {@link RetrievalDocument}
- * @return The RetrievalDocument instance.
+ * @param chunks The chunks of this {@link Document}
+ * @return The Document instance.
*/
- RetrievalDocument chunks(@Nonnull final List chunks);
+ Document chunks(@Nonnull final List chunks);
/**
- * Set the chunks of this {@link RetrievalDocument} instance.
+ * Set the chunks of this {@link Document} instance.
*
- * @param chunks The chunks of this {@link RetrievalDocument}
- * @return The RetrievalDocument instance.
+ * @param chunks The chunks of this {@link Document}
+ * @return The Document instance.
*/
- default RetrievalDocument chunks(@Nonnull final Chunk... chunks) {
+ default Document chunks(@Nonnull final Chunk... chunks) {
return chunks(Arrays.asList(chunks));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentCreateRequest.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentCreateRequest.java
index 18ebe7798..02bc02483 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentCreateRequest.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentCreateRequest.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentInput.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentInput.java
index a02c58f7a..95a55a1c2 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentInput.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentInput.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentKeyValueListPair.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentKeyValueListPair.java
index 7f29322f2..38a9c5cb7 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentKeyValueListPair.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentKeyValueListPair.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentOutput.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentOutput.java
index c4d42f22f..972994555 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentOutput.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentOutput.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentResponse.java
index 98e2d195f..6c27f1ec8 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentResponse.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentStatus.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentStatus.java
new file mode 100644
index 000000000..cfbb1235c
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentStatus.java
@@ -0,0 +1,72 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import javax.annotation.Nonnull;
+
+/** Gets or Sets DocumentStatus */
+public enum DocumentStatus {
+ TO_BE_PROCESSED("TO_BE_PROCESSED"),
+
+ INDEXED("INDEXED"),
+
+ REINDEXED("REINDEXED"),
+
+ DEINDEXED("DEINDEXED"),
+
+ FAILED("FAILED"),
+
+ FAILED_TO_BE_RETRIED("FAILED_TO_BE_RETRIED"),
+
+ UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
+
+ private final String value;
+
+ DocumentStatus(String value) {
+ this.value = value;
+ }
+
+ /**
+ * @return The enum value.
+ */
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * @return The String representation of the enum value.
+ */
+ @Override
+ @Nonnull
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ /**
+ * Converts the given value to its enum representation.
+ *
+ * @param value The input value.
+ * @return The enum representation of the given value.
+ */
+ @JsonCreator
+ public static DocumentStatus fromValue(@Nonnull final String value) {
+ for (final DocumentStatus b : DocumentStatus.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ return UNKNOWN_DEFAULT_OPEN_API;
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentUpdateRequest.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentUpdateRequest.java
index f4aea0d44..7d8a0ea99 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentUpdateRequest.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentUpdateRequest.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentWithoutChunks.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentWithoutChunks.java
index bf1bda4a0..524d54dbd 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentWithoutChunks.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentWithoutChunks.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Documents.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Documents.java
index 156028b44..fc9442919 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Documents.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Documents.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -31,18 +31,49 @@
public class Documents
// CHECKSTYLE:ON
{
- @JsonProperty("resources")
- private List resources = new ArrayList<>();
-
@JsonProperty("count")
private Integer count;
+ @JsonProperty("resources")
+ private List resources = new ArrayList<>();
+
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
/** Default constructor for Documents. */
protected Documents() {}
+ /**
+ * Set the count of this {@link Documents} instance and return the same instance.
+ *
+ * @param count The count of this {@link Documents}
+ * @return The same instance of this {@link Documents} class
+ */
+ @Nonnull
+ public Documents count(@Nullable final Integer count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get count
+ *
+ * @return count The count of this {@link Documents} instance.
+ */
+ @Nonnull
+ public Integer getCount() {
+ return count;
+ }
+
+ /**
+ * Set the count of this {@link Documents} instance.
+ *
+ * @param count The count of this {@link Documents}
+ */
+ public void setCount(@Nullable final Integer count) {
+ this.count = count;
+ }
+
/**
* Set the resources of this {@link Documents} instance and return the same instance.
*
@@ -89,37 +120,6 @@ public void setResources(@Nonnull final List resources) {
this.resources = resources;
}
- /**
- * Set the count of this {@link Documents} instance and return the same instance.
- *
- * @param count The count of this {@link Documents}
- * @return The same instance of this {@link Documents} class
- */
- @Nonnull
- public Documents count(@Nullable final Integer count) {
- this.count = count;
- return this;
- }
-
- /**
- * Get count
- *
- * @return count The count of this {@link Documents} instance.
- */
- @Nonnull
- public Integer getCount() {
- return count;
- }
-
- /**
- * Set the count of this {@link Documents} instance.
- *
- * @param count The count of this {@link Documents}
- */
- public void setCount(@Nullable final Integer count) {
- this.count = count;
- }
-
/**
* Get the names of the unrecognizable properties of the {@link Documents}.
*
@@ -158,8 +158,8 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
@Nonnull
public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
- if (resources != null) declaredFields.put("resources", resources);
if (count != null) declaredFields.put("count", count);
+ if (resources != null) declaredFields.put("resources", resources);
return declaredFields;
}
@@ -185,13 +185,13 @@ public boolean equals(@Nullable final java.lang.Object o) {
}
final Documents documents = (Documents) o;
return Objects.equals(this.cloudSdkCustomFields, documents.cloudSdkCustomFields)
- && Objects.equals(this.resources, documents.resources)
- && Objects.equals(this.count, documents.count);
+ && Objects.equals(this.count, documents.count)
+ && Objects.equals(this.resources, documents.resources);
}
@Override
public int hashCode() {
- return Objects.hash(resources, count, cloudSdkCustomFields);
+ return Objects.hash(count, resources, cloudSdkCustomFields);
}
@Override
@@ -199,8 +199,8 @@ public int hashCode() {
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class Documents {\n");
- sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
+ sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsChunk.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsChunk.java
index 169928d72..b79c0c891 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsChunk.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsChunk.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsListResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsListResponse.java
index fbe562fc9..5531d854b 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsListResponse.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsListResponse.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponse.java
new file mode 100644
index 000000000..8b282679d
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponse.java
@@ -0,0 +1,228 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.ArrayList;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** DocumentsStatusResponse */
+// CHECKSTYLE:OFF
+public class DocumentsStatusResponse
+// CHECKSTYLE:ON
+{
+ @JsonProperty("count")
+ private Integer count;
+
+ @JsonProperty("resources")
+ private List resources = new ArrayList<>();
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for DocumentsStatusResponse. */
+ protected DocumentsStatusResponse() {}
+
+ /**
+ * Set the count of this {@link DocumentsStatusResponse} instance and return the same instance.
+ *
+ * @param count The count of this {@link DocumentsStatusResponse}
+ * @return The same instance of this {@link DocumentsStatusResponse} class
+ */
+ @Nonnull
+ public DocumentsStatusResponse count(@Nullable final Integer count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get count
+ *
+ * @return count The count of this {@link DocumentsStatusResponse} instance.
+ */
+ @Nonnull
+ public Integer getCount() {
+ return count;
+ }
+
+ /**
+ * Set the count of this {@link DocumentsStatusResponse} instance.
+ *
+ * @param count The count of this {@link DocumentsStatusResponse}
+ */
+ public void setCount(@Nullable final Integer count) {
+ this.count = count;
+ }
+
+ /**
+ * Set the resources of this {@link DocumentsStatusResponse} instance and return the same
+ * instance.
+ *
+ * @param resources The resources of this {@link DocumentsStatusResponse}
+ * @return The same instance of this {@link DocumentsStatusResponse} class
+ */
+ @Nonnull
+ public DocumentsStatusResponse resources(
+ @Nullable final List resources) {
+ this.resources = resources;
+ return this;
+ }
+
+ /**
+ * Add one resources instance to this {@link DocumentsStatusResponse}.
+ *
+ * @param resourcesItem The resources that should be added
+ * @return The same instance of type {@link DocumentsStatusResponse}
+ */
+ @Nonnull
+ public DocumentsStatusResponse addResourcesItem(
+ @Nonnull final DocumentsStatusResponseResourcesInner resourcesItem) {
+ if (this.resources == null) {
+ this.resources = new ArrayList<>();
+ }
+ this.resources.add(resourcesItem);
+ return this;
+ }
+
+ /**
+ * Get resources
+ *
+ * @return resources The resources of this {@link DocumentsStatusResponse} instance.
+ */
+ @Nonnull
+ public List getResources() {
+ return resources;
+ }
+
+ /**
+ * Set the resources of this {@link DocumentsStatusResponse} instance.
+ *
+ * @param resources The resources of this {@link DocumentsStatusResponse}
+ */
+ public void setResources(@Nullable final List resources) {
+ this.resources = resources;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link DocumentsStatusResponse}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link DocumentsStatusResponse} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "DocumentsStatusResponse has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link DocumentsStatusResponse} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (count != null) declaredFields.put("count", count);
+ if (resources != null) declaredFields.put("resources", resources);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link DocumentsStatusResponse} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final DocumentsStatusResponse documentsStatusResponse = (DocumentsStatusResponse) o;
+ return Objects.equals(this.cloudSdkCustomFields, documentsStatusResponse.cloudSdkCustomFields)
+ && Objects.equals(this.count, documentsStatusResponse.count)
+ && Objects.equals(this.resources, documentsStatusResponse.resources);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(count, resources, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class DocumentsStatusResponse {\n");
+ sb.append(" count: ").append(toIndentedString(count)).append("\n");
+ sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /** Create a new {@link DocumentsStatusResponse} instance. No arguments are required. */
+ public static DocumentsStatusResponse create() {
+ return new DocumentsStatusResponse();
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponseResourcesInner.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponseResourcesInner.java
new file mode 100644
index 000000000..5c9a182e1
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/DocumentsStatusResponseResourcesInner.java
@@ -0,0 +1,217 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** DocumentsStatusResponseResourcesInner */
+// CHECKSTYLE:OFF
+public class DocumentsStatusResponseResourcesInner
+// CHECKSTYLE:ON
+{
+ @JsonProperty("id")
+ private String id;
+
+ @JsonProperty("status")
+ private DocumentStatus status;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for DocumentsStatusResponseResourcesInner. */
+ protected DocumentsStatusResponseResourcesInner() {}
+
+ /**
+ * Set the id of this {@link DocumentsStatusResponseResourcesInner} instance and return the same
+ * instance.
+ *
+ * @param id The id of this {@link DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner id(@Nullable final String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get id
+ *
+ * @return id The id of this {@link DocumentsStatusResponseResourcesInner} instance.
+ */
+ @Nonnull
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Set the id of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param id The id of this {@link DocumentsStatusResponseResourcesInner}
+ */
+ public void setId(@Nullable final String id) {
+ this.id = id;
+ }
+
+ /**
+ * Set the status of this {@link DocumentsStatusResponseResourcesInner} instance and return the
+ * same instance.
+ *
+ * @param status The status of this {@link DocumentsStatusResponseResourcesInner}
+ * @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
+ */
+ @Nonnull
+ public DocumentsStatusResponseResourcesInner status(@Nullable final DocumentStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status The status of this {@link DocumentsStatusResponseResourcesInner} instance.
+ */
+ @Nonnull
+ public DocumentStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * Set the status of this {@link DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @param status The status of this {@link DocumentsStatusResponseResourcesInner}
+ */
+ public void setStatus(@Nullable final DocumentStatus status) {
+ this.status = status;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link
+ * DocumentsStatusResponseResourcesInner}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link
+ * DocumentsStatusResponseResourcesInner} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "DocumentsStatusResponseResourcesInner has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link DocumentsStatusResponseResourcesInner} instance
+ * including unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (id != null) declaredFields.put("id", id);
+ if (status != null) declaredFields.put("status", status);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link DocumentsStatusResponseResourcesInner} instance.
+ * If the map previously contained a mapping for the key, the old value is replaced by the
+ * specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final DocumentsStatusResponseResourcesInner documentsStatusResponseResourcesInner =
+ (DocumentsStatusResponseResourcesInner) o;
+ return Objects.equals(
+ this.cloudSdkCustomFields, documentsStatusResponseResourcesInner.cloudSdkCustomFields)
+ && Objects.equals(this.id, documentsStatusResponseResourcesInner.id)
+ && Objects.equals(this.status, documentsStatusResponseResourcesInner.status);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, status, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class DocumentsStatusResponseResourcesInner {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a new {@link DocumentsStatusResponseResourcesInner} instance. No arguments are required.
+ */
+ public static DocumentsStatusResponseResourcesInner create() {
+ return new DocumentsStatusResponseResourcesInner();
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/EmbeddingConfig.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/EmbeddingConfig.java
index 5e34f8729..1d124cf29 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/EmbeddingConfig.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/EmbeddingConfig.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipeline.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipeline.java
new file mode 100644
index 000000000..8eb624ce7
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipeline.java
@@ -0,0 +1,31 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+
+/** GetPipeline */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true)
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = MSSharePointPipelineGetResponse.class, name = "MSSharePoint"),
+ @JsonSubTypes.Type(value = S3PipelineGetResponse.class, name = "S3"),
+ @JsonSubTypes.Type(value = SFTPPipelineGetResponse.class, name = "SFTP"),
+ @JsonSubTypes.Type(
+ value = MSSharePointPipelineGetResponse.class,
+ name = "MSSharePointPipelineGetResponse"),
+ @JsonSubTypes.Type(value = S3PipelineGetResponse.class, name = "S3PipelineGetResponse"),
+ @JsonSubTypes.Type(value = SFTPPipelineGetResponse.class, name = "SFTPPipelineGetResponse"),
+})
+public interface GetPipeline {
+ Object getType();
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineExecutionById.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineExecutionById.java
new file mode 100644
index 000000000..12a0afef7
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineExecutionById.java
@@ -0,0 +1,284 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** GetPipelineExecutionById */
+// CHECKSTYLE:OFF
+public class GetPipelineExecutionById
+// CHECKSTYLE:ON
+{
+ @JsonProperty("id")
+ private String id;
+
+ @JsonProperty("createdAt")
+ private String createdAt;
+
+ @JsonProperty("modifiedAt")
+ private String modifiedAt;
+
+ @JsonProperty("status")
+ private PipelineExecutionStatus status;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for GetPipelineExecutionById. */
+ protected GetPipelineExecutionById() {}
+
+ /**
+ * Set the id of this {@link GetPipelineExecutionById} instance and return the same instance.
+ *
+ * @param id The id of this {@link GetPipelineExecutionById}
+ * @return The same instance of this {@link GetPipelineExecutionById} class
+ */
+ @Nonnull
+ public GetPipelineExecutionById id(@Nullable final String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get id
+ *
+ * @return id The id of this {@link GetPipelineExecutionById} instance.
+ */
+ @Nonnull
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Set the id of this {@link GetPipelineExecutionById} instance.
+ *
+ * @param id The id of this {@link GetPipelineExecutionById}
+ */
+ public void setId(@Nullable final String id) {
+ this.id = id;
+ }
+
+ /**
+ * Set the createdAt of this {@link GetPipelineExecutionById} instance and return the same
+ * instance.
+ *
+ * @param createdAt The createdAt of this {@link GetPipelineExecutionById}
+ * @return The same instance of this {@link GetPipelineExecutionById} class
+ */
+ @Nonnull
+ public GetPipelineExecutionById createdAt(@Nullable final String createdAt) {
+ this.createdAt = createdAt;
+ return this;
+ }
+
+ /**
+ * Get createdAt
+ *
+ * @return createdAt The createdAt of this {@link GetPipelineExecutionById} instance.
+ */
+ @Nonnull
+ public String getCreatedAt() {
+ return createdAt;
+ }
+
+ /**
+ * Set the createdAt of this {@link GetPipelineExecutionById} instance.
+ *
+ * @param createdAt The createdAt of this {@link GetPipelineExecutionById}
+ */
+ public void setCreatedAt(@Nullable final String createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ /**
+ * Set the modifiedAt of this {@link GetPipelineExecutionById} instance and return the same
+ * instance.
+ *
+ * @param modifiedAt The modifiedAt of this {@link GetPipelineExecutionById}
+ * @return The same instance of this {@link GetPipelineExecutionById} class
+ */
+ @Nonnull
+ public GetPipelineExecutionById modifiedAt(@Nullable final String modifiedAt) {
+ this.modifiedAt = modifiedAt;
+ return this;
+ }
+
+ /**
+ * Get modifiedAt
+ *
+ * @return modifiedAt The modifiedAt of this {@link GetPipelineExecutionById} instance.
+ */
+ @Nonnull
+ public String getModifiedAt() {
+ return modifiedAt;
+ }
+
+ /**
+ * Set the modifiedAt of this {@link GetPipelineExecutionById} instance.
+ *
+ * @param modifiedAt The modifiedAt of this {@link GetPipelineExecutionById}
+ */
+ public void setModifiedAt(@Nullable final String modifiedAt) {
+ this.modifiedAt = modifiedAt;
+ }
+
+ /**
+ * Set the status of this {@link GetPipelineExecutionById} instance and return the same instance.
+ *
+ * @param status The status of this {@link GetPipelineExecutionById}
+ * @return The same instance of this {@link GetPipelineExecutionById} class
+ */
+ @Nonnull
+ public GetPipelineExecutionById status(@Nullable final PipelineExecutionStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status The status of this {@link GetPipelineExecutionById} instance.
+ */
+ @Nonnull
+ public PipelineExecutionStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * Set the status of this {@link GetPipelineExecutionById} instance.
+ *
+ * @param status The status of this {@link GetPipelineExecutionById}
+ */
+ public void setStatus(@Nullable final PipelineExecutionStatus status) {
+ this.status = status;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link GetPipelineExecutionById}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link GetPipelineExecutionById} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "GetPipelineExecutionById has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link GetPipelineExecutionById} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (id != null) declaredFields.put("id", id);
+ if (createdAt != null) declaredFields.put("createdAt", createdAt);
+ if (modifiedAt != null) declaredFields.put("modifiedAt", modifiedAt);
+ if (status != null) declaredFields.put("status", status);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link GetPipelineExecutionById} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final GetPipelineExecutionById getPipelineExecutionById = (GetPipelineExecutionById) o;
+ return Objects.equals(this.cloudSdkCustomFields, getPipelineExecutionById.cloudSdkCustomFields)
+ && Objects.equals(this.id, getPipelineExecutionById.id)
+ && Objects.equals(this.createdAt, getPipelineExecutionById.createdAt)
+ && Objects.equals(this.modifiedAt, getPipelineExecutionById.modifiedAt)
+ && Objects.equals(this.status, getPipelineExecutionById.status);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, createdAt, modifiedAt, status, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class GetPipelineExecutionById {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
+ sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /** Create a new {@link GetPipelineExecutionById} instance. No arguments are required. */
+ public static GetPipelineExecutionById create() {
+ return new GetPipelineExecutionById();
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineExecutions.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineExecutions.java
new file mode 100644
index 000000000..d91272b9e
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineExecutions.java
@@ -0,0 +1,226 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.ArrayList;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** GetPipelineExecutions */
+// CHECKSTYLE:OFF
+public class GetPipelineExecutions
+// CHECKSTYLE:ON
+{
+ @JsonProperty("count")
+ private Integer count;
+
+ @JsonProperty("resources")
+ private List resources = new ArrayList<>();
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for GetPipelineExecutions. */
+ protected GetPipelineExecutions() {}
+
+ /**
+ * Set the count of this {@link GetPipelineExecutions} instance and return the same instance.
+ *
+ * @param count The count of this {@link GetPipelineExecutions}
+ * @return The same instance of this {@link GetPipelineExecutions} class
+ */
+ @Nonnull
+ public GetPipelineExecutions count(@Nullable final Integer count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get count
+ *
+ * @return count The count of this {@link GetPipelineExecutions} instance.
+ */
+ @Nonnull
+ public Integer getCount() {
+ return count;
+ }
+
+ /**
+ * Set the count of this {@link GetPipelineExecutions} instance.
+ *
+ * @param count The count of this {@link GetPipelineExecutions}
+ */
+ public void setCount(@Nullable final Integer count) {
+ this.count = count;
+ }
+
+ /**
+ * Set the resources of this {@link GetPipelineExecutions} instance and return the same instance.
+ *
+ * @param resources The resources of this {@link GetPipelineExecutions}
+ * @return The same instance of this {@link GetPipelineExecutions} class
+ */
+ @Nonnull
+ public GetPipelineExecutions resources(@Nullable final List resources) {
+ this.resources = resources;
+ return this;
+ }
+
+ /**
+ * Add one resources instance to this {@link GetPipelineExecutions}.
+ *
+ * @param resourcesItem The resources that should be added
+ * @return The same instance of type {@link GetPipelineExecutions}
+ */
+ @Nonnull
+ public GetPipelineExecutions addResourcesItem(
+ @Nonnull final PipelineExecutionData resourcesItem) {
+ if (this.resources == null) {
+ this.resources = new ArrayList<>();
+ }
+ this.resources.add(resourcesItem);
+ return this;
+ }
+
+ /**
+ * Get resources
+ *
+ * @return resources The resources of this {@link GetPipelineExecutions} instance.
+ */
+ @Nonnull
+ public List getResources() {
+ return resources;
+ }
+
+ /**
+ * Set the resources of this {@link GetPipelineExecutions} instance.
+ *
+ * @param resources The resources of this {@link GetPipelineExecutions}
+ */
+ public void setResources(@Nullable final List resources) {
+ this.resources = resources;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link GetPipelineExecutions}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link GetPipelineExecutions} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "GetPipelineExecutions has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link GetPipelineExecutions} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (count != null) declaredFields.put("count", count);
+ if (resources != null) declaredFields.put("resources", resources);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link GetPipelineExecutions} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final GetPipelineExecutions getPipelineExecutions = (GetPipelineExecutions) o;
+ return Objects.equals(this.cloudSdkCustomFields, getPipelineExecutions.cloudSdkCustomFields)
+ && Objects.equals(this.count, getPipelineExecutions.count)
+ && Objects.equals(this.resources, getPipelineExecutions.resources);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(count, resources, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class GetPipelineExecutions {\n");
+ sb.append(" count: ").append(toIndentedString(count)).append("\n");
+ sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /** Create a new {@link GetPipelineExecutions} instance. No arguments are required. */
+ public static GetPipelineExecutions create() {
+ return new GetPipelineExecutions();
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineStatus.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineStatus.java
new file mode 100644
index 000000000..fb54a8ccf
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelineStatus.java
@@ -0,0 +1,207 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** GetPipelineStatus */
+// CHECKSTYLE:OFF
+public class GetPipelineStatus
+// CHECKSTYLE:ON
+{
+ @JsonProperty("lastStarted")
+ private String lastStarted;
+
+ @JsonProperty("status")
+ private PipelineExecutionStatus status;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for GetPipelineStatus. */
+ protected GetPipelineStatus() {}
+
+ /**
+ * Set the lastStarted of this {@link GetPipelineStatus} instance and return the same instance.
+ *
+ * @param lastStarted The lastStarted of this {@link GetPipelineStatus}
+ * @return The same instance of this {@link GetPipelineStatus} class
+ */
+ @Nonnull
+ public GetPipelineStatus lastStarted(@Nullable final String lastStarted) {
+ this.lastStarted = lastStarted;
+ return this;
+ }
+
+ /**
+ * Get lastStarted
+ *
+ * @return lastStarted The lastStarted of this {@link GetPipelineStatus} instance.
+ */
+ @Nonnull
+ public String getLastStarted() {
+ return lastStarted;
+ }
+
+ /**
+ * Set the lastStarted of this {@link GetPipelineStatus} instance.
+ *
+ * @param lastStarted The lastStarted of this {@link GetPipelineStatus}
+ */
+ public void setLastStarted(@Nullable final String lastStarted) {
+ this.lastStarted = lastStarted;
+ }
+
+ /**
+ * Set the status of this {@link GetPipelineStatus} instance and return the same instance.
+ *
+ * @param status The status of this {@link GetPipelineStatus}
+ * @return The same instance of this {@link GetPipelineStatus} class
+ */
+ @Nonnull
+ public GetPipelineStatus status(@Nullable final PipelineExecutionStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status The status of this {@link GetPipelineStatus} instance.
+ */
+ @Nonnull
+ public PipelineExecutionStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * Set the status of this {@link GetPipelineStatus} instance.
+ *
+ * @param status The status of this {@link GetPipelineStatus}
+ */
+ public void setStatus(@Nullable final PipelineExecutionStatus status) {
+ this.status = status;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link GetPipelineStatus}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link GetPipelineStatus} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException("GetPipelineStatus has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link GetPipelineStatus} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (lastStarted != null) declaredFields.put("lastStarted", lastStarted);
+ if (status != null) declaredFields.put("status", status);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link GetPipelineStatus} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final GetPipelineStatus getPipelineStatus = (GetPipelineStatus) o;
+ return Objects.equals(this.cloudSdkCustomFields, getPipelineStatus.cloudSdkCustomFields)
+ && Objects.equals(this.lastStarted, getPipelineStatus.lastStarted)
+ && Objects.equals(this.status, getPipelineStatus.status);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(lastStarted, status, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class GetPipelineStatus {\n");
+ sb.append(" lastStarted: ").append(toIndentedString(lastStarted)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /** Create a new {@link GetPipelineStatus} instance. No arguments are required. */
+ public static GetPipelineStatus create() {
+ return new GetPipelineStatus();
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Pipelines.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelines.java
similarity index 58%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Pipelines.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelines.java
index e04fa932a..62270acac 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Pipelines.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/GetPipelines.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -26,102 +26,102 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** Pipelines */
+/** GetPipelines */
// CHECKSTYLE:OFF
-public class Pipelines
+public class GetPipelines
// CHECKSTYLE:ON
{
- @JsonProperty("resources")
- private List resources = new ArrayList<>();
-
@JsonProperty("count")
private Integer count;
+ @JsonProperty("resources")
+ private List resources = new ArrayList<>();
+
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for Pipelines. */
- protected Pipelines() {}
+ /** Default constructor for GetPipelines. */
+ protected GetPipelines() {}
/**
- * Set the resources of this {@link Pipelines} instance and return the same instance.
+ * Set the count of this {@link GetPipelines} instance and return the same instance.
*
- * @param resources The resources of this {@link Pipelines}
- * @return The same instance of this {@link Pipelines} class
+ * @param count The count of this {@link GetPipelines}
+ * @return The same instance of this {@link GetPipelines} class
*/
@Nonnull
- public Pipelines resources(@Nonnull final List resources) {
- this.resources = resources;
+ public GetPipelines count(@Nullable final Integer count) {
+ this.count = count;
return this;
}
/**
- * Add one resources instance to this {@link Pipelines}.
+ * Get count
*
- * @param resourcesItem The resources that should be added
- * @return The same instance of type {@link Pipelines}
+ * @return count The count of this {@link GetPipelines} instance.
*/
@Nonnull
- public Pipelines addResourcesItem(@Nonnull final Pipeline resourcesItem) {
- if (this.resources == null) {
- this.resources = new ArrayList<>();
- }
- this.resources.add(resourcesItem);
- return this;
+ public Integer getCount() {
+ return count;
}
/**
- * Get resources
+ * Set the count of this {@link GetPipelines} instance.
*
- * @return resources The resources of this {@link Pipelines} instance.
+ * @param count The count of this {@link GetPipelines}
*/
- @Nonnull
- public List getResources() {
- return resources;
+ public void setCount(@Nullable final Integer count) {
+ this.count = count;
}
/**
- * Set the resources of this {@link Pipelines} instance.
+ * Set the resources of this {@link GetPipelines} instance and return the same instance.
*
- * @param resources The resources of this {@link Pipelines}
+ * @param resources The resources of this {@link GetPipelines}
+ * @return The same instance of this {@link GetPipelines} class
*/
- public void setResources(@Nonnull final List resources) {
+ @Nonnull
+ public GetPipelines resources(@Nonnull final List resources) {
this.resources = resources;
+ return this;
}
/**
- * Set the count of this {@link Pipelines} instance and return the same instance.
+ * Add one resources instance to this {@link GetPipelines}.
*
- * @param count The count of this {@link Pipelines}
- * @return The same instance of this {@link Pipelines} class
+ * @param resourcesItem The resources that should be added
+ * @return The same instance of type {@link GetPipelines}
*/
@Nonnull
- public Pipelines count(@Nullable final Integer count) {
- this.count = count;
+ public GetPipelines addResourcesItem(@Nonnull final GetPipeline resourcesItem) {
+ if (this.resources == null) {
+ this.resources = new ArrayList<>();
+ }
+ this.resources.add(resourcesItem);
return this;
}
/**
- * Get count
+ * Get resources
*
- * @return count The count of this {@link Pipelines} instance.
+ * @return resources The resources of this {@link GetPipelines} instance.
*/
@Nonnull
- public Integer getCount() {
- return count;
+ public List getResources() {
+ return resources;
}
/**
- * Set the count of this {@link Pipelines} instance.
+ * Set the resources of this {@link GetPipelines} instance.
*
- * @param count The count of this {@link Pipelines}
+ * @param resources The resources of this {@link GetPipelines}
*/
- public void setCount(@Nullable final Integer count) {
- this.count = count;
+ public void setResources(@Nonnull final List resources) {
+ this.resources = resources;
}
/**
- * Get the names of the unrecognizable properties of the {@link Pipelines}.
+ * Get the names of the unrecognizable properties of the {@link GetPipelines}.
*
* @return The set of properties names
*/
@@ -132,7 +132,7 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link Pipelines} instance.
+ * Get the value of an unrecognizable property of this {@link GetPipelines} instance.
*
* @deprecated Use {@link #toMap()} instead.
* @param name The name of the property
@@ -143,13 +143,13 @@ public Set getCustomFieldNames() {
@Deprecated
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
- throw new NoSuchElementException("Pipelines has no field with name '" + name + "'.");
+ throw new NoSuchElementException("GetPipelines has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link Pipelines} instance including unrecognized
+ * Get the value of all properties of this {@link GetPipelines} instance including unrecognized
* properties.
*
* @return The map of all properties
@@ -158,13 +158,13 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
@Nonnull
public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
- if (resources != null) declaredFields.put("resources", resources);
if (count != null) declaredFields.put("count", count);
+ if (resources != null) declaredFields.put("resources", resources);
return declaredFields;
}
/**
- * Set an unrecognizable property of this {@link Pipelines} instance. If the map previously
+ * Set an unrecognizable property of this {@link GetPipelines} instance. If the map previously
* contained a mapping for the key, the old value is replaced by the specified value.
*
* @param customFieldName The name of the property
@@ -183,24 +183,24 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final Pipelines pipelines = (Pipelines) o;
- return Objects.equals(this.cloudSdkCustomFields, pipelines.cloudSdkCustomFields)
- && Objects.equals(this.resources, pipelines.resources)
- && Objects.equals(this.count, pipelines.count);
+ final GetPipelines getPipelines = (GetPipelines) o;
+ return Objects.equals(this.cloudSdkCustomFields, getPipelines.cloudSdkCustomFields)
+ && Objects.equals(this.count, getPipelines.count)
+ && Objects.equals(this.resources, getPipelines.resources);
}
@Override
public int hashCode() {
- return Objects.hash(resources, count, cloudSdkCustomFields);
+ return Objects.hash(count, resources, cloudSdkCustomFields);
}
@Override
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class Pipelines {\n");
- sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
+ sb.append("class GetPipelines {\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
+ sb.append(" resources: ").append(toIndentedString(resources)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
@@ -219,30 +219,30 @@ private String toIndentedString(final java.lang.Object o) {
}
/**
- * Create a type-safe, fluent-api builder object to construct a new {@link Pipelines} instance
+ * Create a type-safe, fluent-api builder object to construct a new {@link GetPipelines} instance
* with all required arguments.
*/
public static Builder create() {
- return (resources) -> new Pipelines().resources(resources);
+ return (resources) -> new GetPipelines().resources(resources);
}
/** Builder helper class. */
public interface Builder {
/**
- * Set the resources of this {@link Pipelines} instance.
+ * Set the resources of this {@link GetPipelines} instance.
*
- * @param resources The resources of this {@link Pipelines}
- * @return The Pipelines instance.
+ * @param resources The resources of this {@link GetPipelines}
+ * @return The GetPipelines instance.
*/
- Pipelines resources(@Nonnull final List resources);
+ GetPipelines resources(@Nonnull final List resources);
/**
- * Set the resources of this {@link Pipelines} instance.
+ * Set the resources of this {@link GetPipelines} instance.
*
- * @param resources The resources of this {@link Pipelines}
- * @return The Pipelines instance.
+ * @param resources The resources of this {@link GetPipelines}
+ * @return The GetPipelines instance.
*/
- default Pipelines resources(@Nonnull final Pipeline... resources) {
+ default GetPipelines resources(@Nonnull final GetPipeline... resources) {
return resources(Arrays.asList(resources));
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/HTTPValidationError.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/HTTPValidationError.java
new file mode 100644
index 000000000..1ea484333
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/HTTPValidationError.java
@@ -0,0 +1,188 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.ArrayList;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** HTTPValidationError */
+// CHECKSTYLE:OFF
+public class HTTPValidationError
+// CHECKSTYLE:ON
+{
+ @JsonProperty("detail")
+ private List detail = new ArrayList<>();
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for HTTPValidationError. */
+ protected HTTPValidationError() {}
+
+ /**
+ * Set the detail of this {@link HTTPValidationError} instance and return the same instance.
+ *
+ * @param detail The detail of this {@link HTTPValidationError}
+ * @return The same instance of this {@link HTTPValidationError} class
+ */
+ @Nonnull
+ public HTTPValidationError detail(@Nullable final List detail) {
+ this.detail = detail;
+ return this;
+ }
+
+ /**
+ * Add one detail instance to this {@link HTTPValidationError}.
+ *
+ * @param detailItem The detail that should be added
+ * @return The same instance of type {@link HTTPValidationError}
+ */
+ @Nonnull
+ public HTTPValidationError addDetailItem(@Nonnull final ValidationError detailItem) {
+ if (this.detail == null) {
+ this.detail = new ArrayList<>();
+ }
+ this.detail.add(detailItem);
+ return this;
+ }
+
+ /**
+ * Get detail
+ *
+ * @return detail The detail of this {@link HTTPValidationError} instance.
+ */
+ @Nonnull
+ public List getDetail() {
+ return detail;
+ }
+
+ /**
+ * Set the detail of this {@link HTTPValidationError} instance.
+ *
+ * @param detail The detail of this {@link HTTPValidationError}
+ */
+ public void setDetail(@Nullable final List detail) {
+ this.detail = detail;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link HTTPValidationError}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link HTTPValidationError} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "HTTPValidationError has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link HTTPValidationError} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (detail != null) declaredFields.put("detail", detail);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link HTTPValidationError} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final HTTPValidationError htTPValidationError = (HTTPValidationError) o;
+ return Objects.equals(this.cloudSdkCustomFields, htTPValidationError.cloudSdkCustomFields)
+ && Objects.equals(this.detail, htTPValidationError.detail);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(detail, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class HTTPValidationError {\n");
+ sb.append(" detail: ").append(toIndentedString(detail)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /** Create a new {@link HTTPValidationError} instance. No arguments are required. */
+ public static HTTPValidationError create() {
+ return new HTTPValidationError();
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/InlineObject.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/InlineObject.java
index 0ea0ec98c..a184bda70 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/InlineObject.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/InlineObject.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/KeyValueListPair.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/KeyValueListPair.java
index 77c91e520..d9085bb4f 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/KeyValueListPair.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/KeyValueListPair.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelinePostRequstConfiguration.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointConfiguration.java
similarity index 53%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelinePostRequstConfiguration.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointConfiguration.java
index 24ae2fbe6..76c70b513 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelinePostRequstConfiguration.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointConfiguration.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -23,32 +23,32 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** PipelinePostRequstConfiguration */
+/** MSSharePointConfiguration */
// CHECKSTYLE:OFF
-public class PipelinePostRequstConfiguration
+public class MSSharePointConfiguration
// CHECKSTYLE:ON
{
@JsonProperty("destination")
private String destination;
@JsonProperty("sharePoint")
- private PipelinePostRequstConfigurationSharePoint sharePoint;
+ private SharePointConfig sharePoint;
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for PipelinePostRequstConfiguration. */
- protected PipelinePostRequstConfiguration() {}
+ /** Default constructor for MSSharePointConfiguration. */
+ protected MSSharePointConfiguration() {}
/**
- * Set the destination of this {@link PipelinePostRequstConfiguration} instance and return the
- * same instance.
+ * Set the destination of this {@link MSSharePointConfiguration} instance and return the same
+ * instance.
*
- * @param destination The destination of this {@link PipelinePostRequstConfiguration}
- * @return The same instance of this {@link PipelinePostRequstConfiguration} class
+ * @param destination The destination of this {@link MSSharePointConfiguration}
+ * @return The same instance of this {@link MSSharePointConfiguration} class
*/
@Nonnull
- public PipelinePostRequstConfiguration destination(@Nonnull final String destination) {
+ public MSSharePointConfiguration destination(@Nonnull final String destination) {
this.destination = destination;
return this;
}
@@ -56,7 +56,7 @@ public PipelinePostRequstConfiguration destination(@Nonnull final String destina
/**
* Get destination
*
- * @return destination The destination of this {@link PipelinePostRequstConfiguration} instance.
+ * @return destination The destination of this {@link MSSharePointConfiguration} instance.
*/
@Nonnull
public String getDestination() {
@@ -64,24 +64,23 @@ public String getDestination() {
}
/**
- * Set the destination of this {@link PipelinePostRequstConfiguration} instance.
+ * Set the destination of this {@link MSSharePointConfiguration} instance.
*
- * @param destination The destination of this {@link PipelinePostRequstConfiguration}
+ * @param destination The destination of this {@link MSSharePointConfiguration}
*/
public void setDestination(@Nonnull final String destination) {
this.destination = destination;
}
/**
- * Set the sharePoint of this {@link PipelinePostRequstConfiguration} instance and return the same
+ * Set the sharePoint of this {@link MSSharePointConfiguration} instance and return the same
* instance.
*
- * @param sharePoint The sharePoint of this {@link PipelinePostRequstConfiguration}
- * @return The same instance of this {@link PipelinePostRequstConfiguration} class
+ * @param sharePoint The sharePoint of this {@link MSSharePointConfiguration}
+ * @return The same instance of this {@link MSSharePointConfiguration} class
*/
@Nonnull
- public PipelinePostRequstConfiguration sharePoint(
- @Nullable final PipelinePostRequstConfigurationSharePoint sharePoint) {
+ public MSSharePointConfiguration sharePoint(@Nonnull final SharePointConfig sharePoint) {
this.sharePoint = sharePoint;
return this;
}
@@ -89,24 +88,24 @@ public PipelinePostRequstConfiguration sharePoint(
/**
* Get sharePoint
*
- * @return sharePoint The sharePoint of this {@link PipelinePostRequstConfiguration} instance.
+ * @return sharePoint The sharePoint of this {@link MSSharePointConfiguration} instance.
*/
@Nonnull
- public PipelinePostRequstConfigurationSharePoint getSharePoint() {
+ public SharePointConfig getSharePoint() {
return sharePoint;
}
/**
- * Set the sharePoint of this {@link PipelinePostRequstConfiguration} instance.
+ * Set the sharePoint of this {@link MSSharePointConfiguration} instance.
*
- * @param sharePoint The sharePoint of this {@link PipelinePostRequstConfiguration}
+ * @param sharePoint The sharePoint of this {@link MSSharePointConfiguration}
*/
- public void setSharePoint(@Nullable final PipelinePostRequstConfigurationSharePoint sharePoint) {
+ public void setSharePoint(@Nonnull final SharePointConfig sharePoint) {
this.sharePoint = sharePoint;
}
/**
- * Get the names of the unrecognizable properties of the {@link PipelinePostRequstConfiguration}.
+ * Get the names of the unrecognizable properties of the {@link MSSharePointConfiguration}.
*
* @return The set of properties names
*/
@@ -117,8 +116,7 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link PipelinePostRequstConfiguration}
- * instance.
+ * Get the value of an unrecognizable property of this {@link MSSharePointConfiguration} instance.
*
* @deprecated Use {@link #toMap()} instead.
* @param name The name of the property
@@ -130,14 +128,14 @@ public Set getCustomFieldNames() {
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
throw new NoSuchElementException(
- "PipelinePostRequstConfiguration has no field with name '" + name + "'.");
+ "MSSharePointConfiguration has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link PipelinePostRequstConfiguration} instance
- * including unrecognized properties.
+ * Get the value of all properties of this {@link MSSharePointConfiguration} instance including
+ * unrecognized properties.
*
* @return The map of all properties
*/
@@ -151,9 +149,8 @@ public Map toMap() {
}
/**
- * Set an unrecognizable property of this {@link PipelinePostRequstConfiguration} instance. If the
- * map previously contained a mapping for the key, the old value is replaced by the specified
- * value.
+ * Set an unrecognizable property of this {@link MSSharePointConfiguration} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
*
* @param customFieldName The name of the property
* @param customFieldValue The value of the property
@@ -171,12 +168,10 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final PipelinePostRequstConfiguration pipelinePostRequstConfiguration =
- (PipelinePostRequstConfiguration) o;
- return Objects.equals(
- this.cloudSdkCustomFields, pipelinePostRequstConfiguration.cloudSdkCustomFields)
- && Objects.equals(this.destination, pipelinePostRequstConfiguration.destination)
- && Objects.equals(this.sharePoint, pipelinePostRequstConfiguration.sharePoint);
+ final MSSharePointConfiguration msSharePointConfiguration = (MSSharePointConfiguration) o;
+ return Objects.equals(this.cloudSdkCustomFields, msSharePointConfiguration.cloudSdkCustomFields)
+ && Objects.equals(this.destination, msSharePointConfiguration.destination)
+ && Objects.equals(this.sharePoint, msSharePointConfiguration.sharePoint);
}
@Override
@@ -188,7 +183,7 @@ public int hashCode() {
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class PipelinePostRequstConfiguration {\n");
+ sb.append("class MSSharePointConfiguration {\n");
sb.append(" destination: ").append(toIndentedString(destination)).append("\n");
sb.append(" sharePoint: ").append(toIndentedString(sharePoint)).append("\n");
cloudSdkCustomFields.forEach(
@@ -210,20 +205,33 @@ private String toIndentedString(final java.lang.Object o) {
/**
* Create a type-safe, fluent-api builder object to construct a new {@link
- * PipelinePostRequstConfiguration} instance with all required arguments.
+ * MSSharePointConfiguration} instance with all required arguments.
*/
public static Builder create() {
- return (destination) -> new PipelinePostRequstConfiguration().destination(destination);
+ return (destination) ->
+ (sharePoint) ->
+ new MSSharePointConfiguration().destination(destination).sharePoint(sharePoint);
}
/** Builder helper class. */
public interface Builder {
/**
- * Set the destination of this {@link PipelinePostRequstConfiguration} instance.
+ * Set the destination of this {@link MSSharePointConfiguration} instance.
+ *
+ * @param destination The destination of this {@link MSSharePointConfiguration}
+ * @return The MSSharePointConfiguration builder.
+ */
+ Builder1 destination(@Nonnull final String destination);
+ }
+
+ /** Builder helper class. */
+ public interface Builder1 {
+ /**
+ * Set the sharePoint of this {@link MSSharePointConfiguration} instance.
*
- * @param destination The destination of this {@link PipelinePostRequstConfiguration}
- * @return The PipelinePostRequstConfiguration instance.
+ * @param sharePoint The sharePoint of this {@link MSSharePointConfiguration}
+ * @return The MSSharePointConfiguration instance.
*/
- PipelinePostRequstConfiguration destination(@Nonnull final String destination);
+ MSSharePointConfiguration sharePoint(@Nonnull final SharePointConfig sharePoint);
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointConfigurationGetResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointConfigurationGetResponse.java
new file mode 100644
index 000000000..a5d42d7e6
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointConfigurationGetResponse.java
@@ -0,0 +1,232 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** MSSharePointConfigurationGetResponse */
+// CHECKSTYLE:OFF
+public class MSSharePointConfigurationGetResponse
+// CHECKSTYLE:ON
+{
+ @JsonProperty("destination")
+ private String destination;
+
+ @JsonProperty("sharePoint")
+ private SharePointConfigGetResponse sharePoint;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for MSSharePointConfigurationGetResponse. */
+ protected MSSharePointConfigurationGetResponse() {}
+
+ /**
+ * Set the destination of this {@link MSSharePointConfigurationGetResponse} instance and return
+ * the same instance.
+ *
+ * @param destination The destination of this {@link MSSharePointConfigurationGetResponse}
+ * @return The same instance of this {@link MSSharePointConfigurationGetResponse} class
+ */
+ @Nonnull
+ public MSSharePointConfigurationGetResponse destination(@Nonnull final String destination) {
+ this.destination = destination;
+ return this;
+ }
+
+ /**
+ * Get destination
+ *
+ * @return destination The destination of this {@link MSSharePointConfigurationGetResponse}
+ * instance.
+ */
+ @Nonnull
+ public String getDestination() {
+ return destination;
+ }
+
+ /**
+ * Set the destination of this {@link MSSharePointConfigurationGetResponse} instance.
+ *
+ * @param destination The destination of this {@link MSSharePointConfigurationGetResponse}
+ */
+ public void setDestination(@Nonnull final String destination) {
+ this.destination = destination;
+ }
+
+ /**
+ * Set the sharePoint of this {@link MSSharePointConfigurationGetResponse} instance and return the
+ * same instance.
+ *
+ * @param sharePoint The sharePoint of this {@link MSSharePointConfigurationGetResponse}
+ * @return The same instance of this {@link MSSharePointConfigurationGetResponse} class
+ */
+ @Nonnull
+ public MSSharePointConfigurationGetResponse sharePoint(
+ @Nullable final SharePointConfigGetResponse sharePoint) {
+ this.sharePoint = sharePoint;
+ return this;
+ }
+
+ /**
+ * Get sharePoint
+ *
+ * @return sharePoint The sharePoint of this {@link MSSharePointConfigurationGetResponse}
+ * instance.
+ */
+ @Nonnull
+ public SharePointConfigGetResponse getSharePoint() {
+ return sharePoint;
+ }
+
+ /**
+ * Set the sharePoint of this {@link MSSharePointConfigurationGetResponse} instance.
+ *
+ * @param sharePoint The sharePoint of this {@link MSSharePointConfigurationGetResponse}
+ */
+ public void setSharePoint(@Nullable final SharePointConfigGetResponse sharePoint) {
+ this.sharePoint = sharePoint;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link
+ * MSSharePointConfigurationGetResponse}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link
+ * MSSharePointConfigurationGetResponse} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "MSSharePointConfigurationGetResponse has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link MSSharePointConfigurationGetResponse} instance
+ * including unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (destination != null) declaredFields.put("destination", destination);
+ if (sharePoint != null) declaredFields.put("sharePoint", sharePoint);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link MSSharePointConfigurationGetResponse} instance.
+ * If the map previously contained a mapping for the key, the old value is replaced by the
+ * specified value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final MSSharePointConfigurationGetResponse msSharePointConfigurationGetResponse =
+ (MSSharePointConfigurationGetResponse) o;
+ return Objects.equals(
+ this.cloudSdkCustomFields, msSharePointConfigurationGetResponse.cloudSdkCustomFields)
+ && Objects.equals(this.destination, msSharePointConfigurationGetResponse.destination)
+ && Objects.equals(this.sharePoint, msSharePointConfigurationGetResponse.sharePoint);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(destination, sharePoint, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class MSSharePointConfigurationGetResponse {\n");
+ sb.append(" destination: ").append(toIndentedString(destination)).append("\n");
+ sb.append(" sharePoint: ").append(toIndentedString(sharePoint)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link
+ * MSSharePointConfigurationGetResponse} instance with all required arguments.
+ */
+ public static Builder create() {
+ return (destination) -> new MSSharePointConfigurationGetResponse().destination(destination);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the destination of this {@link MSSharePointConfigurationGetResponse} instance.
+ *
+ * @param destination The destination of this {@link MSSharePointConfigurationGetResponse}
+ * @return The MSSharePointConfigurationGetResponse instance.
+ */
+ MSSharePointConfigurationGetResponse destination(@Nonnull final String destination);
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointPipelineCreateRequest.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointPipelineCreateRequest.java
new file mode 100644
index 000000000..0ae8a47ef
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointPipelineCreateRequest.java
@@ -0,0 +1,339 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonValue;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** MSSharePointPipelineCreateRequest */
+// CHECKSTYLE:OFF
+public class MSSharePointPipelineCreateRequest implements CreatePipeline
+// CHECKSTYLE:ON
+{
+ /** Gets or Sets type */
+ public enum TypeEnum {
+ /** The MS_SHARE_POINT option of this MSSharePointPipelineCreateRequest */
+ MS_SHARE_POINT("MSSharePoint"),
+
+ /** The UNKNOWN_DEFAULT_OPEN_API option of this MSSharePointPipelineCreateRequest */
+ UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
+
+ private String value;
+
+ TypeEnum(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Get the value of the enum
+ *
+ * @return The enum value
+ */
+ @JsonValue
+ @Nonnull
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Get the String value of the enum value.
+ *
+ * @return The enum value as String
+ */
+ @Override
+ @Nonnull
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ /**
+ * Get the enum value from a String value
+ *
+ * @param value The String value
+ * @return The enum value of type MSSharePointPipelineCreateRequest
+ */
+ @JsonCreator
+ @Nonnull
+ public static TypeEnum fromValue(@Nonnull final String value) {
+ for (TypeEnum b : TypeEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ return UNKNOWN_DEFAULT_OPEN_API;
+ }
+ }
+
+ @JsonProperty("type")
+ private TypeEnum type;
+
+ @JsonProperty("configuration")
+ private MSSharePointConfiguration _configuration;
+
+ @JsonProperty("metadata")
+ private MetaData metadata;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for MSSharePointPipelineCreateRequest. */
+ protected MSSharePointPipelineCreateRequest() {}
+
+ /**
+ * Set the type of this {@link MSSharePointPipelineCreateRequest} instance and return the same
+ * instance.
+ *
+ * @param type The type of this {@link MSSharePointPipelineCreateRequest}
+ * @return The same instance of this {@link MSSharePointPipelineCreateRequest} class
+ */
+ @Nonnull
+ public MSSharePointPipelineCreateRequest type(@Nonnull final TypeEnum type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get type
+ *
+ * @return type The type of this {@link MSSharePointPipelineCreateRequest} instance.
+ */
+ @Nonnull
+ public TypeEnum getType() {
+ return type;
+ }
+
+ /**
+ * Set the type of this {@link MSSharePointPipelineCreateRequest} instance.
+ *
+ * @param type The type of this {@link MSSharePointPipelineCreateRequest}
+ */
+ public void setType(@Nonnull final TypeEnum type) {
+ this.type = type;
+ }
+
+ /**
+ * Set the _configuration of this {@link MSSharePointPipelineCreateRequest} instance and return
+ * the same instance.
+ *
+ * @param _configuration The _configuration of this {@link MSSharePointPipelineCreateRequest}
+ * @return The same instance of this {@link MSSharePointPipelineCreateRequest} class
+ */
+ @Nonnull
+ public MSSharePointPipelineCreateRequest _configuration(
+ @Nonnull final MSSharePointConfiguration _configuration) {
+ this._configuration = _configuration;
+ return this;
+ }
+
+ /**
+ * Get _configuration
+ *
+ * @return _configuration The _configuration of this {@link MSSharePointPipelineCreateRequest}
+ * instance.
+ */
+ @Nonnull
+ public MSSharePointConfiguration getConfiguration() {
+ return _configuration;
+ }
+
+ /**
+ * Set the _configuration of this {@link MSSharePointPipelineCreateRequest} instance.
+ *
+ * @param _configuration The _configuration of this {@link MSSharePointPipelineCreateRequest}
+ */
+ public void setConfiguration(@Nonnull final MSSharePointConfiguration _configuration) {
+ this._configuration = _configuration;
+ }
+
+ /**
+ * Set the metadata of this {@link MSSharePointPipelineCreateRequest} instance and return the same
+ * instance.
+ *
+ * @param metadata The metadata of this {@link MSSharePointPipelineCreateRequest}
+ * @return The same instance of this {@link MSSharePointPipelineCreateRequest} class
+ */
+ @Nonnull
+ public MSSharePointPipelineCreateRequest metadata(@Nullable final MetaData metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get metadata
+ *
+ * @return metadata The metadata of this {@link MSSharePointPipelineCreateRequest} instance.
+ */
+ @Nonnull
+ public MetaData getMetadata() {
+ return metadata;
+ }
+
+ /**
+ * Set the metadata of this {@link MSSharePointPipelineCreateRequest} instance.
+ *
+ * @param metadata The metadata of this {@link MSSharePointPipelineCreateRequest}
+ */
+ public void setMetadata(@Nullable final MetaData metadata) {
+ this.metadata = metadata;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link
+ * MSSharePointPipelineCreateRequest}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link MSSharePointPipelineCreateRequest}
+ * instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "MSSharePointPipelineCreateRequest has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link MSSharePointPipelineCreateRequest} instance
+ * including unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (type != null) declaredFields.put("type", type);
+ if (_configuration != null) declaredFields.put("_configuration", _configuration);
+ if (metadata != null) declaredFields.put("metadata", metadata);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link MSSharePointPipelineCreateRequest} instance. If
+ * the map previously contained a mapping for the key, the old value is replaced by the specified
+ * value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final MSSharePointPipelineCreateRequest msSharePointPipelineCreateRequest =
+ (MSSharePointPipelineCreateRequest) o;
+ return Objects.equals(
+ this.cloudSdkCustomFields, msSharePointPipelineCreateRequest.cloudSdkCustomFields)
+ && Objects.equals(this.type, msSharePointPipelineCreateRequest.type)
+ && Objects.equals(this._configuration, msSharePointPipelineCreateRequest._configuration)
+ && Objects.equals(this.metadata, msSharePointPipelineCreateRequest.metadata);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, _configuration, metadata, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class MSSharePointPipelineCreateRequest {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n");
+ sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link
+ * MSSharePointPipelineCreateRequest} instance with all required arguments.
+ */
+ public static Builder create() {
+ return (type) ->
+ (_configuration) ->
+ new MSSharePointPipelineCreateRequest().type(type)._configuration(_configuration);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the type of this {@link MSSharePointPipelineCreateRequest} instance.
+ *
+ * @param type The type of this {@link MSSharePointPipelineCreateRequest}
+ * @return The MSSharePointPipelineCreateRequest builder.
+ */
+ Builder1 type(@Nonnull final TypeEnum type);
+ }
+
+ /** Builder helper class. */
+ public interface Builder1 {
+ /**
+ * Set the _configuration of this {@link MSSharePointPipelineCreateRequest} instance.
+ *
+ * @param _configuration The _configuration of this {@link MSSharePointPipelineCreateRequest}
+ * @return The MSSharePointPipelineCreateRequest instance.
+ */
+ MSSharePointPipelineCreateRequest _configuration(
+ @Nonnull final MSSharePointConfiguration _configuration);
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointPipelineGetResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointPipelineGetResponse.java
new file mode 100644
index 000000000..143fcc5ea
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MSSharePointPipelineGetResponse.java
@@ -0,0 +1,391 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonValue;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** MSSharePointPipelineGetResponse */
+// CHECKSTYLE:OFF
+public class MSSharePointPipelineGetResponse implements GetPipeline
+// CHECKSTYLE:ON
+{
+ @JsonProperty("id")
+ private String id;
+
+ /** Gets or Sets type */
+ public enum TypeEnum {
+ /** The MS_SHARE_POINT option of this MSSharePointPipelineGetResponse */
+ MS_SHARE_POINT("MSSharePoint"),
+
+ /** The UNKNOWN_DEFAULT_OPEN_API option of this MSSharePointPipelineGetResponse */
+ UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
+
+ private String value;
+
+ TypeEnum(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Get the value of the enum
+ *
+ * @return The enum value
+ */
+ @JsonValue
+ @Nonnull
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * Get the String value of the enum value.
+ *
+ * @return The enum value as String
+ */
+ @Override
+ @Nonnull
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ /**
+ * Get the enum value from a String value
+ *
+ * @param value The String value
+ * @return The enum value of type MSSharePointPipelineGetResponse
+ */
+ @JsonCreator
+ @Nonnull
+ public static TypeEnum fromValue(@Nonnull final String value) {
+ for (TypeEnum b : TypeEnum.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ return UNKNOWN_DEFAULT_OPEN_API;
+ }
+ }
+
+ @JsonProperty("type")
+ private TypeEnum type;
+
+ @JsonProperty("metadata")
+ private MetaData metadata;
+
+ @JsonProperty("configuration")
+ private MSSharePointConfigurationGetResponse _configuration;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for MSSharePointPipelineGetResponse. */
+ protected MSSharePointPipelineGetResponse() {}
+
+ /**
+ * Set the id of this {@link MSSharePointPipelineGetResponse} instance and return the same
+ * instance.
+ *
+ * @param id The id of this {@link MSSharePointPipelineGetResponse}
+ * @return The same instance of this {@link MSSharePointPipelineGetResponse} class
+ */
+ @Nonnull
+ public MSSharePointPipelineGetResponse id(@Nonnull final String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get id
+ *
+ * @return id The id of this {@link MSSharePointPipelineGetResponse} instance.
+ */
+ @Nonnull
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Set the id of this {@link MSSharePointPipelineGetResponse} instance.
+ *
+ * @param id The id of this {@link MSSharePointPipelineGetResponse}
+ */
+ public void setId(@Nonnull final String id) {
+ this.id = id;
+ }
+
+ /**
+ * Set the type of this {@link MSSharePointPipelineGetResponse} instance and return the same
+ * instance.
+ *
+ * @param type The type of this {@link MSSharePointPipelineGetResponse}
+ * @return The same instance of this {@link MSSharePointPipelineGetResponse} class
+ */
+ @Nonnull
+ public MSSharePointPipelineGetResponse type(@Nonnull final TypeEnum type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get type
+ *
+ * @return type The type of this {@link MSSharePointPipelineGetResponse} instance.
+ */
+ @Nonnull
+ public TypeEnum getType() {
+ return type;
+ }
+
+ /**
+ * Set the type of this {@link MSSharePointPipelineGetResponse} instance.
+ *
+ * @param type The type of this {@link MSSharePointPipelineGetResponse}
+ */
+ public void setType(@Nonnull final TypeEnum type) {
+ this.type = type;
+ }
+
+ /**
+ * Set the metadata of this {@link MSSharePointPipelineGetResponse} instance and return the same
+ * instance.
+ *
+ * @param metadata The metadata of this {@link MSSharePointPipelineGetResponse}
+ * @return The same instance of this {@link MSSharePointPipelineGetResponse} class
+ */
+ @Nonnull
+ public MSSharePointPipelineGetResponse metadata(@Nullable final MetaData metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ /**
+ * Get metadata
+ *
+ * @return metadata The metadata of this {@link MSSharePointPipelineGetResponse} instance.
+ */
+ @Nonnull
+ public MetaData getMetadata() {
+ return metadata;
+ }
+
+ /**
+ * Set the metadata of this {@link MSSharePointPipelineGetResponse} instance.
+ *
+ * @param metadata The metadata of this {@link MSSharePointPipelineGetResponse}
+ */
+ public void setMetadata(@Nullable final MetaData metadata) {
+ this.metadata = metadata;
+ }
+
+ /**
+ * Set the _configuration of this {@link MSSharePointPipelineGetResponse} instance and return the
+ * same instance.
+ *
+ * @param _configuration The _configuration of this {@link MSSharePointPipelineGetResponse}
+ * @return The same instance of this {@link MSSharePointPipelineGetResponse} class
+ */
+ @Nonnull
+ public MSSharePointPipelineGetResponse _configuration(
+ @Nonnull final MSSharePointConfigurationGetResponse _configuration) {
+ this._configuration = _configuration;
+ return this;
+ }
+
+ /**
+ * Get _configuration
+ *
+ * @return _configuration The _configuration of this {@link MSSharePointPipelineGetResponse}
+ * instance.
+ */
+ @Nonnull
+ public MSSharePointConfigurationGetResponse getConfiguration() {
+ return _configuration;
+ }
+
+ /**
+ * Set the _configuration of this {@link MSSharePointPipelineGetResponse} instance.
+ *
+ * @param _configuration The _configuration of this {@link MSSharePointPipelineGetResponse}
+ */
+ public void setConfiguration(@Nonnull final MSSharePointConfigurationGetResponse _configuration) {
+ this._configuration = _configuration;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link MSSharePointPipelineGetResponse}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link MSSharePointPipelineGetResponse}
+ * instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "MSSharePointPipelineGetResponse has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link MSSharePointPipelineGetResponse} instance
+ * including unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (id != null) declaredFields.put("id", id);
+ if (type != null) declaredFields.put("type", type);
+ if (metadata != null) declaredFields.put("metadata", metadata);
+ if (_configuration != null) declaredFields.put("_configuration", _configuration);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link MSSharePointPipelineGetResponse} instance. If the
+ * map previously contained a mapping for the key, the old value is replaced by the specified
+ * value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final MSSharePointPipelineGetResponse msSharePointPipelineGetResponse =
+ (MSSharePointPipelineGetResponse) o;
+ return Objects.equals(
+ this.cloudSdkCustomFields, msSharePointPipelineGetResponse.cloudSdkCustomFields)
+ && Objects.equals(this.id, msSharePointPipelineGetResponse.id)
+ && Objects.equals(this.type, msSharePointPipelineGetResponse.type)
+ && Objects.equals(this.metadata, msSharePointPipelineGetResponse.metadata)
+ && Objects.equals(this._configuration, msSharePointPipelineGetResponse._configuration);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, type, metadata, _configuration, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class MSSharePointPipelineGetResponse {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
+ sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link
+ * MSSharePointPipelineGetResponse} instance with all required arguments.
+ */
+ public static Builder create() {
+ return (id) ->
+ (type) ->
+ (_configuration) ->
+ new MSSharePointPipelineGetResponse()
+ .id(id)
+ .type(type)
+ ._configuration(_configuration);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the id of this {@link MSSharePointPipelineGetResponse} instance.
+ *
+ * @param id The id of this {@link MSSharePointPipelineGetResponse}
+ * @return The MSSharePointPipelineGetResponse builder.
+ */
+ Builder1 id(@Nonnull final String id);
+ }
+
+ /** Builder helper class. */
+ public interface Builder1 {
+ /**
+ * Set the type of this {@link MSSharePointPipelineGetResponse} instance.
+ *
+ * @param type The type of this {@link MSSharePointPipelineGetResponse}
+ * @return The MSSharePointPipelineGetResponse builder.
+ */
+ Builder2 type(@Nonnull final TypeEnum type);
+ }
+
+ /** Builder helper class. */
+ public interface Builder2 {
+ /**
+ * Set the _configuration of this {@link MSSharePointPipelineGetResponse} instance.
+ *
+ * @param _configuration The _configuration of this {@link MSSharePointPipelineGetResponse}
+ * @return The MSSharePointPipelineGetResponse instance.
+ */
+ MSSharePointPipelineGetResponse _configuration(
+ @Nonnull final MSSharePointConfigurationGetResponse _configuration);
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineStatus.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MetaData.java
similarity index 54%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineStatus.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MetaData.java
index 8baf756ed..77029ecac 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineStatus.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/MetaData.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -15,7 +15,6 @@
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.NoSuchElementException;
@@ -24,53 +23,53 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** PipelineStatus */
+/** MetaData */
// CHECKSTYLE:OFF
-public class PipelineStatus
+public class MetaData
// CHECKSTYLE:ON
{
- @JsonProperty("lastStarted")
- private OffsetDateTime lastStarted;
+ @JsonProperty("destination")
+ private String destination;
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for PipelineStatus. */
- protected PipelineStatus() {}
+ /** Default constructor for MetaData. */
+ protected MetaData() {}
/**
- * Set the lastStarted of this {@link PipelineStatus} instance and return the same instance.
+ * Set the destination of this {@link MetaData} instance and return the same instance.
*
- * @param lastStarted The lastStarted of this {@link PipelineStatus}
- * @return The same instance of this {@link PipelineStatus} class
+ * @param destination The destination of this {@link MetaData}
+ * @return The same instance of this {@link MetaData} class
*/
@Nonnull
- public PipelineStatus lastStarted(@Nullable final OffsetDateTime lastStarted) {
- this.lastStarted = lastStarted;
+ public MetaData destination(@Nonnull final String destination) {
+ this.destination = destination;
return this;
}
/**
- * Get lastStarted
+ * Get destination
*
- * @return lastStarted The lastStarted of this {@link PipelineStatus} instance.
+ * @return destination The destination of this {@link MetaData} instance.
*/
@Nonnull
- public OffsetDateTime getLastStarted() {
- return lastStarted;
+ public String getDestination() {
+ return destination;
}
/**
- * Set the lastStarted of this {@link PipelineStatus} instance.
+ * Set the destination of this {@link MetaData} instance.
*
- * @param lastStarted The lastStarted of this {@link PipelineStatus}
+ * @param destination The destination of this {@link MetaData}
*/
- public void setLastStarted(@Nullable final OffsetDateTime lastStarted) {
- this.lastStarted = lastStarted;
+ public void setDestination(@Nonnull final String destination) {
+ this.destination = destination;
}
/**
- * Get the names of the unrecognizable properties of the {@link PipelineStatus}.
+ * Get the names of the unrecognizable properties of the {@link MetaData}.
*
* @return The set of properties names
*/
@@ -81,7 +80,7 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link PipelineStatus} instance.
+ * Get the value of an unrecognizable property of this {@link MetaData} instance.
*
* @deprecated Use {@link #toMap()} instead.
* @param name The name of the property
@@ -92,13 +91,13 @@ public Set getCustomFieldNames() {
@Deprecated
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
- throw new NoSuchElementException("PipelineStatus has no field with name '" + name + "'.");
+ throw new NoSuchElementException("MetaData has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link PipelineStatus} instance including unrecognized
+ * Get the value of all properties of this {@link MetaData} instance including unrecognized
* properties.
*
* @return The map of all properties
@@ -107,12 +106,12 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
@Nonnull
public Map toMap() {
final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
- if (lastStarted != null) declaredFields.put("lastStarted", lastStarted);
+ if (destination != null) declaredFields.put("destination", destination);
return declaredFields;
}
/**
- * Set an unrecognizable property of this {@link PipelineStatus} instance. If the map previously
+ * Set an unrecognizable property of this {@link MetaData} instance. If the map previously
* contained a mapping for the key, the old value is replaced by the specified value.
*
* @param customFieldName The name of the property
@@ -131,22 +130,22 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final PipelineStatus pipelineStatus = (PipelineStatus) o;
- return Objects.equals(this.cloudSdkCustomFields, pipelineStatus.cloudSdkCustomFields)
- && Objects.equals(this.lastStarted, pipelineStatus.lastStarted);
+ final MetaData metaData = (MetaData) o;
+ return Objects.equals(this.cloudSdkCustomFields, metaData.cloudSdkCustomFields)
+ && Objects.equals(this.destination, metaData.destination);
}
@Override
public int hashCode() {
- return Objects.hash(lastStarted, cloudSdkCustomFields);
+ return Objects.hash(destination, cloudSdkCustomFields);
}
@Override
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class PipelineStatus {\n");
- sb.append(" lastStarted: ").append(toIndentedString(lastStarted)).append("\n");
+ sb.append("class MetaData {\n");
+ sb.append(" destination: ").append(toIndentedString(destination)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
@@ -164,8 +163,22 @@ private String toIndentedString(final java.lang.Object o) {
return o.toString().replace("\n", "\n ");
}
- /** Create a new {@link PipelineStatus} instance. No arguments are required. */
- public static PipelineStatus create() {
- return new PipelineStatus();
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link MetaData} instance with
+ * all required arguments.
+ */
+ public static Builder create() {
+ return (destination) -> new MetaData().destination(destination);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the destination of this {@link MetaData} instance.
+ *
+ * @param destination The destination of this {@link MetaData}
+ * @return The MetaData instance.
+ */
+ MetaData destination(@Nonnull final String destination);
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResult.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResult.java
index 6271cb841..9f01a61c9 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResult.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResult.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalPerFilterSearchResultWithError.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResultError.java
similarity index 59%
rename from core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalPerFilterSearchResultWithError.java
rename to core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResultError.java
index d1b557481..d359214c0 100644
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/RetievalPerFilterSearchResultWithError.java
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResultError.java
@@ -1,6 +1,6 @@
/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
*
*
*
@@ -23,9 +23,9 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-/** RetievalPerFilterSearchResultWithError */
+/** PerFilterSearchResultError */
// CHECKSTYLE:OFF
-public class RetievalPerFilterSearchResultWithError
+public class PerFilterSearchResultError
// CHECKSTYLE:ON
{
@JsonProperty("message")
@@ -34,18 +34,18 @@ public class RetievalPerFilterSearchResultWithError
@JsonAnySetter @JsonAnyGetter
private final Map cloudSdkCustomFields = new LinkedHashMap<>();
- /** Default constructor for RetievalPerFilterSearchResultWithError. */
- protected RetievalPerFilterSearchResultWithError() {}
+ /** Default constructor for PerFilterSearchResultError. */
+ protected PerFilterSearchResultError() {}
/**
- * Set the message of this {@link RetievalPerFilterSearchResultWithError} instance and return the
- * same instance.
+ * Set the message of this {@link PerFilterSearchResultError} instance and return the same
+ * instance.
*
- * @param message The message of this {@link RetievalPerFilterSearchResultWithError}
- * @return The same instance of this {@link RetievalPerFilterSearchResultWithError} class
+ * @param message The message of this {@link PerFilterSearchResultError}
+ * @return The same instance of this {@link PerFilterSearchResultError} class
*/
@Nonnull
- public RetievalPerFilterSearchResultWithError message(@Nonnull final String message) {
+ public PerFilterSearchResultError message(@Nonnull final String message) {
this.message = message;
return this;
}
@@ -53,7 +53,7 @@ public RetievalPerFilterSearchResultWithError message(@Nonnull final String mess
/**
* Get message
*
- * @return message The message of this {@link RetievalPerFilterSearchResultWithError} instance.
+ * @return message The message of this {@link PerFilterSearchResultError} instance.
*/
@Nonnull
public String getMessage() {
@@ -61,17 +61,16 @@ public String getMessage() {
}
/**
- * Set the message of this {@link RetievalPerFilterSearchResultWithError} instance.
+ * Set the message of this {@link PerFilterSearchResultError} instance.
*
- * @param message The message of this {@link RetievalPerFilterSearchResultWithError}
+ * @param message The message of this {@link PerFilterSearchResultError}
*/
public void setMessage(@Nonnull final String message) {
this.message = message;
}
/**
- * Get the names of the unrecognizable properties of the {@link
- * RetievalPerFilterSearchResultWithError}.
+ * Get the names of the unrecognizable properties of the {@link PerFilterSearchResultError}.
*
* @return The set of properties names
*/
@@ -82,8 +81,8 @@ public Set getCustomFieldNames() {
}
/**
- * Get the value of an unrecognizable property of this {@link
- * RetievalPerFilterSearchResultWithError} instance.
+ * Get the value of an unrecognizable property of this {@link PerFilterSearchResultError}
+ * instance.
*
* @deprecated Use {@link #toMap()} instead.
* @param name The name of the property
@@ -95,14 +94,14 @@ public Set getCustomFieldNames() {
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
if (!cloudSdkCustomFields.containsKey(name)) {
throw new NoSuchElementException(
- "RetievalPerFilterSearchResultWithError has no field with name '" + name + "'.");
+ "PerFilterSearchResultError has no field with name '" + name + "'.");
}
return cloudSdkCustomFields.get(name);
}
/**
- * Get the value of all properties of this {@link RetievalPerFilterSearchResultWithError} instance
- * including unrecognized properties.
+ * Get the value of all properties of this {@link PerFilterSearchResultError} instance including
+ * unrecognized properties.
*
* @return The map of all properties
*/
@@ -115,9 +114,8 @@ public Map toMap() {
}
/**
- * Set an unrecognizable property of this {@link RetievalPerFilterSearchResultWithError} instance.
- * If the map previously contained a mapping for the key, the old value is replaced by the
- * specified value.
+ * Set an unrecognizable property of this {@link PerFilterSearchResultError} instance. If the map
+ * previously contained a mapping for the key, the old value is replaced by the specified value.
*
* @param customFieldName The name of the property
* @param customFieldValue The value of the property
@@ -135,11 +133,10 @@ public boolean equals(@Nullable final java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- final RetievalPerFilterSearchResultWithError retievalPerFilterSearchResultWithError =
- (RetievalPerFilterSearchResultWithError) o;
+ final PerFilterSearchResultError perFilterSearchResultError = (PerFilterSearchResultError) o;
return Objects.equals(
- this.cloudSdkCustomFields, retievalPerFilterSearchResultWithError.cloudSdkCustomFields)
- && Objects.equals(this.message, retievalPerFilterSearchResultWithError.message);
+ this.cloudSdkCustomFields, perFilterSearchResultError.cloudSdkCustomFields)
+ && Objects.equals(this.message, perFilterSearchResultError.message);
}
@Override
@@ -151,7 +148,7 @@ public int hashCode() {
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
- sb.append("class RetievalPerFilterSearchResultWithError {\n");
+ sb.append("class PerFilterSearchResultError {\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
@@ -172,20 +169,20 @@ private String toIndentedString(final java.lang.Object o) {
/**
* Create a type-safe, fluent-api builder object to construct a new {@link
- * RetievalPerFilterSearchResultWithError} instance with all required arguments.
+ * PerFilterSearchResultError} instance with all required arguments.
*/
public static Builder create() {
- return (message) -> new RetievalPerFilterSearchResultWithError().message(message);
+ return (message) -> new PerFilterSearchResultError().message(message);
}
/** Builder helper class. */
public interface Builder {
/**
- * Set the message of this {@link RetievalPerFilterSearchResultWithError} instance.
+ * Set the message of this {@link PerFilterSearchResultError} instance.
*
- * @param message The message of this {@link RetievalPerFilterSearchResultWithError}
- * @return The RetievalPerFilterSearchResultWithError instance.
+ * @param message The message of this {@link PerFilterSearchResultError}
+ * @return The PerFilterSearchResultError instance.
*/
- RetievalPerFilterSearchResultWithError message(@Nonnull final String message);
+ PerFilterSearchResultError message(@Nonnull final String message);
}
}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResultWithError.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResultWithError.java
new file mode 100644
index 000000000..cf31c28f0
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PerFilterSearchResultWithError.java
@@ -0,0 +1,228 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** PerFilterSearchResultWithError */
+// CHECKSTYLE:OFF
+public class PerFilterSearchResultWithError
+// CHECKSTYLE:ON
+{
+ @JsonProperty("filterId")
+ private String filterId;
+
+ @JsonProperty("error")
+ private PerFilterSearchResultError error;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for PerFilterSearchResultWithError. */
+ protected PerFilterSearchResultWithError() {}
+
+ /**
+ * Set the filterId of this {@link PerFilterSearchResultWithError} instance and return the same
+ * instance.
+ *
+ * @param filterId The filterId of this {@link PerFilterSearchResultWithError}
+ * @return The same instance of this {@link PerFilterSearchResultWithError} class
+ */
+ @Nonnull
+ public PerFilterSearchResultWithError filterId(@Nonnull final String filterId) {
+ this.filterId = filterId;
+ return this;
+ }
+
+ /**
+ * Get filterId
+ *
+ * @return filterId The filterId of this {@link PerFilterSearchResultWithError} instance.
+ */
+ @Nonnull
+ public String getFilterId() {
+ return filterId;
+ }
+
+ /**
+ * Set the filterId of this {@link PerFilterSearchResultWithError} instance.
+ *
+ * @param filterId The filterId of this {@link PerFilterSearchResultWithError}
+ */
+ public void setFilterId(@Nonnull final String filterId) {
+ this.filterId = filterId;
+ }
+
+ /**
+ * Set the error of this {@link PerFilterSearchResultWithError} instance and return the same
+ * instance.
+ *
+ * @param error The error of this {@link PerFilterSearchResultWithError}
+ * @return The same instance of this {@link PerFilterSearchResultWithError} class
+ */
+ @Nonnull
+ public PerFilterSearchResultWithError error(@Nullable final PerFilterSearchResultError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Get error
+ *
+ * @return error The error of this {@link PerFilterSearchResultWithError} instance.
+ */
+ @Nonnull
+ public PerFilterSearchResultError getError() {
+ return error;
+ }
+
+ /**
+ * Set the error of this {@link PerFilterSearchResultWithError} instance.
+ *
+ * @param error The error of this {@link PerFilterSearchResultWithError}
+ */
+ public void setError(@Nullable final PerFilterSearchResultError error) {
+ this.error = error;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link PerFilterSearchResultWithError}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link PerFilterSearchResultWithError}
+ * instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "PerFilterSearchResultWithError has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link PerFilterSearchResultWithError} instance
+ * including unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
+ if (filterId != null) declaredFields.put("filterId", filterId);
+ if (error != null) declaredFields.put("error", error);
+ return declaredFields;
+ }
+
+ /**
+ * Set an unrecognizable property of this {@link PerFilterSearchResultWithError} instance. If the
+ * map previously contained a mapping for the key, the old value is replaced by the specified
+ * value.
+ *
+ * @param customFieldName The name of the property
+ * @param customFieldValue The value of the property
+ */
+ @JsonIgnore
+ public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
+ cloudSdkCustomFields.put(customFieldName, customFieldValue);
+ }
+
+ @Override
+ public boolean equals(@Nullable final java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final PerFilterSearchResultWithError perFilterSearchResultWithError =
+ (PerFilterSearchResultWithError) o;
+ return Objects.equals(
+ this.cloudSdkCustomFields, perFilterSearchResultWithError.cloudSdkCustomFields)
+ && Objects.equals(this.filterId, perFilterSearchResultWithError.filterId)
+ && Objects.equals(this.error, perFilterSearchResultWithError.error);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(filterId, error, cloudSdkCustomFields);
+ }
+
+ @Override
+ @Nonnull
+ public String toString() {
+ final StringBuilder sb = new StringBuilder();
+ sb.append("class PerFilterSearchResultWithError {\n");
+ sb.append(" filterId: ").append(toIndentedString(filterId)).append("\n");
+ sb.append(" error: ").append(toIndentedString(error)).append("\n");
+ cloudSdkCustomFields.forEach(
+ (k, v) ->
+ sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(final java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Create a type-safe, fluent-api builder object to construct a new {@link
+ * PerFilterSearchResultWithError} instance with all required arguments.
+ */
+ public static Builder create() {
+ return (filterId) -> new PerFilterSearchResultWithError().filterId(filterId);
+ }
+
+ /** Builder helper class. */
+ public interface Builder {
+ /**
+ * Set the filterId of this {@link PerFilterSearchResultWithError} instance.
+ *
+ * @param filterId The filterId of this {@link PerFilterSearchResultWithError}
+ * @return The PerFilterSearchResultWithError instance.
+ */
+ PerFilterSearchResultWithError filterId(@Nonnull final String filterId);
+ }
+}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Pipeline.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Pipeline.java
deleted file mode 100644
index 7d5c959f5..000000000
--- a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/Pipeline.java
+++ /dev/null
@@ -1,244 +0,0 @@
-/*
- * Document Grounding Pipeline API
- * SAP AI Core - API Specification AI Data Management api's
- *
- *
- *
- * 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.sap.ai.sdk.grounding.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.NoSuchElementException;
-import java.util.Objects;
-import java.util.Set;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-
-/** Pipeline */
-// CHECKSTYLE:OFF
-public class Pipeline
-// CHECKSTYLE:ON
-{
- @JsonProperty("id")
- private String id;
-
- @JsonProperty("type")
- private String type;
-
- @JsonProperty("configuration")
- private PipelineConfiguration _configuration;
-
- @JsonAnySetter @JsonAnyGetter
- private final Map cloudSdkCustomFields = new LinkedHashMap<>();
-
- /** Default constructor for Pipeline. */
- protected Pipeline() {}
-
- /**
- * Set the id of this {@link Pipeline} instance and return the same instance.
- *
- * @param id The id of this {@link Pipeline}
- * @return The same instance of this {@link Pipeline} class
- */
- @Nonnull
- public Pipeline id(@Nullable final String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Get id
- *
- * @return id The id of this {@link Pipeline} instance.
- */
- @Nonnull
- public String getId() {
- return id;
- }
-
- /**
- * Set the id of this {@link Pipeline} instance.
- *
- * @param id The id of this {@link Pipeline}
- */
- public void setId(@Nullable final String id) {
- this.id = id;
- }
-
- /**
- * Set the type of this {@link Pipeline} instance and return the same instance.
- *
- * @param type The type of this {@link Pipeline}
- * @return The same instance of this {@link Pipeline} class
- */
- @Nonnull
- public Pipeline type(@Nullable final String type) {
- this.type = type;
- return this;
- }
-
- /**
- * Get type
- *
- * @return type The type of this {@link Pipeline} instance.
- */
- @Nonnull
- public String getType() {
- return type;
- }
-
- /**
- * Set the type of this {@link Pipeline} instance.
- *
- * @param type The type of this {@link Pipeline}
- */
- public void setType(@Nullable final String type) {
- this.type = type;
- }
-
- /**
- * Set the _configuration of this {@link Pipeline} instance and return the same instance.
- *
- * @param _configuration The _configuration of this {@link Pipeline}
- * @return The same instance of this {@link Pipeline} class
- */
- @Nonnull
- public Pipeline _configuration(@Nullable final PipelineConfiguration _configuration) {
- this._configuration = _configuration;
- return this;
- }
-
- /**
- * Get _configuration
- *
- * @return _configuration The _configuration of this {@link Pipeline} instance.
- */
- @Nonnull
- public PipelineConfiguration getConfiguration() {
- return _configuration;
- }
-
- /**
- * Set the _configuration of this {@link Pipeline} instance.
- *
- * @param _configuration The _configuration of this {@link Pipeline}
- */
- public void setConfiguration(@Nullable final PipelineConfiguration _configuration) {
- this._configuration = _configuration;
- }
-
- /**
- * Get the names of the unrecognizable properties of the {@link Pipeline}.
- *
- * @return The set of properties names
- */
- @JsonIgnore
- @Nonnull
- public Set getCustomFieldNames() {
- return cloudSdkCustomFields.keySet();
- }
-
- /**
- * Get the value of an unrecognizable property of this {@link Pipeline} instance.
- *
- * @deprecated Use {@link #toMap()} instead.
- * @param name The name of the property
- * @return The value of the property
- * @throws NoSuchElementException If no property with the given name could be found.
- */
- @Nullable
- @Deprecated
- public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
- if (!cloudSdkCustomFields.containsKey(name)) {
- throw new NoSuchElementException("Pipeline has no field with name '" + name + "'.");
- }
- return cloudSdkCustomFields.get(name);
- }
-
- /**
- * Get the value of all properties of this {@link Pipeline} instance including unrecognized
- * properties.
- *
- * @return The map of all properties
- */
- @JsonIgnore
- @Nonnull
- public Map toMap() {
- final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
- if (id != null) declaredFields.put("id", id);
- if (type != null) declaredFields.put("type", type);
- if (_configuration != null) declaredFields.put("_configuration", _configuration);
- return declaredFields;
- }
-
- /**
- * Set an unrecognizable property of this {@link Pipeline} instance. If the map previously
- * contained a mapping for the key, the old value is replaced by the specified value.
- *
- * @param customFieldName The name of the property
- * @param customFieldValue The value of the property
- */
- @JsonIgnore
- public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
- cloudSdkCustomFields.put(customFieldName, customFieldValue);
- }
-
- @Override
- public boolean equals(@Nullable final java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- final Pipeline pipeline = (Pipeline) o;
- return Objects.equals(this.cloudSdkCustomFields, pipeline.cloudSdkCustomFields)
- && Objects.equals(this.id, pipeline.id)
- && Objects.equals(this.type, pipeline.type)
- && Objects.equals(this._configuration, pipeline._configuration);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(id, type, _configuration, cloudSdkCustomFields);
- }
-
- @Override
- @Nonnull
- public String toString() {
- final StringBuilder sb = new StringBuilder();
- sb.append("class Pipeline {\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n");
- cloudSdkCustomFields.forEach(
- (k, v) ->
- sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(final java.lang.Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
- /** Create a new {@link Pipeline} instance. No arguments are required. */
- public static Pipeline create() {
- return new Pipeline();
- }
-}
diff --git a/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineDocumentResponse.java b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineDocumentResponse.java
new file mode 100644
index 000000000..61fb9653c
--- /dev/null
+++ b/core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/PipelineDocumentResponse.java
@@ -0,0 +1,329 @@
+/*
+ * Grounding
+ * Grounding is a service designed to handle data-related tasks, such as grounding and retrieval, using vector databases. It provides specialized data retrieval through these databases, grounding the retrieval process with your own external and context-relevant data. Grounding combines generative AI capabilities with the ability to use real-time, precise data to improve decision-making and business operations for specific AI-driven business solutions.
+ *
+ *
+ *
+ * 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.sap.ai.sdk.grounding.model;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.NoSuchElementException;
+import java.util.Objects;
+import java.util.Set;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+/** PipelineDocumentResponse */
+// CHECKSTYLE:OFF
+public class PipelineDocumentResponse
+// CHECKSTYLE:ON
+{
+ @JsonProperty("id")
+ private String id;
+
+ @JsonProperty("viewLocation")
+ private String viewLocation;
+
+ @JsonProperty("downloadLocation")
+ private String downloadLocation;
+
+ @JsonProperty("lastUpdatedTimestamp")
+ private String lastUpdatedTimestamp;
+
+ @JsonProperty("status")
+ private DocumentStatus status;
+
+ @JsonAnySetter @JsonAnyGetter
+ private final Map cloudSdkCustomFields = new LinkedHashMap<>();
+
+ /** Default constructor for PipelineDocumentResponse. */
+ protected PipelineDocumentResponse() {}
+
+ /**
+ * Set the id of this {@link PipelineDocumentResponse} instance and return the same instance.
+ *
+ * @param id The id of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse id(@Nullable final String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get id
+ *
+ * @return id The id of this {@link PipelineDocumentResponse} instance.
+ */
+ @Nonnull
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * Set the id of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param id The id of this {@link PipelineDocumentResponse}
+ */
+ public void setId(@Nullable final String id) {
+ this.id = id;
+ }
+
+ /**
+ * Set the viewLocation of this {@link PipelineDocumentResponse} instance and return the same
+ * instance.
+ *
+ * @param viewLocation The viewLocation of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse viewLocation(@Nullable final String viewLocation) {
+ this.viewLocation = viewLocation;
+ return this;
+ }
+
+ /**
+ * Get viewLocation
+ *
+ * @return viewLocation The viewLocation of this {@link PipelineDocumentResponse} instance.
+ */
+ @Nullable
+ public String getViewLocation() {
+ return viewLocation;
+ }
+
+ /**
+ * Set the viewLocation of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param viewLocation The viewLocation of this {@link PipelineDocumentResponse}
+ */
+ public void setViewLocation(@Nullable final String viewLocation) {
+ this.viewLocation = viewLocation;
+ }
+
+ /**
+ * Set the downloadLocation of this {@link PipelineDocumentResponse} instance and return the same
+ * instance.
+ *
+ * @param downloadLocation The downloadLocation of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse downloadLocation(@Nullable final String downloadLocation) {
+ this.downloadLocation = downloadLocation;
+ return this;
+ }
+
+ /**
+ * Get downloadLocation
+ *
+ * @return downloadLocation The downloadLocation of this {@link PipelineDocumentResponse}
+ * instance.
+ */
+ @Nullable
+ public String getDownloadLocation() {
+ return downloadLocation;
+ }
+
+ /**
+ * Set the downloadLocation of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param downloadLocation The downloadLocation of this {@link PipelineDocumentResponse}
+ */
+ public void setDownloadLocation(@Nullable final String downloadLocation) {
+ this.downloadLocation = downloadLocation;
+ }
+
+ /**
+ * Set the lastUpdatedTimestamp of this {@link PipelineDocumentResponse} instance and return the
+ * same instance.
+ *
+ * @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse lastUpdatedTimestamp(
+ @Nullable final String lastUpdatedTimestamp) {
+ this.lastUpdatedTimestamp = lastUpdatedTimestamp;
+ return this;
+ }
+
+ /**
+ * Get lastUpdatedTimestamp
+ *
+ * @return lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
+ * instance.
+ */
+ @Nonnull
+ public String getLastUpdatedTimestamp() {
+ return lastUpdatedTimestamp;
+ }
+
+ /**
+ * Set the lastUpdatedTimestamp of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link PipelineDocumentResponse}
+ */
+ public void setLastUpdatedTimestamp(@Nullable final String lastUpdatedTimestamp) {
+ this.lastUpdatedTimestamp = lastUpdatedTimestamp;
+ }
+
+ /**
+ * Set the status of this {@link PipelineDocumentResponse} instance and return the same instance.
+ *
+ * @param status The status of this {@link PipelineDocumentResponse}
+ * @return The same instance of this {@link PipelineDocumentResponse} class
+ */
+ @Nonnull
+ public PipelineDocumentResponse status(@Nullable final DocumentStatus status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ *
+ * @return status The status of this {@link PipelineDocumentResponse} instance.
+ */
+ @Nonnull
+ public DocumentStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * Set the status of this {@link PipelineDocumentResponse} instance.
+ *
+ * @param status The status of this {@link PipelineDocumentResponse}
+ */
+ public void setStatus(@Nullable final DocumentStatus status) {
+ this.status = status;
+ }
+
+ /**
+ * Get the names of the unrecognizable properties of the {@link PipelineDocumentResponse}.
+ *
+ * @return The set of properties names
+ */
+ @JsonIgnore
+ @Nonnull
+ public Set getCustomFieldNames() {
+ return cloudSdkCustomFields.keySet();
+ }
+
+ /**
+ * Get the value of an unrecognizable property of this {@link PipelineDocumentResponse} instance.
+ *
+ * @deprecated Use {@link #toMap()} instead.
+ * @param name The name of the property
+ * @return The value of the property
+ * @throws NoSuchElementException If no property with the given name could be found.
+ */
+ @Nullable
+ @Deprecated
+ public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
+ if (!cloudSdkCustomFields.containsKey(name)) {
+ throw new NoSuchElementException(
+ "PipelineDocumentResponse has no field with name '" + name + "'.");
+ }
+ return cloudSdkCustomFields.get(name);
+ }
+
+ /**
+ * Get the value of all properties of this {@link PipelineDocumentResponse} instance including
+ * unrecognized properties.
+ *
+ * @return The map of all properties
+ */
+ @JsonIgnore
+ @Nonnull
+ public Map toMap() {
+ final Map