kb-cloud-client-typescript 2.3.60 → 2.3.62

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 (68) hide show
  1. package/dist/adminapi/models/component-item-create.d.ts +8 -0
  2. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  3. package/dist/adminapi/models/component-item.d.ts +8 -0
  4. package/dist/adminapi/models/component-item.d.ts.map +1 -1
  5. package/dist/adminapi/models/component-option.d.ts +6 -0
  6. package/dist/adminapi/models/component-option.d.ts.map +1 -1
  7. package/dist/adminapi/models/index.d.ts +1 -0
  8. package/dist/adminapi/models/index.d.ts.map +1 -1
  9. package/dist/adminapi/models/index.js +1 -0
  10. package/dist/adminapi/models/index.js.map +1 -1
  11. package/dist/adminapi/models/static-cluster-component.d.ts +43 -0
  12. package/dist/adminapi/models/static-cluster-component.d.ts.map +1 -0
  13. package/dist/adminapi/models/static-cluster-component.js +16 -0
  14. package/dist/adminapi/models/static-cluster-component.js.map +1 -0
  15. package/dist/adminapi/models/static-cluster.d.ts +4 -15
  16. package/dist/adminapi/models/static-cluster.d.ts.map +1 -1
  17. package/dist/internalapi/api.d.ts +1 -0
  18. package/dist/internalapi/api.d.ts.map +1 -1
  19. package/dist/internalapi/api.js +1 -0
  20. package/dist/internalapi/api.js.map +1 -1
  21. package/dist/internalapi/apis/victoria-logs-cluster-api.d.ts +113 -0
  22. package/dist/internalapi/apis/victoria-logs-cluster-api.d.ts.map +1 -0
  23. package/dist/internalapi/apis/victoria-logs-cluster-api.js +135 -0
  24. package/dist/internalapi/apis/victoria-logs-cluster-api.js.map +1 -0
  25. package/dist/internalapi/apis/victoria-metrics-cluster-api.d.ts +11 -2
  26. package/dist/internalapi/apis/victoria-metrics-cluster-api.d.ts.map +1 -1
  27. package/dist/internalapi/apis/victoria-metrics-cluster-api.js +9 -5
  28. package/dist/internalapi/apis/victoria-metrics-cluster-api.js.map +1 -1
  29. package/dist/internalapi/models/component-item.d.ts +8 -0
  30. package/dist/internalapi/models/component-item.d.ts.map +1 -1
  31. package/dist/internalapi/models/index.d.ts +1 -0
  32. package/dist/internalapi/models/index.d.ts.map +1 -1
  33. package/dist/internalapi/models/index.js +1 -0
  34. package/dist/internalapi/models/index.js.map +1 -1
  35. package/dist/internalapi/models/static-cluster-component.d.ts +43 -0
  36. package/dist/internalapi/models/static-cluster-component.d.ts.map +1 -0
  37. package/dist/internalapi/models/static-cluster-component.js +16 -0
  38. package/dist/internalapi/models/static-cluster-component.js.map +1 -0
  39. package/dist/internalapi/models/static-cluster.d.ts +4 -15
  40. package/dist/internalapi/models/static-cluster.d.ts.map +1 -1
  41. package/dist/openapi/models/component-item-create.d.ts +8 -0
  42. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  43. package/dist/openapi/models/component-item.d.ts +8 -0
  44. package/dist/openapi/models/component-item.d.ts.map +1 -1
  45. package/dist/openapi/models/component-option.d.ts +6 -0
  46. package/dist/openapi/models/component-option.d.ts.map +1 -1
  47. package/package.json +1 -1
  48. package/src/adminapi/.openapi-generator/FILES +1 -0
  49. package/src/adminapi/models/component-item-create.ts +6 -0
  50. package/src/adminapi/models/component-item.ts +6 -0
  51. package/src/adminapi/models/component-option.ts +6 -0
  52. package/src/adminapi/models/index.ts +1 -0
  53. package/src/adminapi/models/static-cluster-component.ts +48 -0
  54. package/src/adminapi/models/static-cluster.ts +6 -15
  55. package/src/adminapi.yaml +43 -10
  56. package/src/internalapi/.openapi-generator/FILES +2 -0
  57. package/src/internalapi/api.ts +1 -0
  58. package/src/internalapi/apis/victoria-logs-cluster-api.ts +183 -0
  59. package/src/internalapi/apis/victoria-metrics-cluster-api.ts +19 -5
  60. package/src/internalapi/models/component-item.ts +6 -0
  61. package/src/internalapi/models/index.ts +1 -0
  62. package/src/internalapi/models/static-cluster-component.ts +48 -0
  63. package/src/internalapi/models/static-cluster.ts +6 -15
  64. package/src/internalapi.yaml +72 -8
  65. package/src/openapi/models/component-item-create.ts +6 -0
  66. package/src/openapi/models/component-item.ts +6 -0
  67. package/src/openapi/models/component-option.ts +6 -0
  68. package/src/openapi.yaml +14 -0
@@ -425,6 +425,12 @@ paths:
425
425
  required: true
426
426
  schema:
427
427
  type: string
428
+ requestBody:
429
+ description: Optional per-component resources. Omitted components keep installer defaults.
430
+ content:
431
+ application/json:
432
+ schema:
433
+ $ref: '#/components/schemas/staticCluster'
428
434
  responses:
429
435
  '200':
430
436
  description: OK
@@ -432,6 +438,8 @@ paths:
432
438
  application/json:
433
439
  schema:
434
440
  $ref: '#/components/schemas/cluster'
441
+ '400':
442
+ $ref: '#/components/responses/400'
435
443
  '401':
436
444
  $ref: '#/components/responses/401'
437
445
  '404':
@@ -459,6 +467,38 @@ paths:
459
467
  $ref: '#/components/responses/403'
460
468
  tags:
461
469
  - cluster
470
+ /internal/v1/environments/{environmentName}/victoriaLogsCluster:
471
+ post:
472
+ tags:
473
+ - victoriaLogsCluster
474
+ summary: Create VictoriaLogs cluster
475
+ description: Create VictoriaLogs with optional per-component resources. Omitted components keep installer defaults.
476
+ operationId: createVictoriaLogsCluster
477
+ parameters:
478
+ - description: name of the environment
479
+ in: path
480
+ name: environmentName
481
+ required: true
482
+ schema:
483
+ type: string
484
+ requestBody:
485
+ content:
486
+ application/json:
487
+ schema:
488
+ $ref: '#/components/schemas/staticCluster'
489
+ responses:
490
+ '200':
491
+ description: OK
492
+ content:
493
+ application/json:
494
+ schema:
495
+ $ref: '#/components/schemas/cluster'
496
+ '400':
497
+ $ref: '#/components/responses/400'
498
+ '401':
499
+ $ref: '#/components/responses/401'
500
+ '404':
501
+ $ref: '#/components/responses/404'
462
502
  /internal/v1/organizations/{orgName}/clusters:
463
503
  get:
464
504
  tags:
@@ -1218,20 +1258,39 @@ components:
1218
1258
  description: the tags for the storage
1219
1259
  additionalProperties:
1220
1260
  type: string
1221
- staticCluster:
1261
+ staticClusterComponent:
1262
+ type: object
1263
+ required:
1264
+ - component
1222
1265
  properties:
1266
+ component:
1267
+ type: string
1268
+ minLength: 1
1269
+ description: Exact component name supported by the selected engine during environment installation. Each component may appear only once.
1223
1270
  replicas:
1224
- title: Replicas
1225
1271
  type: integer
1226
- description: the number of replicas
1227
- storage:
1228
- title: Storage(Gi)
1272
+ format: int64
1273
+ nullable: true
1229
1274
  minimum: 1
1230
- type: number
1231
- description: Storage size, the unit is Gi.
1232
- format: double
1275
+ description: Number of replicas. Omit to keep the installer default.
1233
1276
  classCode:
1234
1277
  type: string
1278
+ description: Resource class for this exact engine, mode and component. Omit to keep the installer default.
1279
+ storage:
1280
+ type: number
1281
+ format: double
1282
+ nullable: true
1283
+ minimum: 1
1284
+ description: Disk capacity in Gi. Only vm-storage, vlstorage and minio accept this field.
1285
+ staticCluster:
1286
+ type: object
1287
+ properties:
1288
+ components:
1289
+ type: array
1290
+ maxItems: 3
1291
+ description: Optional component overrides. Unknown, duplicate or other-engine components are rejected.
1292
+ items:
1293
+ $ref: '#/components/schemas/staticClusterComponent'
1235
1294
  environmentStorage:
1236
1295
  type: object
1237
1296
  description: Storage config
@@ -1442,6 +1501,11 @@ components:
1442
1501
  additionalProperties:
1443
1502
  type: string
1444
1503
  description: User-provided component annotations. Does not include chart defaults or system-generated values.
1504
+ labels:
1505
+ type: object
1506
+ additionalProperties:
1507
+ type: string
1508
+ description: User-provided component labels. Does not include chart defaults or system-generated values.
1445
1509
  nodeGroup:
1446
1510
  type: string
1447
1511
  description: Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
@@ -35,6 +35,12 @@ export interface ComponentItemCreate {
35
35
  * @memberof ComponentItemCreate
36
36
  */
37
37
  'annotations'?: { [key: string]: string; };
38
+ /**
39
+ * User-provided component labels, merged over chart defaults. Key prefixes before / matching kubeblocks.io, kubernetes.io, k8s.io or any of their subdomains are reserved. Keys and values must satisfy Kubernetes label syntax. Omitted or empty preserves defaults; empty string values are literal values, not deletions.
40
+ * @type {{ [key: string]: string; }}
41
+ * @memberof ComponentItemCreate
42
+ */
43
+ 'labels'?: { [key: string]: string; };
38
44
  /**
39
45
  * Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
40
46
  * @type {string}
@@ -35,6 +35,12 @@ export interface ComponentItem {
35
35
  * @memberof ComponentItem
36
36
  */
37
37
  'annotations'?: { [key: string]: string; };
38
+ /**
39
+ * User-provided component labels. Does not include chart defaults or system-generated values.
40
+ * @type {{ [key: string]: string; }}
41
+ * @memberof ComponentItem
42
+ */
43
+ 'labels'?: { [key: string]: string; };
38
44
  /**
39
45
  * Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
40
46
  * @type {string}
@@ -86,6 +86,12 @@ export interface ComponentOption {
86
86
  * @memberof ComponentOption
87
87
  */
88
88
  'customAnnotations'?: boolean;
89
+ /**
90
+ * Whether to show the component labels editor during cluster creation. Omitted or false hides the editor. This is a UI visibility hint and does not restrict the cluster creation API. Applies to this component in every engine mode, including sharding templates, on KubeBlocks 0.9 and 1.0.
91
+ * @type {boolean}
92
+ * @memberof ComponentOption
93
+ */
94
+ 'customLabels'?: boolean;
89
95
  /**
90
96
  * whether the component supports custom secret
91
97
  * @type {boolean}
package/src/openapi.yaml CHANGED
@@ -26770,6 +26770,11 @@ components:
26770
26770
  additionalProperties:
26771
26771
  type: string
26772
26772
  description: User-provided component annotations, merged over chart defaults. Platform-managed keys cannot be overridden. Omitted or empty preserves defaults; empty string values are literal values, not deletions.
26773
+ labels:
26774
+ type: object
26775
+ additionalProperties:
26776
+ type: string
26777
+ description: User-provided component labels, merged over chart defaults. Key prefixes before / matching kubeblocks.io, kubernetes.io, k8s.io or any of their subdomains are reserved. Keys and values must satisfy Kubernetes label syntax. Omitted or empty preserves defaults; empty string values are literal values, not deletions.
26773
26778
  nodeGroup:
26774
26779
  type: string
26775
26780
  description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
@@ -27106,6 +27111,11 @@ components:
27106
27111
  additionalProperties:
27107
27112
  type: string
27108
27113
  description: User-provided component annotations. Does not include chart defaults or system-generated values.
27114
+ labels:
27115
+ type: object
27116
+ additionalProperties:
27117
+ type: string
27118
+ description: User-provided component labels. Does not include chart defaults or system-generated values.
27109
27119
  nodeGroup:
27110
27120
  type: string
27111
27121
  description: Optional host group in this environment. Explicit placement does not inherit an upper-level host group.
@@ -34083,6 +34093,10 @@ components:
34083
34093
  type: boolean
34084
34094
  description: Whether to show the component annotations editor during cluster creation. Omitted or false hides the editor. This is a UI visibility hint and does not restrict the cluster creation API. Applies to this component in every engine mode, including sharding templates, on KubeBlocks 0.9 and 1.0.
34085
34095
  x-nullable: false
34096
+ customLabels:
34097
+ type: boolean
34098
+ description: Whether to show the component labels editor during cluster creation. Omitted or false hides the editor. This is a UI visibility hint and does not restrict the cluster creation API. Applies to this component in every engine mode, including sharding templates, on KubeBlocks 0.9 and 1.0.
34099
+ x-nullable: false
34086
34100
  customSecret:
34087
34101
  type: boolean
34088
34102
  description: whether the component supports custom secret