kb-cloud-client-typescript 2.4.0-alpha.149 → 2.4.0-alpha.150

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 -11
  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 -5
  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,47 @@ servers:
13
13
  security:
14
14
  - BasicAuth: []
15
15
  paths:
16
+ /internal/v1/environments/{environmentName}/backupRepo:
17
+ post:
18
+ tags:
19
+ - environment
20
+ operationId: createBackupRepoInternal
21
+ summary: Create a backup repository
22
+ description: 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.
23
+ parameters:
24
+ - name: environmentName
25
+ in: path
26
+ required: true
27
+ schema:
28
+ type: string
29
+ - name: uid
30
+ in: query
31
+ required: true
32
+ schema:
33
+ type: string
34
+ - name: envInstall
35
+ in: query
36
+ description: Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation.
37
+ schema:
38
+ type: boolean
39
+ default: false
40
+ requestBody:
41
+ required: true
42
+ content:
43
+ application/json:
44
+ schema:
45
+ $ref: '#/components/schemas/backupRepoCreate'
46
+ responses:
47
+ '200':
48
+ description: Repository created or installation resumed
49
+ content:
50
+ application/json:
51
+ schema:
52
+ $ref: '#/components/schemas/backupRepo'
53
+ '400':
54
+ $ref: '#/components/responses/400'
55
+ '500':
56
+ $ref: '#/components/responses/500'
16
57
  /internal/v1/environments/{environmentName}/modules/{moduleName}/uninstall:
17
58
  post:
18
59
  tags:
@@ -477,7 +518,7 @@ paths:
477
518
  schema:
478
519
  type: string
479
520
  requestBody:
480
- description: Optional per-component resources. Omitted components keep installer defaults.
521
+ description: Per-component resources for a new cluster, or reusedClusterName and reusedClusterNamespace to attach an existing cluster. Reuse does not apply component overrides.
481
522
  content:
482
523
  application/json:
483
524
  schema:
@@ -523,7 +564,7 @@ paths:
523
564
  tags:
524
565
  - victoriaLogsCluster
525
566
  summary: Create VictoriaLogs cluster
526
- description: Create VictoriaLogs with optional per-component resources and retention. Omitted components keep installer defaults.
567
+ description: Create VictoriaLogs with optional per-component resources and retention, or attach an existing cluster. Reuse does not apply component overrides or retention changes. Omitted components keep installer defaults on create.
527
568
  operationId: createVictoriaLogsCluster
528
569
  parameters:
529
570
  - description: name of the environment
@@ -1230,6 +1271,132 @@ components:
1230
1271
  type: http
1231
1272
  scheme: basic
1232
1273
  schemas:
1274
+ backupRepoAccessMethod:
1275
+ description: the access method for backup repo
1276
+ default: Tool
1277
+ enum:
1278
+ - Mount
1279
+ - Tool
1280
+ type: string
1281
+ backupRepoPVReclaimPolicy:
1282
+ description: Specify the reclaim policy for PVs created by this backup repo
1283
+ enum:
1284
+ - Retain
1285
+ - Delete
1286
+ type: string
1287
+ backupRepoCreate:
1288
+ description: BackupRepoCreate is the payload to create a KubeBlocks cluster backup repo
1289
+ properties:
1290
+ storageID:
1291
+ description: the id of storage that backup repo used
1292
+ type: string
1293
+ accessMethod:
1294
+ $ref: '#/components/schemas/backupRepoAccessMethod'
1295
+ default:
1296
+ description: default specifies whether the backupRepo is the default backupRepo
1297
+ type: boolean
1298
+ name:
1299
+ description: name of the backupRepo
1300
+ type: string
1301
+ params:
1302
+ type: object
1303
+ description: the parameters to create the storage
1304
+ additionalProperties:
1305
+ type: string
1306
+ pvReclaimPolicy:
1307
+ $ref: '#/components/schemas/backupRepoPVReclaimPolicy'
1308
+ volumeCapacity:
1309
+ description: Specify the capacity of the new created PVC
1310
+ type: string
1311
+ required:
1312
+ - name
1313
+ - storageID
1314
+ type: object
1315
+ backupRepoCheckStatus:
1316
+ type: string
1317
+ enum:
1318
+ - Passed
1319
+ - Failed
1320
+ - NotChecked
1321
+ backupRepoCheckResult:
1322
+ type: object
1323
+ description: Result of the platform storage access check, independent of the BackupRepo CR phase.
1324
+ required:
1325
+ - status
1326
+ properties:
1327
+ status:
1328
+ $ref: '#/components/schemas/backupRepoCheckStatus'
1329
+ message:
1330
+ type: string
1331
+ checkedAt:
1332
+ type: string
1333
+ format: date-time
1334
+ x-nullable: true
1335
+ backupRepo:
1336
+ description: backupRepo is the payload for KubeBlocks cluster backup repo
1337
+ properties:
1338
+ accessMethod:
1339
+ $ref: '#/components/schemas/backupRepoAccessMethod'
1340
+ id:
1341
+ description: the id of backup repo
1342
+ type: string
1343
+ backupNums:
1344
+ description: backupNums specifies the number of backups in the backupRepo
1345
+ type: integer
1346
+ config:
1347
+ additionalProperties:
1348
+ type: string
1349
+ description: config specifies the configuration of the backupRepo
1350
+ type: object
1351
+ createdAt:
1352
+ description: createdAt specifies the creation time of the backupRepo
1353
+ format: date-time
1354
+ type: string
1355
+ default:
1356
+ description: default specifies whether the backupRepo is the default backupRepo
1357
+ type: boolean
1358
+ environmentId:
1359
+ description: environmentId of the backupRepo
1360
+ format: uuid
1361
+ type: string
1362
+ environmentName:
1363
+ description: environmentName of the backupRepo
1364
+ type: string
1365
+ name:
1366
+ description: name of the backupRepo
1367
+ type: string
1368
+ status:
1369
+ description: status specifies the status of the backupRepo
1370
+ type: string
1371
+ storageName:
1372
+ description: the name of storage used by backup repo
1373
+ type: string
1374
+ storageID:
1375
+ description: the id of storage used by backup repo
1376
+ type: string
1377
+ storageProvider:
1378
+ description: storageProvider specifies the storage provider of the backupRepo
1379
+ type: string
1380
+ totalSize:
1381
+ description: totalSize specifies the total size of backups in the backupRepo
1382
+ type: string
1383
+ check:
1384
+ $ref: '#/components/schemas/backupRepoCheckResult'
1385
+ failedReason:
1386
+ type: string
1387
+ description: failedReason specifies the reason of the backupRepo failure
1388
+ failedMessage:
1389
+ type: string
1390
+ description: failedMessage specifies the message of the backupRepo failure
1391
+ required:
1392
+ - config
1393
+ - createdAt
1394
+ - default
1395
+ - environmentId
1396
+ - environmentName
1397
+ - name
1398
+ - storageProvider
1399
+ type: object
1233
1400
  APIErrorResponse:
1234
1401
  description: API error response.
1235
1402
  properties:
@@ -1481,9 +1648,15 @@ components:
1481
1648
  components:
1482
1649
  type: array
1483
1650
  maxItems: 3
1484
- description: Optional component overrides. Unknown, duplicate or other-engine components are rejected.
1651
+ 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.
1485
1652
  items:
1486
1653
  $ref: '#/components/schemas/staticClusterComponent'
1654
+ reusedClusterName:
1655
+ type: string
1656
+ 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.
1657
+ reusedClusterNamespace:
1658
+ type: string
1659
+ description: Namespace of the cluster named by reusedClusterName. Required when reusedClusterName is set.
1487
1660
  environmentStorage:
1488
1661
  type: object
1489
1662
  description: Storage config
@@ -2172,12 +2345,10 @@ components:
2172
2345
  retentionPeriod:
2173
2346
  type: string
2174
2347
  x-nullable: false
2175
- default: 100y
2176
2348
  description: Environment installation log retention, explicitly overriding the addon default. Defaults to 100y when omitted. Accepts a number with s (seconds), h (hours), d (days), w (weeks), M (months), or y (years); a bare number means months. Must be between 1d and 100y. Disk usage retention limits still apply.
2177
2349
  retentionMaxDiskUsagePercent:
2178
2350
  type: integer
2179
2351
  nullable: true
2180
- default: 80
2181
2352
  minimum: 1
2182
2353
  maximum: 100
2183
2354
  description: Maximum disk usage percentage before VictoriaLogs deletes older log partitions. Defaults to 80 when omitted. Applies independently of retentionPeriod.
@@ -184,6 +184,8 @@ models/backup-option.ts
184
184
  models/backup-parameters-inner.ts
185
185
  models/backup-policy.ts
186
186
  models/backup-repo-access-method.ts
187
+ models/backup-repo-check-result.ts
188
+ models/backup-repo-check-status.ts
187
189
  models/backup-repo-list.ts
188
190
  models/backup-repo-view.ts
189
191
  models/backup-repo.ts
@@ -690,6 +692,8 @@ models/instance-template-create.ts
690
692
  models/instance-template-env.ts
691
693
  models/instance-template-op.ts
692
694
  models/instance-template-replicas.ts
695
+ models/instance-template-service-versions.ts
696
+ models/instance-template-upgrade.ts
693
697
  models/instance-template-volume-expand.ts
694
698
  models/instance.ts
695
699
  models/integer-option.ts
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { BackupRepoCheckStatus } from './backup-repo-check-status';
19
+
20
+ /**
21
+ * Result of the platform storage access check, independent of the BackupRepo CR phase.
22
+ * @export
23
+ * @interface BackupRepoCheckResult
24
+ */
25
+ export interface BackupRepoCheckResult {
26
+ /**
27
+ *
28
+ * @type {BackupRepoCheckStatus}
29
+ * @memberof BackupRepoCheckResult
30
+ */
31
+ 'status': BackupRepoCheckStatus;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof BackupRepoCheckResult
36
+ */
37
+ 'message'?: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof BackupRepoCheckResult
42
+ */
43
+ 'checkedAt'?: string | null;
44
+ }
45
+
46
+
47
+
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const BackupRepoCheckStatus = {
24
+ Passed: 'Passed',
25
+ Failed: 'Failed',
26
+ NotChecked: 'NotChecked'
27
+ } as const;
28
+
29
+ export type BackupRepoCheckStatus = typeof BackupRepoCheckStatus[keyof typeof BackupRepoCheckStatus];
30
+
31
+
32
+
@@ -16,6 +16,9 @@
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
18
  import type { BackupRepoAccessMethod } from './backup-repo-access-method';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { BackupRepoCheckResult } from './backup-repo-check-result';
19
22
 
20
23
  /**
21
24
  * backupRepo is the payload for KubeBlocks cluster backup repo
@@ -107,6 +110,12 @@ export interface BackupRepo {
107
110
  * @memberof BackupRepo
108
111
  */
109
112
  'totalSize'?: string;
113
+ /**
114
+ *
115
+ * @type {BackupRepoCheckResult}
116
+ * @memberof BackupRepo
117
+ */
118
+ 'check'?: BackupRepoCheckResult;
110
119
  /**
111
120
  * failedReason specifies the reason of the backupRepo failure
112
121
  * @type {string}
@@ -16,6 +16,9 @@
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
18
  import type { EngineServiceVersionsItem } from './engine-service-versions-item';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { InstanceTemplateServiceVersions } from './instance-template-service-versions';
19
22
 
20
23
  /**
21
24
  *
@@ -23,6 +26,12 @@ import type { EngineServiceVersionsItem } from './engine-service-versions-item';
23
26
  * @interface EngineServiceVersions
24
27
  */
25
28
  export interface EngineServiceVersions {
29
+ /**
30
+ *
31
+ * @type {Array<InstanceTemplateServiceVersions>}
32
+ * @memberof EngineServiceVersions
33
+ */
34
+ 'instanceTemplates'?: Array<InstanceTemplateServiceVersions>;
26
35
  /**
27
36
  * component type, refer to componentDef and support NamePrefix
28
37
  * @type {string}
@@ -89,6 +89,8 @@ export * from './backup-parameters-inner';
89
89
  export * from './backup-policy';
90
90
  export * from './backup-repo';
91
91
  export * from './backup-repo-access-method';
92
+ export * from './backup-repo-check-result';
93
+ export * from './backup-repo-check-status';
92
94
  export * from './backup-repo-list';
93
95
  export * from './backup-repo-view';
94
96
  export * from './backup-retention-policy';
@@ -593,6 +595,8 @@ export * from './instance-template-create-env-inner';
593
595
  export * from './instance-template-env';
594
596
  export * from './instance-template-op';
595
597
  export * from './instance-template-replicas';
598
+ export * from './instance-template-service-versions';
599
+ export * from './instance-template-upgrade';
596
600
  export * from './instance-template-volume-expand';
597
601
  export * from './integer-option';
598
602
  export * from './international-desc';
@@ -23,7 +23,8 @@
23
23
  export const InstanceTemplateOp = {
24
24
  hscale: 'hscale',
25
25
  vscale: 'vscale',
26
- storageExpansion: 'storageExpansion'
26
+ storageExpansion: 'storageExpansion',
27
+ upgrade: 'upgrade'
27
28
  } as const;
28
29
 
29
30
  export type InstanceTemplateOp = typeof InstanceTemplateOp[keyof typeof InstanceTemplateOp];
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InstanceTemplateServiceVersions
21
+ */
22
+ export interface InstanceTemplateServiceVersions {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InstanceTemplateServiceVersions
27
+ */
28
+ 'name'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof InstanceTemplateServiceVersions
33
+ */
34
+ 'currentVersion'?: string;
35
+ /**
36
+ *
37
+ * @type {Array<string>}
38
+ * @memberof InstanceTemplateServiceVersions
39
+ */
40
+ 'upgradeableVersions'?: Array<string>;
41
+ }
42
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InstanceTemplateUpgrade
21
+ */
22
+ export interface InstanceTemplateUpgrade {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InstanceTemplateUpgrade
27
+ */
28
+ 'name': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof InstanceTemplateUpgrade
33
+ */
34
+ 'serviceVersion': string;
35
+ }
36
+
@@ -13,12 +13,15 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { InstanceTemplateUpgrade } from './instance-template-upgrade';
16
19
  // May contain unused imports in some cases
17
20
  // @ts-ignore
18
21
  import type { TaskSchedule } from './task-schedule';
19
22
 
20
23
  /**
21
- * OpsUpgrade is the payload to upgrade a KubeBlocks cluster
24
+ * 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.
22
25
  * @export
23
26
  * @interface OpsUpgrade
24
27
  */
@@ -29,6 +32,12 @@ export interface OpsUpgrade {
29
32
  * @memberof OpsUpgrade
30
33
  */
31
34
  'version': string;
35
+ /**
36
+ *
37
+ * @type {Array<InstanceTemplateUpgrade>}
38
+ * @memberof OpsUpgrade
39
+ */
40
+ 'instanceTemplates'?: Array<InstanceTemplateUpgrade>;
32
41
  /**
33
42
  *
34
43
  * @type {string}
package/src/openapi.yaml CHANGED
@@ -32458,12 +32458,29 @@ components:
32458
32458
  required:
32459
32459
  - items
32460
32460
  type: object
32461
+ instanceTemplateUpgrade:
32462
+ type: object
32463
+ required:
32464
+ - name
32465
+ - serviceVersion
32466
+ properties:
32467
+ name:
32468
+ type: string
32469
+ minLength: 1
32470
+ serviceVersion:
32471
+ type: string
32472
+ minLength: 1
32473
+ maxLength: 32
32461
32474
  opsUpgrade:
32462
- description: OpsUpgrade is the payload to upgrade a KubeBlocks cluster
32475
+ 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.
32463
32476
  properties:
32464
32477
  version:
32465
32478
  type: string
32466
32479
  minLength: 1
32480
+ instanceTemplates:
32481
+ type: array
32482
+ items:
32483
+ $ref: '#/components/schemas/instanceTemplateUpgrade'
32467
32484
  component:
32468
32485
  type: string
32469
32486
  schedule:
@@ -32474,6 +32491,17 @@ components:
32474
32491
  - version
32475
32492
  - component
32476
32493
  type: object
32494
+ instanceTemplateServiceVersions:
32495
+ type: object
32496
+ properties:
32497
+ name:
32498
+ type: string
32499
+ currentVersion:
32500
+ type: string
32501
+ upgradeableVersions:
32502
+ type: array
32503
+ items:
32504
+ type: string
32477
32505
  componentVersionArchitecture:
32478
32506
  type: object
32479
32507
  description: |
@@ -32517,6 +32545,11 @@ components:
32517
32545
  engineServiceVersions:
32518
32546
  type: object
32519
32547
  properties:
32548
+ instanceTemplates:
32549
+ x-omitempty: true
32550
+ type: array
32551
+ items:
32552
+ $ref: '#/components/schemas/instanceTemplateServiceVersions'
32520
32553
  component:
32521
32554
  type: string
32522
32555
  description: component type, refer to componentDef and support NamePrefix
@@ -37602,6 +37635,26 @@ components:
37602
37635
  - Mount
37603
37636
  - Tool
37604
37637
  type: string
37638
+ backupRepoCheckStatus:
37639
+ type: string
37640
+ enum:
37641
+ - Passed
37642
+ - Failed
37643
+ - NotChecked
37644
+ backupRepoCheckResult:
37645
+ type: object
37646
+ description: Result of the platform storage access check, independent of the BackupRepo CR phase.
37647
+ required:
37648
+ - status
37649
+ properties:
37650
+ status:
37651
+ $ref: '#/components/schemas/backupRepoCheckStatus'
37652
+ message:
37653
+ type: string
37654
+ checkedAt:
37655
+ type: string
37656
+ format: date-time
37657
+ x-nullable: true
37605
37658
  backupRepo:
37606
37659
  description: backupRepo is the payload for KubeBlocks cluster backup repo
37607
37660
  properties:
@@ -37650,6 +37703,8 @@ components:
37650
37703
  totalSize:
37651
37704
  description: totalSize specifies the total size of backups in the backupRepo
37652
37705
  type: string
37706
+ check:
37707
+ $ref: '#/components/schemas/backupRepoCheckResult'
37653
37708
  failedReason:
37654
37709
  type: string
37655
37710
  description: failedReason specifies the reason of the backupRepo failure
@@ -38815,6 +38870,7 @@ components:
38815
38870
  - hscale
38816
38871
  - vscale
38817
38872
  - storageExpansion
38873
+ - upgrade
38818
38874
  instanceTemplateAttribute:
38819
38875
  type: string
38820
38876
  description: Heterogeneous attribute the frontend may render on an instance template at create.