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

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 (90) hide show
  1. package/dist/adminapi/apis/backup-api.d.ts +3 -3
  2. package/dist/adminapi/apis/backup-api.js +2 -2
  3. package/dist/adminapi/apis/shared-api.d.ts +3 -3
  4. package/dist/adminapi/apis/shared-api.js +2 -2
  5. package/dist/adminapi/apis/task-api.d.ts +137 -0
  6. package/dist/adminapi/apis/task-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/task-api.js +153 -0
  8. package/dist/adminapi/apis/task-api.js.map +1 -1
  9. package/dist/adminapi/models/environment-delete.d.ts +6 -0
  10. package/dist/adminapi/models/environment-delete.d.ts.map +1 -1
  11. package/dist/adminapi/models/index.d.ts +8 -0
  12. package/dist/adminapi/models/index.d.ts.map +1 -1
  13. package/dist/adminapi/models/index.js +8 -0
  14. package/dist/adminapi/models/index.js.map +1 -1
  15. package/dist/adminapi/models/scheduled-task-detail.d.ts +18 -0
  16. package/dist/adminapi/models/scheduled-task-detail.d.ts.map +1 -0
  17. package/dist/adminapi/models/scheduled-task-detail.js +16 -0
  18. package/dist/adminapi/models/scheduled-task-detail.js.map +1 -0
  19. package/dist/adminapi/models/scheduled-task-enable-status.d.ts +23 -0
  20. package/dist/adminapi/models/scheduled-task-enable-status.d.ts.map +1 -0
  21. package/dist/adminapi/models/scheduled-task-enable-status.js +27 -0
  22. package/dist/adminapi/models/scheduled-task-enable-status.js.map +1 -0
  23. package/dist/adminapi/models/scheduled-task-last-execution-status.d.ts +26 -0
  24. package/dist/adminapi/models/scheduled-task-last-execution-status.d.ts.map +1 -0
  25. package/dist/adminapi/models/scheduled-task-last-execution-status.js +30 -0
  26. package/dist/adminapi/models/scheduled-task-last-execution-status.js.map +1 -0
  27. package/dist/adminapi/models/scheduled-task-list.d.ts +33 -0
  28. package/dist/adminapi/models/scheduled-task-list.d.ts.map +1 -0
  29. package/dist/adminapi/models/scheduled-task-list.js +16 -0
  30. package/dist/adminapi/models/scheduled-task-list.js.map +1 -0
  31. package/dist/adminapi/models/scheduled-task-provider.d.ts +21 -0
  32. package/dist/adminapi/models/scheduled-task-provider.d.ts.map +1 -0
  33. package/dist/adminapi/models/scheduled-task-provider.js +25 -0
  34. package/dist/adminapi/models/scheduled-task-provider.js.map +1 -0
  35. package/dist/adminapi/models/scheduled-task-status.d.ts +24 -0
  36. package/dist/adminapi/models/scheduled-task-status.d.ts.map +1 -0
  37. package/dist/adminapi/models/scheduled-task-status.js +28 -0
  38. package/dist/adminapi/models/scheduled-task-status.js.map +1 -0
  39. package/dist/adminapi/models/scheduled-task-summary.d.ts +89 -0
  40. package/dist/adminapi/models/scheduled-task-summary.d.ts.map +1 -0
  41. package/dist/adminapi/models/scheduled-task-summary.js +16 -0
  42. package/dist/adminapi/models/scheduled-task-summary.js.map +1 -0
  43. package/dist/adminapi/models/selected-object-conversion-strategy.d.ts +22 -0
  44. package/dist/adminapi/models/selected-object-conversion-strategy.d.ts.map +1 -0
  45. package/dist/adminapi/models/selected-object-conversion-strategy.js +26 -0
  46. package/dist/adminapi/models/selected-object-conversion-strategy.js.map +1 -0
  47. package/dist/adminapi/models/selected-object-option-tree.d.ts +1 -1
  48. package/dist/adminapi/models/selected-object-option.d.ts +7 -0
  49. package/dist/adminapi/models/selected-object-option.d.ts.map +1 -1
  50. package/dist/openapi/apis/backup-api.d.ts +3 -3
  51. package/dist/openapi/apis/backup-api.js +2 -2
  52. package/dist/openapi/apis/shared-api.d.ts +3 -3
  53. package/dist/openapi/apis/shared-api.js +2 -2
  54. package/dist/openapi/models/index.d.ts +1 -0
  55. package/dist/openapi/models/index.d.ts.map +1 -1
  56. package/dist/openapi/models/index.js +1 -0
  57. package/dist/openapi/models/index.js.map +1 -1
  58. package/dist/openapi/models/selected-object-conversion-strategy.d.ts +22 -0
  59. package/dist/openapi/models/selected-object-conversion-strategy.d.ts.map +1 -0
  60. package/dist/openapi/models/selected-object-conversion-strategy.js +26 -0
  61. package/dist/openapi/models/selected-object-conversion-strategy.js.map +1 -0
  62. package/dist/openapi/models/selected-object-option-tree.d.ts +1 -1
  63. package/dist/openapi/models/selected-object-option.d.ts +7 -0
  64. package/dist/openapi/models/selected-object-option.d.ts.map +1 -1
  65. package/package.json +1 -1
  66. package/src/adminapi/.openapi-generator/FILES +8 -0
  67. package/src/adminapi/apis/backup-api.ts +3 -3
  68. package/src/adminapi/apis/shared-api.ts +3 -3
  69. package/src/adminapi/apis/task-api.ts +246 -0
  70. package/src/adminapi/models/environment-delete.ts +6 -0
  71. package/src/adminapi/models/index.ts +8 -0
  72. package/src/adminapi/models/scheduled-task-detail.ts +38 -0
  73. package/src/adminapi/models/scheduled-task-enable-status.ts +32 -0
  74. package/src/adminapi/models/scheduled-task-last-execution-status.ts +35 -0
  75. package/src/adminapi/models/scheduled-task-list.ts +42 -0
  76. package/src/adminapi/models/scheduled-task-provider.ts +30 -0
  77. package/src/adminapi/models/scheduled-task-status.ts +33 -0
  78. package/src/adminapi/models/scheduled-task-summary.ts +104 -0
  79. package/src/adminapi/models/selected-object-conversion-strategy.ts +31 -0
  80. package/src/adminapi/models/selected-object-option-tree.ts +1 -1
  81. package/src/adminapi/models/selected-object-option.ts +11 -0
  82. package/src/adminapi.yaml +203 -2
  83. package/src/openapi/.openapi-generator/FILES +1 -0
  84. package/src/openapi/apis/backup-api.ts +3 -3
  85. package/src/openapi/apis/shared-api.ts +3 -3
  86. package/src/openapi/models/index.ts +1 -0
  87. package/src/openapi/models/selected-object-conversion-strategy.ts +31 -0
  88. package/src/openapi/models/selected-object-option-tree.ts +1 -1
  89. package/src/openapi/models/selected-object-option.ts +11 -0
  90. package/src/openapi.yaml +11 -2
@@ -0,0 +1,22 @@
1
+ /**
2
+ * KubeBlocks Cloud API
3
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
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
+ /**
13
+ * Strategy for converting the selected tree to parameters. levelMapping maps every configured level and applies skipWhenParentLevelsSelectedAll. wholeObject merges duplicate branches and maps only whole selected nodes (selectedAll or leaves), omitting covered descendants. Defaults to levelMapping when omitted.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const SelectedObjectConversionStrategy: {
18
+ readonly levelMapping: "levelMapping";
19
+ readonly wholeObject: "wholeObject";
20
+ };
21
+ export type SelectedObjectConversionStrategy = typeof SelectedObjectConversionStrategy[keyof typeof SelectedObjectConversionStrategy];
22
+ //# sourceMappingURL=selected-object-conversion-strategy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selected-object-conversion-strategy.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/selected-object-conversion-strategy.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AAEX,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAC,MAAM,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * KubeBlocks Cloud API
6
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
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
+ exports.SelectedObjectConversionStrategy = void 0;
17
+ /**
18
+ * Strategy for converting the selected tree to parameters. levelMapping maps every configured level and applies skipWhenParentLevelsSelectedAll. wholeObject merges duplicate branches and maps only whole selected nodes (selectedAll or leaves), omitting covered descendants. Defaults to levelMapping when omitted.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.SelectedObjectConversionStrategy = {
23
+ levelMapping: 'levelMapping',
24
+ wholeObject: 'wholeObject'
25
+ };
26
+ //# sourceMappingURL=selected-object-conversion-strategy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selected-object-conversion-strategy.js","sourceRoot":"","sources":["../../../src/openapi/models/selected-object-conversion-strategy.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,gCAAgC,GAAG;IAC5C,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;CACpB,CAAC"}
@@ -23,7 +23,7 @@ export interface SelectedObjectOptionTree {
23
23
  */
24
24
  'switchWithDatabase'?: boolean;
25
25
  /**
26
- * The SQL query to retrieve the object tree
26
+ * The engine-native query returning the columns used to build the object tree.
27
27
  * @type {string}
28
28
  * @memberof SelectedObjectOptionTree
29
29
  */
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SelectedObjectConversionStrategy } from './selected-object-conversion-strategy';
12
13
  import type { SelectedObjectOptionConvertToParametersInner } from './selected-object-option-convert-to-parameters-inner';
13
14
  import type { SelectedObjectOptionTree } from './selected-object-option-tree';
14
15
  /**
@@ -17,6 +18,12 @@ import type { SelectedObjectOptionTree } from './selected-object-option-tree';
17
18
  * @interface SelectedObjectOption
18
19
  */
19
20
  export interface SelectedObjectOption {
21
+ /**
22
+ *
23
+ * @type {SelectedObjectConversionStrategy}
24
+ * @memberof SelectedObjectOption
25
+ */
26
+ 'conversionStrategy'?: SelectedObjectConversionStrategy;
20
27
  /**
21
28
  *
22
29
  * @type {SelectedObjectOptionTree}
@@ -1 +1 @@
1
- {"version":3,"file":"selected-object-option.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/selected-object-option.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,sDAAsD,CAAC;AAGzH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,4CAA4C,CAAC,CAAC;CAC/E"}
1
+ {"version":3,"file":"selected-object-option.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/selected-object-option.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAG9F,OAAO,KAAK,EAAE,4CAA4C,EAAE,MAAM,sDAAsD,CAAC;AAGzH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,gCAAgC,CAAC;IACxD;;;;OAIG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,4CAA4C,CAAC,CAAC;CAC/E"}
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.136",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -1192,10 +1192,18 @@ 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
1198
1205
  models/select-module-mode.ts
1206
+ models/selected-object-conversion-strategy.ts
1199
1207
  models/selected-object-option-convert-to-parameters-inner.ts
1200
1208
  models/selected-object-option-tree-level-order-inner.ts
1201
1209
  models/selected-object-option-tree.ts
@@ -794,7 +794,7 @@ export const BackupApiAxiosParamCreator = function (configuration?: Configuratio
794
794
  * @summary List objects tree for selective backup
795
795
  * @param {string} orgName name of the org
796
796
  * @param {string} clusterName name of the cluster
797
- * @param {string} [database] database name
797
+ * @param {string} [database] Database name for engines configured to switch the object tree by database.
798
798
  * @param {*} [options] Override http request option.
799
799
  * @throws {RequiredError}
800
800
  */
@@ -1228,7 +1228,7 @@ export const BackupApiFp = function(configuration?: Configuration) {
1228
1228
  * @summary List objects tree for selective backup
1229
1229
  * @param {string} orgName name of the org
1230
1230
  * @param {string} clusterName name of the cluster
1231
- * @param {string} [database] database name
1231
+ * @param {string} [database] Database name for engines configured to switch the object tree by database.
1232
1232
  * @param {*} [options] Override http request option.
1233
1233
  * @throws {RequiredError}
1234
1234
  */
@@ -2107,7 +2107,7 @@ export interface BackupApiListObjectsTreeForSelectiveBackupRequest {
2107
2107
  readonly clusterName: string
2108
2108
 
2109
2109
  /**
2110
- * database name
2110
+ * Database name for engines configured to switch the object tree by database.
2111
2111
  * @type {string}
2112
2112
  * @memberof BackupApiListObjectsTreeForSelectiveBackup
2113
2113
  */
@@ -12154,7 +12154,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12154
12154
  * @summary List objects tree for selective backup
12155
12155
  * @param {string} orgName name of the org
12156
12156
  * @param {string} clusterName name of the cluster
12157
- * @param {string} [database] database name
12157
+ * @param {string} [database] Database name for engines configured to switch the object tree by database.
12158
12158
  * @param {*} [options] Override http request option.
12159
12159
  * @throws {RequiredError}
12160
12160
  */
@@ -23650,7 +23650,7 @@ export const SharedApiFp = function(configuration?: Configuration) {
23650
23650
  * @summary List objects tree for selective backup
23651
23651
  * @param {string} orgName name of the org
23652
23652
  * @param {string} clusterName name of the cluster
23653
- * @param {string} [database] database name
23653
+ * @param {string} [database] Database name for engines configured to switch the object tree by database.
23654
23654
  * @param {*} [options] Override http request option.
23655
23655
  * @throws {RequiredError}
23656
23656
  */
@@ -40190,7 +40190,7 @@ export interface SharedApiListObjectsTreeForSelectiveBackupRequest {
40190
40190
  readonly clusterName: string
40191
40191
 
40192
40192
  /**
40193
- * database name
40193
+ * Database name for engines configured to switch the object tree by database.
40194
40194
  * @type {string}
40195
40195
  * @memberof SharedApiListObjectsTreeForSelectiveBackup
40196
40196
  */
@@ -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
@@ -41,6 +41,12 @@ export interface EnvironmentDelete {
41
41
  * @memberof EnvironmentDelete
42
42
  */
43
43
  'victoriaMetrics'?: CloudResourceCleanPolicy;
44
+ /**
45
+ *
46
+ * @type {CloudResourceCleanPolicy}
47
+ * @memberof EnvironmentDelete
48
+ */
49
+ 'victoriaLogs'?: CloudResourceCleanPolicy;
44
50
  }
45
51
 
46
52
 
@@ -1084,10 +1084,18 @@ 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';
1090
1097
  export * from './select-module-mode';
1098
+ export * from './selected-object-conversion-strategy';
1091
1099
  export * from './selected-object-option';
1092
1100
  export * from './selected-object-option-convert-to-parameters-inner';
1093
1101
  export * from './selected-object-option-tree';
@@ -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
+