diff --git a/core-services/document-grounding/pom.xml b/core-services/document-grounding/pom.xml index c55b8af59..6c73ef2c7 100644 --- a/core-services/document-grounding/pom.xml +++ b/core-services/document-grounding/pom.xml @@ -141,6 +141,9 @@ true true true + true + \. + 3 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 1c19ad642..97deb9126 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 @@ -73,7 +73,7 @@ public PipelinesApi(@Nonnull final ApiClient apiClient) { * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public PipelineId pipelineV1PipelineEndpointsCreatePipeline( + public PipelineId createPipeline( @Nonnull final String aiResourceGroup, @Nonnull final CreatePipeline createPipeline) throws OpenApiRequestException { final Object localVarPostBody = createPipeline; @@ -81,13 +81,13 @@ public PipelineId pipelineV1PipelineEndpointsCreatePipeline( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsCreatePipeline"); + "Missing the required parameter 'aiResourceGroup' when calling createPipeline"); } // verify the required parameter 'createPipeline' is set if (createPipeline == null) { throw new OpenApiRequestException( - "Missing the required parameter 'createPipeline' when calling pipelineV1PipelineEndpointsCreatePipeline"); + "Missing the required parameter 'createPipeline' when calling createPipeline"); } final String localVarPath = UriComponentsBuilder.fromPath("/pipelines").build().toUriString(); @@ -138,7 +138,7 @@ public PipelineId pipelineV1PipelineEndpointsCreatePipeline( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse pipelineV1PipelineEndpointsDeletePipelineById( + public OpenApiResponse deletePipelineById( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId) throws OpenApiRequestException { final Object localVarPostBody = null; @@ -146,13 +146,13 @@ public OpenApiResponse pipelineV1PipelineEndpointsDeletePipelineById( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsDeletePipelineById"); + "Missing the required parameter 'aiResourceGroup' when calling deletePipelineById"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsDeletePipelineById"); + "Missing the required parameter 'pipelineId' when calling deletePipelineById"); } // create path and map variables @@ -215,7 +215,7 @@ public OpenApiResponse pipelineV1PipelineEndpointsDeletePipelineById( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public GetPipelines pipelineV1PipelineEndpointsGetAllPipeline( + public GetPipelines getAllPipeline( @Nonnull final String aiResourceGroup, @Nullable final Integer $top, @Nullable final Integer $skip, @@ -226,7 +226,7 @@ public GetPipelines pipelineV1PipelineEndpointsGetAllPipeline( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetAllPipeline"); + "Missing the required parameter 'aiResourceGroup' when calling getAllPipeline"); } final String localVarPath = UriComponentsBuilder.fromPath("/pipelines").build().toUriString(); @@ -280,9 +280,9 @@ public GetPipelines pipelineV1PipelineEndpointsGetAllPipeline( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public GetPipelines pipelineV1PipelineEndpointsGetAllPipeline( - @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return pipelineV1PipelineEndpointsGetAllPipeline(aiResourceGroup, null, null, null); + public GetPipelines getAllPipeline(@Nonnull final String aiResourceGroup) + throws OpenApiRequestException { + return getAllPipeline(aiResourceGroup, null, null, null); } /** @@ -300,7 +300,7 @@ public GetPipelines pipelineV1PipelineEndpointsGetAllPipeline( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public GetPipeline pipelineV1PipelineEndpointsGetPipelineById( + public GetPipeline getPipelineById( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId) throws OpenApiRequestException { final Object localVarPostBody = null; @@ -308,13 +308,13 @@ public GetPipeline pipelineV1PipelineEndpointsGetPipelineById( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetPipelineById"); + "Missing the required parameter 'aiResourceGroup' when calling getPipelineById"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsGetPipelineById"); + "Missing the required parameter 'pipelineId' when calling getPipelineById"); } // create path and map variables @@ -370,7 +370,7 @@ public GetPipeline pipelineV1PipelineEndpointsGetPipelineById( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public PipelineDocumentResponse pipelineV1PipelineEndpointsGetPipelineDocumentById( + public PipelineDocumentResponse getPipelineDocumentById( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId, @Nonnull final String documentId) @@ -380,19 +380,19 @@ public PipelineDocumentResponse pipelineV1PipelineEndpointsGetPipelineDocumentBy // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetPipelineDocumentById"); + "Missing the required parameter 'aiResourceGroup' when calling getPipelineDocumentById"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsGetPipelineDocumentById"); + "Missing the required parameter 'pipelineId' when calling getPipelineDocumentById"); } // verify the required parameter 'documentId' is set if (documentId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'documentId' when calling pipelineV1PipelineEndpointsGetPipelineDocumentById"); + "Missing the required parameter 'documentId' when calling getPipelineDocumentById"); } // create path and map variables @@ -455,7 +455,7 @@ public PipelineDocumentResponse pipelineV1PipelineEndpointsGetPipelineDocumentBy * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineDocuments( + public DocumentsStatusResponse getPipelineDocuments( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId, @Nullable final Integer $top, @@ -467,13 +467,13 @@ public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineDocuments( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetPipelineDocuments"); + "Missing the required parameter 'aiResourceGroup' when calling getPipelineDocuments"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsGetPipelineDocuments"); + "Missing the required parameter 'pipelineId' when calling getPipelineDocuments"); } // create path and map variables @@ -533,11 +533,10 @@ public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineDocuments( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineDocuments( + public DocumentsStatusResponse getPipelineDocuments( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId) throws OpenApiRequestException { - return pipelineV1PipelineEndpointsGetPipelineDocuments( - aiResourceGroup, pipelineId, null, null, null); + return getPipelineDocuments(aiResourceGroup, pipelineId, null, null, null); } /** @@ -554,7 +553,7 @@ public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineDocuments( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public GetPipelineExecutionById pipelineV1PipelineEndpointsGetPipelineExecutionById( + public GetPipelineExecutionById getPipelineExecutionById( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId, @Nonnull final String executionId) @@ -564,19 +563,19 @@ public GetPipelineExecutionById pipelineV1PipelineEndpointsGetPipelineExecutionB // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetPipelineExecutionById"); + "Missing the required parameter 'aiResourceGroup' when calling getPipelineExecutionById"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsGetPipelineExecutionById"); + "Missing the required parameter 'pipelineId' when calling getPipelineExecutionById"); } // verify the required parameter 'executionId' is set if (executionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'executionId' when calling pipelineV1PipelineEndpointsGetPipelineExecutionById"); + "Missing the required parameter 'executionId' when calling getPipelineExecutionById"); } // create path and map variables @@ -634,7 +633,7 @@ public GetPipelineExecutionById pipelineV1PipelineEndpointsGetPipelineExecutionB * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public PipelineDocumentResponse pipelineV1PipelineEndpointsGetPipelineExecutionDocumentById( + public PipelineDocumentResponse getPipelineExecutionDocumentById( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId, @Nonnull final String executionId, @@ -645,25 +644,25 @@ public PipelineDocumentResponse pipelineV1PipelineEndpointsGetPipelineExecutionD // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetPipelineExecutionDocumentById"); + "Missing the required parameter 'aiResourceGroup' when calling getPipelineExecutionDocumentById"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsGetPipelineExecutionDocumentById"); + "Missing the required parameter 'pipelineId' when calling getPipelineExecutionDocumentById"); } // verify the required parameter 'executionId' is set if (executionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'executionId' when calling pipelineV1PipelineEndpointsGetPipelineExecutionDocumentById"); + "Missing the required parameter 'executionId' when calling getPipelineExecutionDocumentById"); } // verify the required parameter 'documentId' is set if (documentId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'documentId' when calling pipelineV1PipelineEndpointsGetPipelineExecutionDocumentById"); + "Missing the required parameter 'documentId' when calling getPipelineExecutionDocumentById"); } // create path and map variables @@ -729,7 +728,7 @@ public PipelineDocumentResponse pipelineV1PipelineEndpointsGetPipelineExecutionD * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineExecutionDocuments( + public DocumentsStatusResponse getPipelineExecutionDocuments( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId, @Nonnull final String executionId, @@ -742,19 +741,19 @@ public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineExecutionDo // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetPipelineExecutionDocuments"); + "Missing the required parameter 'aiResourceGroup' when calling getPipelineExecutionDocuments"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsGetPipelineExecutionDocuments"); + "Missing the required parameter 'pipelineId' when calling getPipelineExecutionDocuments"); } // verify the required parameter 'executionId' is set if (executionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'executionId' when calling pipelineV1PipelineEndpointsGetPipelineExecutionDocuments"); + "Missing the required parameter 'executionId' when calling getPipelineExecutionDocuments"); } // create path and map variables @@ -816,12 +815,12 @@ public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineExecutionDo * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineExecutionDocuments( + public DocumentsStatusResponse getPipelineExecutionDocuments( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId, @Nonnull final String executionId) throws OpenApiRequestException { - return pipelineV1PipelineEndpointsGetPipelineExecutionDocuments( + return getPipelineExecutionDocuments( aiResourceGroup, pipelineId, executionId, null, null, null); } @@ -846,7 +845,7 @@ public DocumentsStatusResponse pipelineV1PipelineEndpointsGetPipelineExecutionDo * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public GetPipelineExecutions pipelineV1PipelineEndpointsGetPipelineExecutions( + public GetPipelineExecutions getPipelineExecutions( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId, @Nullable final Boolean lastExecution, @@ -859,13 +858,13 @@ public GetPipelineExecutions pipelineV1PipelineEndpointsGetPipelineExecutions( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetPipelineExecutions"); + "Missing the required parameter 'aiResourceGroup' when calling getPipelineExecutions"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsGetPipelineExecutions"); + "Missing the required parameter 'pipelineId' when calling getPipelineExecutions"); } // create path and map variables @@ -927,11 +926,10 @@ public GetPipelineExecutions pipelineV1PipelineEndpointsGetPipelineExecutions( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public GetPipelineExecutions pipelineV1PipelineEndpointsGetPipelineExecutions( + public GetPipelineExecutions getPipelineExecutions( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId) throws OpenApiRequestException { - return pipelineV1PipelineEndpointsGetPipelineExecutions( - aiResourceGroup, pipelineId, null, null, null, null); + return getPipelineExecutions(aiResourceGroup, pipelineId, null, null, null, null); } /** @@ -949,7 +947,7 @@ public GetPipelineExecutions pipelineV1PipelineEndpointsGetPipelineExecutions( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public GetPipelineStatus pipelineV1PipelineEndpointsGetPipelineStatus( + public GetPipelineStatus getPipelineStatus( @Nonnull final String aiResourceGroup, @Nonnull final String pipelineId) throws OpenApiRequestException { final Object localVarPostBody = null; @@ -957,13 +955,13 @@ public GetPipelineStatus pipelineV1PipelineEndpointsGetPipelineStatus( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling pipelineV1PipelineEndpointsGetPipelineStatus"); + "Missing the required parameter 'aiResourceGroup' when calling getPipelineStatus"); } // verify the required parameter 'pipelineId' is set if (pipelineId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'pipelineId' when calling pipelineV1PipelineEndpointsGetPipelineStatus"); + "Missing the required parameter 'pipelineId' when calling getPipelineStatus"); } // create path and map variables 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 6b6badc69..dd09c943c 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 @@ -73,7 +73,7 @@ public RetrievalApi(@Nonnull final ApiClient apiClient) { * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DataRepositories retrievalV1RetrievalEndpointsGetDataRepositories( + public DataRepositories getDataRepositories( @Nonnull final String aiResourceGroup, @Nullable final Integer $top, @Nullable final Integer $skip, @@ -84,7 +84,7 @@ public DataRepositories retrievalV1RetrievalEndpointsGetDataRepositories( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling retrievalV1RetrievalEndpointsGetDataRepositories"); + "Missing the required parameter 'aiResourceGroup' when calling getDataRepositories"); } final String localVarPath = @@ -139,9 +139,9 @@ public DataRepositories retrievalV1RetrievalEndpointsGetDataRepositories( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DataRepositories retrievalV1RetrievalEndpointsGetDataRepositories( - @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return retrievalV1RetrievalEndpointsGetDataRepositories(aiResourceGroup, null, null, null); + public DataRepositories getDataRepositories(@Nonnull final String aiResourceGroup) + throws OpenApiRequestException { + return getDataRepositories(aiResourceGroup, null, null, null); } /** @@ -163,7 +163,7 @@ public DataRepositories retrievalV1RetrievalEndpointsGetDataRepositories( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DataRepository retrievalV1RetrievalEndpointsGetDataRepository( + public DataRepository getDataRepository( @Nonnull final String aiResourceGroup, @Nonnull final UUID repositoryId) throws OpenApiRequestException { final Object localVarPostBody = null; @@ -171,13 +171,13 @@ public DataRepository retrievalV1RetrievalEndpointsGetDataRepository( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling retrievalV1RetrievalEndpointsGetDataRepository"); + "Missing the required parameter 'aiResourceGroup' when calling getDataRepository"); } // verify the required parameter 'repositoryId' is set if (repositoryId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'repositoryId' when calling retrievalV1RetrievalEndpointsGetDataRepository"); + "Missing the required parameter 'repositoryId' when calling getDataRepository"); } // create path and map variables @@ -250,7 +250,7 @@ public SearchResults search( // verify the required parameter 'searchInput' is set if (searchInput == null) { throw new OpenApiRequestException( - "Missing the required parameter 'searchInput' when calling retrievalV1RetrievalEndpointsSearch"); + "Missing the required parameter 'searchInput' when calling search"); } final String localVarPath = 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 a2e827c53..45b9c1528 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 @@ -80,7 +80,7 @@ public VectorApi(@Nonnull final ApiClient apiClient) { * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse vectorV1VectorEndpointsCreateCollection( + public OpenApiResponse createCollection( @Nonnull final String aiResourceGroup, @Nonnull final CollectionRequest collectionRequest) throws OpenApiRequestException { final Object localVarPostBody = collectionRequest; @@ -88,13 +88,13 @@ public OpenApiResponse vectorV1VectorEndpointsCreateCollection( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsCreateCollection"); + "Missing the required parameter 'aiResourceGroup' when calling createCollection"); } // verify the required parameter 'collectionRequest' is set if (collectionRequest == null) { throw new OpenApiRequestException( - "Missing the required parameter 'collectionRequest' when calling vectorV1VectorEndpointsCreateCollection"); + "Missing the required parameter 'collectionRequest' when calling createCollection"); } final String localVarPath = @@ -153,7 +153,7 @@ public OpenApiResponse vectorV1VectorEndpointsCreateCollection( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DocumentsListResponse vectorV1VectorEndpointsCreateDocuments( + public DocumentsListResponse createDocuments( @Nonnull final String aiResourceGroup, @Nonnull final UUID collectionId, @Nonnull final DocumentCreateRequest documentCreateRequest) @@ -163,19 +163,19 @@ public DocumentsListResponse vectorV1VectorEndpointsCreateDocuments( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsCreateDocuments"); + "Missing the required parameter 'aiResourceGroup' when calling createDocuments"); } // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'collectionId' when calling vectorV1VectorEndpointsCreateDocuments"); + "Missing the required parameter 'collectionId' when calling createDocuments"); } // verify the required parameter 'documentCreateRequest' is set if (documentCreateRequest == null) { throw new OpenApiRequestException( - "Missing the required parameter 'documentCreateRequest' when calling vectorV1VectorEndpointsCreateDocuments"); + "Missing the required parameter 'documentCreateRequest' when calling createDocuments"); } // create path and map variables @@ -237,7 +237,7 @@ public DocumentsListResponse vectorV1VectorEndpointsCreateDocuments( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse vectorV1VectorEndpointsDeleteCollection( + public OpenApiResponse deleteCollection( @Nonnull final String aiResourceGroup, @Nonnull final String collectionId) throws OpenApiRequestException { final Object localVarPostBody = null; @@ -245,13 +245,13 @@ public OpenApiResponse vectorV1VectorEndpointsDeleteCollection( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsDeleteCollection"); + "Missing the required parameter 'aiResourceGroup' when calling deleteCollection"); } // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'collectionId' when calling vectorV1VectorEndpointsDeleteCollection"); + "Missing the required parameter 'collectionId' when calling deleteCollection"); } // create path and map variables @@ -314,7 +314,7 @@ public OpenApiResponse vectorV1VectorEndpointsDeleteCollection( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public OpenApiResponse vectorV1VectorEndpointsDeleteDocument( + public OpenApiResponse deleteDocument( @Nonnull final String aiResourceGroup, @Nonnull final UUID collectionId, @Nonnull final UUID documentId) @@ -324,19 +324,19 @@ public OpenApiResponse vectorV1VectorEndpointsDeleteDocument( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsDeleteDocument"); + "Missing the required parameter 'aiResourceGroup' when calling deleteDocument"); } // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'collectionId' when calling vectorV1VectorEndpointsDeleteDocument"); + "Missing the required parameter 'collectionId' when calling deleteDocument"); } // verify the required parameter 'documentId' is set if (documentId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'documentId' when calling vectorV1VectorEndpointsDeleteDocument"); + "Missing the required parameter 'documentId' when calling deleteDocument"); } // create path and map variables @@ -400,7 +400,7 @@ public OpenApiResponse vectorV1VectorEndpointsDeleteDocument( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public CollectionsListResponse vectorV1VectorEndpointsGetAllCollections( + public CollectionsListResponse getAllCollections( @Nonnull final String aiResourceGroup, @Nullable final Integer $top, @Nullable final Integer $skip, @@ -411,7 +411,7 @@ public CollectionsListResponse vectorV1VectorEndpointsGetAllCollections( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsGetAllCollections"); + "Missing the required parameter 'aiResourceGroup' when calling getAllCollections"); } final String localVarPath = @@ -466,9 +466,9 @@ public CollectionsListResponse vectorV1VectorEndpointsGetAllCollections( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public CollectionsListResponse vectorV1VectorEndpointsGetAllCollections( - @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - return vectorV1VectorEndpointsGetAllCollections(aiResourceGroup, null, null, null); + public CollectionsListResponse getAllCollections(@Nonnull final String aiResourceGroup) + throws OpenApiRequestException { + return getAllCollections(aiResourceGroup, null, null, null); } /** @@ -496,7 +496,7 @@ public CollectionsListResponse vectorV1VectorEndpointsGetAllCollections( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Documents vectorV1VectorEndpointsGetAllDocuments( + public Documents getAllDocuments( @Nonnull final String aiResourceGroup, @Nonnull final UUID collectionId, @Nullable final Integer $top, @@ -508,13 +508,13 @@ public Documents vectorV1VectorEndpointsGetAllDocuments( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsGetAllDocuments"); + "Missing the required parameter 'aiResourceGroup' when calling getAllDocuments"); } // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'collectionId' when calling vectorV1VectorEndpointsGetAllDocuments"); + "Missing the required parameter 'collectionId' when calling getAllDocuments"); } // create path and map variables @@ -579,10 +579,10 @@ public Documents vectorV1VectorEndpointsGetAllDocuments( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Documents vectorV1VectorEndpointsGetAllDocuments( + public Documents getAllDocuments( @Nonnull final String aiResourceGroup, @Nonnull final UUID collectionId) throws OpenApiRequestException { - return vectorV1VectorEndpointsGetAllDocuments(aiResourceGroup, collectionId, null, null, null); + return getAllDocuments(aiResourceGroup, collectionId, null, null, null); } /** @@ -604,7 +604,7 @@ public Documents vectorV1VectorEndpointsGetAllDocuments( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public Collection vectorV1VectorEndpointsGetCollectionById( + public Collection getCollectionById( @Nonnull final String aiResourceGroup, @Nonnull final UUID collectionId) throws OpenApiRequestException { final Object localVarPostBody = null; @@ -612,13 +612,13 @@ public Collection vectorV1VectorEndpointsGetCollectionById( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsGetCollectionById"); + "Missing the required parameter 'aiResourceGroup' when calling getCollectionById"); } // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'collectionId' when calling vectorV1VectorEndpointsGetCollectionById"); + "Missing the required parameter 'collectionId' when calling getCollectionById"); } // create path and map variables @@ -679,22 +679,21 @@ public Collection vectorV1VectorEndpointsGetCollectionById( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public VectorV1VectorEndpointsGetCollectionCreationStatus200Response - vectorV1VectorEndpointsGetCollectionCreationStatus( - @Nonnull final String aiResourceGroup, @Nonnull final UUID id) - throws OpenApiRequestException { + public VectorV1VectorEndpointsGetCollectionCreationStatus200Response getCollectionCreationStatus( + @Nonnull final String aiResourceGroup, @Nonnull final UUID id) + 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 vectorV1VectorEndpointsGetCollectionCreationStatus"); + "Missing the required parameter 'aiResourceGroup' when calling getCollectionCreationStatus"); } // verify the required parameter 'id' is set if (id == null) { throw new OpenApiRequestException( - "Missing the required parameter 'id' when calling vectorV1VectorEndpointsGetCollectionCreationStatus"); + "Missing the required parameter 'id' when calling getCollectionCreationStatus"); } // create path and map variables @@ -835,7 +834,7 @@ public VectorV1VectorEndpointsGetCollectionDeletionStatus200Response getCollecti * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DocumentResponse vectorV1VectorEndpointsGetDocumentById( + public DocumentResponse getDocumentById( @Nonnull final String aiResourceGroup, @Nonnull final UUID collectionId, @Nonnull final UUID documentId) @@ -845,19 +844,19 @@ public DocumentResponse vectorV1VectorEndpointsGetDocumentById( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsGetDocumentById"); + "Missing the required parameter 'aiResourceGroup' when calling getDocumentById"); } // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'collectionId' when calling vectorV1VectorEndpointsGetDocumentById"); + "Missing the required parameter 'collectionId' when calling getDocumentById"); } // verify the required parameter 'documentId' is set if (documentId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'documentId' when calling vectorV1VectorEndpointsGetDocumentById"); + "Missing the required parameter 'documentId' when calling getDocumentById"); } // create path and map variables @@ -919,7 +918,7 @@ public DocumentResponse vectorV1VectorEndpointsGetDocumentById( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public SearchResults vectorV1VectorEndpointsSearchChunk( + public SearchResults searchChunk( @Nonnull final String aiResourceGroup, @Nonnull final TextSearchRequest textSearchRequest) throws OpenApiRequestException { final Object localVarPostBody = textSearchRequest; @@ -927,13 +926,13 @@ public SearchResults vectorV1VectorEndpointsSearchChunk( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsSearchChunk"); + "Missing the required parameter 'aiResourceGroup' when calling searchChunk"); } // verify the required parameter 'textSearchRequest' is set if (textSearchRequest == null) { throw new OpenApiRequestException( - "Missing the required parameter 'textSearchRequest' when calling vectorV1VectorEndpointsSearchChunk"); + "Missing the required parameter 'textSearchRequest' when calling searchChunk"); } final String localVarPath = @@ -990,7 +989,7 @@ public SearchResults vectorV1VectorEndpointsSearchChunk( * @throws OpenApiRequestException if an error occurs while attempting to invoke the API */ @Nonnull - public DocumentsListResponse vectorV1VectorEndpointsUpdateDocuments( + public DocumentsListResponse updateDocuments( @Nonnull final String aiResourceGroup, @Nonnull final UUID collectionId, @Nonnull final DocumentUpdateRequest documentUpdateRequest) @@ -1000,19 +999,19 @@ public DocumentsListResponse vectorV1VectorEndpointsUpdateDocuments( // verify the required parameter 'aiResourceGroup' is set if (aiResourceGroup == null) { throw new OpenApiRequestException( - "Missing the required parameter 'aiResourceGroup' when calling vectorV1VectorEndpointsUpdateDocuments"); + "Missing the required parameter 'aiResourceGroup' when calling updateDocuments"); } // verify the required parameter 'collectionId' is set if (collectionId == null) { throw new OpenApiRequestException( - "Missing the required parameter 'collectionId' when calling vectorV1VectorEndpointsUpdateDocuments"); + "Missing the required parameter 'collectionId' when calling updateDocuments"); } // verify the required parameter 'documentUpdateRequest' is set if (documentUpdateRequest == null) { throw new OpenApiRequestException( - "Missing the required parameter 'documentUpdateRequest' when calling vectorV1VectorEndpointsUpdateDocuments"); + "Missing the required parameter 'documentUpdateRequest' when calling updateDocuments"); } // create path and map variables diff --git a/core-services/document-grounding/src/test/java/com/sap/ai/sdk/grounding/GroundingClientTest.java b/core-services/document-grounding/src/test/java/com/sap/ai/sdk/grounding/GroundingClientTest.java index dd4110a39..a248eb915 100644 --- a/core-services/document-grounding/src/test/java/com/sap/ai/sdk/grounding/GroundingClientTest.java +++ b/core-services/document-grounding/src/test/java/com/sap/ai/sdk/grounding/GroundingClientTest.java @@ -35,7 +35,7 @@ public class GroundingClientTest { void testPipelines() { final PipelinesApi api = new GroundingClient(SERVICE).pipelines(); - GetPipelines allPipelines = api.pipelineV1PipelineEndpointsGetAllPipeline("reosurceGroup"); + GetPipelines allPipelines = api.getAllPipeline("reosurceGroup"); assertThat(allPipelines).isNotNull(); assertThat(allPipelines.getResources()).isEmpty(); } @@ -44,8 +44,7 @@ void testPipelines() { void testVector() { final VectorApi api = new GroundingClient(SERVICE).vector(); - final CollectionsListResponse collections = - api.vectorV1VectorEndpointsGetAllCollections("reosurceGroup"); + final CollectionsListResponse collections = api.getAllCollections("reosurceGroup"); assertThat(collections).isNotNull(); assertThat(collections.getResources()) .isNotNull() @@ -62,8 +61,7 @@ void testVector() { }); final UUID collectionId = collections.getResources().get(0).getId(); - final Documents documents = - api.vectorV1VectorEndpointsGetAllDocuments("reosurceGroup", collectionId); + final Documents documents = api.getAllDocuments("reosurceGroup", collectionId); assertThat(documents).isNotNull(); final DocumentKeyValueListPair documentMeta = DocumentKeyValueListPair.create() @@ -82,7 +80,7 @@ void testVector() { final UUID documentId = documents.getResources().get(0).getId(); final DocumentResponse document = - api.vectorV1VectorEndpointsGetDocumentById("reosurceGroup", collectionId, documentId); + api.getDocumentById("reosurceGroup", collectionId, documentId); assertThat(document).isNotNull(); assertThat(document.getId()).isEqualTo(documentId); assertThat(document.getMetadata()).isNotNull().containsExactly(documentMeta); @@ -111,8 +109,7 @@ void testVector() { void testRetrieval() { final RetrievalApi api = new GroundingClient(SERVICE).retrieval(); - DataRepositories repositories = - api.retrievalV1RetrievalEndpointsGetDataRepositories("reosurceGroup"); + DataRepositories repositories = api.getDataRepositories("reosurceGroup"); assertThat(repositories).isNotNull(); assertThat(repositories.getResources()) .isNotEmpty() diff --git a/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/GroundingController.java b/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/GroundingController.java index 34a29255d..120606fd9 100644 --- a/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/GroundingController.java +++ b/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/GroundingController.java @@ -62,8 +62,7 @@ class GroundingController { @GetMapping("/pipelines/list") Object getAllPipelines( @Nullable @RequestParam(value = "format", required = false) final String format) { - final var pipelines = - CLIENT_PIPELINES.pipelineV1PipelineEndpointsGetAllPipeline(RESOURCE_GROUP, 10, 0, true); + final var pipelines = CLIENT_PIPELINES.getAllPipeline(RESOURCE_GROUP, 10, 0, true); log.info("Found {} pipelines", pipelines.getResources().size()); if ("json".equals(format)) { @@ -88,8 +87,7 @@ Object getAllPipelines( @GetMapping("/retrieval/repositories") Object getAllRepositories( @Nullable @RequestParam(value = "format", required = false) final String format) { - final var repositories = - CLIENT_RETRIEVAL.retrievalV1RetrievalEndpointsGetDataRepositories(RESOURCE_GROUP); + final var repositories = CLIENT_RETRIEVAL.getDataRepositories(RESOURCE_GROUP); log.info("Found {} data repositories", repositories.getResources().size()); if ("json".equals(format)) { @@ -130,7 +128,7 @@ Object searchInDocuments( @GetMapping("/vector/collections") Object getAllCollections( @Nullable @RequestParam(value = "format", required = false) final String format) { - final var collections = CLIENT_VECTOR.vectorV1VectorEndpointsGetAllCollections(RESOURCE_GROUP); + final var collections = CLIENT_VECTOR.getAllCollections(RESOURCE_GROUP); if ("json".equals(format)) { return collections; } @@ -144,8 +142,7 @@ Object getAllCollections( Object getDocumentsByCollectionId( @Nonnull @PathVariable("id") final UUID collectionId, @Nullable @RequestParam(value = "format", required = false) final String format) { - final var documents = - CLIENT_VECTOR.vectorV1VectorEndpointsGetAllDocuments(RESOURCE_GROUP, collectionId); + final var documents = CLIENT_VECTOR.getAllDocuments(RESOURCE_GROUP, collectionId); if ("json".equals(format)) { return documents; } @@ -160,8 +157,7 @@ String createCollection( final var embeddingConfig = EmbeddingConfig.create().modelName(TEXT_EMBEDDING_3_SMALL.name()); final var request = CollectionRequest.create().embeddingConfig(embeddingConfig).title(COLLECTION_TITLE); - final var documents = - CLIENT_VECTOR.vectorV1VectorEndpointsCreateCollection(RESOURCE_GROUP, request); + final var documents = CLIENT_VECTOR.createCollection(RESOURCE_GROUP, request); final Map> headers = documents.getHeaders(); final var locationHeader = headers.get("Location").get(0); @@ -181,8 +177,7 @@ Object createDocument( final var docMeta = DocumentKeyValueListPair.create().key("purpose").value("testing"); final var doc = BaseDocument.create().chunks(chunk).metadata(docMeta); final var request = DocumentCreateRequest.create().documents(doc); - final var response = - CLIENT_VECTOR.vectorV1VectorEndpointsCreateDocuments(RESOURCE_GROUP, collectionId, request); + final var response = CLIENT_VECTOR.createDocuments(RESOURCE_GROUP, collectionId, request); if ("json".equals(format)) { return response; @@ -204,22 +199,18 @@ Object deleteCollection( final var doc = BaseDocument.create().chunks(chunk).metadata(docMeta); final var request = DocumentCreateRequest.create().documents(doc); - final var documents = - CLIENT_VECTOR.vectorV1VectorEndpointsGetAllDocuments(RESOURCE_GROUP, collectionId); + final var documents = CLIENT_VECTOR.getAllDocuments(RESOURCE_GROUP, collectionId); final var ids = documents.getResources().stream().map(DocumentWithoutChunks::getId).toList(); log.info("Deleting collection {} with {} documents: {}", collectionId, ids.size(), ids); for (final var documentId : ids) { - final var del = - CLIENT_VECTOR.vectorV1VectorEndpointsDeleteDocument( - RESOURCE_GROUP, collectionId, documentId); + final var del = CLIENT_VECTOR.deleteDocument(RESOURCE_GROUP, collectionId, documentId); if (del.getStatusCode() >= 400) { final var msg = "Document {} could not be deleted, status code [{}], headers: {}"; log.error(msg, documentId, del.getStatusCode(), del.getHeaders()); } } - final var response = - CLIENT_VECTOR.vectorV1VectorEndpointsDeleteCollection(RESOURCE_GROUP, collectionId + ""); + final var response = CLIENT_VECTOR.deleteCollection(RESOURCE_GROUP, collectionId + ""); if ("json".equals(format)) { return response; @@ -233,9 +224,7 @@ Object getDocumentChunksById( @Nonnull @PathVariable("collectionId") final UUID collectionId, @Nonnull @PathVariable("documentId") final UUID documentId, @Nullable @RequestParam(value = "format", required = false) final String format) { - final var document = - CLIENT_VECTOR.vectorV1VectorEndpointsGetDocumentById( - RESOURCE_GROUP, collectionId, documentId); + final var document = CLIENT_VECTOR.getDocumentById(RESOURCE_GROUP, collectionId, documentId); if ("json".equals(format)) { return document; }