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
@@ -34,7 +34,7 @@ import type { StaticCluster } from '../models';
34
34
  export const VictoriaLogsClusterApiAxiosParamCreator = function (configuration?: Configuration) {
35
35
  return {
36
36
  /**
37
- * Create VictoriaLogs with optional per-component resources. Omitted components keep installer defaults.
37
+ * Create VictoriaLogs with optional per-component resources, or attach an existing cluster. Reuse does not apply component overrides. Omitted components keep installer defaults on create.
38
38
  * @summary Create VictoriaLogs cluster
39
39
  * @param {string} environmentName name of the environment
40
40
  * @param {StaticCluster} [staticCluster]
@@ -86,7 +86,7 @@ export const VictoriaLogsClusterApiFp = function(configuration?: Configuration)
86
86
  const localVarAxiosParamCreator = VictoriaLogsClusterApiAxiosParamCreator(configuration)
87
87
  return {
88
88
  /**
89
- * Create VictoriaLogs with optional per-component resources. Omitted components keep installer defaults.
89
+ * Create VictoriaLogs with optional per-component resources, or attach an existing cluster. Reuse does not apply component overrides. Omitted components keep installer defaults on create.
90
90
  * @summary Create VictoriaLogs cluster
91
91
  * @param {string} environmentName name of the environment
92
92
  * @param {StaticCluster} [staticCluster]
@@ -110,7 +110,7 @@ export const VictoriaLogsClusterApiFactory = function (configuration?: Configura
110
110
  const localVarFp = VictoriaLogsClusterApiFp(configuration)
111
111
  return {
112
112
  /**
113
- * Create VictoriaLogs with optional per-component resources. Omitted components keep installer defaults.
113
+ * Create VictoriaLogs with optional per-component resources, or attach an existing cluster. Reuse does not apply component overrides. Omitted components keep installer defaults on create.
114
114
  * @summary Create VictoriaLogs cluster
115
115
  * @param {VictoriaLogsClusterApiCreateVictoriaLogsClusterRequest} requestParameters Request parameters.
116
116
  * @param {*} [options] Override http request option.
@@ -129,7 +129,7 @@ export const VictoriaLogsClusterApiFactory = function (configuration?: Configura
129
129
  */
130
130
  export interface VictoriaLogsClusterApiInterface {
131
131
  /**
132
- * Create VictoriaLogs with optional per-component resources. Omitted components keep installer defaults.
132
+ * Create VictoriaLogs with optional per-component resources, or attach an existing cluster. Reuse does not apply component overrides. Omitted components keep installer defaults on create.
133
133
  * @summary Create VictoriaLogs cluster
134
134
  * @param {VictoriaLogsClusterApiCreateVictoriaLogsClusterRequest} requestParameters Request parameters.
135
135
  * @param {*} [options] Override http request option.
@@ -169,7 +169,7 @@ export interface VictoriaLogsClusterApiCreateVictoriaLogsClusterRequest {
169
169
  */
170
170
  export class VictoriaLogsClusterApi extends BaseAPI implements VictoriaLogsClusterApiInterface {
171
171
  /**
172
- * Create VictoriaLogs with optional per-component resources. Omitted components keep installer defaults.
172
+ * Create VictoriaLogs with optional per-component resources, or attach an existing cluster. Reuse does not apply component overrides. Omitted components keep installer defaults on create.
173
173
  * @summary Create VictoriaLogs cluster
174
174
  * @param {VictoriaLogsClusterApiCreateVictoriaLogsClusterRequest} requestParameters Request parameters.
175
175
  * @param {*} [options] Override http request option.
@@ -37,7 +37,7 @@ export const VictoriaMetricsClusterApiAxiosParamCreator = function (configuratio
37
37
  * create VictoriaMetrics Cluster and install victoria-metrics addon when it\'s uninstalled
38
38
  * @summary create metrics Monitor
39
39
  * @param {string} environmentName name of the environment
40
- * @param {StaticCluster} [staticCluster] Optional per-component resources. Omitted components keep installer defaults.
40
+ * @param {StaticCluster} [staticCluster] Per-component resources for a new cluster, or reusedClusterName and reusedClusterNamespace to attach an existing cluster. Reuse does not apply component overrides.
41
41
  * @param {*} [options] Override http request option.
42
42
  * @throws {RequiredError}
43
43
  */
@@ -89,7 +89,7 @@ export const VictoriaMetricsClusterApiFp = function(configuration?: Configuratio
89
89
  * create VictoriaMetrics Cluster and install victoria-metrics addon when it\'s uninstalled
90
90
  * @summary create metrics Monitor
91
91
  * @param {string} environmentName name of the environment
92
- * @param {StaticCluster} [staticCluster] Optional per-component resources. Omitted components keep installer defaults.
92
+ * @param {StaticCluster} [staticCluster] Per-component resources for a new cluster, or reusedClusterName and reusedClusterNamespace to attach an existing cluster. Reuse does not apply component overrides.
93
93
  * @param {*} [options] Override http request option.
94
94
  * @throws {RequiredError}
95
95
  */
@@ -154,7 +154,7 @@ export interface VictoriaMetricsClusterApiCreateVictoriaMetricsClusterRequest {
154
154
  readonly environmentName: string
155
155
 
156
156
  /**
157
- * Optional per-component resources. Omitted components keep installer defaults.
157
+ * Per-component resources for a new cluster, or reusedClusterName and reusedClusterNamespace to attach an existing cluster. Reuse does not apply component overrides.
158
158
  * @type {StaticCluster}
159
159
  * @memberof VictoriaMetricsClusterApiCreateVictoriaMetricsCluster
160
160
  */
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud Internal API
5
+ * The Internal API is using for interaction of ApeCloud platform microservices.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
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
+ * the access method for backup repo
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const BackupRepoAccessMethod = {
24
+ Mount: 'Mount',
25
+ Tool: 'Tool'
26
+ } as const;
27
+
28
+ export type BackupRepoAccessMethod = typeof BackupRepoAccessMethod[keyof typeof BackupRepoAccessMethod];
29
+
30
+
31
+
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud Internal API
5
+ * The Internal API is using for interaction of ApeCloud platform microservices.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
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 Internal API
5
+ * The Internal API is using for interaction of ApeCloud platform microservices.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
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
+
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud Internal API
5
+ * The Internal API is using for interaction of ApeCloud platform microservices.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
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 { BackupRepoAccessMethod } from './backup-repo-access-method';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { BackupRepoPVReclaimPolicy } from './backup-repo-pvreclaim-policy';
22
+
23
+ /**
24
+ * BackupRepoCreate is the payload to create a KubeBlocks cluster backup repo
25
+ * @export
26
+ * @interface BackupRepoCreate
27
+ */
28
+ export interface BackupRepoCreate {
29
+ /**
30
+ * the id of storage that backup repo used
31
+ * @type {string}
32
+ * @memberof BackupRepoCreate
33
+ */
34
+ 'storageID': string;
35
+ /**
36
+ *
37
+ * @type {BackupRepoAccessMethod}
38
+ * @memberof BackupRepoCreate
39
+ */
40
+ 'accessMethod'?: BackupRepoAccessMethod;
41
+ /**
42
+ * default specifies whether the backupRepo is the default backupRepo
43
+ * @type {boolean}
44
+ * @memberof BackupRepoCreate
45
+ */
46
+ 'default'?: boolean;
47
+ /**
48
+ * name of the backupRepo
49
+ * @type {string}
50
+ * @memberof BackupRepoCreate
51
+ */
52
+ 'name': string;
53
+ /**
54
+ * the parameters to create the storage
55
+ * @type {{ [key: string]: string; }}
56
+ * @memberof BackupRepoCreate
57
+ */
58
+ 'params'?: { [key: string]: string; };
59
+ /**
60
+ *
61
+ * @type {BackupRepoPVReclaimPolicy}
62
+ * @memberof BackupRepoCreate
63
+ */
64
+ 'pvReclaimPolicy'?: BackupRepoPVReclaimPolicy;
65
+ /**
66
+ * Specify the capacity of the new created PVC
67
+ * @type {string}
68
+ * @memberof BackupRepoCreate
69
+ */
70
+ 'volumeCapacity'?: string;
71
+ }
72
+
73
+
74
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud Internal API
5
+ * The Internal API is using for interaction of ApeCloud platform microservices.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
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
+ * Specify the reclaim policy for PVs created by this backup repo
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const BackupRepoPVReclaimPolicy = {
24
+ Retain: 'Retain',
25
+ Delete: 'Delete'
26
+ } as const;
27
+
28
+ export type BackupRepoPVReclaimPolicy = typeof BackupRepoPVReclaimPolicy[keyof typeof BackupRepoPVReclaimPolicy];
29
+
30
+
31
+
@@ -0,0 +1,134 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud Internal API
5
+ * The Internal API is using for interaction of ApeCloud platform microservices.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
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 { 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';
22
+
23
+ /**
24
+ * backupRepo is the payload for KubeBlocks cluster backup repo
25
+ * @export
26
+ * @interface BackupRepo
27
+ */
28
+ export interface BackupRepo {
29
+ /**
30
+ *
31
+ * @type {BackupRepoAccessMethod}
32
+ * @memberof BackupRepo
33
+ */
34
+ 'accessMethod'?: BackupRepoAccessMethod;
35
+ /**
36
+ * the id of backup repo
37
+ * @type {string}
38
+ * @memberof BackupRepo
39
+ */
40
+ 'id'?: string;
41
+ /**
42
+ * backupNums specifies the number of backups in the backupRepo
43
+ * @type {number}
44
+ * @memberof BackupRepo
45
+ */
46
+ 'backupNums'?: number;
47
+ /**
48
+ * config specifies the configuration of the backupRepo
49
+ * @type {{ [key: string]: string; }}
50
+ * @memberof BackupRepo
51
+ */
52
+ 'config': { [key: string]: string; };
53
+ /**
54
+ * createdAt specifies the creation time of the backupRepo
55
+ * @type {string}
56
+ * @memberof BackupRepo
57
+ */
58
+ 'createdAt': string;
59
+ /**
60
+ * default specifies whether the backupRepo is the default backupRepo
61
+ * @type {boolean}
62
+ * @memberof BackupRepo
63
+ */
64
+ 'default': boolean;
65
+ /**
66
+ * environmentId of the backupRepo
67
+ * @type {string}
68
+ * @memberof BackupRepo
69
+ */
70
+ 'environmentId': string;
71
+ /**
72
+ * environmentName of the backupRepo
73
+ * @type {string}
74
+ * @memberof BackupRepo
75
+ */
76
+ 'environmentName': string;
77
+ /**
78
+ * name of the backupRepo
79
+ * @type {string}
80
+ * @memberof BackupRepo
81
+ */
82
+ 'name': string;
83
+ /**
84
+ * status specifies the status of the backupRepo
85
+ * @type {string}
86
+ * @memberof BackupRepo
87
+ */
88
+ 'status'?: string;
89
+ /**
90
+ * the name of storage used by backup repo
91
+ * @type {string}
92
+ * @memberof BackupRepo
93
+ */
94
+ 'storageName'?: string;
95
+ /**
96
+ * the id of storage used by backup repo
97
+ * @type {string}
98
+ * @memberof BackupRepo
99
+ */
100
+ 'storageID'?: string;
101
+ /**
102
+ * storageProvider specifies the storage provider of the backupRepo
103
+ * @type {string}
104
+ * @memberof BackupRepo
105
+ */
106
+ 'storageProvider': string;
107
+ /**
108
+ * totalSize specifies the total size of backups in the backupRepo
109
+ * @type {string}
110
+ * @memberof BackupRepo
111
+ */
112
+ 'totalSize'?: string;
113
+ /**
114
+ *
115
+ * @type {BackupRepoCheckResult}
116
+ * @memberof BackupRepo
117
+ */
118
+ 'check'?: BackupRepoCheckResult;
119
+ /**
120
+ * failedReason specifies the reason of the backupRepo failure
121
+ * @type {string}
122
+ * @memberof BackupRepo
123
+ */
124
+ 'failedReason'?: string;
125
+ /**
126
+ * failedMessage specifies the message of the backupRepo failure
127
+ * @type {string}
128
+ * @memberof BackupRepo
129
+ */
130
+ 'failedMessage'?: string;
131
+ }
132
+
133
+
134
+
@@ -5,6 +5,12 @@ export * from './apiserver-phase-detail';
5
5
  export * from './apiserver-phase-status';
6
6
  export * from './apiserver-status';
7
7
  export * from './apiserver-status-response';
8
+ export * from './backup-repo';
9
+ export * from './backup-repo-access-method';
10
+ export * from './backup-repo-check-result';
11
+ export * from './backup-repo-check-status';
12
+ export * from './backup-repo-create';
13
+ export * from './backup-repo-pvreclaim-policy';
8
14
  export * from './backup-retention-policy';
9
15
  export * from './cluster';
10
16
  export * from './cluster-backup';
@@ -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
 
@@ -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. Omitted components keep installer defaults.
567
+ description: Create VictoriaLogs with optional per-component resources, or attach an existing cluster. Reuse does not apply component overrides. Omitted components keep installer defaults on create.
527
568
  operationId: createVictoriaLogsCluster
528
569
  parameters:
529
570
  - description: name of the environment
@@ -1091,6 +1132,132 @@ components:
1091
1132
  type: http
1092
1133
  scheme: basic
1093
1134
  schemas:
1135
+ backupRepoAccessMethod:
1136
+ description: the access method for backup repo
1137
+ default: Tool
1138
+ enum:
1139
+ - Mount
1140
+ - Tool
1141
+ type: string
1142
+ backupRepoPVReclaimPolicy:
1143
+ description: Specify the reclaim policy for PVs created by this backup repo
1144
+ enum:
1145
+ - Retain
1146
+ - Delete
1147
+ type: string
1148
+ backupRepoCreate:
1149
+ description: BackupRepoCreate is the payload to create a KubeBlocks cluster backup repo
1150
+ properties:
1151
+ storageID:
1152
+ description: the id of storage that backup repo used
1153
+ type: string
1154
+ accessMethod:
1155
+ $ref: '#/components/schemas/backupRepoAccessMethod'
1156
+ default:
1157
+ description: default specifies whether the backupRepo is the default backupRepo
1158
+ type: boolean
1159
+ name:
1160
+ description: name of the backupRepo
1161
+ type: string
1162
+ params:
1163
+ type: object
1164
+ description: the parameters to create the storage
1165
+ additionalProperties:
1166
+ type: string
1167
+ pvReclaimPolicy:
1168
+ $ref: '#/components/schemas/backupRepoPVReclaimPolicy'
1169
+ volumeCapacity:
1170
+ description: Specify the capacity of the new created PVC
1171
+ type: string
1172
+ required:
1173
+ - name
1174
+ - storageID
1175
+ type: object
1176
+ backupRepoCheckStatus:
1177
+ type: string
1178
+ enum:
1179
+ - Passed
1180
+ - Failed
1181
+ - NotChecked
1182
+ backupRepoCheckResult:
1183
+ type: object
1184
+ description: Result of the platform storage access check, independent of the BackupRepo CR phase.
1185
+ required:
1186
+ - status
1187
+ properties:
1188
+ status:
1189
+ $ref: '#/components/schemas/backupRepoCheckStatus'
1190
+ message:
1191
+ type: string
1192
+ checkedAt:
1193
+ type: string
1194
+ format: date-time
1195
+ x-nullable: true
1196
+ backupRepo:
1197
+ description: backupRepo is the payload for KubeBlocks cluster backup repo
1198
+ properties:
1199
+ accessMethod:
1200
+ $ref: '#/components/schemas/backupRepoAccessMethod'
1201
+ id:
1202
+ description: the id of backup repo
1203
+ type: string
1204
+ backupNums:
1205
+ description: backupNums specifies the number of backups in the backupRepo
1206
+ type: integer
1207
+ config:
1208
+ additionalProperties:
1209
+ type: string
1210
+ description: config specifies the configuration of the backupRepo
1211
+ type: object
1212
+ createdAt:
1213
+ description: createdAt specifies the creation time of the backupRepo
1214
+ format: date-time
1215
+ type: string
1216
+ default:
1217
+ description: default specifies whether the backupRepo is the default backupRepo
1218
+ type: boolean
1219
+ environmentId:
1220
+ description: environmentId of the backupRepo
1221
+ format: uuid
1222
+ type: string
1223
+ environmentName:
1224
+ description: environmentName of the backupRepo
1225
+ type: string
1226
+ name:
1227
+ description: name of the backupRepo
1228
+ type: string
1229
+ status:
1230
+ description: status specifies the status of the backupRepo
1231
+ type: string
1232
+ storageName:
1233
+ description: the name of storage used by backup repo
1234
+ type: string
1235
+ storageID:
1236
+ description: the id of storage used by backup repo
1237
+ type: string
1238
+ storageProvider:
1239
+ description: storageProvider specifies the storage provider of the backupRepo
1240
+ type: string
1241
+ totalSize:
1242
+ description: totalSize specifies the total size of backups in the backupRepo
1243
+ type: string
1244
+ check:
1245
+ $ref: '#/components/schemas/backupRepoCheckResult'
1246
+ failedReason:
1247
+ type: string
1248
+ description: failedReason specifies the reason of the backupRepo failure
1249
+ failedMessage:
1250
+ type: string
1251
+ description: failedMessage specifies the message of the backupRepo failure
1252
+ required:
1253
+ - config
1254
+ - createdAt
1255
+ - default
1256
+ - environmentId
1257
+ - environmentName
1258
+ - name
1259
+ - storageProvider
1260
+ type: object
1094
1261
  APIErrorResponse:
1095
1262
  description: API error response.
1096
1263
  properties:
@@ -1339,9 +1506,15 @@ components:
1339
1506
  components:
1340
1507
  type: array
1341
1508
  maxItems: 3
1342
- description: Optional component overrides. Unknown, duplicate or other-engine components are rejected.
1509
+ 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.
1343
1510
  items:
1344
1511
  $ref: '#/components/schemas/staticClusterComponent'
1512
+ reusedClusterName:
1513
+ type: string
1514
+ 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.
1515
+ reusedClusterNamespace:
1516
+ type: string
1517
+ description: Namespace of the cluster named by reusedClusterName. Required when reusedClusterName is set.
1345
1518
  environmentStorage:
1346
1519
  type: object
1347
1520
  description: Storage config