kb-cloud-client-typescript 2.3.47 → 2.3.48

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 (85) hide show
  1. package/dist/adminapi/models/component-item-create.d.ts +12 -0
  2. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  3. package/dist/adminapi/models/component-item.d.ts +19 -0
  4. package/dist/adminapi/models/component-item.d.ts.map +1 -1
  5. package/dist/adminapi/models/index.d.ts +1 -0
  6. package/dist/adminapi/models/index.d.ts.map +1 -1
  7. package/dist/adminapi/models/index.js +1 -0
  8. package/dist/adminapi/models/index.js.map +1 -1
  9. package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
  10. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
  11. package/dist/adminapi/models/instance-template-attribute.js +0 -1
  12. package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
  13. package/dist/adminapi/models/instance-template-create.d.ts +9 -3
  14. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  15. package/dist/adminapi/models/instance.d.ts +6 -0
  16. package/dist/adminapi/models/instance.d.ts.map +1 -1
  17. package/dist/adminapi/models/mode-option.d.ts +7 -0
  18. package/dist/adminapi/models/mode-option.d.ts.map +1 -1
  19. package/dist/adminapi/models/placement-scope.d.ts +22 -0
  20. package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
  21. package/dist/adminapi/models/placement-scope.js +26 -0
  22. package/dist/adminapi/models/placement-scope.js.map +1 -0
  23. package/dist/internalapi/models/component-item.d.ts +19 -0
  24. package/dist/internalapi/models/component-item.d.ts.map +1 -1
  25. package/dist/internalapi/models/index.d.ts +2 -0
  26. package/dist/internalapi/models/index.d.ts.map +1 -1
  27. package/dist/internalapi/models/index.js +2 -0
  28. package/dist/internalapi/models/index.js.map +1 -1
  29. package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
  30. package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  31. package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
  32. package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
  33. package/dist/internalapi/models/instance-template-create.d.ts +72 -0
  34. package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
  35. package/dist/internalapi/models/instance-template-create.js +16 -0
  36. package/dist/internalapi/models/instance-template-create.js.map +1 -0
  37. package/dist/openapi/models/component-item-create.d.ts +12 -0
  38. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  39. package/dist/openapi/models/component-item.d.ts +19 -0
  40. package/dist/openapi/models/component-item.d.ts.map +1 -1
  41. package/dist/openapi/models/index.d.ts +1 -0
  42. package/dist/openapi/models/index.d.ts.map +1 -1
  43. package/dist/openapi/models/index.js +1 -0
  44. package/dist/openapi/models/index.js.map +1 -1
  45. package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
  46. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
  47. package/dist/openapi/models/instance-template-attribute.js +0 -1
  48. package/dist/openapi/models/instance-template-attribute.js.map +1 -1
  49. package/dist/openapi/models/instance-template-create.d.ts +9 -3
  50. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  51. package/dist/openapi/models/instance.d.ts +6 -0
  52. package/dist/openapi/models/instance.d.ts.map +1 -1
  53. package/dist/openapi/models/mode-option.d.ts +7 -0
  54. package/dist/openapi/models/mode-option.d.ts.map +1 -1
  55. package/dist/openapi/models/placement-scope.d.ts +22 -0
  56. package/dist/openapi/models/placement-scope.d.ts.map +1 -0
  57. package/dist/openapi/models/placement-scope.js +26 -0
  58. package/dist/openapi/models/placement-scope.js.map +1 -0
  59. package/package.json +1 -1
  60. package/src/adminapi/.openapi-generator/FILES +1 -0
  61. package/src/adminapi/models/component-item-create.ts +12 -0
  62. package/src/adminapi/models/component-item.ts +21 -0
  63. package/src/adminapi/models/index.ts +1 -0
  64. package/src/adminapi/models/instance-template-attribute.ts +0 -1
  65. package/src/adminapi/models/instance-template-create.ts +9 -3
  66. package/src/adminapi/models/instance.ts +6 -0
  67. package/src/adminapi/models/mode-option.ts +9 -0
  68. package/src/adminapi/models/placement-scope.ts +31 -0
  69. package/src/adminapi.yaml +35 -5
  70. package/src/internalapi/.openapi-generator/FILES +2 -0
  71. package/src/internalapi/models/component-item.ts +21 -0
  72. package/src/internalapi/models/index.ts +2 -0
  73. package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
  74. package/src/internalapi/models/instance-template-create.ts +75 -0
  75. package/src/internalapi.yaml +62 -0
  76. package/src/openapi/.openapi-generator/FILES +1 -0
  77. package/src/openapi/models/component-item-create.ts +12 -0
  78. package/src/openapi/models/component-item.ts +21 -0
  79. package/src/openapi/models/index.ts +1 -0
  80. package/src/openapi/models/instance-template-attribute.ts +0 -1
  81. package/src/openapi/models/instance-template-create.ts +9 -3
  82. package/src/openapi/models/instance.ts +6 -0
  83. package/src/openapi/models/mode-option.ts +9 -0
  84. package/src/openapi/models/placement-scope.ts +31 -0
  85. package/src/openapi.yaml +35 -5
@@ -0,0 +1,31 @@
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
+ * UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const PlacementScope = {
24
+ cluster: 'cluster',
25
+ component: 'component'
26
+ } as const;
27
+
28
+ export type PlacementScope = typeof PlacementScope[keyof typeof PlacementScope];
29
+
30
+
31
+
package/src/openapi.yaml CHANGED
@@ -25519,12 +25519,14 @@ components:
25519
25519
  instanceTemplateCreate:
25520
25520
  type: object
25521
25521
  additionalProperties: false
25522
- description: |
25523
- Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, and storageClass are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once. A template with an explicit zone uses single-zone scheduling: hostname anti-affinity follows the scheduling policy, while explicit rules and additional topology keys are preserved. Component scheduling remains unchanged; templates without a zone inherit it, including its zone anti-affinity constraints. Chart instance scheduling policies are cleared; an omitted or empty availabilityZone leaves the instance policy unset to inherit the component policy.
25522
+ description: Create assignment for one instance template. name and replicas are required. env, annotations, labels, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
25524
25523
  required:
25525
25524
  - name
25526
25525
  - replicas
25527
25526
  properties:
25527
+ nodeGroup:
25528
+ type: string
25529
+ description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
25528
25530
  name:
25529
25531
  type: string
25530
25532
  minLength: 1
@@ -25535,7 +25537,7 @@ components:
25535
25537
  description: Replica count for this instance template.
25536
25538
  availabilityZone:
25537
25539
  type: string
25538
- description: Availability zone for this template (topology.kubernetes.io/zone); omitted or empty inherits the component zone selection. Must be enabled in the environment. If the request explicitly supplies a non-empty cluster availabilityZones list, the template zone must also belong to that list.
25540
+ description: Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
25539
25541
  storageClass:
25540
25542
  type: string
25541
25543
  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.
@@ -25563,7 +25565,7 @@ components:
25563
25565
  type: object
25564
25566
  additionalProperties:
25565
25567
  type: string
25566
- description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
25568
+ 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.
25567
25569
  ioQuantity:
25568
25570
  description: IO Quantity describes IOPS and BPS of a volume
25569
25571
  properties:
@@ -25631,6 +25633,12 @@ components:
25631
25633
  required:
25632
25634
  - component
25633
25635
  properties:
25636
+ nodeGroup:
25637
+ type: string
25638
+ description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
25639
+ availabilityZone:
25640
+ type: string
25641
+ description: Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
25634
25642
  component:
25635
25643
  type: string
25636
25644
  description: component type, refer to componentDef and support NamePrefix
@@ -25956,6 +25964,18 @@ components:
25956
25964
  type: object
25957
25965
  description: ComponentItem is the information of a component
25958
25966
  properties:
25967
+ nodeGroup:
25968
+ type: string
25969
+ description: Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
25970
+ availabilityZone:
25971
+ type: string
25972
+ description: Explicit component AZ selection, if configured.
25973
+ instanceTemplates:
25974
+ type: array
25975
+ x-omitempty: true
25976
+ description: Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
25977
+ items:
25978
+ $ref: '#/components/schemas/instanceTemplateCreate'
25959
25979
  name:
25960
25980
  type: string
25961
25981
  description: component name
@@ -26301,6 +26321,9 @@ components:
26301
26321
  componentDef:
26302
26322
  description: ComponentDefinition name
26303
26323
  type: string
26324
+ instanceTemplate:
26325
+ description: Instance template name within the actual component. Omitted when no template identity is available.
26326
+ type: string
26304
26327
  component:
26305
26328
  description: component type, refer to componentDef and support NamePrefix
26306
26329
  type: string
@@ -32913,6 +32936,12 @@ components:
32913
32936
  type: boolean
32914
32937
  description: whether the component supports custom secret
32915
32938
  x-nullable: false
32939
+ placementScope:
32940
+ type: string
32941
+ description: UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
32942
+ enum:
32943
+ - cluster
32944
+ - component
32916
32945
  modeCompatibleKubeblocksVersion:
32917
32946
  type: string
32918
32947
  description: |
@@ -32934,7 +32963,6 @@ components:
32934
32963
  - env
32935
32964
  - annotations
32936
32965
  - labels
32937
- - availabilityZone
32938
32966
  - storageClass
32939
32967
  instanceTemplateEnv:
32940
32968
  type: object
@@ -33310,6 +33338,8 @@ components:
33310
33338
  - description
33311
33339
  - components
33312
33340
  properties:
33341
+ placementScope:
33342
+ $ref: '#/components/schemas/placementScope'
33313
33343
  name:
33314
33344
  type: string
33315
33345
  title: