UNPKG

@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**.

81 lines 4.27 kB
/* * 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 'ExecutionScheduleApi'. * This API is part of the 'AI_CORE_API' service. */ export const ExecutionScheduleApi = { _defaultBasePath: undefined, /** * Retrieve a list of execution schedules that match the specified filter criteria. * Filter criteria include executionScheduleStatus or a configurationId. * With top/skip parameters it is possible to paginate the result list. * * @param queryParameters - Object containing the following keys: configurationId, status, $top, $skip. * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ executionScheduleQuery: (queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/lm/executionSchedules', { queryParameters, headerParameters }, ExecutionScheduleApi._defaultBasePath), /** * Create an execution schedule using the configuration specified by configurationId, and schedule. * @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. */ executionScheduleCreate: (body, headerParameters) => new OpenApiRequestBuilder('post', '/lm/executionSchedules', { body, headerParameters }, ExecutionScheduleApi._defaultBasePath), /** * Retrieve details for execution schedule with executionScheduleId. * @param executionScheduleId - Execution Schedule identifier * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ executionScheduleGet: (executionScheduleId, headerParameters) => new OpenApiRequestBuilder('get', '/lm/executionSchedules/{executionScheduleId}', { pathParameters: { executionScheduleId }, headerParameters }, ExecutionScheduleApi._defaultBasePath), /** * Update details of an execution schedule * @param executionScheduleId - Execution Schedule identifier * @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. */ executionScheduleModify: (executionScheduleId, body, headerParameters) => new OpenApiRequestBuilder('patch', '/lm/executionSchedules/{executionScheduleId}', { pathParameters: { executionScheduleId }, body, headerParameters }, ExecutionScheduleApi._defaultBasePath), /** * Delete the execution schedule with executionScheduleId. * @param executionScheduleId - Execution Schedule identifier * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ executionScheduleDelete: (executionScheduleId, headerParameters) => new OpenApiRequestBuilder('delete', '/lm/executionSchedules/{executionScheduleId}', { pathParameters: { executionScheduleId }, headerParameters }, ExecutionScheduleApi._defaultBasePath), /** * Retrieve the number of scheduled executions. The number can be filtered by * configurationId or executionScheduleStatus. * * @param queryParameters - Object containing the following keys: configurationId, status. * @param headerParameters - Object containing the following keys: AI-Resource-Group. * @returns The request builder, use the `execute()` method to trigger the request. */ executionScheduleCount: (queryParameters, headerParameters) => new OpenApiRequestBuilder('get', '/lm/executionSchedules/$count', { queryParameters, headerParameters }, ExecutionScheduleApi._defaultBasePath) }; //# sourceMappingURL=execution-schedule-api.js.map