kb-cloud-client-typescript 2.3.84 → 2.3.85
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/alert-object-api.d.ts +26 -2
- package/dist/adminapi/apis/alert-object-api.d.ts.map +1 -1
- package/dist/adminapi/apis/alert-object-api.js +20 -5
- package/dist/adminapi/apis/alert-object-api.js.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +2 -2
- package/dist/adminapi/models/component-item.d.ts +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +0 -2
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.js +0 -2
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
- package/dist/adminapi/models/instance-template-create-env-inner.d.ts +1 -1
- package/dist/adminapi/models/instance-template-create.d.ts +3 -19
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-env.d.ts +3 -3
- package/dist/adminapi/models/mode-component-instance-template.d.ts +2 -2
- package/dist/adminapi/models/placement-scope.d.ts +1 -1
- package/dist/adminapi/models/placement-scope.js +1 -1
- package/dist/internalapi/models/component-item.d.ts +1 -1
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts +1 -1
- package/dist/internalapi/models/instance-template-create.d.ts +3 -19
- package/dist/internalapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +2 -2
- package/dist/openapi/models/component-item.d.ts +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +0 -2
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-attribute.js +0 -2
- package/dist/openapi/models/instance-template-attribute.js.map +1 -1
- package/dist/openapi/models/instance-template-create-env-inner.d.ts +1 -1
- package/dist/openapi/models/instance-template-create.d.ts +3 -19
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-env.d.ts +3 -3
- package/dist/openapi/models/mode-component-instance-template.d.ts +2 -2
- package/dist/openapi/models/placement-scope.d.ts +1 -1
- package/dist/openapi/models/placement-scope.js +1 -1
- package/package.json +1 -1
- package/src/adminapi/apis/alert-object-api.ts +44 -5
- package/src/adminapi/models/component-item-create.ts +2 -2
- package/src/adminapi/models/component-item.ts +1 -1
- package/src/adminapi/models/instance-template-attribute.ts +0 -2
- package/src/adminapi/models/instance-template-create-env-inner.ts +1 -1
- package/src/adminapi/models/instance-template-create.ts +3 -15
- package/src/adminapi/models/instance-template-env.ts +3 -3
- package/src/adminapi/models/mode-component-instance-template.ts +2 -2
- package/src/adminapi/models/placement-scope.ts +1 -1
- package/src/adminapi.yaml +32 -32
- package/src/internalapi/models/component-item.ts +1 -1
- package/src/internalapi/models/instance-template-create-env-inner.ts +1 -1
- package/src/internalapi/models/instance-template-create.ts +3 -15
- package/src/internalapi.yaml +6 -16
- package/src/openapi/models/component-item-create.ts +2 -2
- package/src/openapi/models/component-item.ts +1 -1
- package/src/openapi/models/instance-template-attribute.ts +0 -2
- package/src/openapi/models/instance-template-create-env-inner.ts +1 -1
- package/src/openapi/models/instance-template-create.ts +3 -15
- package/src/openapi/models/instance-template-env.ts +3 -3
- package/src/openapi/models/mode-component-instance-template.ts +2 -2
- package/src/openapi/models/placement-scope.ts +1 -1
- package/src/openapi.yaml +14 -32
|
@@ -27,7 +27,7 @@ export interface InstanceTemplateCreateEnvInner {
|
|
|
27
27
|
*/
|
|
28
28
|
'name': string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Literal string; optional values may be empty. valueFrom is unsupported.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof InstanceTemplateCreateEnvInner
|
|
33
33
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.
|
|
22
22
|
* @export
|
|
23
23
|
* @interface InstanceTemplateCreate
|
|
24
24
|
*/
|
|
@@ -42,7 +42,7 @@ export interface InstanceTemplateCreate {
|
|
|
42
42
|
*/
|
|
43
43
|
'replicas': number;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof InstanceTemplateCreate
|
|
48
48
|
*/
|
|
@@ -54,22 +54,10 @@ export interface InstanceTemplateCreate {
|
|
|
54
54
|
*/
|
|
55
55
|
'storageClass'?: string;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Declared env overrides. Names must be unique; defaults apply only to omitted variables.
|
|
58
58
|
* @type {Array<InstanceTemplateCreateEnvInner>}
|
|
59
59
|
* @memberof InstanceTemplateCreate
|
|
60
60
|
*/
|
|
61
61
|
'env'?: Array<InstanceTemplateCreateEnvInner>;
|
|
62
|
-
/**
|
|
63
|
-
* Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
64
|
-
* @type {{ [key: string]: string; }}
|
|
65
|
-
* @memberof InstanceTemplateCreate
|
|
66
|
-
*/
|
|
67
|
-
'annotations'?: { [key: string]: string; };
|
|
68
|
-
/**
|
|
69
|
-
* Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
|
|
70
|
-
* @type {{ [key: string]: string; }}
|
|
71
|
-
* @memberof InstanceTemplateCreate
|
|
72
|
-
*/
|
|
73
|
-
'labels'?: { [key: string]: string; };
|
|
74
62
|
}
|
|
75
63
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import type { LocalizedDescription } from './localized-description';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Allowed template env variable and its input constraints.
|
|
22
22
|
* @export
|
|
23
23
|
* @interface InstanceTemplateEnv
|
|
24
24
|
*/
|
|
@@ -42,13 +42,13 @@ export interface InstanceTemplateEnv {
|
|
|
42
42
|
*/
|
|
43
43
|
'description'?: LocalizedDescription;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Requires a non-blank value after applying the default.
|
|
46
46
|
* @type {boolean}
|
|
47
47
|
* @memberof InstanceTemplateEnv
|
|
48
48
|
*/
|
|
49
49
|
'required'?: boolean;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Used only when the variable is omitted.
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof InstanceTemplateEnv
|
|
54
54
|
*/
|
|
@@ -42,13 +42,13 @@ export interface ModeComponentInstanceTemplate {
|
|
|
42
42
|
*/
|
|
43
43
|
'ops': Array<InstanceTemplateOp>;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Template UI attributes. Env overrides require env to be enabled.
|
|
46
46
|
* @type {Set<InstanceTemplateAttribute>}
|
|
47
47
|
* @memberof ModeComponentInstanceTemplate
|
|
48
48
|
*/
|
|
49
49
|
'attributes'?: Set<InstanceTemplateAttribute>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Allowed env variables, with defaults and required checks applied before persistence.
|
|
52
52
|
* @type {Array<InstanceTemplateEnv>}
|
|
53
53
|
* @memberof ModeComponentInstanceTemplate
|
|
54
54
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
package/src/openapi.yaml
CHANGED
|
@@ -27153,7 +27153,7 @@ components:
|
|
|
27153
27153
|
instanceTemplateCreate:
|
|
27154
27154
|
type: object
|
|
27155
27155
|
additionalProperties: false
|
|
27156
|
-
description:
|
|
27156
|
+
description: 'Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.'
|
|
27157
27157
|
required:
|
|
27158
27158
|
- name
|
|
27159
27159
|
- replicas
|
|
@@ -27171,13 +27171,13 @@ components:
|
|
|
27171
27171
|
description: Replica count for this instance template.
|
|
27172
27172
|
availabilityZone:
|
|
27173
27173
|
type: string
|
|
27174
|
-
description:
|
|
27174
|
+
description: Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
|
|
27175
27175
|
storageClass:
|
|
27176
27176
|
type: string
|
|
27177
27177
|
description: StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
|
|
27178
27178
|
env:
|
|
27179
27179
|
type: array
|
|
27180
|
-
description:
|
|
27180
|
+
description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
|
|
27181
27181
|
items:
|
|
27182
27182
|
type: object
|
|
27183
27183
|
required:
|
|
@@ -27186,20 +27186,10 @@ components:
|
|
|
27186
27186
|
properties:
|
|
27187
27187
|
name:
|
|
27188
27188
|
type: string
|
|
27189
|
+
minLength: 1
|
|
27189
27190
|
value:
|
|
27190
27191
|
type: string
|
|
27191
|
-
|
|
27192
|
-
description: Plain string value only. valueFrom is not supported.
|
|
27193
|
-
annotations:
|
|
27194
|
-
type: object
|
|
27195
|
-
additionalProperties:
|
|
27196
|
-
type: string
|
|
27197
|
-
description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
27198
|
-
labels:
|
|
27199
|
-
type: object
|
|
27200
|
-
additionalProperties:
|
|
27201
|
-
type: string
|
|
27202
|
-
description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
|
|
27192
|
+
description: Literal string; optional values may be empty. valueFrom is unsupported.
|
|
27203
27193
|
ioQuantity:
|
|
27204
27194
|
description: IO Quantity describes IOPS and BPS of a volume
|
|
27205
27195
|
properties:
|
|
@@ -27282,7 +27272,7 @@ components:
|
|
|
27282
27272
|
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
27283
27273
|
availabilityZone:
|
|
27284
27274
|
type: string
|
|
27285
|
-
description:
|
|
27275
|
+
description: Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
|
|
27286
27276
|
component:
|
|
27287
27277
|
type: string
|
|
27288
27278
|
description: component type, refer to componentDef and support NamePrefix
|
|
@@ -27297,7 +27287,7 @@ components:
|
|
|
27297
27287
|
instanceTemplates:
|
|
27298
27288
|
type: array
|
|
27299
27289
|
minItems: 1
|
|
27300
|
-
description: Per-template replicas and optional overlays (env,
|
|
27290
|
+
description: Per-template replicas and optional overlays (env, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. 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.
|
|
27301
27291
|
items:
|
|
27302
27292
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
27303
27293
|
skipResourceConstraints:
|
|
@@ -27627,7 +27617,7 @@ components:
|
|
|
27627
27617
|
instanceTemplates:
|
|
27628
27618
|
type: array
|
|
27629
27619
|
x-omitempty: true
|
|
27630
|
-
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env
|
|
27620
|
+
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env.
|
|
27631
27621
|
items:
|
|
27632
27622
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
27633
27623
|
name:
|
|
@@ -34730,7 +34720,7 @@ components:
|
|
|
34730
34720
|
x-nullable: false
|
|
34731
34721
|
placementScope:
|
|
34732
34722
|
type: string
|
|
34733
|
-
description:
|
|
34723
|
+
description: Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
|
|
34734
34724
|
enum:
|
|
34735
34725
|
- cluster
|
|
34736
34726
|
- component
|
|
@@ -34754,12 +34744,10 @@ components:
|
|
|
34754
34744
|
description: Heterogeneous attribute the frontend may render on an instance template at create.
|
|
34755
34745
|
enum:
|
|
34756
34746
|
- env
|
|
34757
|
-
- annotations
|
|
34758
|
-
- labels
|
|
34759
34747
|
- storageClass
|
|
34760
34748
|
instanceTemplateEnv:
|
|
34761
34749
|
type: object
|
|
34762
|
-
description:
|
|
34750
|
+
description: Allowed template env variable and its input constraints.
|
|
34763
34751
|
required:
|
|
34764
34752
|
- name
|
|
34765
34753
|
properties:
|
|
@@ -34773,10 +34761,10 @@ components:
|
|
|
34773
34761
|
$ref: '#/components/schemas/localizedDescription'
|
|
34774
34762
|
required:
|
|
34775
34763
|
type: boolean
|
|
34776
|
-
description:
|
|
34764
|
+
description: Requires a non-blank value after applying the default.
|
|
34777
34765
|
default:
|
|
34778
34766
|
type: string
|
|
34779
|
-
description:
|
|
34767
|
+
description: Used only when the variable is omitted.
|
|
34780
34768
|
modeReadonlyEndpoint:
|
|
34781
34769
|
type: object
|
|
34782
34770
|
required:
|
|
@@ -34833,16 +34821,10 @@ components:
|
|
|
34833
34821
|
uniqueItems: true
|
|
34834
34822
|
items:
|
|
34835
34823
|
$ref: '#/components/schemas/instanceTemplateAttribute'
|
|
34836
|
-
description:
|
|
34837
|
-
Heterogeneous attributes the frontend should render on each
|
|
34838
|
-
instance template at create. Omitted or empty means only name
|
|
34839
|
-
and replicas. Create overlays the request onto the chart and
|
|
34840
|
-
does not re-check this list.
|
|
34824
|
+
description: Template UI attributes. Env overrides require env to be enabled.
|
|
34841
34825
|
env:
|
|
34842
34826
|
type: array
|
|
34843
|
-
description:
|
|
34844
|
-
Env vars the frontend may render when attributes includes env.
|
|
34845
|
-
Create does not re-check this list.
|
|
34827
|
+
description: Allowed env variables, with defaults and required checks applied before persistence.
|
|
34846
34828
|
items:
|
|
34847
34829
|
$ref: '#/components/schemas/instanceTemplateEnv'
|
|
34848
34830
|
serviceRef:
|