kb-cloud-client-typescript 2.4.0-alpha.65 → 2.4.0-alpha.67

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 (146) hide show
  1. package/dist/adminapi/apis/environment-api.d.ts +95 -0
  2. package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/environment-api.js +93 -0
  4. package/dist/adminapi/apis/environment-api.js.map +1 -1
  5. package/dist/adminapi/apis/parameter-template-api.d.ts +18 -10
  6. package/dist/adminapi/apis/parameter-template-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/parameter-template-api.js +16 -11
  8. package/dist/adminapi/apis/parameter-template-api.js.map +1 -1
  9. package/dist/adminapi/apis/vip-pool-api.d.ts +72 -0
  10. package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/vip-pool-api.js +80 -0
  12. package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
  13. package/dist/adminapi/models/cluster-create.d.ts +6 -0
  14. package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
  15. package/dist/adminapi/models/component-item-create.d.ts +8 -1
  16. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  17. package/dist/adminapi/models/engine-option-history.d.ts +5 -4
  18. package/dist/adminapi/models/engine-option-history.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.d.ts +8 -0
  20. package/dist/adminapi/models/index.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.js +8 -0
  22. package/dist/adminapi/models/index.js.map +1 -1
  23. package/dist/adminapi/models/instance-template-attribute.d.ts +23 -0
  24. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -0
  25. package/dist/adminapi/models/instance-template-attribute.js +27 -0
  26. package/dist/adminapi/models/instance-template-attribute.js.map +1 -0
  27. package/dist/adminapi/models/instance-template-create-env-inner.d.ts +31 -0
  28. package/dist/adminapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  29. package/dist/adminapi/models/instance-template-create-env-inner.js +16 -0
  30. package/dist/adminapi/models/instance-template-create-env-inner.js.map +1 -0
  31. package/dist/adminapi/models/instance-template-create.d.ts +54 -0
  32. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -0
  33. package/dist/adminapi/models/instance-template-create.js +16 -0
  34. package/dist/adminapi/models/instance-template-create.js.map +1 -0
  35. package/dist/adminapi/models/instance-template-env.d.ts +50 -0
  36. package/dist/adminapi/models/instance-template-env.d.ts.map +1 -0
  37. package/dist/adminapi/models/instance-template-env.js +16 -0
  38. package/dist/adminapi/models/instance-template-env.js.map +1 -0
  39. package/dist/adminapi/models/instance-template-op.d.ts +22 -0
  40. package/dist/adminapi/models/instance-template-op.d.ts.map +1 -0
  41. package/dist/adminapi/models/instance-template-op.js +26 -0
  42. package/dist/adminapi/models/instance-template-op.js.map +1 -0
  43. package/dist/adminapi/models/instance-template-replicas.d.ts +31 -0
  44. package/dist/adminapi/models/instance-template-replicas.d.ts.map +1 -0
  45. package/dist/adminapi/models/instance-template-replicas.js +16 -0
  46. package/dist/adminapi/models/instance-template-replicas.js.map +1 -0
  47. package/dist/adminapi/models/mode-component-instance-template.d.ts +46 -0
  48. package/dist/adminapi/models/mode-component-instance-template.d.ts.map +1 -0
  49. package/dist/adminapi/models/mode-component-instance-template.js +16 -0
  50. package/dist/adminapi/models/mode-component-instance-template.js.map +1 -0
  51. package/dist/adminapi/models/mode-component.d.ts +7 -0
  52. package/dist/adminapi/models/mode-component.d.ts.map +1 -1
  53. package/dist/adminapi/models/ops-hscale.d.ts +8 -1
  54. package/dist/adminapi/models/ops-hscale.d.ts.map +1 -1
  55. package/dist/adminapi/models/ops-vscale.d.ts +1 -1
  56. package/dist/adminapi/models/vip-pool-create.d.ts +6 -0
  57. package/dist/adminapi/models/vip-pool-create.d.ts.map +1 -1
  58. package/dist/adminapi/models/vip-pool-update.d.ts +25 -0
  59. package/dist/adminapi/models/vip-pool-update.d.ts.map +1 -0
  60. package/dist/adminapi/models/vip-pool-update.js +16 -0
  61. package/dist/adminapi/models/vip-pool-update.js.map +1 -0
  62. package/dist/adminapi/models/vip-pool.d.ts +12 -0
  63. package/dist/adminapi/models/vip-pool.d.ts.map +1 -1
  64. package/dist/openapi/models/cluster-create.d.ts +6 -0
  65. package/dist/openapi/models/cluster-create.d.ts.map +1 -1
  66. package/dist/openapi/models/component-item-create.d.ts +8 -1
  67. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  68. package/dist/openapi/models/index.d.ts +7 -0
  69. package/dist/openapi/models/index.d.ts.map +1 -1
  70. package/dist/openapi/models/index.js +7 -0
  71. package/dist/openapi/models/index.js.map +1 -1
  72. package/dist/openapi/models/instance-template-attribute.d.ts +23 -0
  73. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -0
  74. package/dist/openapi/models/instance-template-attribute.js +27 -0
  75. package/dist/openapi/models/instance-template-attribute.js.map +1 -0
  76. package/dist/openapi/models/instance-template-create-env-inner.d.ts +31 -0
  77. package/dist/openapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  78. package/dist/openapi/models/instance-template-create-env-inner.js +16 -0
  79. package/dist/openapi/models/instance-template-create-env-inner.js.map +1 -0
  80. package/dist/openapi/models/instance-template-create.d.ts +54 -0
  81. package/dist/openapi/models/instance-template-create.d.ts.map +1 -0
  82. package/dist/openapi/models/instance-template-create.js +16 -0
  83. package/dist/openapi/models/instance-template-create.js.map +1 -0
  84. package/dist/openapi/models/instance-template-env.d.ts +50 -0
  85. package/dist/openapi/models/instance-template-env.d.ts.map +1 -0
  86. package/dist/openapi/models/instance-template-env.js +16 -0
  87. package/dist/openapi/models/instance-template-env.js.map +1 -0
  88. package/dist/openapi/models/instance-template-op.d.ts +22 -0
  89. package/dist/openapi/models/instance-template-op.d.ts.map +1 -0
  90. package/dist/openapi/models/instance-template-op.js +26 -0
  91. package/dist/openapi/models/instance-template-op.js.map +1 -0
  92. package/dist/openapi/models/instance-template-replicas.d.ts +31 -0
  93. package/dist/openapi/models/instance-template-replicas.d.ts.map +1 -0
  94. package/dist/openapi/models/instance-template-replicas.js +16 -0
  95. package/dist/openapi/models/instance-template-replicas.js.map +1 -0
  96. package/dist/openapi/models/mode-component-instance-template.d.ts +46 -0
  97. package/dist/openapi/models/mode-component-instance-template.d.ts.map +1 -0
  98. package/dist/openapi/models/mode-component-instance-template.js +16 -0
  99. package/dist/openapi/models/mode-component-instance-template.js.map +1 -0
  100. package/dist/openapi/models/mode-component.d.ts +7 -0
  101. package/dist/openapi/models/mode-component.d.ts.map +1 -1
  102. package/dist/openapi/models/ops-hscale.d.ts +8 -1
  103. package/dist/openapi/models/ops-hscale.d.ts.map +1 -1
  104. package/dist/openapi/models/ops-vscale.d.ts +1 -1
  105. package/dist/openapi/models/vip-pool.d.ts +12 -0
  106. package/dist/openapi/models/vip-pool.d.ts.map +1 -1
  107. package/package.json +1 -1
  108. package/src/adminapi/.openapi-generator/FILES +8 -0
  109. package/src/adminapi/apis/environment-api.ts +155 -0
  110. package/src/adminapi/apis/parameter-template-api.ts +26 -13
  111. package/src/adminapi/apis/vip-pool-api.ts +128 -0
  112. package/src/adminapi/models/cluster-create.ts +6 -0
  113. package/src/adminapi/models/component-item-create.ts +10 -1
  114. package/src/adminapi/models/engine-option-history.ts +3 -6
  115. package/src/adminapi/models/index.ts +8 -0
  116. package/src/adminapi/models/instance-template-attribute.ts +32 -0
  117. package/src/adminapi/models/instance-template-create-env-inner.ts +36 -0
  118. package/src/adminapi/models/instance-template-create.ts +57 -0
  119. package/src/adminapi/models/instance-template-env.ts +57 -0
  120. package/src/adminapi/models/instance-template-op.ts +31 -0
  121. package/src/adminapi/models/instance-template-replicas.ts +36 -0
  122. package/src/adminapi/models/mode-component-instance-template.ts +57 -0
  123. package/src/adminapi/models/mode-component.ts +9 -0
  124. package/src/adminapi/models/ops-hscale.ts +10 -1
  125. package/src/adminapi/models/ops-vscale.ts +1 -1
  126. package/src/adminapi/models/vip-pool-create.ts +6 -0
  127. package/src/adminapi/models/vip-pool-update.ts +30 -0
  128. package/src/adminapi/models/vip-pool.ts +12 -0
  129. package/src/adminapi.yaml +369 -69
  130. package/src/internalapi.yaml +2 -4
  131. package/src/openapi/.openapi-generator/FILES +7 -0
  132. package/src/openapi/models/cluster-create.ts +6 -0
  133. package/src/openapi/models/component-item-create.ts +10 -1
  134. package/src/openapi/models/index.ts +7 -0
  135. package/src/openapi/models/instance-template-attribute.ts +32 -0
  136. package/src/openapi/models/instance-template-create-env-inner.ts +36 -0
  137. package/src/openapi/models/instance-template-create.ts +57 -0
  138. package/src/openapi/models/instance-template-env.ts +57 -0
  139. package/src/openapi/models/instance-template-op.ts +31 -0
  140. package/src/openapi/models/instance-template-replicas.ts +36 -0
  141. package/src/openapi/models/mode-component-instance-template.ts +57 -0
  142. package/src/openapi/models/mode-component.ts +9 -0
  143. package/src/openapi/models/ops-hscale.ts +10 -1
  144. package/src/openapi/models/ops-vscale.ts +1 -1
  145. package/src/openapi/models/vip-pool.ts +12 -0
  146. package/src/openapi.yaml +240 -62
package/src/adminapi.yaml CHANGED
@@ -116,7 +116,7 @@ paths:
116
116
  '404':
117
117
  $ref: '#/components/responses/404'
118
118
  '409':
119
- $ref: '#/components/responses/400'
119
+ $ref: '#/components/responses/409'
120
120
  '500':
121
121
  $ref: '#/components/responses/500'
122
122
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars:
@@ -159,7 +159,7 @@ paths:
159
159
  '404':
160
160
  $ref: '#/components/responses/404'
161
161
  '409':
162
- $ref: '#/components/responses/400'
162
+ $ref: '#/components/responses/409'
163
163
  '500':
164
164
  $ref: '#/components/responses/500'
165
165
  post:
@@ -208,9 +208,9 @@ paths:
208
208
  '404':
209
209
  $ref: '#/components/responses/404'
210
210
  '409':
211
- $ref: '#/components/responses/400'
211
+ $ref: '#/components/responses/409'
212
212
  '413':
213
- description: Upload exceeds the configured size limit
213
+ $ref: '#/components/responses/413'
214
214
  '500':
215
215
  $ref: '#/components/responses/500'
216
216
  requestBody:
@@ -274,7 +274,7 @@ paths:
274
274
  '404':
275
275
  $ref: '#/components/responses/404'
276
276
  '409':
277
- $ref: '#/components/responses/400'
277
+ $ref: '#/components/responses/409'
278
278
  '500':
279
279
  $ref: '#/components/responses/500'
280
280
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/download:
@@ -323,7 +323,7 @@ paths:
323
323
  '404':
324
324
  $ref: '#/components/responses/404'
325
325
  '409':
326
- $ref: '#/components/responses/400'
326
+ $ref: '#/components/responses/409'
327
327
  '500':
328
328
  $ref: '#/components/responses/500'
329
329
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/distribute:
@@ -371,7 +371,7 @@ paths:
371
371
  '404':
372
372
  $ref: '#/components/responses/404'
373
373
  '409':
374
- $ref: '#/components/responses/400'
374
+ $ref: '#/components/responses/409'
375
375
  '500':
376
376
  $ref: '#/components/responses/500'
377
377
  requestBody:
@@ -425,7 +425,7 @@ paths:
425
425
  '404':
426
426
  $ref: '#/components/responses/404'
427
427
  '409':
428
- $ref: '#/components/responses/400'
428
+ $ref: '#/components/responses/409'
429
429
  '500':
430
430
  $ref: '#/components/responses/500'
431
431
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/jars/{jarId}/archive:
@@ -469,7 +469,7 @@ paths:
469
469
  '404':
470
470
  $ref: '#/components/responses/404'
471
471
  '409':
472
- $ref: '#/components/responses/400'
472
+ $ref: '#/components/responses/409'
473
473
  '500':
474
474
  $ref: '#/components/responses/500'
475
475
  /admin/v1/user:
@@ -4622,13 +4622,20 @@ paths:
4622
4622
  post:
4623
4623
  operationId: createParameterTemplate
4624
4624
  summary: Create parameter template
4625
+ description: Create a parameter template in the target organization from an existing template. To copy a custom template from another organization, specify oriOrgName and provide a new name. Cross-organization creation only supports non-private custom source templates. The created template is always non-private; any isPrivate value in the request body is ignored.
4625
4626
  parameters:
4626
- - description: name of the Org
4627
+ - description: Name of the target organization
4627
4628
  in: query
4628
4629
  name: orgName
4629
4630
  required: true
4630
4631
  schema:
4631
4632
  type: string
4633
+ - description: 'Name of the source organization. When omitted, empty, or equal to orgName, existing creation behavior is preserved: custom templates are read from the target organization and default templates from the system organization. A different source organization requires oriPartition to be custom and name to differ from oriName. Both organizations must be active. The source may be the system organization, but the target must not be the system organization. A non-empty value containing only whitespace is invalid.'
4634
+ in: query
4635
+ name: oriOrgName
4636
+ required: false
4637
+ schema:
4638
+ type: string
4632
4639
  requestBody:
4633
4640
  content:
4634
4641
  application/json:
@@ -4642,12 +4649,16 @@ paths:
4642
4649
  schema:
4643
4650
  $ref: '#/components/schemas/paramTplListItem'
4644
4651
  description: create parameter template successfully
4652
+ '400':
4653
+ $ref: '#/components/responses/400'
4645
4654
  '401':
4646
4655
  $ref: '#/components/responses/401'
4647
4656
  '403':
4648
4657
  $ref: '#/components/responses/403'
4649
4658
  '404':
4650
4659
  $ref: '#/components/responses/404'
4660
+ '409':
4661
+ $ref: '#/components/responses/409'
4651
4662
  tags:
4652
4663
  - parameterTemplate
4653
4664
  x-codegen-request-body-name: body
@@ -10074,6 +10085,58 @@ paths:
10074
10085
  $ref: '#/components/responses/403'
10075
10086
  '404':
10076
10087
  $ref: '#/components/responses/404'
10088
+ /admin/v1/environments/{environmentName}/resources/{resourceName}:
10089
+ get:
10090
+ operationId: getEnvironmentResource
10091
+ summary: Get a live Kubernetes resource
10092
+ description: Returns one named Kubernetes object, excluding metadata.managedFields. The code allowlist currently permits only apiVersion v1 with kind PersistentVolumeClaim; other valid resource types return 403 before Kubernetes access. Requires Admin environment read permission. Does not support lists, subresources or writes.
10093
+ tags:
10094
+ - environment
10095
+ parameters:
10096
+ - in: path
10097
+ name: environmentName
10098
+ required: true
10099
+ schema:
10100
+ type: string
10101
+ - in: path
10102
+ name: resourceName
10103
+ required: true
10104
+ schema:
10105
+ type: string
10106
+ - in: query
10107
+ name: apiVersion
10108
+ description: Kubernetes API version. Currently only v1 with kind PersistentVolumeClaim is allowed.
10109
+ required: true
10110
+ schema:
10111
+ type: string
10112
+ - in: query
10113
+ name: kind
10114
+ description: Kubernetes kind. Currently only PersistentVolumeClaim with apiVersion v1 is allowed.
10115
+ required: true
10116
+ schema:
10117
+ type: string
10118
+ - in: query
10119
+ name: namespace
10120
+ description: Required for namespaced kinds; must be omitted for cluster-scoped kinds.
10121
+ schema:
10122
+ type: string
10123
+ responses:
10124
+ '200':
10125
+ description: The live Kubernetes resource, including metadata, spec and status when present.
10126
+ content:
10127
+ application/json:
10128
+ schema:
10129
+ $ref: '#/components/schemas/jsonBody'
10130
+ '400':
10131
+ $ref: '#/components/responses/400'
10132
+ '401':
10133
+ $ref: '#/components/responses/401'
10134
+ '403':
10135
+ $ref: '#/components/responses/403'
10136
+ '404':
10137
+ $ref: '#/components/responses/404'
10138
+ '500':
10139
+ $ref: '#/components/responses/500'
10077
10140
  /admin/v1/environments:
10078
10141
  get:
10079
10142
  operationId: listEnvironment
@@ -11344,6 +11407,44 @@ paths:
11344
11407
  $ref: '#/components/responses/404'
11345
11408
  tags:
11346
11409
  - vipPool
11410
+ put:
11411
+ operationId: updateVIPPool
11412
+ summary: Update environment VIP Pool
11413
+ parameters:
11414
+ - description: name of the environment
11415
+ in: path
11416
+ name: environmentName
11417
+ required: true
11418
+ schema:
11419
+ type: string
11420
+ - description: id of the VIP Pool
11421
+ in: path
11422
+ name: poolID
11423
+ required: true
11424
+ schema:
11425
+ type: string
11426
+ requestBody:
11427
+ content:
11428
+ application/json:
11429
+ schema:
11430
+ $ref: '#/components/schemas/vipPoolUpdate'
11431
+ required: true
11432
+ responses:
11433
+ '200':
11434
+ content:
11435
+ application/json:
11436
+ schema:
11437
+ $ref: '#/components/schemas/vipPool'
11438
+ description: A successful response.
11439
+ '400':
11440
+ $ref: '#/components/responses/400'
11441
+ '403':
11442
+ $ref: '#/components/responses/403'
11443
+ '404':
11444
+ $ref: '#/components/responses/404'
11445
+ tags:
11446
+ - vipPool
11447
+ x-codegen-request-body-name: body
11347
11448
  /admin/v1/environments/{environmentName}/storageClasses:
11348
11449
  get:
11349
11450
  description: Provides a summary of storage class statistics.
@@ -16557,7 +16658,7 @@ paths:
16557
16658
  description: Inspection tasks created and accepted for asynchronous execution.
16558
16659
  content: {}
16559
16660
  '400':
16560
- description: Invalid request, invalid cluster selection, or no eligible clusters.
16661
+ $ref: '#/components/responses/400'
16561
16662
  '401':
16562
16663
  $ref: '#/components/responses/401'
16563
16664
  '403':
@@ -22654,7 +22755,7 @@ paths:
22654
22755
  $ref: '#/components/schemas/accountList'
22655
22756
  description: Success
22656
22757
  '400':
22657
- description: Invalid request
22758
+ $ref: '#/components/responses/400'
22658
22759
  '401':
22659
22760
  $ref: '#/components/responses/401'
22660
22761
  '403':
@@ -22662,9 +22763,9 @@ paths:
22662
22763
  '404':
22663
22764
  $ref: '#/components/responses/404'
22664
22765
  '409':
22665
- description: Resource conflict or policy in use
22766
+ $ref: '#/components/responses/409'
22666
22767
  '503':
22667
- description: IAM unavailable; mutation outcome may be unknown
22768
+ $ref: '#/components/responses/503'
22668
22769
  tags:
22669
22770
  - account
22670
22771
  - seaweedfs
@@ -22701,7 +22802,7 @@ paths:
22701
22802
  schema:
22702
22803
  $ref: '#/components/schemas/account'
22703
22804
  '400':
22704
- description: Invalid request
22805
+ $ref: '#/components/responses/400'
22705
22806
  '401':
22706
22807
  $ref: '#/components/responses/401'
22707
22808
  '403':
@@ -22709,9 +22810,9 @@ paths:
22709
22810
  '404':
22710
22811
  $ref: '#/components/responses/404'
22711
22812
  '409':
22712
- description: Resource conflict or policy in use
22813
+ $ref: '#/components/responses/409'
22713
22814
  '503':
22714
- description: IAM unavailable; mutation outcome may be unknown
22815
+ $ref: '#/components/responses/503'
22715
22816
  tags:
22716
22817
  - account
22717
22818
  - seaweedfs
@@ -22746,7 +22847,7 @@ paths:
22746
22847
  content: {}
22747
22848
  description: Identity deleted
22748
22849
  '400':
22749
- description: Invalid request
22850
+ $ref: '#/components/responses/400'
22750
22851
  '401':
22751
22852
  $ref: '#/components/responses/401'
22752
22853
  '403':
@@ -22754,9 +22855,9 @@ paths:
22754
22855
  '404':
22755
22856
  $ref: '#/components/responses/404'
22756
22857
  '409':
22757
- description: Resource conflict or policy in use
22858
+ $ref: '#/components/responses/409'
22758
22859
  '503':
22759
- description: IAM unavailable; mutation outcome may be unknown
22860
+ $ref: '#/components/responses/503'
22760
22861
  tags:
22761
22862
  - account
22762
22863
  - seaweedfs
@@ -22798,7 +22899,7 @@ paths:
22798
22899
  schema:
22799
22900
  $ref: '#/components/schemas/account'
22800
22901
  '400':
22801
- description: Invalid request
22902
+ $ref: '#/components/responses/400'
22802
22903
  '401':
22803
22904
  $ref: '#/components/responses/401'
22804
22905
  '403':
@@ -22806,9 +22907,9 @@ paths:
22806
22907
  '404':
22807
22908
  $ref: '#/components/responses/404'
22808
22909
  '409':
22809
- description: Resource conflict or policy in use
22910
+ $ref: '#/components/responses/409'
22810
22911
  '503':
22811
- description: IAM unavailable; mutation outcome may be unknown
22912
+ $ref: '#/components/responses/503'
22812
22913
  tags:
22813
22914
  - account
22814
22915
  - seaweedfs
@@ -22897,7 +22998,7 @@ paths:
22897
22998
  required: true
22898
22999
  responses:
22899
23000
  '400':
22900
- description: SeaweedFS uses the named policy binding API
23001
+ $ref: '#/components/responses/400'
22901
23002
  tags:
22902
23003
  - account
22903
23004
  - seaweedfs
@@ -22946,17 +23047,17 @@ paths:
22946
23047
  type: object
22947
23048
  additionalProperties: true
22948
23049
  '400':
22949
- description: Invalid request
23050
+ $ref: '#/components/responses/400'
22950
23051
  '401':
22951
- description: Unauthenticated
23052
+ $ref: '#/components/responses/401'
22952
23053
  '403':
22953
- description: Permission denied or protected identity
23054
+ $ref: '#/components/responses/403'
22954
23055
  '404':
22955
- description: Resource not found
23056
+ $ref: '#/components/responses/404'
22956
23057
  '409':
22957
- description: Resource conflict or policy in use
23058
+ $ref: '#/components/responses/409'
22958
23059
  '503':
22959
- description: IAM unavailable; mutation outcome may be unknown
23060
+ $ref: '#/components/responses/503'
22960
23061
  /admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}:
22961
23062
  put:
22962
23063
  summary: putSeaweedFSPolicy
@@ -22985,17 +23086,17 @@ paths:
22985
23086
  '204':
22986
23087
  description: Successful response
22987
23088
  '400':
22988
- description: Invalid request
23089
+ $ref: '#/components/responses/400'
22989
23090
  '401':
22990
- description: Unauthenticated
23091
+ $ref: '#/components/responses/401'
22991
23092
  '403':
22992
- description: Permission denied or protected identity
23093
+ $ref: '#/components/responses/403'
22993
23094
  '404':
22994
- description: Resource not found
23095
+ $ref: '#/components/responses/404'
22995
23096
  '409':
22996
- description: Resource conflict or policy in use
23097
+ $ref: '#/components/responses/409'
22997
23098
  '503':
22998
- description: IAM unavailable; mutation outcome may be unknown
23099
+ $ref: '#/components/responses/503'
22999
23100
  requestBody:
23000
23101
  required: true
23001
23102
  content:
@@ -23031,17 +23132,17 @@ paths:
23031
23132
  '204':
23032
23133
  description: Successful response
23033
23134
  '400':
23034
- description: Invalid request
23135
+ $ref: '#/components/responses/400'
23035
23136
  '401':
23036
- description: Unauthenticated
23137
+ $ref: '#/components/responses/401'
23037
23138
  '403':
23038
- description: Permission denied or protected identity
23139
+ $ref: '#/components/responses/403'
23039
23140
  '404':
23040
- description: Resource not found
23141
+ $ref: '#/components/responses/404'
23041
23142
  '409':
23042
- description: Resource conflict or policy in use
23143
+ $ref: '#/components/responses/409'
23043
23144
  '503':
23044
- description: IAM unavailable; mutation outcome may be unknown
23145
+ $ref: '#/components/responses/503'
23045
23146
  description: Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
23046
23147
  /admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies:
23047
23148
  put:
@@ -23071,17 +23172,17 @@ paths:
23071
23172
  '204':
23072
23173
  description: Successful response
23073
23174
  '400':
23074
- description: Invalid request
23175
+ $ref: '#/components/responses/400'
23075
23176
  '401':
23076
- description: Unauthenticated
23177
+ $ref: '#/components/responses/401'
23077
23178
  '403':
23078
- description: Permission denied or protected identity
23179
+ $ref: '#/components/responses/403'
23079
23180
  '404':
23080
- description: Resource not found
23181
+ $ref: '#/components/responses/404'
23081
23182
  '409':
23082
- description: Resource conflict or policy in use
23183
+ $ref: '#/components/responses/409'
23083
23184
  '503':
23084
- description: IAM unavailable; mutation outcome may be unknown
23185
+ $ref: '#/components/responses/503'
23085
23186
  requestBody:
23086
23187
  required: true
23087
23188
  content:
@@ -23128,17 +23229,17 @@ paths:
23128
23229
  schema:
23129
23230
  $ref: '#/components/schemas/account'
23130
23231
  '400':
23131
- description: Invalid request
23232
+ $ref: '#/components/responses/400'
23132
23233
  '401':
23133
- description: Unauthenticated
23234
+ $ref: '#/components/responses/401'
23134
23235
  '403':
23135
- description: Permission denied or protected identity
23236
+ $ref: '#/components/responses/403'
23136
23237
  '404':
23137
- description: Resource not found
23238
+ $ref: '#/components/responses/404'
23138
23239
  '409':
23139
- description: Resource conflict or policy in use
23240
+ $ref: '#/components/responses/409'
23140
23241
  '503':
23141
- description: IAM unavailable; mutation outcome may be unknown
23242
+ $ref: '#/components/responses/503'
23142
23243
  requestBody:
23143
23244
  required: true
23144
23245
  content:
@@ -23179,17 +23280,17 @@ paths:
23179
23280
  '204':
23180
23281
  description: Successful response
23181
23282
  '400':
23182
- description: Invalid request
23283
+ $ref: '#/components/responses/400'
23183
23284
  '401':
23184
- description: Unauthenticated
23285
+ $ref: '#/components/responses/401'
23185
23286
  '403':
23186
- description: Permission denied or protected identity
23287
+ $ref: '#/components/responses/403'
23187
23288
  '404':
23188
- description: Resource not found
23289
+ $ref: '#/components/responses/404'
23189
23290
  '409':
23190
- description: Resource conflict or policy in use
23291
+ $ref: '#/components/responses/409'
23191
23292
  '503':
23192
- description: IAM unavailable; mutation outcome may be unknown
23293
+ $ref: '#/components/responses/503'
23193
23294
  /admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts:
23194
23295
  get:
23195
23296
  description: list accounts in cluster
@@ -30044,6 +30145,48 @@ components:
30044
30145
  enum:
30045
30146
  - DoNotTerminate
30046
30147
  - Delete
30148
+ instanceTemplateCreate:
30149
+ type: object
30150
+ additionalProperties: false
30151
+ description: |
30152
+ Create assignment for one instance template. name and replicas are required. env, annotations, and labels are optional overlays onto the chart-rendered instance. The request must include every chart-rendered instance template exactly once.
30153
+ required:
30154
+ - name
30155
+ - replicas
30156
+ properties:
30157
+ name:
30158
+ type: string
30159
+ minLength: 1
30160
+ description: Instance template name; must match a chart-rendered instance.
30161
+ replicas:
30162
+ type: integer
30163
+ minimum: 0
30164
+ description: Replica count for this instance template.
30165
+ env:
30166
+ type: array
30167
+ description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
30168
+ items:
30169
+ type: object
30170
+ required:
30171
+ - name
30172
+ - value
30173
+ properties:
30174
+ name:
30175
+ type: string
30176
+ value:
30177
+ type: string
30178
+ minLength: 1
30179
+ description: Plain string value only. valueFrom is not supported.
30180
+ annotations:
30181
+ type: object
30182
+ additionalProperties:
30183
+ type: string
30184
+ description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
30185
+ labels:
30186
+ type: object
30187
+ additionalProperties:
30188
+ type: string
30189
+ description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
30047
30190
  ioQuantity:
30048
30191
  description: IO Quantity describes IOPS and BPS of a volume
30049
30192
  properties:
@@ -30127,7 +30270,13 @@ components:
30127
30270
  title: Replicas
30128
30271
  type: integer
30129
30272
  x-nullable: true
30130
- description: Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas.
30273
+ description: Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas. If the rendered component has instance templates, this must equal the sum of all template replica counts in the complete instanceTemplates list.
30274
+ instanceTemplates:
30275
+ type: array
30276
+ minItems: 1
30277
+ description: Per-template replicas and optional overlays (env, annotations, labels). Required when the chart renders instance templates. 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.
30278
+ items:
30279
+ $ref: '#/components/schemas/instanceTemplateCreate'
30131
30280
  skipResourceConstraints:
30132
30281
  type: boolean
30133
30282
  description: Whether to skip resource constraint validation when creating cluster
@@ -30421,6 +30570,10 @@ components:
30421
30570
  networkMode:
30422
30571
  description: Specify the network mode for intra-cluster communication
30423
30572
  $ref: '#/components/schemas/networkMode'
30573
+ vipPoolName:
30574
+ title: VIP Pool Name
30575
+ description: Name of the VIP Pool (VIP Pool poolName) used as the MetalLB address pool for LoadBalancer services. Only effective when networkMode is LoadBalancer.
30576
+ type: string
30424
30577
  serviceRefs:
30425
30578
  type: array
30426
30579
  items:
@@ -31498,8 +31651,23 @@ components:
31498
31651
  x-nullable: true
31499
31652
  required:
31500
31653
  - type
31654
+ instanceTemplateReplicas:
31655
+ type: object
31656
+ description: HScale assignment for one instance template. name and replicas only.
31657
+ required:
31658
+ - name
31659
+ - replicas
31660
+ properties:
31661
+ name:
31662
+ type: string
31663
+ minLength: 1
31664
+ description: Instance template name on the live Cluster spec.
31665
+ replicas:
31666
+ type: integer
31667
+ minimum: 0
31668
+ description: Target replica count for this instance template.
31501
31669
  opsHScale:
31502
- description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. It requires specifying either the number of replicas or the number of shards.
31670
+ description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. instanceTemplates is an optional overlay and requires top-level replicas.
31503
31671
  required:
31504
31672
  - component
31505
31673
  properties:
@@ -31515,6 +31683,12 @@ components:
31515
31683
  description: number of replicas
31516
31684
  type: integer
31517
31685
  nullable: true
31686
+ instanceTemplates:
31687
+ type: array
31688
+ minItems: 1
31689
+ description: Target replica count for named instance templates. Requires top-level replicas. Mapped onto the live Cluster spec to build scaleIn/scaleOut.instances. Required for replica scaling when the live component has instance templates. Names must exactly match all live instance templates, without missing, extra, or duplicate names; order does not matter. Top-level replicas must equal the sum of all requested template replica counts. Shard-count scaling does not check templates and cannot include this list.
31690
+ items:
31691
+ $ref: '#/components/schemas/instanceTemplateReplicas'
31518
31692
  onlineInstancesToOffline:
31519
31693
  type: array
31520
31694
  items:
@@ -35557,7 +35731,7 @@ components:
35557
35731
  description: memory size
35558
35732
  type: string
35559
35733
  classCode:
35560
- description: class code of the cluster
35734
+ description: Class code for component-level vertical scaling.
35561
35735
  type: string
35562
35736
  schedule:
35563
35737
  $ref: '#/components/schemas/taskSchedule'
@@ -35867,6 +36041,11 @@ components:
35867
36041
  required:
35868
36042
  - serviceName
35869
36043
  - serviceNamespace
36044
+ jsonBody:
36045
+ description: Represents a JSON body.
36046
+ properties: {}
36047
+ additionalProperties: true
36048
+ type: object
35870
36049
  logBackendType:
35871
36050
  type: string
35872
36051
  description: Log query backend configured for this environment.
@@ -36902,11 +37081,6 @@ components:
36902
37081
  - items
36903
37082
  - updatedAt
36904
37083
  type: object
36905
- jsonBody:
36906
- description: Represents a JSON body.
36907
- properties: {}
36908
- additionalProperties: true
36909
- type: object
36910
37084
  instanceResourceStatsType:
36911
37085
  description: Type of the instance, choose cluster, system, or other
36912
37086
  enum:
@@ -37163,6 +37337,14 @@ components:
37163
37337
  description: ID of VIP Pool
37164
37338
  title: ID
37165
37339
  type: string
37340
+ name:
37341
+ description: Name of VIP Pool. It is the MetalLB IPAddressPool resource name, generated as kb-<id>.
37342
+ title: Name
37343
+ type: string
37344
+ poolName:
37345
+ description: User facing name of the VIP Pool, used to select the pool when creating a cluster. It falls back to the IPAddressPool resource name.
37346
+ title: Pool Name
37347
+ type: string
37166
37348
  total:
37167
37349
  description: Total number of IP addresses
37168
37350
  format: int64
@@ -37199,6 +37381,21 @@ components:
37199
37381
  type: object
37200
37382
  vipPoolCreate:
37201
37383
  description: VIP Pool create
37384
+ properties:
37385
+ addresses:
37386
+ description: IP Addresses
37387
+ title: IP Addresses
37388
+ type: string
37389
+ poolName:
37390
+ description: Name of the VIP Pool. It is what a cluster selects the pool by, so it is not restricted by Kubernetes resource naming rules. The MetalLB IPAddressPool resource name stays the generated kb-<id>.
37391
+ title: Pool Name
37392
+ type: string
37393
+ required:
37394
+ - addresses
37395
+ - poolName
37396
+ type: object
37397
+ vipPoolUpdate:
37398
+ description: VIP Pool update
37202
37399
  properties:
37203
37400
  addresses:
37204
37401
  description: IP Addresses
@@ -39235,6 +39432,39 @@ components:
39235
39432
  enum:
39236
39433
  - '0.9'
39237
39434
  - '1.0'
39435
+ instanceTemplateOp:
39436
+ type: string
39437
+ description: Operation that can be declared on instanceTemplate.ops.
39438
+ enum:
39439
+ - hscale
39440
+ - vscale
39441
+ instanceTemplateAttribute:
39442
+ type: string
39443
+ description: Heterogeneous attribute the frontend may render on an instance template at create.
39444
+ enum:
39445
+ - env
39446
+ - annotations
39447
+ - labels
39448
+ instanceTemplateEnv:
39449
+ type: object
39450
+ description: One fillable env var on an instance template, for frontend rendering.
39451
+ required:
39452
+ - name
39453
+ properties:
39454
+ name:
39455
+ type: string
39456
+ minLength: 1
39457
+ description: Env var name written to the instance template.
39458
+ label:
39459
+ $ref: '#/components/schemas/localizedDescription'
39460
+ description:
39461
+ $ref: '#/components/schemas/localizedDescription'
39462
+ required:
39463
+ type: boolean
39464
+ description: If true, the frontend should treat this env as required. Create does not re-check.
39465
+ default:
39466
+ type: string
39467
+ description: Default value shown by the frontend.
39238
39468
  modeReadonlyEndpoint:
39239
39469
  type: object
39240
39470
  required:
@@ -39256,6 +39486,64 @@ components:
39256
39486
  type: boolean
39257
39487
  hideOnCreate:
39258
39488
  type: boolean
39489
+ instanceTemplate:
39490
+ type: object
39491
+ description: |
39492
+ Frontend catalog of instance templates for this mode component.
39493
+ names, ops, attributes, and env are for UI rendering. Create
39494
+ validates the request against chart-rendered Cluster instances,
39495
+ not this catalog. HScale does not re-check this catalog; it
39496
+ builds the OpsRequest from the request and the live Cluster.
39497
+ HScale instanceTemplates still requires top-level replicas.
39498
+ ops lists hscale and vscale for the UI (vscale is reserved;
39499
+ class stays component-level). Only HScale processes instance templates.
39500
+ VolumeExpansion, VScale, Upgrade, Restart, and other operations silently
39501
+ ignore instance templates and keep their component-level behavior.
39502
+ Template-level volumeexpansion is not implemented.
39503
+ The platform does not even-split or fill in missing templates.
39504
+ When absent, the frontend should use component-level operations.
39505
+ required:
39506
+ - names
39507
+ - ops
39508
+ properties:
39509
+ names:
39510
+ type: array
39511
+ minItems: 1
39512
+ uniqueItems: true
39513
+ items:
39514
+ type: string
39515
+ description: |
39516
+ Instance template names the frontend should render.
39517
+ Create and hscale check names against the chart or live Cluster,
39518
+ not this list.
39519
+ ops:
39520
+ type: array
39521
+ minItems: 1
39522
+ items:
39523
+ $ref: '#/components/schemas/instanceTemplateOp'
39524
+ description: |
39525
+ Operations the frontend should offer per template: hscale, vscale.
39526
+ Not re-checked when creating a cluster or building an hscale OpsRequest.
39527
+ Only hscale currently acts per template; vscale is reserved.
39528
+ VolumeExpansion, VScale, Upgrade, and Restart ignore instance templates
39529
+ and keep their component-level behavior.
39530
+ attributes:
39531
+ type: array
39532
+ uniqueItems: true
39533
+ items:
39534
+ $ref: '#/components/schemas/instanceTemplateAttribute'
39535
+ description: |
39536
+ Heterogeneous attributes the frontend should render on each
39537
+ instance template at create. Omitted or empty means only name
39538
+ and replicas. Create overlays the request onto the chart and
39539
+ does not re-check this list.
39540
+ env:
39541
+ type: array
39542
+ description: |
39543
+ Env vars the frontend may render when attributes includes env.
39544
+ Create does not re-check this list.
39545
+ items:
39546
+ $ref: '#/components/schemas/instanceTemplateEnv'
39259
39547
  serviceRef:
39260
39548
  type: string
39261
39549
  description: |
@@ -41486,7 +41774,13 @@ components:
41486
41774
  modifierEmail:
41487
41775
  type: string
41488
41776
  option:
41489
- $ref: '#/components/schemas/engineOption'
41777
+ description: |
41778
+ Engine option document stored when this history row was written.
41779
+ This is a point-in-time snapshot, not the current engineOption
41780
+ create/update contract. Nested fields such as endpoints.protocol
41781
+ may be absent on older rows.
41782
+ type: object
41783
+ additionalProperties: true
41490
41784
  createdAt:
41491
41785
  type: string
41492
41786
  format: date-time
@@ -50353,6 +50647,12 @@ components:
50353
50647
  schema:
50354
50648
  $ref: '#/components/schemas/APIErrorResponse'
50355
50649
  description: Conflict
50650
+ '413':
50651
+ content:
50652
+ application/json:
50653
+ schema:
50654
+ $ref: '#/components/schemas/APIErrorResponse'
50655
+ description: Payload Too Large
50356
50656
  '429':
50357
50657
  content:
50358
50658
  application/json: