@@ -14,6 +14,13 @@ import type {
1414 AiExecutionModificationRequest ,
1515 AiExecutionModificationResponse ,
1616 AiExecutionDeletionResponse ,
17+ AiExecutionScheduleList ,
18+ AiExecutionScheduleCreationData ,
19+ AiExecutionScheduleCreationResponse ,
20+ AiExecutionSchedule ,
21+ AiExecutionScheduleModificationRequest ,
22+ AiExecutionScheduleModificationResponse ,
23+ AiExecutionScheduleDeletionResponse ,
1724 RTALogCommonResponse
1825} from './schema/index.js' ;
1926/**
@@ -162,6 +169,112 @@ export const ExecutionApi = {
162169 } ,
163170 ExecutionApi . _defaultBasePath
164171 ) ,
172+ /**
173+ * Retrieve a list of execution schedules that match the specified filter criteria.
174+ * Filter criteria include executionScheduleStatus or a configurationId.
175+ * With top/skip parameters it is possible to paginate the result list.
176+ *
177+ * @param queryParameters - Object containing the following keys: configurationId, status, $top, $skip.
178+ * @param headerParameters - Object containing the following keys: AI-Resource-Group.
179+ * @returns The request builder, use the `execute()` method to trigger the request.
180+ */
181+ executionScheduleQuery : (
182+ queryParameters : {
183+ configurationId ?: string ;
184+ status ?: 'ACTIVE' | 'INACTIVE' ;
185+ $top ?: number ;
186+ $skip ?: number ;
187+ } ,
188+ headerParameters : { 'AI-Resource-Group' : string }
189+ ) =>
190+ new OpenApiRequestBuilder < AiExecutionScheduleList > (
191+ 'get' ,
192+ '/lm/executionSchedules' ,
193+ {
194+ queryParameters,
195+ headerParameters
196+ } ,
197+ ExecutionApi . _defaultBasePath
198+ ) ,
199+ /**
200+ * Create an execution schedule using the configuration specified by configurationId, and schedule.
201+ * @param body - Request body.
202+ * @param headerParameters - Object containing the following keys: AI-Resource-Group.
203+ * @returns The request builder, use the `execute()` method to trigger the request.
204+ */
205+ executionScheduleCreate : (
206+ body : AiExecutionScheduleCreationData ,
207+ headerParameters : { 'AI-Resource-Group' : string }
208+ ) =>
209+ new OpenApiRequestBuilder < AiExecutionScheduleCreationResponse > (
210+ 'post' ,
211+ '/lm/executionSchedules' ,
212+ {
213+ body,
214+ headerParameters
215+ } ,
216+ ExecutionApi . _defaultBasePath
217+ ) ,
218+ /**
219+ * Retrieve details for execution schedule with executionScheduleId.
220+ * @param executionScheduleId - Execution Schedule identifier
221+ * @param headerParameters - Object containing the following keys: AI-Resource-Group.
222+ * @returns The request builder, use the `execute()` method to trigger the request.
223+ */
224+ executionScheduleGet : (
225+ executionScheduleId : string ,
226+ headerParameters : { 'AI-Resource-Group' : string }
227+ ) =>
228+ new OpenApiRequestBuilder < AiExecutionSchedule > (
229+ 'get' ,
230+ '/lm/executionSchedules/{executionScheduleId}' ,
231+ {
232+ pathParameters : { executionScheduleId } ,
233+ headerParameters
234+ } ,
235+ ExecutionApi . _defaultBasePath
236+ ) ,
237+ /**
238+ * Update details of an execution schedule
239+ * @param executionScheduleId - Execution Schedule identifier
240+ * @param body - Request body.
241+ * @param headerParameters - Object containing the following keys: AI-Resource-Group.
242+ * @returns The request builder, use the `execute()` method to trigger the request.
243+ */
244+ executionScheduleModify : (
245+ executionScheduleId : string ,
246+ body : AiExecutionScheduleModificationRequest ,
247+ headerParameters : { 'AI-Resource-Group' : string }
248+ ) =>
249+ new OpenApiRequestBuilder < AiExecutionScheduleModificationResponse > (
250+ 'patch' ,
251+ '/lm/executionSchedules/{executionScheduleId}' ,
252+ {
253+ pathParameters : { executionScheduleId } ,
254+ body,
255+ headerParameters
256+ } ,
257+ ExecutionApi . _defaultBasePath
258+ ) ,
259+ /**
260+ * Delete the execution schedule with executionScheduleId.
261+ * @param executionScheduleId - Execution Schedule identifier
262+ * @param headerParameters - Object containing the following keys: AI-Resource-Group.
263+ * @returns The request builder, use the `execute()` method to trigger the request.
264+ */
265+ executionScheduleDelete : (
266+ executionScheduleId : string ,
267+ headerParameters : { 'AI-Resource-Group' : string }
268+ ) =>
269+ new OpenApiRequestBuilder < AiExecutionScheduleDeletionResponse > (
270+ 'delete' ,
271+ '/lm/executionSchedules/{executionScheduleId}' ,
272+ {
273+ pathParameters : { executionScheduleId } ,
274+ headerParameters
275+ } ,
276+ ExecutionApi . _defaultBasePath
277+ ) ,
165278 /**
166279 * Retrieve the number of available executions. The number can be filtered by
167280 * scenarioId, configurationId, executableIdsList or by execution status.
@@ -196,6 +309,30 @@ export const ExecutionApi = {
196309 } ,
197310 ExecutionApi . _defaultBasePath
198311 ) ,
312+ /**
313+ * Retrieve the number of scheduled executions. The number can be filtered by
314+ * configurationId or executionScheduleStatus.
315+ *
316+ * @param queryParameters - Object containing the following keys: configurationId, status.
317+ * @param headerParameters - Object containing the following keys: AI-Resource-Group.
318+ * @returns The request builder, use the `execute()` method to trigger the request.
319+ */
320+ executionScheduleCount : (
321+ queryParameters : {
322+ configurationId ?: string ;
323+ status ?: 'ACTIVE' | 'INACTIVE' ;
324+ } ,
325+ headerParameters : { 'AI-Resource-Group' : string }
326+ ) =>
327+ new OpenApiRequestBuilder < number > (
328+ 'get' ,
329+ '/lm/executionSchedules/$count' ,
330+ {
331+ queryParameters,
332+ headerParameters
333+ } ,
334+ ExecutionApi . _defaultBasePath
335+ ) ,
199336 /**
200337 * Retrieve logs of an execution for getting insight into the execution results or failures.
201338 * @param executionId - Execution identifier
0 commit comments