kb-cloud-client-typescript 2.3.76 → 2.3.77

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 (171) hide show
  1. package/dist/adminapi/apis/backup-repo-api.d.ts +10 -2
  2. package/dist/adminapi/apis/backup-repo-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/backup-repo-api.js +10 -5
  4. package/dist/adminapi/apis/backup-repo-api.js.map +1 -1
  5. package/dist/adminapi/apis/environment-api.d.ts +56 -0
  6. package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/environment-api.js +70 -0
  8. package/dist/adminapi/apis/environment-api.js.map +1 -1
  9. package/dist/adminapi/models/backup-repo-check-result.d.ts +38 -0
  10. package/dist/adminapi/models/backup-repo-check-result.d.ts.map +1 -0
  11. package/dist/adminapi/models/backup-repo-check-result.js +16 -0
  12. package/dist/adminapi/models/backup-repo-check-result.js.map +1 -0
  13. package/dist/adminapi/models/backup-repo-check-status.d.ts +23 -0
  14. package/dist/adminapi/models/backup-repo-check-status.d.ts.map +1 -0
  15. package/dist/adminapi/models/backup-repo-check-status.js +27 -0
  16. package/dist/adminapi/models/backup-repo-check-status.js.map +1 -0
  17. package/dist/adminapi/models/backup-repo.d.ts +7 -0
  18. package/dist/adminapi/models/backup-repo.d.ts.map +1 -1
  19. package/dist/adminapi/models/engine-service-versions.d.ts +7 -0
  20. package/dist/adminapi/models/engine-service-versions.d.ts.map +1 -1
  21. package/dist/adminapi/models/environment-static-cluster-list.d.ts +32 -0
  22. package/dist/adminapi/models/environment-static-cluster-list.d.ts.map +1 -0
  23. package/dist/adminapi/models/environment-static-cluster-list.js +16 -0
  24. package/dist/adminapi/models/environment-static-cluster-list.js.map +1 -0
  25. package/dist/adminapi/models/index.d.ts +7 -0
  26. package/dist/adminapi/models/index.d.ts.map +1 -1
  27. package/dist/adminapi/models/index.js +7 -0
  28. package/dist/adminapi/models/index.js.map +1 -1
  29. package/dist/adminapi/models/instance-template-op.d.ts +1 -0
  30. package/dist/adminapi/models/instance-template-op.d.ts.map +1 -1
  31. package/dist/adminapi/models/instance-template-op.js +2 -1
  32. package/dist/adminapi/models/instance-template-op.js.map +1 -1
  33. package/dist/adminapi/models/instance-template-service-versions.d.ts +37 -0
  34. package/dist/adminapi/models/instance-template-service-versions.d.ts.map +1 -0
  35. package/dist/adminapi/models/instance-template-service-versions.js +16 -0
  36. package/dist/adminapi/models/instance-template-service-versions.js.map +1 -0
  37. package/dist/adminapi/models/instance-template-upgrade.d.ts +31 -0
  38. package/dist/adminapi/models/instance-template-upgrade.d.ts.map +1 -0
  39. package/dist/adminapi/models/instance-template-upgrade.js +16 -0
  40. package/dist/adminapi/models/instance-template-upgrade.js.map +1 -0
  41. package/dist/adminapi/models/ops-upgrade.d.ts +8 -1
  42. package/dist/adminapi/models/ops-upgrade.d.ts.map +1 -1
  43. package/dist/adminapi/models/raw-cluster-component.d.ts +55 -0
  44. package/dist/adminapi/models/raw-cluster-component.d.ts.map +1 -0
  45. package/dist/adminapi/models/raw-cluster-component.js +16 -0
  46. package/dist/adminapi/models/raw-cluster-component.js.map +1 -0
  47. package/dist/adminapi/models/raw-cluster.d.ts +13 -0
  48. package/dist/adminapi/models/raw-cluster.d.ts.map +1 -1
  49. package/dist/adminapi/models/static-cluster.d.ts +13 -1
  50. package/dist/adminapi/models/static-cluster.d.ts.map +1 -1
  51. package/dist/adminapi/models/static-service-cluster-engine.d.ts +24 -0
  52. package/dist/adminapi/models/static-service-cluster-engine.d.ts.map +1 -0
  53. package/dist/adminapi/models/static-service-cluster-engine.js +28 -0
  54. package/dist/adminapi/models/static-service-cluster-engine.js.map +1 -0
  55. package/dist/adminapi/models/storage-config-backup.d.ts +9 -3
  56. package/dist/adminapi/models/storage-config-backup.d.ts.map +1 -1
  57. package/dist/adminapi/models/storage-config.d.ts +1 -1
  58. package/dist/adminapi/models/storage-config.d.ts.map +1 -1
  59. package/dist/internalapi/apis/environment-api.d.ts +81 -0
  60. package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
  61. package/dist/internalapi/apis/environment-api.js +85 -0
  62. package/dist/internalapi/apis/environment-api.js.map +1 -1
  63. package/dist/internalapi/apis/victoria-logs-cluster-api.d.ts +5 -5
  64. package/dist/internalapi/apis/victoria-logs-cluster-api.js +4 -4
  65. package/dist/internalapi/apis/victoria-metrics-cluster-api.d.ts +3 -3
  66. package/dist/internalapi/apis/victoria-metrics-cluster-api.js +2 -2
  67. package/dist/internalapi/models/backup-repo-access-method.d.ts +22 -0
  68. package/dist/internalapi/models/backup-repo-access-method.d.ts.map +1 -0
  69. package/dist/internalapi/models/backup-repo-access-method.js +26 -0
  70. package/dist/internalapi/models/backup-repo-access-method.js.map +1 -0
  71. package/dist/internalapi/models/backup-repo-check-result.d.ts +38 -0
  72. package/dist/internalapi/models/backup-repo-check-result.d.ts.map +1 -0
  73. package/dist/internalapi/models/backup-repo-check-result.js +16 -0
  74. package/dist/internalapi/models/backup-repo-check-result.js.map +1 -0
  75. package/dist/internalapi/models/backup-repo-check-status.d.ts +23 -0
  76. package/dist/internalapi/models/backup-repo-check-status.d.ts.map +1 -0
  77. package/dist/internalapi/models/backup-repo-check-status.js +27 -0
  78. package/dist/internalapi/models/backup-repo-check-status.js.map +1 -0
  79. package/dist/internalapi/models/backup-repo-create.d.ts +65 -0
  80. package/dist/internalapi/models/backup-repo-create.d.ts.map +1 -0
  81. package/dist/internalapi/models/backup-repo-create.js +16 -0
  82. package/dist/internalapi/models/backup-repo-create.js.map +1 -0
  83. package/dist/internalapi/models/backup-repo-pvreclaim-policy.d.ts +22 -0
  84. package/dist/internalapi/models/backup-repo-pvreclaim-policy.d.ts.map +1 -0
  85. package/dist/internalapi/models/backup-repo-pvreclaim-policy.js +26 -0
  86. package/dist/internalapi/models/backup-repo-pvreclaim-policy.js.map +1 -0
  87. package/dist/internalapi/models/backup-repo.d.ts +125 -0
  88. package/dist/internalapi/models/backup-repo.d.ts.map +1 -0
  89. package/dist/internalapi/models/backup-repo.js +16 -0
  90. package/dist/internalapi/models/backup-repo.js.map +1 -0
  91. package/dist/internalapi/models/index.d.ts +6 -0
  92. package/dist/internalapi/models/index.d.ts.map +1 -1
  93. package/dist/internalapi/models/index.js +6 -0
  94. package/dist/internalapi/models/index.js.map +1 -1
  95. package/dist/internalapi/models/static-cluster.d.ts +13 -1
  96. package/dist/internalapi/models/static-cluster.d.ts.map +1 -1
  97. package/dist/openapi/models/backup-repo-check-result.d.ts +38 -0
  98. package/dist/openapi/models/backup-repo-check-result.d.ts.map +1 -0
  99. package/dist/openapi/models/backup-repo-check-result.js +16 -0
  100. package/dist/openapi/models/backup-repo-check-result.js.map +1 -0
  101. package/dist/openapi/models/backup-repo-check-status.d.ts +23 -0
  102. package/dist/openapi/models/backup-repo-check-status.d.ts.map +1 -0
  103. package/dist/openapi/models/backup-repo-check-status.js +27 -0
  104. package/dist/openapi/models/backup-repo-check-status.js.map +1 -0
  105. package/dist/openapi/models/backup-repo.d.ts +7 -0
  106. package/dist/openapi/models/backup-repo.d.ts.map +1 -1
  107. package/dist/openapi/models/engine-service-versions.d.ts +7 -0
  108. package/dist/openapi/models/engine-service-versions.d.ts.map +1 -1
  109. package/dist/openapi/models/index.d.ts +4 -0
  110. package/dist/openapi/models/index.d.ts.map +1 -1
  111. package/dist/openapi/models/index.js +4 -0
  112. package/dist/openapi/models/index.js.map +1 -1
  113. package/dist/openapi/models/instance-template-op.d.ts +1 -0
  114. package/dist/openapi/models/instance-template-op.d.ts.map +1 -1
  115. package/dist/openapi/models/instance-template-op.js +2 -1
  116. package/dist/openapi/models/instance-template-op.js.map +1 -1
  117. package/dist/openapi/models/instance-template-service-versions.d.ts +37 -0
  118. package/dist/openapi/models/instance-template-service-versions.d.ts.map +1 -0
  119. package/dist/openapi/models/instance-template-service-versions.js +16 -0
  120. package/dist/openapi/models/instance-template-service-versions.js.map +1 -0
  121. package/dist/openapi/models/instance-template-upgrade.d.ts +31 -0
  122. package/dist/openapi/models/instance-template-upgrade.d.ts.map +1 -0
  123. package/dist/openapi/models/instance-template-upgrade.js +16 -0
  124. package/dist/openapi/models/instance-template-upgrade.js.map +1 -0
  125. package/dist/openapi/models/ops-upgrade.d.ts +8 -1
  126. package/dist/openapi/models/ops-upgrade.d.ts.map +1 -1
  127. package/package.json +1 -1
  128. package/src/adminapi/.openapi-generator/FILES +7 -0
  129. package/src/adminapi/apis/backup-repo-api.ts +18 -5
  130. package/src/adminapi/apis/environment-api.ts +104 -0
  131. package/src/adminapi/models/backup-repo-check-result.ts +47 -0
  132. package/src/adminapi/models/backup-repo-check-status.ts +32 -0
  133. package/src/adminapi/models/backup-repo.ts +9 -0
  134. package/src/adminapi/models/engine-service-versions.ts +9 -0
  135. package/src/adminapi/models/environment-static-cluster-list.ts +41 -0
  136. package/src/adminapi/models/index.ts +7 -0
  137. package/src/adminapi/models/instance-template-op.ts +2 -1
  138. package/src/adminapi/models/instance-template-service-versions.ts +42 -0
  139. package/src/adminapi/models/instance-template-upgrade.ts +36 -0
  140. package/src/adminapi/models/ops-upgrade.ts +10 -1
  141. package/src/adminapi/models/raw-cluster-component.ts +60 -0
  142. package/src/adminapi/models/raw-cluster.ts +15 -0
  143. package/src/adminapi/models/static-cluster.ts +13 -1
  144. package/src/adminapi/models/static-service-cluster-engine.ts +33 -0
  145. package/src/adminapi/models/storage-config-backup.ts +9 -3
  146. package/src/adminapi/models/storage-config.ts +1 -1
  147. package/src/adminapi.yaml +162 -9
  148. package/src/internalapi/.openapi-generator/FILES +6 -0
  149. package/src/internalapi/apis/environment-api.ts +143 -0
  150. package/src/internalapi/apis/victoria-logs-cluster-api.ts +5 -5
  151. package/src/internalapi/apis/victoria-metrics-cluster-api.ts +3 -3
  152. package/src/internalapi/models/backup-repo-access-method.ts +31 -0
  153. package/src/internalapi/models/backup-repo-check-result.ts +47 -0
  154. package/src/internalapi/models/backup-repo-check-status.ts +32 -0
  155. package/src/internalapi/models/backup-repo-create.ts +74 -0
  156. package/src/internalapi/models/backup-repo-pvreclaim-policy.ts +31 -0
  157. package/src/internalapi/models/backup-repo.ts +134 -0
  158. package/src/internalapi/models/index.ts +6 -0
  159. package/src/internalapi/models/static-cluster.ts +13 -1
  160. package/src/internalapi.yaml +176 -3
  161. package/src/openapi/.openapi-generator/FILES +4 -0
  162. package/src/openapi/models/backup-repo-check-result.ts +47 -0
  163. package/src/openapi/models/backup-repo-check-status.ts +32 -0
  164. package/src/openapi/models/backup-repo.ts +9 -0
  165. package/src/openapi/models/engine-service-versions.ts +9 -0
  166. package/src/openapi/models/index.ts +4 -0
  167. package/src/openapi/models/instance-template-op.ts +2 -1
  168. package/src/openapi/models/instance-template-service-versions.ts +42 -0
  169. package/src/openapi/models/instance-template-upgrade.ts +36 -0
  170. package/src/openapi/models/ops-upgrade.ts +10 -1
  171. package/src/openapi.yaml +57 -1
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { RawClusterComponent } from './raw-cluster-component';
16
19
 
17
20
  /**
18
21
  * cluster info
@@ -26,6 +29,12 @@ export interface RawCluster {
26
29
  * @memberof RawCluster
27
30
  */
28
31
  'kubernetesName'?: string;
32
+ /**
33
+ * Cluster definition of the discovered cluster, such as minio or victoria-metrics.
34
+ * @type {string}
35
+ * @memberof RawCluster
36
+ */
37
+ 'engine'?: string;
29
38
  /**
30
39
  * the namespace of cluster
31
40
  * @type {string}
@@ -56,5 +65,11 @@ export interface RawCluster {
56
65
  * @memberof RawCluster
57
66
  */
58
67
  'memory'?: number;
68
+ /**
69
+ * Actual resources of each component. A multi-component cluster returns every component instead of a single summary.
70
+ * @type {Array<RawClusterComponent>}
71
+ * @memberof RawCluster
72
+ */
73
+ 'components'?: Array<RawClusterComponent>;
59
74
  }
60
75
 
@@ -24,10 +24,22 @@ import type { StaticClusterComponent } from './static-cluster-component';
24
24
  */
25
25
  export interface StaticCluster {
26
26
  /**
27
- * Optional component overrides. Unknown, duplicate or other-engine components are rejected.
27
+ * Optional component overrides. Unknown, duplicate or other-engine components are rejected. Must be omitted when reusedClusterName is set; adding an environment does not resize an existing cluster.
28
28
  * @type {Array<StaticClusterComponent>}
29
29
  * @memberof StaticCluster
30
30
  */
31
31
  'components'?: Array<StaticClusterComponent>;
32
+ /**
33
+ * Kubernetes name of an existing cluster to attach. Set together with reusedClusterNamespace. The existing cluster\'s actual resources are used, and component overrides are rejected.
34
+ * @type {string}
35
+ * @memberof StaticCluster
36
+ */
37
+ 'reusedClusterName'?: string;
38
+ /**
39
+ * Namespace of the cluster named by reusedClusterName. Required when reusedClusterName is set.
40
+ * @type {string}
41
+ * @memberof StaticCluster
42
+ */
43
+ 'reusedClusterNamespace'?: string;
32
44
  }
33
45
 
@@ -0,0 +1,33 @@
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
+ * Optional engine filter for retained service clusters. Omitted or empty returns all supported MinIO, VictoriaMetrics, and VictoriaLogs candidates discovered from the kubeconfig and existing cluster records. The caller must explicitly select a cluster to reuse.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const StaticServiceClusterEngine = {
24
+ empty: '',
25
+ minio: 'minio',
26
+ victoria_metrics: 'victoria-metrics',
27
+ victoria_logs: 'victoria-logs'
28
+ } as const;
29
+
30
+ export type StaticServiceClusterEngine = typeof StaticServiceClusterEngine[keyof typeof StaticServiceClusterEngine];
31
+
32
+
33
+
@@ -20,23 +20,29 @@
20
20
  * @interface StorageConfigBackup
21
21
  */
22
22
  export interface StorageConfigBackup {
23
+ /**
24
+ * Zero-based index of the default backup storage. Required for multiple storages when storageName is omitted.
25
+ * @type {number}
26
+ * @memberof StorageConfigBackup
27
+ */
28
+ 'storageIndex'?: number | null;
23
29
  /**
24
30
  * the name of storage
25
31
  * @type {string}
26
32
  * @memberof StorageConfigBackup
27
33
  */
28
- 'storageName': string;
34
+ 'storageName'?: string | null;
29
35
  /**
30
36
  * the backup repo name which will be init
31
37
  * @type {string}
32
38
  * @memberof StorageConfigBackup
33
39
  */
34
- 'backupRepoName': string;
40
+ 'backupRepoName'?: string | null;
35
41
  /**
36
42
  * judge whether to set the backup is default which will be init
37
43
  * @type {boolean}
38
44
  * @memberof StorageConfigBackup
39
45
  */
40
- 'defaultBackupRepo': boolean;
46
+ 'defaultBackupRepo'?: boolean | null;
41
47
  }
42
48
 
@@ -37,6 +37,6 @@ export interface StorageConfig {
37
37
  * @type {StorageConfigBackup}
38
38
  * @memberof StorageConfig
39
39
  */
40
- 'backup': StorageConfigBackup;
40
+ 'backup'?: StorageConfigBackup;
41
41
  }
42
42
 
package/src/adminapi.yaml CHANGED
@@ -12726,6 +12726,31 @@ paths:
12726
12726
  $ref: '#/components/responses/404'
12727
12727
  tags:
12728
12728
  - environment
12729
+ /admin/v1/environmentStaticClusters:
12730
+ post:
12731
+ operationId: listEnvironmentStaticClusters
12732
+ description: List retained MinIO, VictoriaMetrics, and VictoriaLogs clusters that can be explicitly attached when adding an environment. The optional engine filter restricts the results to one engine; omitted or empty returns all supported engines. Does not select a cluster.
12733
+ summary: List reusable environment service clusters
12734
+ requestBody:
12735
+ content:
12736
+ application/json:
12737
+ schema:
12738
+ $ref: '#/components/schemas/environmentStaticClusterList'
12739
+ required: true
12740
+ responses:
12741
+ '200':
12742
+ content:
12743
+ application/json:
12744
+ schema:
12745
+ $ref: '#/components/schemas/environmentObjectStorage'
12746
+ description: A successful response.
12747
+ '400':
12748
+ $ref: '#/components/responses/400'
12749
+ '403':
12750
+ $ref: '#/components/responses/403'
12751
+ tags:
12752
+ - environment
12753
+ x-codegen-request-body-name: body
12729
12754
  /admin/v1/environmentBackupRepo:
12730
12755
  post:
12731
12756
  operationId: getEnvironmentBackupRepo
@@ -12937,6 +12962,12 @@ paths:
12937
12962
  required: true
12938
12963
  schema:
12939
12964
  type: string
12965
+ - description: Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation.
12966
+ in: query
12967
+ name: envInstall
12968
+ schema:
12969
+ type: boolean
12970
+ default: false
12940
12971
  requestBody:
12941
12972
  content:
12942
12973
  application/json:
@@ -12956,6 +12987,8 @@ paths:
12956
12987
  schema:
12957
12988
  $ref: '#/components/schemas/backupRepo'
12958
12989
  description: Returned when edge is created successfully.
12990
+ '400':
12991
+ $ref: '#/components/responses/400'
12959
12992
  '401':
12960
12993
  $ref: '#/components/responses/401'
12961
12994
  '403':
@@ -37099,12 +37132,29 @@ components:
37099
37132
  required:
37100
37133
  - items
37101
37134
  type: object
37135
+ instanceTemplateUpgrade:
37136
+ type: object
37137
+ required:
37138
+ - name
37139
+ - serviceVersion
37140
+ properties:
37141
+ name:
37142
+ type: string
37143
+ minLength: 1
37144
+ serviceVersion:
37145
+ type: string
37146
+ minLength: 1
37147
+ maxLength: 32
37102
37148
  opsUpgrade:
37103
- description: OpsUpgrade is the payload to upgrade a KubeBlocks cluster
37149
+ description: Upgrade a component. A mode component with template upgrade enabled requires all template target versions and a component version equal to their minimum. Unchanged entries are allowed; changed entries follow the existing component upgrade rules. Other components must not specify templates.
37104
37150
  properties:
37105
37151
  version:
37106
37152
  type: string
37107
37153
  minLength: 1
37154
+ instanceTemplates:
37155
+ type: array
37156
+ items:
37157
+ $ref: '#/components/schemas/instanceTemplateUpgrade'
37108
37158
  component:
37109
37159
  type: string
37110
37160
  schedule:
@@ -37115,6 +37165,17 @@ components:
37115
37165
  - version
37116
37166
  - component
37117
37167
  type: object
37168
+ instanceTemplateServiceVersions:
37169
+ type: object
37170
+ properties:
37171
+ name:
37172
+ type: string
37173
+ currentVersion:
37174
+ type: string
37175
+ upgradeableVersions:
37176
+ type: array
37177
+ items:
37178
+ type: string
37118
37179
  componentVersionArchitecture:
37119
37180
  type: object
37120
37181
  description: |
@@ -37158,6 +37219,11 @@ components:
37158
37219
  engineServiceVersions:
37159
37220
  type: object
37160
37221
  properties:
37222
+ instanceTemplates:
37223
+ x-omitempty: true
37224
+ type: array
37225
+ items:
37226
+ $ref: '#/components/schemas/instanceTemplateServiceVersions'
37161
37227
  component:
37162
37228
  type: string
37163
37229
  description: component type, refer to componentDef and support NamePrefix
@@ -37803,9 +37869,15 @@ components:
37803
37869
  components:
37804
37870
  type: array
37805
37871
  maxItems: 3
37806
- description: Optional component overrides. Unknown, duplicate or other-engine components are rejected.
37872
+ description: Optional component overrides. Unknown, duplicate or other-engine components are rejected. Must be omitted when reusedClusterName is set; adding an environment does not resize an existing cluster.
37807
37873
  items:
37808
37874
  $ref: '#/components/schemas/staticClusterComponent'
37875
+ reusedClusterName:
37876
+ type: string
37877
+ description: Kubernetes name of an existing cluster to attach. Set together with reusedClusterNamespace. The existing cluster's actual resources are used, and component overrides are rejected.
37878
+ reusedClusterNamespace:
37879
+ type: string
37880
+ description: Namespace of the cluster named by reusedClusterName. Required when reusedClusterName is set.
37809
37881
  environmentStorage:
37810
37882
  type: object
37811
37883
  description: Storage config
@@ -37829,7 +37901,6 @@ components:
37829
37901
  type: object
37830
37902
  description: Storage config for environment
37831
37903
  required:
37832
- - backup
37833
37904
  - storages
37834
37905
  properties:
37835
37906
  storages:
@@ -37840,18 +37911,23 @@ components:
37840
37911
  backup:
37841
37912
  type: object
37842
37913
  description: the storage config for backup
37843
- required:
37844
- - storageName
37845
- - backupRepoName
37846
- - defaultBackupRepo
37847
37914
  properties:
37915
+ storageIndex:
37916
+ type: integer
37917
+ format: int64
37918
+ nullable: true
37919
+ minimum: 0
37920
+ description: Zero-based index of the default backup storage. Required for multiple storages when storageName is omitted.
37848
37921
  storageName:
37922
+ nullable: true
37849
37923
  type: string
37850
37924
  description: the name of storage
37851
37925
  backupRepoName:
37926
+ nullable: true
37852
37927
  type: string
37853
37928
  description: the backup repo name which will be init
37854
37929
  defaultBackupRepo:
37930
+ nullable: true
37855
37931
  type: boolean
37856
37932
  description: judge whether to set the backup is default which will be init
37857
37933
  environmentModuleStatus:
@@ -37950,10 +38026,10 @@ components:
37950
38026
  storage:
37951
38027
  $ref: '#/components/schemas/storageConfig'
37952
38028
  victoriaMetrics:
37953
- description: Optional per-component resources for vm-storage, vm-select and vm-insert. Omitted components and fields keep installer defaults; only vm-storage accepts disk capacity.
38029
+ description: Create VictoriaMetrics with optional per-component resources, or attach an existing cluster by reusedClusterName and reusedClusterNamespace. Omitted components keep installer defaults on create. Reuse uses the existing cluster's actual resources and does not resize it.
37954
38030
  $ref: '#/components/schemas/staticCluster'
37955
38031
  victoriaLogs:
37956
- description: Optional per-component resources for vlstorage, vlselect and vlinsert. Omitted components and fields keep installer defaults; only vlstorage accepts disk capacity.
38032
+ description: Create VictoriaLogs with optional per-component resources, or attach an existing cluster by reusedClusterName and reusedClusterNamespace. Omitted components keep installer defaults on create. Reuse uses the existing cluster specifications and does not resize it.
37957
38033
  $ref: '#/components/schemas/staticCluster'
37958
38034
  modules:
37959
38035
  type: array
@@ -39530,6 +39606,33 @@ components:
39530
39606
  $ref: '#/components/schemas/ipPoolProviderList'
39531
39607
  required:
39532
39608
  - providers
39609
+ rawClusterComponent:
39610
+ type: object
39611
+ description: Actual resources of one component in a discovered cluster.
39612
+ properties:
39613
+ component:
39614
+ type: string
39615
+ description: Component name, such as vm-storage or vlselect.
39616
+ replicas:
39617
+ type: integer
39618
+ description: the replicas of this component
39619
+ storage:
39620
+ type: number
39621
+ description: Storage size, the unit is Gi
39622
+ format: double
39623
+ cpu:
39624
+ title: CPU
39625
+ type: number
39626
+ description: CPU cores.
39627
+ format: double
39628
+ memory:
39629
+ title: Memory(Gi)
39630
+ type: number
39631
+ description: Memory, the unit is Gi.
39632
+ format: double
39633
+ classCode:
39634
+ type: string
39635
+ description: Class code recorded for this component.
39533
39636
  rawCluster:
39534
39637
  type: object
39535
39638
  description: cluster info
@@ -39537,6 +39640,9 @@ components:
39537
39640
  kubernetesName:
39538
39641
  description: the cluster name in k8s
39539
39642
  type: string
39643
+ engine:
39644
+ type: string
39645
+ description: Cluster definition of the discovered cluster, such as minio or victoria-metrics.
39540
39646
  namespace:
39541
39647
  type: string
39542
39648
  description: the namespace of cluster
@@ -39557,6 +39663,11 @@ components:
39557
39663
  type: number
39558
39664
  description: Memory, the unit is Gi.
39559
39665
  format: double
39666
+ components:
39667
+ type: array
39668
+ description: Actual resources of each component. A multi-component cluster returns every component instead of a single summary.
39669
+ items:
39670
+ $ref: '#/components/schemas/rawClusterComponent'
39560
39671
  environmentObjectStorage:
39561
39672
  type: object
39562
39673
  properties:
@@ -39564,6 +39675,25 @@ components:
39564
39675
  type: array
39565
39676
  items:
39566
39677
  $ref: '#/components/schemas/rawCluster'
39678
+ staticServiceClusterEngine:
39679
+ description: Optional engine filter for retained service clusters. Omitted or empty returns all supported MinIO, VictoriaMetrics, and VictoriaLogs candidates discovered from the kubeconfig and existing cluster records. The caller must explicitly select a cluster to reuse.
39680
+ type: string
39681
+ enum:
39682
+ - ''
39683
+ - minio
39684
+ - victoria-metrics
39685
+ - victoria-logs
39686
+ environmentStaticClusterList:
39687
+ type: object
39688
+ required:
39689
+ - kubeconfig
39690
+ properties:
39691
+ kubeconfig:
39692
+ description: The base64 encoded kubeconfig file contents to connect to this Kubernetes cluster.
39693
+ format: byte
39694
+ type: string
39695
+ engine:
39696
+ $ref: '#/components/schemas/staticServiceClusterEngine'
39567
39697
  rawBackupRepo:
39568
39698
  type: object
39569
39699
  description: backup repo info
@@ -39665,6 +39795,26 @@ components:
39665
39795
  - Mount
39666
39796
  - Tool
39667
39797
  type: string
39798
+ backupRepoCheckStatus:
39799
+ type: string
39800
+ enum:
39801
+ - Passed
39802
+ - Failed
39803
+ - NotChecked
39804
+ backupRepoCheckResult:
39805
+ type: object
39806
+ description: Result of the platform storage access check, independent of the BackupRepo CR phase.
39807
+ required:
39808
+ - status
39809
+ properties:
39810
+ status:
39811
+ $ref: '#/components/schemas/backupRepoCheckStatus'
39812
+ message:
39813
+ type: string
39814
+ checkedAt:
39815
+ type: string
39816
+ format: date-time
39817
+ x-nullable: true
39668
39818
  backupRepo:
39669
39819
  description: backupRepo is the payload for KubeBlocks cluster backup repo
39670
39820
  properties:
@@ -39713,6 +39863,8 @@ components:
39713
39863
  totalSize:
39714
39864
  description: totalSize specifies the total size of backups in the backupRepo
39715
39865
  type: string
39866
+ check:
39867
+ $ref: '#/components/schemas/backupRepoCheckResult'
39716
39868
  failedReason:
39717
39869
  type: string
39718
39870
  description: failedReason specifies the reason of the backupRepo failure
@@ -41307,6 +41459,7 @@ components:
41307
41459
  - hscale
41308
41460
  - vscale
41309
41461
  - storageExpansion
41462
+ - upgrade
41310
41463
  instanceTemplateAttribute:
41311
41464
  type: string
41312
41465
  description: Heterogeneous attribute the frontend may render on an instance template at create.
@@ -30,6 +30,12 @@ models/apiserver-phase-detail.ts
30
30
  models/apiserver-phase-status.ts
31
31
  models/apiserver-status-response.ts
32
32
  models/apiserver-status.ts
33
+ models/backup-repo-access-method.ts
34
+ models/backup-repo-check-result.ts
35
+ models/backup-repo-check-status.ts
36
+ models/backup-repo-create.ts
37
+ models/backup-repo-pvreclaim-policy.ts
38
+ models/backup-repo.ts
33
39
  models/backup-retention-policy.ts
34
40
  models/cluster-backup.ts
35
41
  models/cluster-license.ts
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
24
24
  // @ts-ignore
25
25
  import type { APIErrorResponse } from '../models';
26
26
  // @ts-ignore
27
+ import type { BackupRepo } from '../models';
28
+ // @ts-ignore
29
+ import type { BackupRepoCreate } from '../models';
30
+ // @ts-ignore
27
31
  import type { HttpBody } from '../models';
28
32
  /**
29
33
  * EnvironmentApi - axios parameter creator
@@ -31,6 +35,62 @@ import type { HttpBody } from '../models';
31
35
  */
32
36
  export const EnvironmentApiAxiosParamCreator = function (configuration?: Configuration) {
33
37
  return {
38
+ /**
39
+ * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries.
40
+ * @summary Create a backup repository
41
+ * @param {string} environmentName
42
+ * @param {string} uid
43
+ * @param {BackupRepoCreate} backupRepoCreate
44
+ * @param {boolean} [envInstall] Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation.
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ createBackupRepoInternal: async (environmentName: string, uid: string, backupRepoCreate: BackupRepoCreate, envInstall?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
49
+ // verify required parameter 'environmentName' is not null or undefined
50
+ assertParamExists('createBackupRepoInternal', 'environmentName', environmentName)
51
+ // verify required parameter 'uid' is not null or undefined
52
+ assertParamExists('createBackupRepoInternal', 'uid', uid)
53
+ // verify required parameter 'backupRepoCreate' is not null or undefined
54
+ assertParamExists('createBackupRepoInternal', 'backupRepoCreate', backupRepoCreate)
55
+ const localVarPath = `/internal/v1/environments/{environmentName}/backupRepo`
56
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ if (configuration) {
61
+ baseOptions = configuration.baseOptions;
62
+ }
63
+
64
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
65
+ const localVarHeaderParameter = {} as any;
66
+ const localVarQueryParameter = {} as any;
67
+
68
+ // authentication BasicAuth required
69
+ // http basic authentication required
70
+ setBasicAuthToObject(localVarRequestOptions, configuration)
71
+
72
+ if (uid !== undefined) {
73
+ localVarQueryParameter['uid'] = uid;
74
+ }
75
+
76
+ if (envInstall !== undefined) {
77
+ localVarQueryParameter['envInstall'] = envInstall;
78
+ }
79
+
80
+
81
+
82
+ localVarHeaderParameter['Content-Type'] = 'application/json';
83
+
84
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
85
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
86
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
87
+ localVarRequestOptions.data = serializeDataIfNeeded(backupRepoCreate, localVarRequestOptions, configuration)
88
+
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ },
34
94
  /**
35
95
  *
36
96
  * @summary Delete Environment
@@ -230,6 +290,22 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
230
290
  export const EnvironmentApiFp = function(configuration?: Configuration) {
231
291
  const localVarAxiosParamCreator = EnvironmentApiAxiosParamCreator(configuration)
232
292
  return {
293
+ /**
294
+ * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries.
295
+ * @summary Create a backup repository
296
+ * @param {string} environmentName
297
+ * @param {string} uid
298
+ * @param {BackupRepoCreate} backupRepoCreate
299
+ * @param {boolean} [envInstall] Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation.
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ async createBackupRepoInternal(environmentName: string, uid: string, backupRepoCreate: BackupRepoCreate, envInstall?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BackupRepo>> {
304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBackupRepoInternal(environmentName, uid, backupRepoCreate, envInstall, options);
305
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
306
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.createBackupRepoInternal']?.[localVarOperationServerIndex]?.url;
307
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
308
+ },
233
309
  /**
234
310
  *
235
311
  * @summary Delete Environment
@@ -299,6 +375,16 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
299
375
  export const EnvironmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
300
376
  const localVarFp = EnvironmentApiFp(configuration)
301
377
  return {
378
+ /**
379
+ * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries.
380
+ * @summary Create a backup repository
381
+ * @param {EnvironmentApiCreateBackupRepoInternalRequest} requestParameters Request parameters.
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ createBackupRepoInternal(requestParameters: EnvironmentApiCreateBackupRepoInternalRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupRepo> {
386
+ return localVarFp.createBackupRepoInternal(requestParameters.environmentName, requestParameters.uid, requestParameters.backupRepoCreate, requestParameters.envInstall, options).then((request) => request(axios, basePath));
387
+ },
302
388
  /**
303
389
  *
304
390
  * @summary Delete Environment
@@ -348,6 +434,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
348
434
  * @interface EnvironmentApi
349
435
  */
350
436
  export interface EnvironmentApiInterface {
437
+ /**
438
+ * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries.
439
+ * @summary Create a backup repository
440
+ * @param {EnvironmentApiCreateBackupRepoInternalRequest} requestParameters Request parameters.
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ * @memberof EnvironmentApiInterface
444
+ */
445
+ createBackupRepoInternal(requestParameters: EnvironmentApiCreateBackupRepoInternalRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupRepo>;
446
+
351
447
  /**
352
448
  *
353
449
  * @summary Delete Environment
@@ -390,6 +486,41 @@ export interface EnvironmentApiInterface {
390
486
 
391
487
  }
392
488
 
489
+ /**
490
+ * Request parameters for createBackupRepoInternal operation in EnvironmentApi.
491
+ * @export
492
+ * @interface EnvironmentApiCreateBackupRepoInternalRequest
493
+ */
494
+ export interface EnvironmentApiCreateBackupRepoInternalRequest {
495
+ /**
496
+ *
497
+ * @type {string}
498
+ * @memberof EnvironmentApiCreateBackupRepoInternal
499
+ */
500
+ readonly environmentName: string
501
+
502
+ /**
503
+ *
504
+ * @type {string}
505
+ * @memberof EnvironmentApiCreateBackupRepoInternal
506
+ */
507
+ readonly uid: string
508
+
509
+ /**
510
+ *
511
+ * @type {BackupRepoCreate}
512
+ * @memberof EnvironmentApiCreateBackupRepoInternal
513
+ */
514
+ readonly backupRepoCreate: BackupRepoCreate
515
+
516
+ /**
517
+ * Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation.
518
+ * @type {boolean}
519
+ * @memberof EnvironmentApiCreateBackupRepoInternal
520
+ */
521
+ readonly envInstall?: boolean
522
+ }
523
+
393
524
  /**
394
525
  * Request parameters for deleteEnvironment operation in EnvironmentApi.
395
526
  * @export
@@ -502,6 +633,18 @@ export interface EnvironmentApiSyncEnvironmentAlertConfigsRequest {
502
633
  * @extends {BaseAPI}
503
634
  */
504
635
  export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
636
+ /**
637
+ * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries.
638
+ * @summary Create a backup repository
639
+ * @param {EnvironmentApiCreateBackupRepoInternalRequest} requestParameters Request parameters.
640
+ * @param {*} [options] Override http request option.
641
+ * @throws {RequiredError}
642
+ * @memberof EnvironmentApi
643
+ */
644
+ public createBackupRepoInternal(requestParameters: EnvironmentApiCreateBackupRepoInternalRequest, options?: RawAxiosRequestConfig) {
645
+ return EnvironmentApiFp(this.configuration).createBackupRepoInternal(requestParameters.environmentName, requestParameters.uid, requestParameters.backupRepoCreate, requestParameters.envInstall, options).then((request) => request(this.axios, this.basePath));
646
+ }
647
+
505
648
  /**
506
649
  *
507
650
  * @summary Delete Environment