kb-cloud-client-typescript 2.4.0-alpha.66 → 2.4.0-alpha.68
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.
- package/dist/adminapi/apis/task-api.d.ts +16 -7
- package/dist/adminapi/apis/task-api.d.ts.map +1 -1
- package/dist/adminapi/apis/task-api.js +14 -9
- package/dist/adminapi/apis/task-api.js.map +1 -1
- package/dist/adminapi/apis/vip-pool-api.d.ts +72 -0
- package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
- package/dist/adminapi/apis/vip-pool-api.js +80 -0
- package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
- package/dist/adminapi/models/cluster-create.d.ts +6 -0
- package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +8 -1
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +9 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +9 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +23 -0
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-attribute.js +27 -0
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -0
- package/dist/adminapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/adminapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/adminapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/adminapi/models/instance-template-create.d.ts +54 -0
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-create.js +16 -0
- package/dist/adminapi/models/instance-template-create.js.map +1 -0
- package/dist/adminapi/models/instance-template-env.d.ts +50 -0
- package/dist/adminapi/models/instance-template-env.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-env.js +16 -0
- package/dist/adminapi/models/instance-template-env.js.map +1 -0
- package/dist/adminapi/models/instance-template-op.d.ts +22 -0
- package/dist/adminapi/models/instance-template-op.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-op.js +26 -0
- package/dist/adminapi/models/instance-template-op.js.map +1 -0
- package/dist/adminapi/models/instance-template-replicas.d.ts +31 -0
- package/dist/adminapi/models/instance-template-replicas.d.ts.map +1 -0
- package/dist/adminapi/models/instance-template-replicas.js +16 -0
- package/dist/adminapi/models/instance-template-replicas.js.map +1 -0
- package/dist/adminapi/models/mode-component-instance-template.d.ts +46 -0
- package/dist/adminapi/models/mode-component-instance-template.d.ts.map +1 -0
- package/dist/adminapi/models/mode-component-instance-template.js +16 -0
- package/dist/adminapi/models/mode-component-instance-template.js.map +1 -0
- package/dist/adminapi/models/mode-component.d.ts +7 -0
- package/dist/adminapi/models/mode-component.d.ts.map +1 -1
- package/dist/adminapi/models/ops-hscale.d.ts +8 -1
- package/dist/adminapi/models/ops-hscale.d.ts.map +1 -1
- package/dist/adminapi/models/ops-vscale.d.ts +1 -1
- package/dist/adminapi/models/task-retry-mode.d.ts +22 -0
- package/dist/adminapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/adminapi/models/task-retry-mode.js +26 -0
- package/dist/adminapi/models/task-retry-mode.js.map +1 -0
- package/dist/adminapi/models/task.d.ts +7 -0
- package/dist/adminapi/models/task.d.ts.map +1 -1
- package/dist/adminapi/models/vip-pool-create.d.ts +6 -0
- package/dist/adminapi/models/vip-pool-create.d.ts.map +1 -1
- package/dist/adminapi/models/vip-pool-update.d.ts +25 -0
- package/dist/adminapi/models/vip-pool-update.d.ts.map +1 -0
- package/dist/adminapi/models/vip-pool-update.js +16 -0
- package/dist/adminapi/models/vip-pool-update.js.map +1 -0
- package/dist/adminapi/models/vip-pool.d.ts +12 -0
- package/dist/adminapi/models/vip-pool.d.ts.map +1 -1
- package/dist/openapi/models/cluster-create.d.ts +6 -0
- package/dist/openapi/models/cluster-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +8 -1
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +8 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +8 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +23 -0
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-attribute.js +27 -0
- package/dist/openapi/models/instance-template-attribute.js.map +1 -0
- package/dist/openapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/openapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/openapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/openapi/models/instance-template-create.d.ts +54 -0
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-create.js +16 -0
- package/dist/openapi/models/instance-template-create.js.map +1 -0
- package/dist/openapi/models/instance-template-env.d.ts +50 -0
- package/dist/openapi/models/instance-template-env.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-env.js +16 -0
- package/dist/openapi/models/instance-template-env.js.map +1 -0
- package/dist/openapi/models/instance-template-op.d.ts +22 -0
- package/dist/openapi/models/instance-template-op.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-op.js +26 -0
- package/dist/openapi/models/instance-template-op.js.map +1 -0
- package/dist/openapi/models/instance-template-replicas.d.ts +31 -0
- package/dist/openapi/models/instance-template-replicas.d.ts.map +1 -0
- package/dist/openapi/models/instance-template-replicas.js +16 -0
- package/dist/openapi/models/instance-template-replicas.js.map +1 -0
- package/dist/openapi/models/mode-component-instance-template.d.ts +46 -0
- package/dist/openapi/models/mode-component-instance-template.d.ts.map +1 -0
- package/dist/openapi/models/mode-component-instance-template.js +16 -0
- package/dist/openapi/models/mode-component-instance-template.js.map +1 -0
- package/dist/openapi/models/mode-component.d.ts +7 -0
- package/dist/openapi/models/mode-component.d.ts.map +1 -1
- package/dist/openapi/models/ops-hscale.d.ts +8 -1
- package/dist/openapi/models/ops-hscale.d.ts.map +1 -1
- package/dist/openapi/models/ops-vscale.d.ts +1 -1
- package/dist/openapi/models/task-retry-mode.d.ts +22 -0
- package/dist/openapi/models/task-retry-mode.d.ts.map +1 -0
- package/dist/openapi/models/task-retry-mode.js +26 -0
- package/dist/openapi/models/task-retry-mode.js.map +1 -0
- package/dist/openapi/models/task.d.ts +7 -0
- package/dist/openapi/models/task.d.ts.map +1 -1
- package/dist/openapi/models/vip-pool.d.ts +12 -0
- package/dist/openapi/models/vip-pool.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +9 -0
- package/src/adminapi/apis/task-api.ts +25 -10
- package/src/adminapi/apis/vip-pool-api.ts +128 -0
- package/src/adminapi/models/cluster-create.ts +6 -0
- package/src/adminapi/models/component-item-create.ts +10 -1
- package/src/adminapi/models/index.ts +9 -0
- package/src/adminapi/models/instance-template-attribute.ts +32 -0
- package/src/adminapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/adminapi/models/instance-template-create.ts +57 -0
- package/src/adminapi/models/instance-template-env.ts +57 -0
- package/src/adminapi/models/instance-template-op.ts +31 -0
- package/src/adminapi/models/instance-template-replicas.ts +36 -0
- package/src/adminapi/models/mode-component-instance-template.ts +57 -0
- package/src/adminapi/models/mode-component.ts +9 -0
- package/src/adminapi/models/ops-hscale.ts +10 -1
- package/src/adminapi/models/ops-vscale.ts +1 -1
- package/src/adminapi/models/task-retry-mode.ts +31 -0
- package/src/adminapi/models/task.ts +9 -0
- package/src/adminapi/models/vip-pool-create.ts +6 -0
- package/src/adminapi/models/vip-pool-update.ts +30 -0
- package/src/adminapi/models/vip-pool.ts +12 -0
- package/src/adminapi.yaml +253 -4
- package/src/openapi/.openapi-generator/FILES +8 -0
- package/src/openapi/models/cluster-create.ts +6 -0
- package/src/openapi/models/component-item-create.ts +10 -1
- package/src/openapi/models/index.ts +8 -0
- package/src/openapi/models/instance-template-attribute.ts +32 -0
- package/src/openapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/openapi/models/instance-template-create.ts +57 -0
- package/src/openapi/models/instance-template-env.ts +57 -0
- package/src/openapi/models/instance-template-op.ts +31 -0
- package/src/openapi/models/instance-template-replicas.ts +36 -0
- package/src/openapi/models/mode-component-instance-template.ts +57 -0
- package/src/openapi/models/mode-component.ts +9 -0
- package/src/openapi/models/ops-hscale.ts +10 -1
- package/src/openapi/models/ops-vscale.ts +1 -1
- package/src/openapi/models/task-retry-mode.ts +31 -0
- package/src/openapi/models/task.ts +9 -0
- package/src/openapi/models/vip-pool.ts +12 -0
- package/src/openapi.yaml +187 -3
|
@@ -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.TaskRetryMode = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* restart reruns all steps; resume preserves successful steps.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.TaskRetryMode = {
|
|
23
|
+
restart: 'restart',
|
|
24
|
+
resume: 'resume'
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=task-retry-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-retry-mode.js","sourceRoot":"","sources":["../../../src/openapi/models/task-retry-mode.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,aAAa,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { TaskFailurePolicy } from './task-failure-policy';
|
|
13
|
+
import type { TaskRetryMode } from './task-retry-mode';
|
|
13
14
|
import type { TaskSchedule } from './task-schedule';
|
|
14
15
|
import type { TaskStatus } from './task-status';
|
|
15
16
|
import type { TaskStep } from './task-step';
|
|
@@ -109,6 +110,12 @@ export interface Task {
|
|
|
109
110
|
* @memberof Task
|
|
110
111
|
*/
|
|
111
112
|
'failurePolicy'?: TaskFailurePolicy;
|
|
113
|
+
/**
|
|
114
|
+
* Supported manual retry modes for this task. Runtime conflicts are checked when retrying.
|
|
115
|
+
* @type {Array<TaskRetryMode>}
|
|
116
|
+
* @memberof Task
|
|
117
|
+
*/
|
|
118
|
+
'retryModes'?: Array<TaskRetryMode>;
|
|
112
119
|
/**
|
|
113
120
|
* Maximum number of retries for the task
|
|
114
121
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/task.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,UAAU,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;CAC9B"}
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/task.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,UAAU,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IACpC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;CAC9B"}
|
|
@@ -27,6 +27,18 @@ export interface VipPool {
|
|
|
27
27
|
* @memberof VipPool
|
|
28
28
|
*/
|
|
29
29
|
'id'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of VIP Pool. It is the MetalLB IPAddressPool resource name, generated as kb-<id>.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VipPool
|
|
34
|
+
*/
|
|
35
|
+
'name'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* User facing name of the VIP Pool, used to select the pool when creating a cluster. It falls back to the IPAddressPool resource name.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VipPool
|
|
40
|
+
*/
|
|
41
|
+
'poolName'?: string;
|
|
30
42
|
/**
|
|
31
43
|
* Total number of IP addresses
|
|
32
44
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vip-pool.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/vip-pool.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
|
1
|
+
{"version":3,"file":"vip-pool.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/vip-pool.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
|
package/package.json
CHANGED
|
@@ -693,6 +693,12 @@ models/instance-resource-stats-type.ts
|
|
|
693
693
|
models/instance-resource-stats.ts
|
|
694
694
|
models/instance-status.ts
|
|
695
695
|
models/instance-storage-item.ts
|
|
696
|
+
models/instance-template-attribute.ts
|
|
697
|
+
models/instance-template-create-env-inner.ts
|
|
698
|
+
models/instance-template-create.ts
|
|
699
|
+
models/instance-template-env.ts
|
|
700
|
+
models/instance-template-op.ts
|
|
701
|
+
models/instance-template-replicas.ts
|
|
696
702
|
models/instance.ts
|
|
697
703
|
models/integer-option.ts
|
|
698
704
|
models/international-desc.ts
|
|
@@ -765,6 +771,7 @@ models/milvus-role-list.ts
|
|
|
765
771
|
models/milvus-role-request.ts
|
|
766
772
|
models/milvus-role.ts
|
|
767
773
|
models/mode-compatible-kubeblocks-version.ts
|
|
774
|
+
models/mode-component-instance-template.ts
|
|
768
775
|
models/mode-component.ts
|
|
769
776
|
models/mode-object-storage-additional-helm-value-path.ts
|
|
770
777
|
models/mode-object-storage-service-ref.ts
|
|
@@ -1137,6 +1144,7 @@ models/target.ts
|
|
|
1137
1144
|
models/task-failure-policy.ts
|
|
1138
1145
|
models/task-list-item.ts
|
|
1139
1146
|
models/task-list.ts
|
|
1147
|
+
models/task-retry-mode.ts
|
|
1140
1148
|
models/task-schedule-type.ts
|
|
1141
1149
|
models/task-schedule.ts
|
|
1142
1150
|
models/task-status.ts
|
|
@@ -1176,6 +1184,7 @@ models/user-update.ts
|
|
|
1176
1184
|
models/user.ts
|
|
1177
1185
|
models/vip-pool-create.ts
|
|
1178
1186
|
models/vip-pool-list.ts
|
|
1187
|
+
models/vip-pool-update.ts
|
|
1179
1188
|
models/vip-pool.ts
|
|
1180
1189
|
models/volume-restore-policy.ts
|
|
1181
1190
|
models/vuln-item.ts
|
|
@@ -30,6 +30,8 @@ import type { Task } from '../models';
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { TaskList } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
+
import type { TaskRetryMode } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
33
35
|
import type { TaskTypeList } from '../models';
|
|
34
36
|
/**
|
|
35
37
|
* TaskApi - axios parameter creator
|
|
@@ -375,13 +377,14 @@ export const TaskApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
375
377
|
};
|
|
376
378
|
},
|
|
377
379
|
/**
|
|
378
|
-
*
|
|
380
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
379
381
|
* @summary Retry a task
|
|
380
382
|
* @param {string} taskId ID of the task
|
|
383
|
+
* @param {TaskRetryMode} [mode] restart reruns all steps; resume preserves successful steps and reruns unfinished steps and PreFinish hooks.
|
|
381
384
|
* @param {*} [options] Override http request option.
|
|
382
385
|
* @throws {RequiredError}
|
|
383
386
|
*/
|
|
384
|
-
retryTask: async (taskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
387
|
+
retryTask: async (taskId: string, mode?: TaskRetryMode, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
385
388
|
// verify required parameter 'taskId' is not null or undefined
|
|
386
389
|
assertParamExists('retryTask', 'taskId', taskId)
|
|
387
390
|
const localVarPath = `/admin/v1/tasks/{taskId}/retry`
|
|
@@ -404,6 +407,10 @@ export const TaskApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
404
407
|
// authentication DigestAuth required
|
|
405
408
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
406
409
|
|
|
410
|
+
if (mode !== undefined) {
|
|
411
|
+
localVarQueryParameter['mode'] = mode;
|
|
412
|
+
}
|
|
413
|
+
|
|
407
414
|
|
|
408
415
|
|
|
409
416
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -567,14 +574,15 @@ export const TaskApiFp = function(configuration?: Configuration) {
|
|
|
567
574
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
568
575
|
},
|
|
569
576
|
/**
|
|
570
|
-
*
|
|
577
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
571
578
|
* @summary Retry a task
|
|
572
579
|
* @param {string} taskId ID of the task
|
|
580
|
+
* @param {TaskRetryMode} [mode] restart reruns all steps; resume preserves successful steps and reruns unfinished steps and PreFinish hooks.
|
|
573
581
|
* @param {*} [options] Override http request option.
|
|
574
582
|
* @throws {RequiredError}
|
|
575
583
|
*/
|
|
576
|
-
async retryTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>> {
|
|
577
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.retryTask(taskId, options);
|
|
584
|
+
async retryTask(taskId: string, mode?: TaskRetryMode, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>> {
|
|
585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.retryTask(taskId, mode, options);
|
|
578
586
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
579
587
|
const localVarOperationServerBasePath = operationServerMap['TaskApi.retryTask']?.[localVarOperationServerIndex]?.url;
|
|
580
588
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -672,14 +680,14 @@ export const TaskApiFactory = function (configuration?: Configuration, basePath?
|
|
|
672
680
|
return localVarFp.listTasks(requestParameters.start, requestParameters.end, requestParameters.orgName, requestParameters.resourceId, requestParameters.resourceType, requestParameters.taskType, requestParameters.status, requestParameters.pageNumber, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
673
681
|
},
|
|
674
682
|
/**
|
|
675
|
-
*
|
|
683
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
676
684
|
* @summary Retry a task
|
|
677
685
|
* @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
|
|
678
686
|
* @param {*} [options] Override http request option.
|
|
679
687
|
* @throws {RequiredError}
|
|
680
688
|
*/
|
|
681
689
|
retryTask(requestParameters: TaskApiRetryTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task> {
|
|
682
|
-
return localVarFp.retryTask(requestParameters.taskId, options).then((request) => request(axios, basePath));
|
|
690
|
+
return localVarFp.retryTask(requestParameters.taskId, requestParameters.mode, options).then((request) => request(axios, basePath));
|
|
683
691
|
},
|
|
684
692
|
/**
|
|
685
693
|
* stop task
|
|
@@ -770,7 +778,7 @@ export interface TaskApiInterface {
|
|
|
770
778
|
listTasks(requestParameters: TaskApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<TaskList>;
|
|
771
779
|
|
|
772
780
|
/**
|
|
773
|
-
*
|
|
781
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
774
782
|
* @summary Retry a task
|
|
775
783
|
* @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
|
|
776
784
|
* @param {*} [options] Override http request option.
|
|
@@ -957,6 +965,13 @@ export interface TaskApiRetryTaskRequest {
|
|
|
957
965
|
* @memberof TaskApiRetryTask
|
|
958
966
|
*/
|
|
959
967
|
readonly taskId: string
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* restart reruns all steps; resume preserves successful steps and reruns unfinished steps and PreFinish hooks.
|
|
971
|
+
* @type {TaskRetryMode}
|
|
972
|
+
* @memberof TaskApiRetryTask
|
|
973
|
+
*/
|
|
974
|
+
readonly mode?: TaskRetryMode
|
|
960
975
|
}
|
|
961
976
|
|
|
962
977
|
/**
|
|
@@ -1064,7 +1079,7 @@ export class TaskApi extends BaseAPI implements TaskApiInterface {
|
|
|
1064
1079
|
}
|
|
1065
1080
|
|
|
1066
1081
|
/**
|
|
1067
|
-
*
|
|
1082
|
+
* Restart a failed or stopped task. Resume requires the task type to declare resume in allowActions. The default mode is restart, which reruns all steps; resume preserves successful steps.
|
|
1068
1083
|
* @summary Retry a task
|
|
1069
1084
|
* @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
|
|
1070
1085
|
* @param {*} [options] Override http request option.
|
|
@@ -1072,7 +1087,7 @@ export class TaskApi extends BaseAPI implements TaskApiInterface {
|
|
|
1072
1087
|
* @memberof TaskApi
|
|
1073
1088
|
*/
|
|
1074
1089
|
public retryTask(requestParameters: TaskApiRetryTaskRequest, options?: RawAxiosRequestConfig) {
|
|
1075
|
-
return TaskApiFp(this.configuration).retryTask(requestParameters.taskId, options).then((request) => request(this.axios, this.basePath));
|
|
1090
|
+
return TaskApiFp(this.configuration).retryTask(requestParameters.taskId, requestParameters.mode, options).then((request) => request(this.axios, this.basePath));
|
|
1076
1091
|
}
|
|
1077
1092
|
|
|
1078
1093
|
/**
|
|
@@ -29,6 +29,8 @@ import type { VipPool } from '../models';
|
|
|
29
29
|
import type { VipPoolCreate } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { VipPoolList } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { VipPoolUpdate } from '../models';
|
|
32
34
|
/**
|
|
33
35
|
* VipPoolApi - axios parameter creator
|
|
34
36
|
* @export
|
|
@@ -163,6 +165,57 @@ export const VipPoolApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
163
165
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
164
166
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
165
167
|
|
|
168
|
+
return {
|
|
169
|
+
url: toPathString(localVarUrlObj),
|
|
170
|
+
options: localVarRequestOptions,
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Update environment VIP Pool
|
|
176
|
+
* @param {string} environmentName name of the environment
|
|
177
|
+
* @param {string} poolID id of the VIP Pool
|
|
178
|
+
* @param {VipPoolUpdate} body
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
updateVIPPool: async (environmentName: string, poolID: string, body: VipPoolUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
183
|
+
// verify required parameter 'environmentName' is not null or undefined
|
|
184
|
+
assertParamExists('updateVIPPool', 'environmentName', environmentName)
|
|
185
|
+
// verify required parameter 'poolID' is not null or undefined
|
|
186
|
+
assertParamExists('updateVIPPool', 'poolID', poolID)
|
|
187
|
+
// verify required parameter 'body' is not null or undefined
|
|
188
|
+
assertParamExists('updateVIPPool', 'body', body)
|
|
189
|
+
const localVarPath = `/admin/v1/environments/{environmentName}/loadbalancer/vipPool/{poolID}`
|
|
190
|
+
.replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
|
|
191
|
+
.replace(`{${"poolID"}}`, encodeURIComponent(String(poolID)));
|
|
192
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
193
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
194
|
+
let baseOptions;
|
|
195
|
+
if (configuration) {
|
|
196
|
+
baseOptions = configuration.baseOptions;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
200
|
+
const localVarHeaderParameter = {} as any;
|
|
201
|
+
const localVarQueryParameter = {} as any;
|
|
202
|
+
|
|
203
|
+
// authentication BearerToken required
|
|
204
|
+
// http bearer authentication required
|
|
205
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
206
|
+
|
|
207
|
+
// authentication DigestAuth required
|
|
208
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
213
|
+
|
|
214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
217
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
218
|
+
|
|
166
219
|
return {
|
|
167
220
|
url: toPathString(localVarUrlObj),
|
|
168
221
|
options: localVarRequestOptions,
|
|
@@ -219,6 +272,21 @@ export const VipPoolApiFp = function(configuration?: Configuration) {
|
|
|
219
272
|
const localVarOperationServerBasePath = operationServerMap['VipPoolApi.listVIPPool']?.[localVarOperationServerIndex]?.url;
|
|
220
273
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
221
274
|
},
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @summary Update environment VIP Pool
|
|
278
|
+
* @param {string} environmentName name of the environment
|
|
279
|
+
* @param {string} poolID id of the VIP Pool
|
|
280
|
+
* @param {VipPoolUpdate} body
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
async updateVIPPool(environmentName: string, poolID: string, body: VipPoolUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VipPool>> {
|
|
285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateVIPPool(environmentName, poolID, body, options);
|
|
286
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
287
|
+
const localVarOperationServerBasePath = operationServerMap['VipPoolApi.updateVIPPool']?.[localVarOperationServerIndex]?.url;
|
|
288
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
289
|
+
},
|
|
222
290
|
}
|
|
223
291
|
};
|
|
224
292
|
|
|
@@ -259,6 +327,16 @@ export const VipPoolApiFactory = function (configuration?: Configuration, basePa
|
|
|
259
327
|
listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPoolList> {
|
|
260
328
|
return localVarFp.listVIPPool(requestParameters.environmentName, options).then((request) => request(axios, basePath));
|
|
261
329
|
},
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @summary Update environment VIP Pool
|
|
333
|
+
* @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPool> {
|
|
338
|
+
return localVarFp.updateVIPPool(requestParameters.environmentName, requestParameters.poolID, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
262
340
|
};
|
|
263
341
|
};
|
|
264
342
|
|
|
@@ -298,6 +376,16 @@ export interface VipPoolApiInterface {
|
|
|
298
376
|
*/
|
|
299
377
|
listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPoolList>;
|
|
300
378
|
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Update environment VIP Pool
|
|
382
|
+
* @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
* @memberof VipPoolApiInterface
|
|
386
|
+
*/
|
|
387
|
+
updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPool>;
|
|
388
|
+
|
|
301
389
|
}
|
|
302
390
|
|
|
303
391
|
/**
|
|
@@ -356,6 +444,34 @@ export interface VipPoolApiListVIPPoolRequest {
|
|
|
356
444
|
readonly environmentName: string
|
|
357
445
|
}
|
|
358
446
|
|
|
447
|
+
/**
|
|
448
|
+
* Request parameters for updateVIPPool operation in VipPoolApi.
|
|
449
|
+
* @export
|
|
450
|
+
* @interface VipPoolApiUpdateVIPPoolRequest
|
|
451
|
+
*/
|
|
452
|
+
export interface VipPoolApiUpdateVIPPoolRequest {
|
|
453
|
+
/**
|
|
454
|
+
* name of the environment
|
|
455
|
+
* @type {string}
|
|
456
|
+
* @memberof VipPoolApiUpdateVIPPool
|
|
457
|
+
*/
|
|
458
|
+
readonly environmentName: string
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* id of the VIP Pool
|
|
462
|
+
* @type {string}
|
|
463
|
+
* @memberof VipPoolApiUpdateVIPPool
|
|
464
|
+
*/
|
|
465
|
+
readonly poolID: string
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
*
|
|
469
|
+
* @type {VipPoolUpdate}
|
|
470
|
+
* @memberof VipPoolApiUpdateVIPPool
|
|
471
|
+
*/
|
|
472
|
+
readonly body: VipPoolUpdate
|
|
473
|
+
}
|
|
474
|
+
|
|
359
475
|
/**
|
|
360
476
|
* VipPoolApi - object-oriented interface
|
|
361
477
|
* @export
|
|
@@ -398,5 +514,17 @@ export class VipPoolApi extends BaseAPI implements VipPoolApiInterface {
|
|
|
398
514
|
public listVIPPool(requestParameters: VipPoolApiListVIPPoolRequest, options?: RawAxiosRequestConfig) {
|
|
399
515
|
return VipPoolApiFp(this.configuration).listVIPPool(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
|
|
400
516
|
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @summary Update environment VIP Pool
|
|
521
|
+
* @param {VipPoolApiUpdateVIPPoolRequest} requestParameters Request parameters.
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
* @memberof VipPoolApi
|
|
525
|
+
*/
|
|
526
|
+
public updateVIPPool(requestParameters: VipPoolApiUpdateVIPPoolRequest, options?: RawAxiosRequestConfig) {
|
|
527
|
+
return VipPoolApiFp(this.configuration).updateVIPPool(requestParameters.environmentName, requestParameters.poolID, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
528
|
+
}
|
|
401
529
|
}
|
|
402
530
|
|
|
@@ -191,6 +191,12 @@ export interface ClusterCreate {
|
|
|
191
191
|
* @memberof ClusterCreate
|
|
192
192
|
*/
|
|
193
193
|
'networkMode'?: NetworkMode;
|
|
194
|
+
/**
|
|
195
|
+
* Name of the VIP Pool (VIP Pool poolName) used as the MetalLB address pool for LoadBalancer services. Only effective when networkMode is LoadBalancer.
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof ClusterCreate
|
|
198
|
+
*/
|
|
199
|
+
'vipPoolName'?: string;
|
|
194
200
|
/**
|
|
195
201
|
*
|
|
196
202
|
* @type {Array<ServiceRef>}
|
|
@@ -19,6 +19,9 @@ import type { ComponentNetwork } from './component-network';
|
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import type { ComponentVolumeItem } from './component-volume-item';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { InstanceTemplateCreate } from './instance-template-create';
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
27
|
* ComponentItem is the information of a component
|
|
@@ -39,11 +42,17 @@ export interface ComponentItemCreate {
|
|
|
39
42
|
*/
|
|
40
43
|
'compNum'?: number;
|
|
41
44
|
/**
|
|
42
|
-
* Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas.
|
|
45
|
+
* Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas. If the rendered component has instance templates, this must equal the sum of all template replica counts in the complete instanceTemplates list.
|
|
43
46
|
* @type {number}
|
|
44
47
|
* @memberof ComponentItemCreate
|
|
45
48
|
*/
|
|
46
49
|
'replicas'?: number | null;
|
|
50
|
+
/**
|
|
51
|
+
* Per-template replicas and optional overlays (env, annotations, labels). Required when the chart renders instance templates. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
|
|
52
|
+
* @type {Array<InstanceTemplateCreate>}
|
|
53
|
+
* @memberof ComponentItemCreate
|
|
54
|
+
*/
|
|
55
|
+
'instanceTemplates'?: Array<InstanceTemplateCreate>;
|
|
47
56
|
/**
|
|
48
57
|
* Whether to skip resource constraint validation when creating cluster
|
|
49
58
|
* @type {boolean}
|
|
@@ -586,6 +586,12 @@ export * from './instance-resource-stats-list';
|
|
|
586
586
|
export * from './instance-resource-stats-type';
|
|
587
587
|
export * from './instance-status';
|
|
588
588
|
export * from './instance-storage-item';
|
|
589
|
+
export * from './instance-template-attribute';
|
|
590
|
+
export * from './instance-template-create';
|
|
591
|
+
export * from './instance-template-create-env-inner';
|
|
592
|
+
export * from './instance-template-env';
|
|
593
|
+
export * from './instance-template-op';
|
|
594
|
+
export * from './instance-template-replicas';
|
|
589
595
|
export * from './integer-option';
|
|
590
596
|
export * from './international-desc';
|
|
591
597
|
export * from './io-quantity';
|
|
@@ -658,6 +664,7 @@ export * from './milvus-role-list';
|
|
|
658
664
|
export * from './milvus-role-request';
|
|
659
665
|
export * from './mode-compatible-kubeblocks-version';
|
|
660
666
|
export * from './mode-component';
|
|
667
|
+
export * from './mode-component-instance-template';
|
|
661
668
|
export * from './mode-object-storage';
|
|
662
669
|
export * from './mode-object-storage-additional-helm-value-path';
|
|
663
670
|
export * from './mode-object-storage-service-ref';
|
|
@@ -1030,6 +1037,7 @@ export * from './task';
|
|
|
1030
1037
|
export * from './task-failure-policy';
|
|
1031
1038
|
export * from './task-list';
|
|
1032
1039
|
export * from './task-list-item';
|
|
1040
|
+
export * from './task-retry-mode';
|
|
1033
1041
|
export * from './task-schedule';
|
|
1034
1042
|
export * from './task-schedule-type';
|
|
1035
1043
|
export * from './task-status';
|
|
@@ -1069,6 +1077,7 @@ export * from './user-update';
|
|
|
1069
1077
|
export * from './vip-pool';
|
|
1070
1078
|
export * from './vip-pool-create';
|
|
1071
1079
|
export * from './vip-pool-list';
|
|
1080
|
+
export * from './vip-pool-update';
|
|
1072
1081
|
export * from './volume-restore-policy';
|
|
1073
1082
|
export * from './vuln-item';
|
|
1074
1083
|
export * from './vuln-list';
|
|
@@ -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
|
+
* Heterogeneous attribute the frontend may render on an instance template at create.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const InstanceTemplateAttribute = {
|
|
24
|
+
env: 'env',
|
|
25
|
+
annotations: 'annotations',
|
|
26
|
+
labels: 'labels'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type InstanceTemplateAttribute = typeof InstanceTemplateAttribute[keyof typeof InstanceTemplateAttribute];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InstanceTemplateCreateEnvInner
|
|
21
|
+
*/
|
|
22
|
+
export interface InstanceTemplateCreateEnvInner {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InstanceTemplateCreateEnvInner
|
|
27
|
+
*/
|
|
28
|
+
'name': string;
|
|
29
|
+
/**
|
|
30
|
+
* Plain string value only. valueFrom is not supported.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InstanceTemplateCreateEnvInner
|
|
33
|
+
*/
|
|
34
|
+
'value': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Create assignment for one instance template. name and replicas are required. env, annotations, and labels are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once.
|
|
22
|
+
* @export
|
|
23
|
+
* @interface InstanceTemplateCreate
|
|
24
|
+
*/
|
|
25
|
+
export interface InstanceTemplateCreate {
|
|
26
|
+
/**
|
|
27
|
+
* Instance template name; must match a chart-rendered instance.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof InstanceTemplateCreate
|
|
30
|
+
*/
|
|
31
|
+
'name': string;
|
|
32
|
+
/**
|
|
33
|
+
* Replica count for this instance template.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof InstanceTemplateCreate
|
|
36
|
+
*/
|
|
37
|
+
'replicas': number;
|
|
38
|
+
/**
|
|
39
|
+
* Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
|
|
40
|
+
* @type {Array<InstanceTemplateCreateEnvInner>}
|
|
41
|
+
* @memberof InstanceTemplateCreate
|
|
42
|
+
*/
|
|
43
|
+
'env'?: Array<InstanceTemplateCreateEnvInner>;
|
|
44
|
+
/**
|
|
45
|
+
* Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
46
|
+
* @type {{ [key: string]: string; }}
|
|
47
|
+
* @memberof InstanceTemplateCreate
|
|
48
|
+
*/
|
|
49
|
+
'annotations'?: { [key: string]: string; };
|
|
50
|
+
/**
|
|
51
|
+
* Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
52
|
+
* @type {{ [key: string]: string; }}
|
|
53
|
+
* @memberof InstanceTemplateCreate
|
|
54
|
+
*/
|
|
55
|
+
'labels'?: { [key: string]: string; };
|
|
56
|
+
}
|
|
57
|
+
|