kb-cloud-client-typescript 0.0.0-support-instance-template-ops.20260920.902 → 0.0.0-support-instance-template-ops.20260920.952

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 (69) hide show
  1. package/dist/adminapi/models/component-item-create.d.ts +1 -1
  2. package/dist/adminapi/models/index.d.ts +0 -1
  3. package/dist/adminapi/models/index.d.ts.map +1 -1
  4. package/dist/adminapi/models/index.js +0 -1
  5. package/dist/adminapi/models/index.js.map +1 -1
  6. package/dist/adminapi/models/instance-template-create.d.ts +1 -7
  7. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  8. package/dist/adminapi/models/instance-template-op.d.ts +0 -1
  9. package/dist/adminapi/models/instance-template-op.d.ts.map +1 -1
  10. package/dist/adminapi/models/instance-template-op.js +0 -1
  11. package/dist/adminapi/models/instance-template-op.js.map +1 -1
  12. package/dist/adminapi/models/instance-template-overlay-field.d.ts +0 -1
  13. package/dist/adminapi/models/instance-template-overlay-field.d.ts.map +1 -1
  14. package/dist/adminapi/models/instance-template-overlay-field.js +0 -1
  15. package/dist/adminapi/models/instance-template-overlay-field.js.map +1 -1
  16. package/dist/adminapi/models/mode-component-instance-template.d.ts +3 -3
  17. package/dist/adminapi/models/ops-hscale.d.ts +1 -1
  18. package/dist/adminapi/models/ops-vscale.d.ts +1 -8
  19. package/dist/adminapi/models/ops-vscale.d.ts.map +1 -1
  20. package/dist/openapi/models/component-item-create.d.ts +1 -1
  21. package/dist/openapi/models/index.d.ts +0 -1
  22. package/dist/openapi/models/index.d.ts.map +1 -1
  23. package/dist/openapi/models/index.js +0 -1
  24. package/dist/openapi/models/index.js.map +1 -1
  25. package/dist/openapi/models/instance-template-create.d.ts +1 -7
  26. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  27. package/dist/openapi/models/instance-template-op.d.ts +0 -1
  28. package/dist/openapi/models/instance-template-op.d.ts.map +1 -1
  29. package/dist/openapi/models/instance-template-op.js +0 -1
  30. package/dist/openapi/models/instance-template-op.js.map +1 -1
  31. package/dist/openapi/models/instance-template-overlay-field.d.ts +0 -1
  32. package/dist/openapi/models/instance-template-overlay-field.d.ts.map +1 -1
  33. package/dist/openapi/models/instance-template-overlay-field.js +0 -1
  34. package/dist/openapi/models/instance-template-overlay-field.js.map +1 -1
  35. package/dist/openapi/models/mode-component-instance-template.d.ts +3 -3
  36. package/dist/openapi/models/ops-hscale.d.ts +1 -1
  37. package/dist/openapi/models/ops-vscale.d.ts +1 -8
  38. package/dist/openapi/models/ops-vscale.d.ts.map +1 -1
  39. package/package.json +1 -1
  40. package/src/adminapi/.openapi-generator/FILES +0 -1
  41. package/src/adminapi/models/component-item-create.ts +1 -1
  42. package/src/adminapi/models/index.ts +0 -1
  43. package/src/adminapi/models/instance-template-create.ts +1 -7
  44. package/src/adminapi/models/instance-template-op.ts +0 -1
  45. package/src/adminapi/models/instance-template-overlay-field.ts +0 -1
  46. package/src/adminapi/models/mode-component-instance-template.ts +3 -3
  47. package/src/adminapi/models/ops-hscale.ts +1 -1
  48. package/src/adminapi/models/ops-vscale.ts +1 -10
  49. package/src/adminapi.yaml +9 -37
  50. package/src/openapi/.openapi-generator/FILES +0 -1
  51. package/src/openapi/models/component-item-create.ts +1 -1
  52. package/src/openapi/models/index.ts +0 -1
  53. package/src/openapi/models/instance-template-create.ts +1 -7
  54. package/src/openapi/models/instance-template-op.ts +0 -1
  55. package/src/openapi/models/instance-template-overlay-field.ts +0 -1
  56. package/src/openapi/models/mode-component-instance-template.ts +3 -3
  57. package/src/openapi/models/ops-hscale.ts +1 -1
  58. package/src/openapi/models/ops-vscale.ts +1 -10
  59. package/src/openapi.yaml +9 -37
  60. package/dist/adminapi/models/instance-template-vscale.d.ts +0 -31
  61. package/dist/adminapi/models/instance-template-vscale.d.ts.map +0 -1
  62. package/dist/adminapi/models/instance-template-vscale.js +0 -16
  63. package/dist/adminapi/models/instance-template-vscale.js.map +0 -1
  64. package/dist/openapi/models/instance-template-vscale.d.ts +0 -31
  65. package/dist/openapi/models/instance-template-vscale.d.ts.map +0 -1
  66. package/dist/openapi/models/instance-template-vscale.js +0 -16
  67. package/dist/openapi/models/instance-template-vscale.js.map +0 -1
  68. package/src/adminapi/models/instance-template-vscale.ts +0 -36
  69. package/src/openapi/models/instance-template-vscale.ts +0 -36
package/src/openapi.yaml CHANGED
@@ -24612,7 +24612,7 @@ components:
24612
24612
  instanceTemplateCreate:
24613
24613
  type: object
24614
24614
  description: |
24615
- Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, annotations, and labels are optional overlays; omitted fields inherit the component. Node group is cluster-level. Volume sizes are defined once on the component and copied onto each template. The request list fully replaces chart instances.
24615
+ Create assignment for one instance template. name and replicas are required. storageClass, availabilityZone, env, annotations, and labels are optional overlays; omitted fields inherit the component. Node group is cluster-level. Class and volume sizes are defined once on the component and copied onto each template. The request list fully replaces chart instances.
24616
24616
  required:
24617
24617
  - name
24618
24618
  - replicas
@@ -24625,9 +24625,6 @@ components:
24625
24625
  type: integer
24626
24626
  minimum: 1
24627
24627
  description: Replica count for this instance template.
24628
- classCode:
24629
- type: string
24630
- description: Class code for this template. Omit to inherit the component classCode.
24631
24628
  storageClass:
24632
24629
  type: string
24633
24630
  description: StorageClass for this template. Omit to inherit the component storageClass.
@@ -24738,7 +24735,7 @@ components:
24738
24735
  instanceTemplates:
24739
24736
  type: array
24740
24737
  minItems: 1
24741
- description: Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations, labels). Node group is cluster-level and inherited. Required when the engine option declares instanceTemplate. Request instances fully replace the Helm chart instances list. Names must be in instanceTemplate.names. Component replicas must equal the sum of these replica counts.
24738
+ description: Per-template replicas and optional overlays (storageClass, availabilityZone, env, annotations, labels). Node group is cluster-level and inherited. Required when the engine option declares instanceTemplate. Request instances fully replace the Helm chart instances list. Names must be in instanceTemplate.names. Component replicas must equal the sum of these replica counts.
24742
24739
  items:
24743
24740
  $ref: '#/components/schemas/instanceTemplateCreate'
24744
24741
  availabilityZone:
@@ -25682,7 +25679,7 @@ components:
25682
25679
  instanceTemplates:
25683
25680
  type: array
25684
25681
  minItems: 1
25685
- description: Target replica count for named instance templates. If set, KB ops include scaleIn/scaleOut.instances for those names; if omitted, component-level replicaChanges/shards are used with no Instances. Works on sharding components. Top-level replicas and shards do not override these counts. Names must be unique and declared.
25682
+ description: Target replica count for named instance templates. If set, KB ops include scaleIn/scaleOut.instances for those names. Top-level replicas is component-level and is applied together (not dropped). Names must be unique and declared.
25686
25683
  items:
25687
25684
  $ref: '#/components/schemas/instanceTemplateReplicas'
25688
25685
  onlineInstancesToOffline:
@@ -26629,21 +26626,6 @@ components:
26629
26626
  - volumes
26630
26627
  - component
26631
26628
  type: object
26632
- instanceTemplateVScale:
26633
- type: object
26634
- description: VScale assignment for one instance template. name and classCode are required.
26635
- required:
26636
- - name
26637
- - classCode
26638
- properties:
26639
- name:
26640
- type: string
26641
- minLength: 1
26642
- description: Instance template name declared on the engine option.
26643
- classCode:
26644
- type: string
26645
- minLength: 1
26646
- description: Class code to apply to this instance template.
26647
26629
  opsVScale:
26648
26630
  description: OpsVScale is the payload to vertically scale a KubeBlocks cluster
26649
26631
  required:
@@ -26660,16 +26642,8 @@ components:
26660
26642
  description: memory size
26661
26643
  type: string
26662
26644
  classCode:
26663
- description: |
26664
- Class code for the component-level VerticalScaling resources. Does not override instanceTemplates[].classCode. Required when instanceTemplates is omitted. When both are set, KB ops fill component resources and per-template Instances together.
26645
+ description: Class code for component-level vertical scaling.
26665
26646
  type: string
26666
- instanceTemplates:
26667
- type: array
26668
- minItems: 1
26669
- items:
26670
- $ref: '#/components/schemas/instanceTemplateVScale'
26671
- description: Per-template classCode assignments. If set, KB VerticalScaling includes instances[] for those names; if omitted, only component resources are set. Each item sets name and classCode independently. Top-level classCode does not replace these values.
26672
- nullable: true
26673
26647
  schedule:
26674
26648
  $ref: '#/components/schemas/taskSchedule'
26675
26649
  type: object
@@ -31863,13 +31837,11 @@ components:
31863
31837
  type: string
31864
31838
  description: Operation that can be declared on instanceTemplate.ops.
31865
31839
  enum:
31866
- - vscale
31867
31840
  - hscale
31868
31841
  instanceTemplateOverlayField:
31869
31842
  type: string
31870
31843
  description: Overlay field the frontend may render on an instance template.
31871
31844
  enum:
31872
- - classCode
31873
31845
  - storageClass
31874
31846
  - availabilityZone
31875
31847
  - env
@@ -31922,8 +31894,9 @@ components:
31922
31894
  Declares instance-template support for this mode component.
31923
31895
  Create requires instanceTemplates for every declared name; component
31924
31896
  replicas must equal the sum of those replica counts.
31925
- HScale/vscale: if instanceTemplates names are set, KB ops include
31926
- per-instance config; if omitted, only the component-level fields are set.
31897
+ HScale: if instanceTemplates names are set, KB ops include per-instance
31898
+ replicaChanges; if omitted, only component-level fields are set.
31899
+ VScale is component-level only (no per-template class).
31927
31900
  The platform does not even-split or fill in missing templates.
31928
31901
  Instance online/offline can be set together with instanceTemplates.
31929
31902
  When absent, the component uses component-level operations.
@@ -31947,8 +31920,7 @@ components:
31947
31920
  items:
31948
31921
  $ref: '#/components/schemas/instanceTemplateOp'
31949
31922
  description: |
31950
- Operations supported via instance templates.
31951
- Valid values: "vscale" (vertical scaling), "hscale" (horizontal scaling).
31923
+ Operations supported via instance templates. Currently only hscale.
31952
31924
  fields:
31953
31925
  type: array
31954
31926
  uniqueItems: true
@@ -31957,7 +31929,7 @@ components:
31957
31929
  description: |
31958
31930
  Overlay fields the frontend should render on each instance template.
31959
31931
  Omitted or empty means only name and replicas. Request fields not
31960
- listed here are rejected. Includes classCode, storageClass,
31932
+ listed here are rejected. Includes storageClass,
31961
31933
  availabilityZone, env, annotations, labels.
31962
31934
  env:
31963
31935
  type: array
@@ -1,31 +0,0 @@
1
- /**
2
- * Admin API
3
- * The Admin API is used to manage the ApeCloud platform.
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: support@apecloud.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- * VScale assignment for one instance template. name and classCode are required.
14
- * @export
15
- * @interface InstanceTemplateVScale
16
- */
17
- export interface InstanceTemplateVScale {
18
- /**
19
- * Instance template name declared on the engine option.
20
- * @type {string}
21
- * @memberof InstanceTemplateVScale
22
- */
23
- 'name': string;
24
- /**
25
- * Class code to apply to this instance template.
26
- * @type {string}
27
- * @memberof InstanceTemplateVScale
28
- */
29
- 'classCode': string;
30
- }
31
- //# sourceMappingURL=instance-template-vscale.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance-template-vscale.d.ts","sourceRoot":"","sources":["../../../src/adminapi/models/instance-template-vscale.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Admin API
6
- * The Admin API is used to manage the ApeCloud platform.
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: support@apecloud.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- //# sourceMappingURL=instance-template-vscale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance-template-vscale.js","sourceRoot":"","sources":["../../../src/adminapi/models/instance-template-vscale.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -1,31 +0,0 @@
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
- * VScale assignment for one instance template. name and classCode are required.
14
- * @export
15
- * @interface InstanceTemplateVScale
16
- */
17
- export interface InstanceTemplateVScale {
18
- /**
19
- * Instance template name declared on the engine option.
20
- * @type {string}
21
- * @memberof InstanceTemplateVScale
22
- */
23
- 'name': string;
24
- /**
25
- * Class code to apply to this instance template.
26
- * @type {string}
27
- * @memberof InstanceTemplateVScale
28
- */
29
- 'classCode': string;
30
- }
31
- //# sourceMappingURL=instance-template-vscale.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance-template-vscale.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-vscale.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB"}
@@ -1,16 +0,0 @@
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
- //# sourceMappingURL=instance-template-vscale.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"instance-template-vscale.js","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-vscale.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -1,36 +0,0 @@
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
- * VScale assignment for one instance template. name and classCode are required.
19
- * @export
20
- * @interface InstanceTemplateVScale
21
- */
22
- export interface InstanceTemplateVScale {
23
- /**
24
- * Instance template name declared on the engine option.
25
- * @type {string}
26
- * @memberof InstanceTemplateVScale
27
- */
28
- 'name': string;
29
- /**
30
- * Class code to apply to this instance template.
31
- * @type {string}
32
- * @memberof InstanceTemplateVScale
33
- */
34
- 'classCode': string;
35
- }
36
-
@@ -1,36 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * KubeBlocks Cloud API
5
- * 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.
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
- * VScale assignment for one instance template. name and classCode are required.
19
- * @export
20
- * @interface InstanceTemplateVScale
21
- */
22
- export interface InstanceTemplateVScale {
23
- /**
24
- * Instance template name declared on the engine option.
25
- * @type {string}
26
- * @memberof InstanceTemplateVScale
27
- */
28
- 'name': string;
29
- /**
30
- * Class code to apply to this instance template.
31
- * @type {string}
32
- * @memberof InstanceTemplateVScale
33
- */
34
- 'classCode': string;
35
- }
36
-