kb-cloud-client-typescript 2.4.0-alpha.134 → 2.4.0-alpha.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/adminapi/apis/task-api.d.ts +137 -0
  2. package/dist/adminapi/apis/task-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/task-api.js +153 -0
  4. package/dist/adminapi/apis/task-api.js.map +1 -1
  5. package/dist/adminapi/models/index.d.ts +7 -0
  6. package/dist/adminapi/models/index.d.ts.map +1 -1
  7. package/dist/adminapi/models/index.js +7 -0
  8. package/dist/adminapi/models/index.js.map +1 -1
  9. package/dist/adminapi/models/scheduled-task-detail.d.ts +18 -0
  10. package/dist/adminapi/models/scheduled-task-detail.d.ts.map +1 -0
  11. package/dist/adminapi/models/scheduled-task-detail.js +16 -0
  12. package/dist/adminapi/models/scheduled-task-detail.js.map +1 -0
  13. package/dist/adminapi/models/scheduled-task-enable-status.d.ts +23 -0
  14. package/dist/adminapi/models/scheduled-task-enable-status.d.ts.map +1 -0
  15. package/dist/adminapi/models/scheduled-task-enable-status.js +27 -0
  16. package/dist/adminapi/models/scheduled-task-enable-status.js.map +1 -0
  17. package/dist/adminapi/models/scheduled-task-last-execution-status.d.ts +26 -0
  18. package/dist/adminapi/models/scheduled-task-last-execution-status.d.ts.map +1 -0
  19. package/dist/adminapi/models/scheduled-task-last-execution-status.js +30 -0
  20. package/dist/adminapi/models/scheduled-task-last-execution-status.js.map +1 -0
  21. package/dist/adminapi/models/scheduled-task-list.d.ts +33 -0
  22. package/dist/adminapi/models/scheduled-task-list.d.ts.map +1 -0
  23. package/dist/adminapi/models/scheduled-task-list.js +16 -0
  24. package/dist/adminapi/models/scheduled-task-list.js.map +1 -0
  25. package/dist/adminapi/models/scheduled-task-provider.d.ts +21 -0
  26. package/dist/adminapi/models/scheduled-task-provider.d.ts.map +1 -0
  27. package/dist/adminapi/models/scheduled-task-provider.js +25 -0
  28. package/dist/adminapi/models/scheduled-task-provider.js.map +1 -0
  29. package/dist/adminapi/models/scheduled-task-status.d.ts +24 -0
  30. package/dist/adminapi/models/scheduled-task-status.d.ts.map +1 -0
  31. package/dist/adminapi/models/scheduled-task-status.js +28 -0
  32. package/dist/adminapi/models/scheduled-task-status.js.map +1 -0
  33. package/dist/adminapi/models/scheduled-task-summary.d.ts +89 -0
  34. package/dist/adminapi/models/scheduled-task-summary.d.ts.map +1 -0
  35. package/dist/adminapi/models/scheduled-task-summary.js +16 -0
  36. package/dist/adminapi/models/scheduled-task-summary.js.map +1 -0
  37. package/package.json +1 -1
  38. package/src/adminapi/.openapi-generator/FILES +7 -0
  39. package/src/adminapi/apis/task-api.ts +246 -0
  40. package/src/adminapi/models/index.ts +7 -0
  41. package/src/adminapi/models/scheduled-task-detail.ts +38 -0
  42. package/src/adminapi/models/scheduled-task-enable-status.ts +32 -0
  43. package/src/adminapi/models/scheduled-task-last-execution-status.ts +35 -0
  44. package/src/adminapi/models/scheduled-task-list.ts +42 -0
  45. package/src/adminapi/models/scheduled-task-provider.ts +30 -0
  46. package/src/adminapi/models/scheduled-task-status.ts +33 -0
  47. package/src/adminapi/models/scheduled-task-summary.ts +104 -0
  48. package/src/adminapi.yaml +189 -0
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Admin API
3
+ * The Admin API is used to manage the ApeCloud platform.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@apecloud.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ScheduledTaskEnableStatus } from './scheduled-task-enable-status';
13
+ import type { ScheduledTaskLastExecutionStatus } from './scheduled-task-last-execution-status';
14
+ import type { ScheduledTaskProvider } from './scheduled-task-provider';
15
+ import type { ScheduledTaskStatus } from './scheduled-task-status';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ScheduledTaskSummary
20
+ */
21
+ export interface ScheduledTaskSummary {
22
+ /**
23
+ * ID of the scheduled task
24
+ * @type {string}
25
+ * @memberof ScheduledTaskSummary
26
+ */
27
+ 'scheduledTaskId': string;
28
+ /**
29
+ * Stable name of the scheduled task
30
+ * @type {string}
31
+ * @memberof ScheduledTaskSummary
32
+ */
33
+ 'name': string;
34
+ /**
35
+ *
36
+ * @type {ScheduledTaskProvider}
37
+ * @memberof ScheduledTaskSummary
38
+ */
39
+ 'provider'?: ScheduledTaskProvider;
40
+ /**
41
+ * Cron expression used to schedule the task
42
+ * @type {string}
43
+ * @memberof ScheduledTaskSummary
44
+ */
45
+ 'cronExpression'?: string | null;
46
+ /**
47
+ *
48
+ * @type {ScheduledTaskLastExecutionStatus}
49
+ * @memberof ScheduledTaskSummary
50
+ */
51
+ 'lastExecutionStatus'?: ScheduledTaskLastExecutionStatus;
52
+ /**
53
+ *
54
+ * @type {ScheduledTaskEnableStatus}
55
+ * @memberof ScheduledTaskSummary
56
+ */
57
+ 'enabled'?: ScheduledTaskEnableStatus;
58
+ /**
59
+ * Scope affected by the task, such as platform, organization, environment, or cluster
60
+ * @type {string}
61
+ * @memberof ScheduledTaskSummary
62
+ */
63
+ 'scope'?: string;
64
+ /**
65
+ *
66
+ * @type {ScheduledTaskStatus}
67
+ * @memberof ScheduledTaskSummary
68
+ */
69
+ 'status': ScheduledTaskStatus;
70
+ /**
71
+ * Most recent execution start time as a Unix timestamp in seconds
72
+ * @type {string}
73
+ * @memberof ScheduledTaskSummary
74
+ */
75
+ 'lastRunAt'?: string | null;
76
+ /**
77
+ * Next scheduled execution time as a Unix timestamp in seconds
78
+ * @type {string}
79
+ * @memberof ScheduledTaskSummary
80
+ */
81
+ 'nextRunAt'?: string | null;
82
+ /**
83
+ * Creation time of the scheduled task record
84
+ * @type {string}
85
+ * @memberof ScheduledTaskSummary
86
+ */
87
+ 'createdAt': string;
88
+ }
89
+ //# sourceMappingURL=scheduled-task-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-task-summary.d.ts","sourceRoot":"","sources":["../../../src/adminapi/models/scheduled-task-summary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAGhF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;AAG/F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,gCAAgC,CAAC;IACzD;;;;OAIG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Admin API
6
+ * The Admin API is used to manage the ApeCloud platform.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@apecloud.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=scheduled-task-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-task-summary.js","sourceRoot":"","sources":["../../../src/adminapi/models/scheduled-task-summary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kb-cloud-client-typescript",
3
- "version": "2.4.0-alpha.134",
3
+ "version": "2.4.0-alpha.135",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -1192,6 +1192,13 @@ models/role-create.ts
1192
1192
  models/role-list.ts
1193
1193
  models/role-update.ts
1194
1194
  models/role.ts
1195
+ models/scheduled-task-detail.ts
1196
+ models/scheduled-task-enable-status.ts
1197
+ models/scheduled-task-last-execution-status.ts
1198
+ models/scheduled-task-list.ts
1199
+ models/scheduled-task-provider.ts
1200
+ models/scheduled-task-status.ts
1201
+ models/scheduled-task-summary.ts
1195
1202
  models/scheduler-option.ts
1196
1203
  models/scheduling-config.ts
1197
1204
  models/scheduling-policy-type.ts
@@ -26,6 +26,12 @@ import type { APIErrorResponse } from '../models';
26
26
  // @ts-ignore
27
27
  import type { EventList } from '../models';
28
28
  // @ts-ignore
29
+ import type { ScheduledTaskDetail } from '../models';
30
+ // @ts-ignore
31
+ import type { ScheduledTaskList } from '../models';
32
+ // @ts-ignore
33
+ import type { ScheduledTaskStatus } from '../models';
34
+ // @ts-ignore
29
35
  import type { Task } from '../models';
30
36
  // @ts-ignore
31
37
  import type { TaskList } from '../models';
@@ -112,6 +118,47 @@ export const TaskApiAxiosParamCreator = function (configuration?: Configuration)
112
118
 
113
119
 
114
120
 
121
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
122
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
123
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
124
+
125
+ return {
126
+ url: toPathString(localVarUrlObj),
127
+ options: localVarRequestOptions,
128
+ };
129
+ },
130
+ /**
131
+ * Get scheduled task details
132
+ * @summary Get scheduled task
133
+ * @param {string} scheduledTaskId ID of the scheduled task
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ getScheduledTask: async (scheduledTaskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
138
+ // verify required parameter 'scheduledTaskId' is not null or undefined
139
+ assertParamExists('getScheduledTask', 'scheduledTaskId', scheduledTaskId)
140
+ const localVarPath = `/admin/v1/scheduled-tasks/{scheduledTaskId}`
141
+ .replace(`{${"scheduledTaskId"}}`, encodeURIComponent(String(scheduledTaskId)));
142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
144
+ let baseOptions;
145
+ if (configuration) {
146
+ baseOptions = configuration.baseOptions;
147
+ }
148
+
149
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
150
+ const localVarHeaderParameter = {} as any;
151
+ const localVarQueryParameter = {} as any;
152
+
153
+ // authentication BearerToken required
154
+ // http bearer authentication required
155
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
156
+
157
+ // authentication DigestAuth required
158
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
159
+
160
+
161
+
115
162
  setSearchParams(localVarUrlObj, localVarQueryParameter);
116
163
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
117
164
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -244,6 +291,63 @@ export const TaskApiAxiosParamCreator = function (configuration?: Configuration)
244
291
 
245
292
 
246
293
 
294
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
297
+
298
+ return {
299
+ url: toPathString(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ };
302
+ },
303
+ /**
304
+ * List scheduled tasks
305
+ * @summary List scheduled tasks
306
+ * @param {string} [provider] Filter by scheduler provider
307
+ * @param {ScheduledTaskStatus} [status] Filter by scheduled task status
308
+ * @param {number} [pageNumber] Page number, starting from 1
309
+ * @param {number} [pageSize] Number of items per page
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ listScheduledTasks: async (provider?: string, status?: ScheduledTaskStatus, pageNumber?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
314
+ const localVarPath = `/admin/v1/scheduled-tasks`;
315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
316
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
317
+ let baseOptions;
318
+ if (configuration) {
319
+ baseOptions = configuration.baseOptions;
320
+ }
321
+
322
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
323
+ const localVarHeaderParameter = {} as any;
324
+ const localVarQueryParameter = {} as any;
325
+
326
+ // authentication BearerToken required
327
+ // http bearer authentication required
328
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
329
+
330
+ // authentication DigestAuth required
331
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
332
+
333
+ if (provider !== undefined) {
334
+ localVarQueryParameter['provider'] = provider;
335
+ }
336
+
337
+ if (status !== undefined) {
338
+ localVarQueryParameter['status'] = status;
339
+ }
340
+
341
+ if (pageNumber !== undefined) {
342
+ localVarQueryParameter['pageNumber'] = pageNumber;
343
+ }
344
+
345
+ if (pageSize !== undefined) {
346
+ localVarQueryParameter['pageSize'] = pageSize;
347
+ }
348
+
349
+
350
+
247
351
  setSearchParams(localVarUrlObj, localVarQueryParameter);
248
352
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
353
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -540,6 +644,19 @@ export const TaskApiFp = function(configuration?: Configuration) {
540
644
  const localVarOperationServerBasePath = operationServerMap['TaskApi.cancelTask']?.[localVarOperationServerIndex]?.url;
541
645
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
542
646
  },
647
+ /**
648
+ * Get scheduled task details
649
+ * @summary Get scheduled task
650
+ * @param {string} scheduledTaskId ID of the scheduled task
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ async getScheduledTask(scheduledTaskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScheduledTaskDetail>> {
655
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getScheduledTask(scheduledTaskId, options);
656
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
657
+ const localVarOperationServerBasePath = operationServerMap['TaskApi.getScheduledTask']?.[localVarOperationServerIndex]?.url;
658
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
659
+ },
543
660
  /**
544
661
  * Get task
545
662
  * @summary Get task detail
@@ -581,6 +698,22 @@ export const TaskApiFp = function(configuration?: Configuration) {
581
698
  const localVarOperationServerBasePath = operationServerMap['TaskApi.getTaskStepLog']?.[localVarOperationServerIndex]?.url;
582
699
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
583
700
  },
701
+ /**
702
+ * List scheduled tasks
703
+ * @summary List scheduled tasks
704
+ * @param {string} [provider] Filter by scheduler provider
705
+ * @param {ScheduledTaskStatus} [status] Filter by scheduled task status
706
+ * @param {number} [pageNumber] Page number, starting from 1
707
+ * @param {number} [pageSize] Number of items per page
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ async listScheduledTasks(provider?: string, status?: ScheduledTaskStatus, pageNumber?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScheduledTaskList>> {
712
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listScheduledTasks(provider, status, pageNumber, pageSize, options);
713
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
714
+ const localVarOperationServerBasePath = operationServerMap['TaskApi.listScheduledTasks']?.[localVarOperationServerIndex]?.url;
715
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
716
+ },
584
717
  /**
585
718
  * List operation events whose recorded response contains the task ID.
586
719
  * @summary List operation events related to a task
@@ -684,6 +817,16 @@ export const TaskApiFactory = function (configuration?: Configuration, basePath?
684
817
  cancelTask(requestParameters: TaskApiCancelTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
685
818
  return localVarFp.cancelTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
686
819
  },
820
+ /**
821
+ * Get scheduled task details
822
+ * @summary Get scheduled task
823
+ * @param {TaskApiGetScheduledTaskRequest} requestParameters Request parameters.
824
+ * @param {*} [options] Override http request option.
825
+ * @throws {RequiredError}
826
+ */
827
+ getScheduledTask(requestParameters: TaskApiGetScheduledTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<ScheduledTaskDetail> {
828
+ return localVarFp.getScheduledTask(requestParameters.scheduledTaskId, options).then((request) => request(axios, basePath));
829
+ },
687
830
  /**
688
831
  * Get task
689
832
  * @summary Get task detail
@@ -714,6 +857,16 @@ export const TaskApiFactory = function (configuration?: Configuration, basePath?
714
857
  getTaskStepLog(requestParameters: TaskApiGetTaskStepLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
715
858
  return localVarFp.getTaskStepLog(requestParameters.taskId, requestParameters.stepId, requestParameters.follow, options).then((request) => request(axios, basePath));
716
859
  },
860
+ /**
861
+ * List scheduled tasks
862
+ * @summary List scheduled tasks
863
+ * @param {TaskApiListScheduledTasksRequest} requestParameters Request parameters.
864
+ * @param {*} [options] Override http request option.
865
+ * @throws {RequiredError}
866
+ */
867
+ listScheduledTasks(requestParameters: TaskApiListScheduledTasksRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ScheduledTaskList> {
868
+ return localVarFp.listScheduledTasks(requestParameters.provider, requestParameters.status, requestParameters.pageNumber, requestParameters.pageSize, options).then((request) => request(axios, basePath));
869
+ },
717
870
  /**
718
871
  * List operation events whose recorded response contains the task ID.
719
872
  * @summary List operation events related to a task
@@ -792,6 +945,16 @@ export interface TaskApiInterface {
792
945
  */
793
946
  cancelTask(requestParameters: TaskApiCancelTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
794
947
 
948
+ /**
949
+ * Get scheduled task details
950
+ * @summary Get scheduled task
951
+ * @param {TaskApiGetScheduledTaskRequest} requestParameters Request parameters.
952
+ * @param {*} [options] Override http request option.
953
+ * @throws {RequiredError}
954
+ * @memberof TaskApiInterface
955
+ */
956
+ getScheduledTask(requestParameters: TaskApiGetScheduledTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<ScheduledTaskDetail>;
957
+
795
958
  /**
796
959
  * Get task
797
960
  * @summary Get task detail
@@ -822,6 +985,16 @@ export interface TaskApiInterface {
822
985
  */
823
986
  getTaskStepLog(requestParameters: TaskApiGetTaskStepLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
824
987
 
988
+ /**
989
+ * List scheduled tasks
990
+ * @summary List scheduled tasks
991
+ * @param {TaskApiListScheduledTasksRequest} requestParameters Request parameters.
992
+ * @param {*} [options] Override http request option.
993
+ * @throws {RequiredError}
994
+ * @memberof TaskApiInterface
995
+ */
996
+ listScheduledTasks(requestParameters?: TaskApiListScheduledTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<ScheduledTaskList>;
997
+
825
998
  /**
826
999
  * List operation events whose recorded response contains the task ID.
827
1000
  * @summary List operation events related to a task
@@ -901,6 +1074,20 @@ export interface TaskApiCancelTaskRequest {
901
1074
  readonly taskId: string
902
1075
  }
903
1076
 
1077
+ /**
1078
+ * Request parameters for getScheduledTask operation in TaskApi.
1079
+ * @export
1080
+ * @interface TaskApiGetScheduledTaskRequest
1081
+ */
1082
+ export interface TaskApiGetScheduledTaskRequest {
1083
+ /**
1084
+ * ID of the scheduled task
1085
+ * @type {string}
1086
+ * @memberof TaskApiGetScheduledTask
1087
+ */
1088
+ readonly scheduledTaskId: string
1089
+ }
1090
+
904
1091
  /**
905
1092
  * Request parameters for getTask operation in TaskApi.
906
1093
  * @export
@@ -957,6 +1144,41 @@ export interface TaskApiGetTaskStepLogRequest {
957
1144
  readonly follow?: boolean
958
1145
  }
959
1146
 
1147
+ /**
1148
+ * Request parameters for listScheduledTasks operation in TaskApi.
1149
+ * @export
1150
+ * @interface TaskApiListScheduledTasksRequest
1151
+ */
1152
+ export interface TaskApiListScheduledTasksRequest {
1153
+ /**
1154
+ * Filter by scheduler provider
1155
+ * @type {string}
1156
+ * @memberof TaskApiListScheduledTasks
1157
+ */
1158
+ readonly provider?: string
1159
+
1160
+ /**
1161
+ * Filter by scheduled task status
1162
+ * @type {ScheduledTaskStatus}
1163
+ * @memberof TaskApiListScheduledTasks
1164
+ */
1165
+ readonly status?: ScheduledTaskStatus
1166
+
1167
+ /**
1168
+ * Page number, starting from 1
1169
+ * @type {number}
1170
+ * @memberof TaskApiListScheduledTasks
1171
+ */
1172
+ readonly pageNumber?: number
1173
+
1174
+ /**
1175
+ * Number of items per page
1176
+ * @type {number}
1177
+ * @memberof TaskApiListScheduledTasks
1178
+ */
1179
+ readonly pageSize?: number
1180
+ }
1181
+
960
1182
  /**
961
1183
  * Request parameters for listTaskEvents operation in TaskApi.
962
1184
  * @export
@@ -1107,6 +1329,18 @@ export class TaskApi extends BaseAPI implements TaskApiInterface {
1107
1329
  return TaskApiFp(this.configuration).cancelTask(requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
1108
1330
  }
1109
1331
 
1332
+ /**
1333
+ * Get scheduled task details
1334
+ * @summary Get scheduled task
1335
+ * @param {TaskApiGetScheduledTaskRequest} requestParameters Request parameters.
1336
+ * @param {*} [options] Override http request option.
1337
+ * @throws {RequiredError}
1338
+ * @memberof TaskApi
1339
+ */
1340
+ public getScheduledTask(requestParameters: TaskApiGetScheduledTaskRequest, options?: RawAxiosRequestConfig) {
1341
+ return TaskApiFp(this.configuration).getScheduledTask(requestParameters.scheduledTaskId, options).then((request) => request(this.axios, this.basePath));
1342
+ }
1343
+
1110
1344
  /**
1111
1345
  * Get task
1112
1346
  * @summary Get task detail
@@ -1143,6 +1377,18 @@ export class TaskApi extends BaseAPI implements TaskApiInterface {
1143
1377
  return TaskApiFp(this.configuration).getTaskStepLog(requestParameters.taskId, requestParameters.stepId, requestParameters.follow, options).then((request) => request(this.axios, this.basePath));
1144
1378
  }
1145
1379
 
1380
+ /**
1381
+ * List scheduled tasks
1382
+ * @summary List scheduled tasks
1383
+ * @param {TaskApiListScheduledTasksRequest} requestParameters Request parameters.
1384
+ * @param {*} [options] Override http request option.
1385
+ * @throws {RequiredError}
1386
+ * @memberof TaskApi
1387
+ */
1388
+ public listScheduledTasks(requestParameters: TaskApiListScheduledTasksRequest = {}, options?: RawAxiosRequestConfig) {
1389
+ return TaskApiFp(this.configuration).listScheduledTasks(requestParameters.provider, requestParameters.status, requestParameters.pageNumber, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1390
+ }
1391
+
1146
1392
  /**
1147
1393
  * List operation events whose recorded response contains the task ID.
1148
1394
  * @summary List operation events related to a task
@@ -1084,6 +1084,13 @@ export * from './role-update';
1084
1084
  export * from './sla';
1085
1085
  export * from './slacluster';
1086
1086
  export * from './slasettings';
1087
+ export * from './scheduled-task-detail';
1088
+ export * from './scheduled-task-enable-status';
1089
+ export * from './scheduled-task-last-execution-status';
1090
+ export * from './scheduled-task-list';
1091
+ export * from './scheduled-task-provider';
1092
+ export * from './scheduled-task-status';
1093
+ export * from './scheduled-task-summary';
1087
1094
  export * from './scheduler-option';
1088
1095
  export * from './scheduling-config';
1089
1096
  export * from './scheduling-policy-type';
@@ -0,0 +1,38 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { ScheduledTaskEnableStatus } from './scheduled-task-enable-status';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { ScheduledTaskLastExecutionStatus } from './scheduled-task-last-execution-status';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { ScheduledTaskProvider } from './scheduled-task-provider';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
27
+ import type { ScheduledTaskStatus } from './scheduled-task-status';
28
+ // May contain unused imports in some cases
29
+ // @ts-ignore
30
+ import type { ScheduledTaskSummary } from './scheduled-task-summary';
31
+
32
+ /**
33
+ * @type ScheduledTaskDetail
34
+ * @export
35
+ */
36
+ export type ScheduledTaskDetail = ScheduledTaskSummary;
37
+
38
+
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Whether the schedule is immutable, disabled, or enabled
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const ScheduledTaskEnableStatus = {
24
+ immutable: 'immutable',
25
+ disabled: 'disabled',
26
+ enabled: 'enabled'
27
+ } as const;
28
+
29
+ export type ScheduledTaskEnableStatus = typeof ScheduledTaskEnableStatus[keyof typeof ScheduledTaskEnableStatus];
30
+
31
+
32
+
@@ -0,0 +1,35 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Most recently observable execution status
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const ScheduledTaskLastExecutionStatus = {
24
+ success: 'success',
25
+ failed: 'failed',
26
+ running: 'running',
27
+ pending: 'pending',
28
+ cancelled: 'cancelled',
29
+ unknown: 'unknown'
30
+ } as const;
31
+
32
+ export type ScheduledTaskLastExecutionStatus = typeof ScheduledTaskLastExecutionStatus[keyof typeof ScheduledTaskLastExecutionStatus];
33
+
34
+
35
+
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { PaginationResult } from './pagination-result';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { ScheduledTaskSummary } from './scheduled-task-summary';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ScheduledTaskList
27
+ */
28
+ export interface ScheduledTaskList {
29
+ /**
30
+ *
31
+ * @type {Array<ScheduledTaskSummary>}
32
+ * @memberof ScheduledTaskList
33
+ */
34
+ 'items': Array<ScheduledTaskSummary>;
35
+ /**
36
+ *
37
+ * @type {PaginationResult}
38
+ * @memberof ScheduledTaskList
39
+ */
40
+ 'pagination': PaginationResult;
41
+ }
42
+
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Scheduler provider
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const ScheduledTaskProvider = {
24
+ taskflow: 'taskflow'
25
+ } as const;
26
+
27
+ export type ScheduledTaskProvider = typeof ScheduledTaskProvider[keyof typeof ScheduledTaskProvider];
28
+
29
+
30
+