Class MetadataConfigurationsApi
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.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi
apiClient, defaultHeaders -
Constructor Summary
ConstructorsConstructorDescriptionMetadataConfigurationsApi(com.sap.cloud.sdk.cloudplatform.connectivity.Destination httpDestination) Instantiates this API class to invoke operations on the Grounding.MetadataConfigurationsApi(com.sap.cloud.sdk.services.openapi.apache.apiclient.ApiClient apiClient) Instantiates this API class to invoke operations on the Grounding based on a givenApiClient. -
Method Summary
Modifier and TypeMethodDescriptionbatchUpdateDocumentsMetadata(String metadataConfigId, DocumentMetadataBatchRequest documentMetadataBatchRequest) Batch update metadata for multiple documentscom.sap.cloud.sdk.services.openapi.apache.core.OpenApiResponsecreateMetadataConfiguration(MetadataConfigurationRequest metadataConfigurationRequest) Create a metadata configurationcom.sap.cloud.sdk.services.openapi.apache.core.OpenApiResponsedeleteMetadataConfigurationById(String metadataConfigId) Delete a configuration by IDgetMetadataConfigurationById(String metadataConfigId) Get a configuration by IDgetMetadataDocumentDetails(String metadataConfigId, String documentId) Get document detailslistMetadataConfigurationDocuments(String metadataConfigId) List documents of a configurationlistMetadataConfigurationDocuments(String metadataConfigId, String absolutePath, Integer $top, Integer $skip, Boolean $count) List documents of a configurationList metadata configurationslistMetadataConfigurations(Integer $top, Integer $skip, Boolean $count) List metadata configurationswithDefaultHeaders(Map<String, String> defaultHeaders) Creates a new API instance with additional default headers.
-
Constructor Details
-
MetadataConfigurationsApi
public MetadataConfigurationsApi(@Nonnull com.sap.cloud.sdk.cloudplatform.connectivity.Destination httpDestination) Instantiates this API class to invoke operations on the Grounding.- Parameters:
httpDestination- The destination that API should be used with
-
MetadataConfigurationsApi
public MetadataConfigurationsApi(@Nonnull com.sap.cloud.sdk.services.openapi.apache.apiclient.ApiClient apiClient) Instantiates this API class to invoke operations on the Grounding based on a givenApiClient.- Parameters:
apiClient- ApiClient to invoke the API on
-
-
Method Details
-
withDefaultHeaders
Creates a new API instance with additional default headers.- Parameters:
defaultHeaders- Additional headers to include in all requests- Returns:
- A new API instance with the combined headers
-
batchUpdateDocumentsMetadata
@Nonnull public List<BatchUpdateDocumentsResponseInner> batchUpdateDocumentsMetadata(@Nonnull String metadataConfigId, @Nonnull DocumentMetadataBatchRequest documentMetadataBatchRequest) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Batch update metadata for multiple documentsPatch the documents of a configuration in batch
200 - Batch patch applied successfully
400 - The specification of the resource was incorrect
- Parameters:
metadataConfigId- Metadata Configuration IDdocumentMetadataBatchRequest- The value for the parameter documentMetadataBatchRequest- Returns:
- List<BatchUpdateDocumentsResponseInner>
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
createMetadataConfiguration
@Nonnull public com.sap.cloud.sdk.services.openapi.apache.core.OpenApiResponse createMetadataConfiguration(@Nonnull MetadataConfigurationRequest metadataConfigurationRequest) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Create a metadata configurationCreates a new metadata configuration.
202 - Accepted - Document enumeration in progress
400 - The specification of the resource was incorrect
- Parameters:
metadataConfigurationRequest- The value for the parameter metadataConfigurationRequest- Returns:
- An OpenApiResponse containing the status code of the HttpResponse.
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
deleteMetadataConfigurationById
@Nonnull public com.sap.cloud.sdk.services.openapi.apache.core.OpenApiResponse deleteMetadataConfigurationById(@Nonnull String metadataConfigId) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Delete a configuration by IDDelete a metadata configuration by ID
202 - Configuration deletion initiated
404 - Configuration not found
500 - Internal server error during deletion of configuration
409 - Pipelines exists for this configuration. Delete the pipelines before deleting the configuration.
- Parameters:
metadataConfigId- Metadata Configuration ID- Returns:
- An OpenApiResponse containing the status code of the HttpResponse.
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getMetadataDocumentDetails
@Nonnull public ConfigurationDocument getMetadataDocumentDetails(@Nonnull String metadataConfigId, @Nonnull String documentId) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get document detailsGet the details of a document by document id
200 - Document details
404 - Document or configuration not found
400 - The specification of the resource was incorrect
- Parameters:
metadataConfigId- Metadata Configuration IDdocumentId- Document ID- Returns:
- ConfigurationDocument
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
getMetadataConfigurationById
@Nonnull public MetadataConfigurationResponse getMetadataConfigurationById(@Nonnull String metadataConfigId) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException Get a configuration by IDGet the details of a configuration by ID
200 - Configuration found
404 - Configuration not found
400 - The specification of the resource was incorrect
- Parameters:
metadataConfigId- Metadata Configuration ID- Returns:
- MetadataConfigurationResponse
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
listMetadataConfigurationDocuments
@Nonnull public ListConfigurationDocuments listMetadataConfigurationDocuments(@Nonnull String metadataConfigId, @Nullable String absolutePath, @Nullable Integer $top, @Nullable Integer $skip, @Nullable Boolean $count) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException List documents of a configurationList the documents for a configuration
200 - List of documents
- Parameters:
metadataConfigId- (required) Metadata Configuration IDabsolutePath- (optional) Absolute path of the resource. Supports wildcard values (e.g., `/folder/_*`).$top- (optional) Number of results to display$skip- (optional) Number of results to be skipped from the ordered list of results$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.- Returns:
- ListConfigurationDocuments
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
listMetadataConfigurationDocuments
@Nonnull public ListConfigurationDocuments listMetadataConfigurationDocuments(@Nonnull String metadataConfigId) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException List documents of a configurationList the documents for a configuration
200 - List of documents
- Parameters:
metadataConfigId- Metadata Configuration ID- Returns:
- ListConfigurationDocuments
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
listMetadataConfigurations
@Nonnull public ListMetadataConfigurations listMetadataConfigurations(@Nullable Integer $top, @Nullable Integer $skip, @Nullable Boolean $count) throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException List metadata configurationsList all metadata configurations
200 - Paginated list of configurations
400 - The specification of the resource was incorrect
- Parameters:
$top- (optional) Number of results to display$skip- (optional) Number of results to be skipped from the ordered list of results$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.- Returns:
- ListMetadataConfigurations
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-
listMetadataConfigurations
@Nonnull public ListMetadataConfigurations listMetadataConfigurations() throws com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestExceptionList metadata configurationsList all metadata configurations
200 - Paginated list of configurations
400 - The specification of the resource was incorrect
- Returns:
- ListMetadataConfigurations
- Throws:
com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException- if an error occurs while attempting to invoke the API
-