kb-cloud-client-typescript 2.4.0-alpha.163 → 2.4.0-alpha.165
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/account-option.d.ts +1 -1
- package/dist/adminapi/models/account-option.d.ts.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/account-option.d.ts +1 -1
- package/dist/openapi/models/account-option.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/account-option.ts +1 -1
- 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 +33 -33
- 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/account-option.ts +1 -1
- 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 +15 -33
package/src/internalapi.yaml
CHANGED
|
@@ -2653,7 +2653,7 @@ components:
|
|
|
2653
2653
|
instanceTemplateCreate:
|
|
2654
2654
|
type: object
|
|
2655
2655
|
additionalProperties: false
|
|
2656
|
-
description:
|
|
2656
|
+
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.'
|
|
2657
2657
|
required:
|
|
2658
2658
|
- name
|
|
2659
2659
|
- replicas
|
|
@@ -2671,13 +2671,13 @@ components:
|
|
|
2671
2671
|
description: Replica count for this instance template.
|
|
2672
2672
|
availabilityZone:
|
|
2673
2673
|
type: string
|
|
2674
|
-
description:
|
|
2674
|
+
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.
|
|
2675
2675
|
storageClass:
|
|
2676
2676
|
type: string
|
|
2677
2677
|
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.
|
|
2678
2678
|
env:
|
|
2679
2679
|
type: array
|
|
2680
|
-
description:
|
|
2680
|
+
description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
|
|
2681
2681
|
items:
|
|
2682
2682
|
type: object
|
|
2683
2683
|
required:
|
|
@@ -2686,20 +2686,10 @@ components:
|
|
|
2686
2686
|
properties:
|
|
2687
2687
|
name:
|
|
2688
2688
|
type: string
|
|
2689
|
+
minLength: 1
|
|
2689
2690
|
value:
|
|
2690
2691
|
type: string
|
|
2691
|
-
|
|
2692
|
-
description: Plain string value only. valueFrom is not supported.
|
|
2693
|
-
annotations:
|
|
2694
|
-
type: object
|
|
2695
|
-
additionalProperties:
|
|
2696
|
-
type: string
|
|
2697
|
-
description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
2698
|
-
labels:
|
|
2699
|
-
type: object
|
|
2700
|
-
additionalProperties:
|
|
2701
|
-
type: string
|
|
2702
|
-
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.
|
|
2692
|
+
description: Literal string; optional values may be empty. valueFrom is unsupported.
|
|
2703
2693
|
ioQuantity:
|
|
2704
2694
|
description: IO Quantity describes IOPS and BPS of a volume
|
|
2705
2695
|
properties:
|
|
@@ -2784,7 +2774,7 @@ components:
|
|
|
2784
2774
|
instanceTemplates:
|
|
2785
2775
|
type: array
|
|
2786
2776
|
x-omitempty: true
|
|
2787
|
-
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env
|
|
2777
|
+
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env.
|
|
2788
2778
|
items:
|
|
2789
2779
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
2790
2780
|
name:
|
|
@@ -48,7 +48,7 @@ export interface ComponentItemCreate {
|
|
|
48
48
|
*/
|
|
49
49
|
'nodeGroup'?: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* 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.
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof ComponentItemCreate
|
|
54
54
|
*/
|
|
@@ -72,7 +72,7 @@ export interface ComponentItemCreate {
|
|
|
72
72
|
*/
|
|
73
73
|
'replicas'?: number;
|
|
74
74
|
/**
|
|
75
|
-
* Per-template replicas and optional overlays (env,
|
|
75
|
+
* 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.
|
|
76
76
|
* @type {Array<InstanceTemplateCreate>}
|
|
77
77
|
* @memberof ComponentItemCreate
|
|
78
78
|
*/
|
|
@@ -54,7 +54,7 @@ export interface ComponentItem {
|
|
|
54
54
|
*/
|
|
55
55
|
'availabilityZone'?: string;
|
|
56
56
|
/**
|
|
57
|
-
* Instance template assignments with effective replicas, placement and storage class, and user-provided env
|
|
57
|
+
* Instance template assignments with effective replicas, placement and storage class, and user-provided env.
|
|
58
58
|
* @type {Array<InstanceTemplateCreate>}
|
|
59
59
|
* @memberof ComponentItem
|
|
60
60
|
*/
|
|
@@ -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
|
@@ -30490,7 +30490,7 @@ components:
|
|
|
30490
30490
|
instanceTemplateCreate:
|
|
30491
30491
|
type: object
|
|
30492
30492
|
additionalProperties: false
|
|
30493
|
-
description:
|
|
30493
|
+
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.'
|
|
30494
30494
|
required:
|
|
30495
30495
|
- name
|
|
30496
30496
|
- replicas
|
|
@@ -30508,13 +30508,13 @@ components:
|
|
|
30508
30508
|
description: Replica count for this instance template.
|
|
30509
30509
|
availabilityZone:
|
|
30510
30510
|
type: string
|
|
30511
|
-
description:
|
|
30511
|
+
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.
|
|
30512
30512
|
storageClass:
|
|
30513
30513
|
type: string
|
|
30514
30514
|
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.
|
|
30515
30515
|
env:
|
|
30516
30516
|
type: array
|
|
30517
|
-
description:
|
|
30517
|
+
description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
|
|
30518
30518
|
items:
|
|
30519
30519
|
type: object
|
|
30520
30520
|
required:
|
|
@@ -30523,20 +30523,10 @@ components:
|
|
|
30523
30523
|
properties:
|
|
30524
30524
|
name:
|
|
30525
30525
|
type: string
|
|
30526
|
+
minLength: 1
|
|
30526
30527
|
value:
|
|
30527
30528
|
type: string
|
|
30528
|
-
|
|
30529
|
-
description: Plain string value only. valueFrom is not supported.
|
|
30530
|
-
annotations:
|
|
30531
|
-
type: object
|
|
30532
|
-
additionalProperties:
|
|
30533
|
-
type: string
|
|
30534
|
-
description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
30535
|
-
labels:
|
|
30536
|
-
type: object
|
|
30537
|
-
additionalProperties:
|
|
30538
|
-
type: string
|
|
30539
|
-
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.
|
|
30529
|
+
description: Literal string; optional values may be empty. valueFrom is unsupported.
|
|
30540
30530
|
ioQuantity:
|
|
30541
30531
|
description: IO Quantity describes IOPS and BPS of a volume
|
|
30542
30532
|
properties:
|
|
@@ -30619,7 +30609,7 @@ components:
|
|
|
30619
30609
|
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
30620
30610
|
availabilityZone:
|
|
30621
30611
|
type: string
|
|
30622
|
-
description:
|
|
30612
|
+
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.
|
|
30623
30613
|
component:
|
|
30624
30614
|
type: string
|
|
30625
30615
|
description: component type, refer to componentDef and support NamePrefix
|
|
@@ -30634,7 +30624,7 @@ components:
|
|
|
30634
30624
|
instanceTemplates:
|
|
30635
30625
|
type: array
|
|
30636
30626
|
minItems: 1
|
|
30637
|
-
description: Per-template replicas and optional overlays (env,
|
|
30627
|
+
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.
|
|
30638
30628
|
items:
|
|
30639
30629
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
30640
30630
|
skipResourceConstraints:
|
|
@@ -30964,7 +30954,7 @@ components:
|
|
|
30964
30954
|
instanceTemplates:
|
|
30965
30955
|
type: array
|
|
30966
30956
|
x-omitempty: true
|
|
30967
|
-
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env
|
|
30957
|
+
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env.
|
|
30968
30958
|
items:
|
|
30969
30959
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
30970
30960
|
name:
|
|
@@ -38965,7 +38955,7 @@ components:
|
|
|
38965
38955
|
x-nullable: false
|
|
38966
38956
|
placementScope:
|
|
38967
38957
|
type: string
|
|
38968
|
-
description:
|
|
38958
|
+
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.
|
|
38969
38959
|
enum:
|
|
38970
38960
|
- cluster
|
|
38971
38961
|
- component
|
|
@@ -38989,12 +38979,10 @@ components:
|
|
|
38989
38979
|
description: Heterogeneous attribute the frontend may render on an instance template at create.
|
|
38990
38980
|
enum:
|
|
38991
38981
|
- env
|
|
38992
|
-
- annotations
|
|
38993
|
-
- labels
|
|
38994
38982
|
- storageClass
|
|
38995
38983
|
instanceTemplateEnv:
|
|
38996
38984
|
type: object
|
|
38997
|
-
description:
|
|
38985
|
+
description: Allowed template env variable and its input constraints.
|
|
38998
38986
|
required:
|
|
38999
38987
|
- name
|
|
39000
38988
|
properties:
|
|
@@ -39008,10 +38996,10 @@ components:
|
|
|
39008
38996
|
$ref: '#/components/schemas/localizedDescription'
|
|
39009
38997
|
required:
|
|
39010
38998
|
type: boolean
|
|
39011
|
-
description:
|
|
38999
|
+
description: Requires a non-blank value after applying the default.
|
|
39012
39000
|
default:
|
|
39013
39001
|
type: string
|
|
39014
|
-
description:
|
|
39002
|
+
description: Used only when the variable is omitted.
|
|
39015
39003
|
modeReadonlyEndpoint:
|
|
39016
39004
|
type: object
|
|
39017
39005
|
required:
|
|
@@ -39068,16 +39056,10 @@ components:
|
|
|
39068
39056
|
uniqueItems: true
|
|
39069
39057
|
items:
|
|
39070
39058
|
$ref: '#/components/schemas/instanceTemplateAttribute'
|
|
39071
|
-
description:
|
|
39072
|
-
Heterogeneous attributes the frontend should render on each
|
|
39073
|
-
instance template at create. Omitted or empty means only name
|
|
39074
|
-
and replicas. Create overlays the request onto the chart and
|
|
39075
|
-
does not re-check this list.
|
|
39059
|
+
description: Template UI attributes. Env overrides require env to be enabled.
|
|
39076
39060
|
env:
|
|
39077
39061
|
type: array
|
|
39078
|
-
description:
|
|
39079
|
-
Env vars the frontend may render when attributes includes env.
|
|
39080
|
-
Create does not re-check this list.
|
|
39062
|
+
description: Allowed env variables, with defaults and required checks applied before persistence.
|
|
39081
39063
|
items:
|
|
39082
39064
|
$ref: '#/components/schemas/instanceTemplateEnv'
|
|
39083
39065
|
serviceRef:
|
|
@@ -39504,7 +39486,7 @@ components:
|
|
|
39504
39486
|
description: Account names that cannot be deleted, locked, unlocked, or have their privileges modified. This does not hide accounts or restrict password changes.
|
|
39505
39487
|
items:
|
|
39506
39488
|
type: string
|
|
39507
|
-
|
|
39489
|
+
hiddenAccounts:
|
|
39508
39490
|
type: array
|
|
39509
39491
|
description: Account names hidden from the generic account list. Matching is case-sensitive, without whitespace normalization or patterns. Other accounts remain visible subject to existing displayRootAccount rules.
|
|
39510
39492
|
items:
|