@sap-ai-sdk/ai-api
Version:
SAP Cloud SDK for AI is the official Software Development Kit (SDK) for **SAP AI Core**, **SAP Generative AI Hub**, and **Orchestration Service**.
62 lines • 3.22 kB
JavaScript
/*
* Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
*
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
*/
import { OpenApiRequestBuilder } from '@sap-ai-sdk/core';
/**
* Representation of the 'ConfigurationApi'.
* This API is part of the 'AI_CORE_API' service.
*/
export const ConfigurationApi = {
_defaultBasePath: undefined,
/**
* Retrieve a list of configurations. Filter results by scenario ID or a list of executable IDs.
* Search for configurations containing the search string as substring in the configuration name.
*
* @param queryParameters - Object containing the following keys: scenarioId, $top, $skip, executableIds, $search, searchCaseInsensitive, $expand.
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
configurationQuery: (queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/lm/configurations', {
queryParameters,
headerParameters
}, ConfigurationApi._defaultBasePath),
/**
* Create a new configuration linked to a specific scenario and executable for use in an execution
* or deployment.
*
* @param body - Request body.
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
configurationCreate: (body, headerParameters) => new OpenApiRequestBuilder('post', '/lm/configurations', {
body,
headerParameters
}, ConfigurationApi._defaultBasePath),
/**
* Retrieve details for configuration with configurationId.
* @param configurationId - Configuration identifier
* @param queryParameters - Object containing the following keys: $expand.
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
configurationGet: (configurationId, queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/lm/configurations/{configurationId}', {
pathParameters: { configurationId },
queryParameters,
headerParameters
}, ConfigurationApi._defaultBasePath),
/**
* Retrieve the number of available configurations that match the specified filter criteria.
* Filter criteria include a scenarioId or executableIdsList. Search by substring of configuration name is also possible.
*
* @param queryParameters - Object containing the following keys: scenarioId, $search, searchCaseInsensitive, executableIds.
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
* @returns The request builder, use the `execute()` method to trigger the request.
*/
configurationCount: (queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/lm/configurations/$count', {
queryParameters,
headerParameters
}, ConfigurationApi._defaultBasePath)
};
//# sourceMappingURL=configuration-api.js.map