kb-cloud-client-typescript 2.4.0-alpha.54 → 2.4.0-alpha.56

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 (147) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/compute-group-api.d.ts +947 -0
  6. package/dist/adminapi/apis/compute-group-api.d.ts.map +1 -0
  7. package/dist/adminapi/apis/compute-group-api.js +1005 -0
  8. package/dist/adminapi/apis/compute-group-api.js.map +1 -0
  9. package/dist/adminapi/apis/inspection-api.d.ts +17 -16
  10. package/dist/adminapi/apis/inspection-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/inspection-api.js +18 -18
  12. package/dist/adminapi/apis/inspection-api.js.map +1 -1
  13. package/dist/adminapi/models/component-item-create.d.ts +2 -2
  14. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  15. package/dist/adminapi/models/compute-group-account-list.d.ts +26 -0
  16. package/dist/adminapi/models/compute-group-account-list.d.ts.map +1 -0
  17. package/dist/adminapi/models/compute-group-account-list.js +16 -0
  18. package/dist/adminapi/models/compute-group-account-list.js.map +1 -0
  19. package/dist/adminapi/models/compute-group-account.d.ts +61 -0
  20. package/dist/adminapi/models/compute-group-account.d.ts.map +1 -0
  21. package/dist/adminapi/models/compute-group-account.js +16 -0
  22. package/dist/adminapi/models/compute-group-account.js.map +1 -0
  23. package/dist/adminapi/models/compute-group-backend.d.ts +73 -0
  24. package/dist/adminapi/models/compute-group-backend.d.ts.map +1 -0
  25. package/dist/adminapi/models/compute-group-backend.js +16 -0
  26. package/dist/adminapi/models/compute-group-backend.js.map +1 -0
  27. package/dist/adminapi/models/compute-group-create.d.ts +37 -0
  28. package/dist/adminapi/models/compute-group-create.d.ts.map +1 -0
  29. package/dist/adminapi/models/compute-group-create.js +16 -0
  30. package/dist/adminapi/models/compute-group-create.js.map +1 -0
  31. package/dist/adminapi/models/compute-group-list.d.ts +38 -0
  32. package/dist/adminapi/models/compute-group-list.d.ts.map +1 -0
  33. package/dist/adminapi/models/compute-group-list.js +16 -0
  34. package/dist/adminapi/models/compute-group-list.js.map +1 -0
  35. package/dist/adminapi/models/compute-group-scale.d.ts +31 -0
  36. package/dist/adminapi/models/compute-group-scale.d.ts.map +1 -0
  37. package/dist/adminapi/models/compute-group-scale.js +16 -0
  38. package/dist/adminapi/models/compute-group-scale.js.map +1 -0
  39. package/dist/adminapi/models/compute-group.d.ts +110 -0
  40. package/dist/adminapi/models/compute-group.d.ts.map +1 -0
  41. package/dist/adminapi/models/compute-group.js +16 -0
  42. package/dist/adminapi/models/compute-group.js.map +1 -0
  43. package/dist/adminapi/models/engine-mode-transition.d.ts +13 -0
  44. package/dist/adminapi/models/engine-mode-transition.d.ts.map +1 -1
  45. package/dist/adminapi/models/env-rerender.d.ts +31 -0
  46. package/dist/adminapi/models/env-rerender.d.ts.map +1 -0
  47. package/dist/adminapi/models/env-rerender.js +16 -0
  48. package/dist/adminapi/models/env-rerender.js.map +1 -0
  49. package/dist/adminapi/models/index.d.ts +9 -0
  50. package/dist/adminapi/models/index.d.ts.map +1 -1
  51. package/dist/adminapi/models/index.js +9 -0
  52. package/dist/adminapi/models/index.js.map +1 -1
  53. package/dist/adminapi/models/inspection-task-create.d.ts +49 -0
  54. package/dist/adminapi/models/inspection-task-create.d.ts.map +1 -0
  55. package/dist/adminapi/models/inspection-task-create.js +16 -0
  56. package/dist/adminapi/models/inspection-task-create.js.map +1 -0
  57. package/dist/openapi/api.d.ts +1 -0
  58. package/dist/openapi/api.d.ts.map +1 -1
  59. package/dist/openapi/api.js +1 -0
  60. package/dist/openapi/api.js.map +1 -1
  61. package/dist/openapi/apis/compute-group-api.d.ts +947 -0
  62. package/dist/openapi/apis/compute-group-api.d.ts.map +1 -0
  63. package/dist/openapi/apis/compute-group-api.js +1005 -0
  64. package/dist/openapi/apis/compute-group-api.js.map +1 -0
  65. package/dist/openapi/apis/inspection-api.d.ts +17 -16
  66. package/dist/openapi/apis/inspection-api.d.ts.map +1 -1
  67. package/dist/openapi/apis/inspection-api.js +18 -18
  68. package/dist/openapi/apis/inspection-api.js.map +1 -1
  69. package/dist/openapi/models/component-item-create.d.ts +2 -2
  70. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  71. package/dist/openapi/models/compute-group-account-list.d.ts +26 -0
  72. package/dist/openapi/models/compute-group-account-list.d.ts.map +1 -0
  73. package/dist/openapi/models/compute-group-account-list.js +16 -0
  74. package/dist/openapi/models/compute-group-account-list.js.map +1 -0
  75. package/dist/openapi/models/compute-group-account.d.ts +61 -0
  76. package/dist/openapi/models/compute-group-account.d.ts.map +1 -0
  77. package/dist/openapi/models/compute-group-account.js +16 -0
  78. package/dist/openapi/models/compute-group-account.js.map +1 -0
  79. package/dist/openapi/models/compute-group-backend.d.ts +73 -0
  80. package/dist/openapi/models/compute-group-backend.d.ts.map +1 -0
  81. package/dist/openapi/models/compute-group-backend.js +16 -0
  82. package/dist/openapi/models/compute-group-backend.js.map +1 -0
  83. package/dist/openapi/models/compute-group-create.d.ts +37 -0
  84. package/dist/openapi/models/compute-group-create.d.ts.map +1 -0
  85. package/dist/openapi/models/compute-group-create.js +16 -0
  86. package/dist/openapi/models/compute-group-create.js.map +1 -0
  87. package/dist/openapi/models/compute-group-list.d.ts +38 -0
  88. package/dist/openapi/models/compute-group-list.d.ts.map +1 -0
  89. package/dist/openapi/models/compute-group-list.js +16 -0
  90. package/dist/openapi/models/compute-group-list.js.map +1 -0
  91. package/dist/openapi/models/compute-group-scale.d.ts +31 -0
  92. package/dist/openapi/models/compute-group-scale.d.ts.map +1 -0
  93. package/dist/openapi/models/compute-group-scale.js +16 -0
  94. package/dist/openapi/models/compute-group-scale.js.map +1 -0
  95. package/dist/openapi/models/compute-group.d.ts +110 -0
  96. package/dist/openapi/models/compute-group.d.ts.map +1 -0
  97. package/dist/openapi/models/compute-group.js +16 -0
  98. package/dist/openapi/models/compute-group.js.map +1 -0
  99. package/dist/openapi/models/engine-mode-transition.d.ts +13 -0
  100. package/dist/openapi/models/engine-mode-transition.d.ts.map +1 -1
  101. package/dist/openapi/models/env-rerender.d.ts +31 -0
  102. package/dist/openapi/models/env-rerender.d.ts.map +1 -0
  103. package/dist/openapi/models/env-rerender.js +16 -0
  104. package/dist/openapi/models/env-rerender.js.map +1 -0
  105. package/dist/openapi/models/index.d.ts +9 -0
  106. package/dist/openapi/models/index.d.ts.map +1 -1
  107. package/dist/openapi/models/index.js +9 -0
  108. package/dist/openapi/models/index.js.map +1 -1
  109. package/dist/openapi/models/inspection-task-create.d.ts +49 -0
  110. package/dist/openapi/models/inspection-task-create.d.ts.map +1 -0
  111. package/dist/openapi/models/inspection-task-create.js +16 -0
  112. package/dist/openapi/models/inspection-task-create.js.map +1 -0
  113. package/package.json +1 -1
  114. package/src/adminapi/.openapi-generator/FILES +10 -0
  115. package/src/adminapi/api.ts +1 -0
  116. package/src/adminapi/apis/compute-group-api.ts +1618 -0
  117. package/src/adminapi/apis/inspection-api.ts +24 -22
  118. package/src/adminapi/models/component-item-create.ts +2 -2
  119. package/src/adminapi/models/compute-group-account-list.ts +33 -0
  120. package/src/adminapi/models/compute-group-account.ts +66 -0
  121. package/src/adminapi/models/compute-group-backend.ts +78 -0
  122. package/src/adminapi/models/compute-group-create.ts +42 -0
  123. package/src/adminapi/models/compute-group-list.ts +45 -0
  124. package/src/adminapi/models/compute-group-scale.ts +36 -0
  125. package/src/adminapi/models/compute-group.ts +117 -0
  126. package/src/adminapi/models/engine-mode-transition.ts +15 -0
  127. package/src/adminapi/models/env-rerender.ts +36 -0
  128. package/src/adminapi/models/index.ts +9 -0
  129. package/src/adminapi/models/inspection-task-create.ts +54 -0
  130. package/src/adminapi.yaml +774 -59
  131. package/src/openapi/.openapi-generator/FILES +10 -0
  132. package/src/openapi/api.ts +1 -0
  133. package/src/openapi/apis/compute-group-api.ts +1618 -0
  134. package/src/openapi/apis/inspection-api.ts +24 -22
  135. package/src/openapi/models/component-item-create.ts +2 -2
  136. package/src/openapi/models/compute-group-account-list.ts +33 -0
  137. package/src/openapi/models/compute-group-account.ts +66 -0
  138. package/src/openapi/models/compute-group-backend.ts +78 -0
  139. package/src/openapi/models/compute-group-create.ts +42 -0
  140. package/src/openapi/models/compute-group-list.ts +45 -0
  141. package/src/openapi/models/compute-group-scale.ts +36 -0
  142. package/src/openapi/models/compute-group.ts +117 -0
  143. package/src/openapi/models/engine-mode-transition.ts +15 -0
  144. package/src/openapi/models/env-rerender.ts +36 -0
  145. package/src/openapi/models/index.ts +9 -0
  146. package/src/openapi/models/inspection-task-create.ts +54 -0
  147. package/src/openapi.yaml +719 -4
@@ -36,6 +36,8 @@ import type { InspectionScript } from '../models';
36
36
  // @ts-ignore
37
37
  import type { InspectionTask } from '../models';
38
38
  // @ts-ignore
39
+ import type { InspectionTaskCreate } from '../models';
40
+ // @ts-ignore
39
41
  import type { InspectionTaskFormat } from '../models';
40
42
  /**
41
43
  * InspectionApi - axios parameter creator
@@ -130,18 +132,18 @@ export const InspectionApiAxiosParamCreator = function (configuration?: Configur
130
132
  };
131
133
  },
132
134
  /**
133
- *
134
- * @summary create inspection task by org
135
+ * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
136
+ * @summary Trigger inspection for selected clusters in an organization
135
137
  * @param {string} orgName name of the Org
136
- * @param {InspectionTask} inspectionTask
138
+ * @param {InspectionTaskCreate} inspectionTaskCreate
137
139
  * @param {*} [options] Override http request option.
138
140
  * @throws {RequiredError}
139
141
  */
140
- createInspectionTaskByOrg: async (orgName: string, inspectionTask: InspectionTask, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ createInspectionTaskByOrg: async (orgName: string, inspectionTaskCreate: InspectionTaskCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
141
143
  // verify required parameter 'orgName' is not null or undefined
142
144
  assertParamExists('createInspectionTaskByOrg', 'orgName', orgName)
143
- // verify required parameter 'inspectionTask' is not null or undefined
144
- assertParamExists('createInspectionTaskByOrg', 'inspectionTask', inspectionTask)
145
+ // verify required parameter 'inspectionTaskCreate' is not null or undefined
146
+ assertParamExists('createInspectionTaskByOrg', 'inspectionTaskCreate', inspectionTaskCreate)
145
147
  const localVarPath = `/api/v1/organizations/{orgName}/inspectionTasksByOrg`
146
148
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
147
149
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -169,7 +171,7 @@ export const InspectionApiAxiosParamCreator = function (configuration?: Configur
169
171
  setSearchParams(localVarUrlObj, localVarQueryParameter);
170
172
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
173
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
- localVarRequestOptions.data = serializeDataIfNeeded(inspectionTask, localVarRequestOptions, configuration)
174
+ localVarRequestOptions.data = serializeDataIfNeeded(inspectionTaskCreate, localVarRequestOptions, configuration)
173
175
 
174
176
  return {
175
177
  url: toPathString(localVarUrlObj),
@@ -676,15 +678,15 @@ export const InspectionApiFp = function(configuration?: Configuration) {
676
678
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
677
679
  },
678
680
  /**
679
- *
680
- * @summary create inspection task by org
681
+ * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
682
+ * @summary Trigger inspection for selected clusters in an organization
681
683
  * @param {string} orgName name of the Org
682
- * @param {InspectionTask} inspectionTask
684
+ * @param {InspectionTaskCreate} inspectionTaskCreate
683
685
  * @param {*} [options] Override http request option.
684
686
  * @throws {RequiredError}
685
687
  */
686
- async createInspectionTaskByOrg(orgName: string, inspectionTask: InspectionTask, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
687
- const localVarAxiosArgs = await localVarAxiosParamCreator.createInspectionTaskByOrg(orgName, inspectionTask, options);
688
+ async createInspectionTaskByOrg(orgName: string, inspectionTaskCreate: InspectionTaskCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
689
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createInspectionTaskByOrg(orgName, inspectionTaskCreate, options);
688
690
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
689
691
  const localVarOperationServerBasePath = operationServerMap['InspectionApi.createInspectionTaskByOrg']?.[localVarOperationServerIndex]?.url;
690
692
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -853,14 +855,14 @@ export const InspectionApiFactory = function (configuration?: Configuration, bas
853
855
  return localVarFp.createInspectionScript(requestParameters.inspectionScript, options).then((request) => request(axios, basePath));
854
856
  },
855
857
  /**
856
- *
857
- * @summary create inspection task by org
858
+ * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
859
+ * @summary Trigger inspection for selected clusters in an organization
858
860
  * @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters.
859
861
  * @param {*} [options] Override http request option.
860
862
  * @throws {RequiredError}
861
863
  */
862
864
  createInspectionTaskByOrg(requestParameters: InspectionApiCreateInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
863
- return localVarFp.createInspectionTaskByOrg(requestParameters.orgName, requestParameters.inspectionTask, options).then((request) => request(axios, basePath));
865
+ return localVarFp.createInspectionTaskByOrg(requestParameters.orgName, requestParameters.inspectionTaskCreate, options).then((request) => request(axios, basePath));
864
866
  },
865
867
  /**
866
868
  *
@@ -982,8 +984,8 @@ export interface InspectionApiInterface {
982
984
  createInspectionScript(requestParameters: InspectionApiCreateInspectionScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise<InspectionScript>;
983
985
 
984
986
  /**
985
- *
986
- * @summary create inspection task by org
987
+ * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
988
+ * @summary Trigger inspection for selected clusters in an organization
987
989
  * @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters.
988
990
  * @param {*} [options] Override http request option.
989
991
  * @throws {RequiredError}
@@ -1126,10 +1128,10 @@ export interface InspectionApiCreateInspectionTaskByOrgRequest {
1126
1128
 
1127
1129
  /**
1128
1130
  *
1129
- * @type {InspectionTask}
1131
+ * @type {InspectionTaskCreate}
1130
1132
  * @memberof InspectionApiCreateInspectionTaskByOrg
1131
1133
  */
1132
- readonly inspectionTask: InspectionTask
1134
+ readonly inspectionTaskCreate: InspectionTaskCreate
1133
1135
  }
1134
1136
 
1135
1137
  /**
@@ -1402,15 +1404,15 @@ export class InspectionApi extends BaseAPI implements InspectionApiInterface {
1402
1404
  }
1403
1405
 
1404
1406
  /**
1405
- *
1406
- * @summary create inspection task by org
1407
+ * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts.
1408
+ * @summary Trigger inspection for selected clusters in an organization
1407
1409
  * @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters.
1408
1410
  * @param {*} [options] Override http request option.
1409
1411
  * @throws {RequiredError}
1410
1412
  * @memberof InspectionApi
1411
1413
  */
1412
1414
  public createInspectionTaskByOrg(requestParameters: InspectionApiCreateInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig) {
1413
- return InspectionApiFp(this.configuration).createInspectionTaskByOrg(requestParameters.orgName, requestParameters.inspectionTask, options).then((request) => request(this.axios, this.basePath));
1415
+ return InspectionApiFp(this.configuration).createInspectionTaskByOrg(requestParameters.orgName, requestParameters.inspectionTaskCreate, options).then((request) => request(this.axios, this.basePath));
1414
1416
  }
1415
1417
 
1416
1418
  /**
@@ -39,11 +39,11 @@ export interface ComponentItemCreate {
39
39
  */
40
40
  'compNum'?: number;
41
41
  /**
42
- * The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
42
+ * Omit to use the cluster chart default. Set zero to disable the component when its resource constraints allow zero replicas.
43
43
  * @type {number}
44
44
  * @memberof ComponentItemCreate
45
45
  */
46
- 'replicas'?: number;
46
+ 'replicas'?: number | null;
47
47
  /**
48
48
  * Whether to skip resource constraint validation when creating cluster
49
49
  * @type {boolean}
@@ -0,0 +1,33 @@
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 { ComputeGroupAccount } from './compute-group-account';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface ComputeGroupAccountList
24
+ */
25
+ export interface ComputeGroupAccountList {
26
+ /**
27
+ *
28
+ * @type {Array<ComputeGroupAccount>}
29
+ * @memberof ComputeGroupAccountList
30
+ */
31
+ 'items': Array<ComputeGroupAccount>;
32
+ }
33
+
@@ -0,0 +1,66 @@
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
+ * Grants reported by the engine can include role inheritance. Revoking a direct grant does not remove inherited permissions.
19
+ * @export
20
+ * @interface ComputeGroupAccount
21
+ */
22
+ export interface ComputeGroupAccount {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof ComputeGroupAccount
27
+ */
28
+ 'identity'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ComputeGroupAccount
33
+ */
34
+ 'accountName'?: string;
35
+ /**
36
+ *
37
+ * @type {boolean}
38
+ * @memberof ComputeGroupAccount
39
+ */
40
+ 'manageable'?: boolean;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ComputeGroupAccount
45
+ */
46
+ 'globalGrants'?: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ComputeGroupAccount
51
+ */
52
+ 'computeGrants'?: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ComputeGroupAccount
57
+ */
58
+ 'roles'?: string;
59
+ /**
60
+ *
61
+ * @type {boolean}
62
+ * @memberof ComputeGroupAccount
63
+ */
64
+ 'isDefault'?: boolean;
65
+ }
66
+
@@ -0,0 +1,78 @@
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 ComputeGroupBackend
21
+ */
22
+ export interface ComputeGroupBackend {
23
+ /**
24
+ * Opaque backend ID; do not convert to a JavaScript number.
25
+ * @type {string}
26
+ * @memberof ComputeGroupBackend
27
+ */
28
+ 'id'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ComputeGroupBackend
33
+ */
34
+ 'host'?: string;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof ComputeGroupBackend
39
+ */
40
+ 'heartbeatPort'?: number;
41
+ /**
42
+ *
43
+ * @type {boolean}
44
+ * @memberof ComputeGroupBackend
45
+ */
46
+ 'alive'?: boolean;
47
+ /**
48
+ *
49
+ * @type {boolean}
50
+ * @memberof ComputeGroupBackend
51
+ */
52
+ 'decommissioned'?: boolean;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof ComputeGroupBackend
57
+ */
58
+ 'tabletCount'?: number;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ComputeGroupBackend
63
+ */
64
+ 'lastHeartbeat'?: string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof ComputeGroupBackend
69
+ */
70
+ 'version'?: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof ComputeGroupBackend
75
+ */
76
+ 'errorMessage'?: string;
77
+ }
78
+
@@ -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 ComputeGroupCreate
21
+ */
22
+ export interface ComputeGroupCreate {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof ComputeGroupCreate
27
+ */
28
+ 'name': string;
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof ComputeGroupCreate
33
+ */
34
+ 'replicas': number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ComputeGroupCreate
39
+ */
40
+ 'classCode': string;
41
+ }
42
+
@@ -0,0 +1,45 @@
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 { ComputeGroup } from './compute-group';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface ComputeGroupList
24
+ */
25
+ export interface ComputeGroupList {
26
+ /**
27
+ *
28
+ * @type {Array<ComputeGroup>}
29
+ * @memberof ComputeGroupList
30
+ */
31
+ 'items': Array<ComputeGroup>;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof ComputeGroupList
36
+ */
37
+ 'managementSupported'?: boolean;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ComputeGroupList
42
+ */
43
+ 'unsupportedReason'?: string;
44
+ }
45
+
@@ -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 ComputeGroupScale
21
+ */
22
+ export interface ComputeGroupScale {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof ComputeGroupScale
27
+ */
28
+ 'replicas'?: number | null;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ComputeGroupScale
33
+ */
34
+ 'classCode'?: string;
35
+ }
36
+
@@ -0,0 +1,117 @@
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 { ComputeGroupBackend } from './compute-group-backend';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface ComputeGroup
24
+ */
25
+ export interface ComputeGroup {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ComputeGroup
30
+ */
31
+ 'name'?: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ComputeGroup
36
+ */
37
+ 'componentName'?: string;
38
+ /**
39
+ *
40
+ * @type {boolean}
41
+ * @memberof ComputeGroup
42
+ */
43
+ 'managed'?: boolean;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof ComputeGroup
48
+ */
49
+ 'isDefault'?: boolean;
50
+ /**
51
+ * Kubernetes component phase, independent of engine membership.
52
+ * @type {string}
53
+ * @memberof ComputeGroup
54
+ */
55
+ 'phase'?: string;
56
+ /**
57
+ *
58
+ * @type {boolean}
59
+ * @memberof ComputeGroup
60
+ */
61
+ 'stopped'?: boolean;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof ComputeGroup
66
+ */
67
+ 'replicas'?: number;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof ComputeGroup
72
+ */
73
+ 'classCode'?: string;
74
+ /**
75
+ *
76
+ * @type {number}
77
+ * @memberof ComputeGroup
78
+ */
79
+ 'cpu'?: number;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof ComputeGroup
84
+ */
85
+ 'memory'?: number;
86
+ /**
87
+ *
88
+ * @type {number}
89
+ * @memberof ComputeGroup
90
+ */
91
+ 'backendCount'?: number;
92
+ /**
93
+ *
94
+ * @type {number}
95
+ * @memberof ComputeGroup
96
+ */
97
+ 'aliveBackendCount'?: number;
98
+ /**
99
+ *
100
+ * @type {Array<string>}
101
+ * @memberof ComputeGroup
102
+ */
103
+ 'defaultUsers'?: Array<string>;
104
+ /**
105
+ *
106
+ * @type {Array<ComputeGroupBackend>}
107
+ * @memberof ComputeGroup
108
+ */
109
+ 'backends'?: Array<ComputeGroupBackend>;
110
+ /**
111
+ *
112
+ * @type {Array<string>}
113
+ * @memberof ComputeGroup
114
+ */
115
+ 'allowedActions'?: Array<string>;
116
+ }
117
+
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { EnvRerender } from './env-rerender';
16
19
 
17
20
  /**
18
21
  *
@@ -20,11 +23,23 @@
20
23
  * @interface EngineModeTransition
21
24
  */
22
25
  export interface EngineModeTransition {
26
+ /**
27
+ *
28
+ * @type {EnvRerender}
29
+ * @memberof EngineModeTransition
30
+ */
31
+ 'envRerender'?: EnvRerender;
23
32
  /**
24
33
  * Target mode name.
25
34
  * @type {string}
26
35
  * @memberof EngineModeTransition
27
36
  */
28
37
  'mode': string;
38
+ /**
39
+ * Components that must be running once the mode change is done, in addition to the ones the transition creates. Declare a component here when the transition re-renders it instead of creating it, so it must settle before the transition is considered finished.
40
+ * @type {Array<string>}
41
+ * @memberof EngineModeTransition
42
+ */
43
+ 'waitComponentsRunningAfterModeChange'?: Array<string>;
29
44
  }
30
45
 
@@ -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
+ * Rule telling whether the env of an existing component is re-rendered when the mode transitions.
19
+ * @export
20
+ * @interface EnvRerender
21
+ */
22
+ export interface EnvRerender {
23
+ /**
24
+ * Re-render the whole env of the component.
25
+ * @type {boolean}
26
+ * @memberof EnvRerender
27
+ */
28
+ 'allEnv'?: boolean;
29
+ /**
30
+ * Re-render only these env vars, when allEnv is not set.
31
+ * @type {Array<string>}
32
+ * @memberof EnvRerender
33
+ */
34
+ 'includeEnvs'?: Array<string>;
35
+ }
36
+
@@ -204,6 +204,13 @@ export * from './component-option-version-major-version-version-mapping-inner';
204
204
  export * from './component-option-version-minor-version';
205
205
  export * from './component-version-architecture';
206
206
  export * from './component-volume-item';
207
+ export * from './compute-group';
208
+ export * from './compute-group-account';
209
+ export * from './compute-group-account-list';
210
+ export * from './compute-group-backend';
211
+ export * from './compute-group-create';
212
+ export * from './compute-group-list';
213
+ export * from './compute-group-scale';
207
214
  export * from './config-entry';
208
215
  export * from './config-spec-option';
209
216
  export * from './config-type';
@@ -418,6 +425,7 @@ export * from './engine-status';
418
425
  export * from './engine-tls-option';
419
426
  export * from './engine-type-item';
420
427
  export * from './engine-type-list';
428
+ export * from './env-rerender';
421
429
  export * from './environment';
422
430
  export * from './environment-architecture';
423
431
  export * from './environment-list';
@@ -480,6 +488,7 @@ export * from './inspection-evaluation-mode';
480
488
  export * from './inspection-script';
481
489
  export * from './inspection-script-category';
482
490
  export * from './inspection-task';
491
+ export * from './inspection-task-create';
483
492
  export * from './inspection-task-format';
484
493
  export * from './inspection-task-item';
485
494
  export * from './inspection-threshold-direction';