kb-cloud-client-typescript 2.4.0-alpha.145 → 2.4.0-alpha.147

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 (161) hide show
  1. package/dist/adminapi/apis/dms-api.d.ts +113 -0
  2. package/dist/adminapi/apis/dms-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/dms-api.js +108 -0
  4. package/dist/adminapi/apis/dms-api.js.map +1 -1
  5. package/dist/adminapi/apis/environment-api.d.ts +5 -5
  6. package/dist/adminapi/apis/environment-api.js +4 -4
  7. package/dist/adminapi/apis/shared-api.d.ts +113 -0
  8. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  9. package/dist/adminapi/apis/shared-api.js +108 -0
  10. package/dist/adminapi/apis/shared-api.js.map +1 -1
  11. package/dist/adminapi/apis/vip-pool-api.d.ts +65 -0
  12. package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
  13. package/dist/adminapi/apis/vip-pool-api.js +75 -0
  14. package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
  15. package/dist/adminapi/models/dms-audit-list.d.ts +32 -0
  16. package/dist/adminapi/models/dms-audit-list.d.ts.map +1 -0
  17. package/dist/adminapi/models/dms-audit-list.js +16 -0
  18. package/dist/adminapi/models/dms-audit-list.js.map +1 -0
  19. package/dist/adminapi/models/dms-audit-risk.d.ts +25 -0
  20. package/dist/adminapi/models/dms-audit-risk.d.ts.map +1 -0
  21. package/dist/adminapi/models/dms-audit-risk.js +29 -0
  22. package/dist/adminapi/models/dms-audit-risk.js.map +1 -0
  23. package/dist/adminapi/models/dms-audit-statement.d.ts +93 -0
  24. package/dist/adminapi/models/dms-audit-statement.d.ts.map +1 -0
  25. package/dist/adminapi/models/dms-audit-statement.js +16 -0
  26. package/dist/adminapi/models/dms-audit-statement.js.map +1 -0
  27. package/dist/adminapi/models/dms-audit-status.d.ts +23 -0
  28. package/dist/adminapi/models/dms-audit-status.d.ts.map +1 -0
  29. package/dist/adminapi/models/dms-audit-status.js +27 -0
  30. package/dist/adminapi/models/dms-audit-status.js.map +1 -0
  31. package/dist/adminapi/models/dms-audit.d.ts +154 -0
  32. package/dist/adminapi/models/dms-audit.d.ts.map +1 -0
  33. package/dist/adminapi/models/dms-audit.js +16 -0
  34. package/dist/adminapi/models/dms-audit.js.map +1 -0
  35. package/dist/adminapi/models/dms-option.d.ts +1 -1
  36. package/dist/adminapi/models/environment-module-action.d.ts +2 -1
  37. package/dist/adminapi/models/environment-module-action.d.ts.map +1 -1
  38. package/dist/adminapi/models/environment-module-action.js +3 -2
  39. package/dist/adminapi/models/environment-module-action.js.map +1 -1
  40. package/dist/adminapi/models/environment-module-status.d.ts +2 -0
  41. package/dist/adminapi/models/environment-module-status.d.ts.map +1 -1
  42. package/dist/adminapi/models/environment-module-status.js +2 -0
  43. package/dist/adminapi/models/environment-module-status.js.map +1 -1
  44. package/dist/adminapi/models/environment-module-update.d.ts +1 -1
  45. package/dist/adminapi/models/environment-module.d.ts +12 -0
  46. package/dist/adminapi/models/environment-module.d.ts.map +1 -1
  47. package/dist/adminapi/models/index.d.ts +8 -0
  48. package/dist/adminapi/models/index.d.ts.map +1 -1
  49. package/dist/adminapi/models/index.js +8 -0
  50. package/dist/adminapi/models/index.js.map +1 -1
  51. package/dist/adminapi/models/vip-port-check-request.d.ts +31 -0
  52. package/dist/adminapi/models/vip-port-check-request.d.ts.map +1 -0
  53. package/dist/adminapi/models/vip-port-check-request.js +16 -0
  54. package/dist/adminapi/models/vip-port-check-request.js.map +1 -0
  55. package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.d.ts +31 -0
  56. package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.d.ts.map +1 -0
  57. package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.js +16 -0
  58. package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.js.map +1 -0
  59. package/dist/adminapi/models/vip-port-check-result.d.ts +38 -0
  60. package/dist/adminapi/models/vip-port-check-result.d.ts.map +1 -0
  61. package/dist/adminapi/models/vip-port-check-result.js +16 -0
  62. package/dist/adminapi/models/vip-port-check-result.js.map +1 -0
  63. package/dist/internalapi/apis/environment-api.d.ts +101 -0
  64. package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
  65. package/dist/internalapi/apis/environment-api.js +98 -1
  66. package/dist/internalapi/apis/environment-api.js.map +1 -1
  67. package/dist/openapi/apis/dms-api.d.ts +113 -0
  68. package/dist/openapi/apis/dms-api.d.ts.map +1 -1
  69. package/dist/openapi/apis/dms-api.js +108 -0
  70. package/dist/openapi/apis/dms-api.js.map +1 -1
  71. package/dist/openapi/apis/shared-api.d.ts +113 -0
  72. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  73. package/dist/openapi/apis/shared-api.js +108 -0
  74. package/dist/openapi/apis/shared-api.js.map +1 -1
  75. package/dist/openapi/apis/vip-pool-api.d.ts +65 -0
  76. package/dist/openapi/apis/vip-pool-api.d.ts.map +1 -1
  77. package/dist/openapi/apis/vip-pool-api.js +75 -0
  78. package/dist/openapi/apis/vip-pool-api.js.map +1 -1
  79. package/dist/openapi/models/dms-audit-list.d.ts +32 -0
  80. package/dist/openapi/models/dms-audit-list.d.ts.map +1 -0
  81. package/dist/openapi/models/dms-audit-list.js +16 -0
  82. package/dist/openapi/models/dms-audit-list.js.map +1 -0
  83. package/dist/openapi/models/dms-audit-risk.d.ts +25 -0
  84. package/dist/openapi/models/dms-audit-risk.d.ts.map +1 -0
  85. package/dist/openapi/models/dms-audit-risk.js +29 -0
  86. package/dist/openapi/models/dms-audit-risk.js.map +1 -0
  87. package/dist/openapi/models/dms-audit-statement.d.ts +93 -0
  88. package/dist/openapi/models/dms-audit-statement.d.ts.map +1 -0
  89. package/dist/openapi/models/dms-audit-statement.js +16 -0
  90. package/dist/openapi/models/dms-audit-statement.js.map +1 -0
  91. package/dist/openapi/models/dms-audit-status.d.ts +23 -0
  92. package/dist/openapi/models/dms-audit-status.d.ts.map +1 -0
  93. package/dist/openapi/models/dms-audit-status.js +27 -0
  94. package/dist/openapi/models/dms-audit-status.js.map +1 -0
  95. package/dist/openapi/models/dms-audit.d.ts +154 -0
  96. package/dist/openapi/models/dms-audit.d.ts.map +1 -0
  97. package/dist/openapi/models/dms-audit.js +16 -0
  98. package/dist/openapi/models/dms-audit.js.map +1 -0
  99. package/dist/openapi/models/dms-option.d.ts +1 -1
  100. package/dist/openapi/models/environment-module-status.d.ts +2 -0
  101. package/dist/openapi/models/environment-module-status.d.ts.map +1 -1
  102. package/dist/openapi/models/environment-module-status.js +2 -0
  103. package/dist/openapi/models/environment-module-status.js.map +1 -1
  104. package/dist/openapi/models/environment-module.d.ts +12 -0
  105. package/dist/openapi/models/environment-module.d.ts.map +1 -1
  106. package/dist/openapi/models/index.d.ts +8 -0
  107. package/dist/openapi/models/index.d.ts.map +1 -1
  108. package/dist/openapi/models/index.js +8 -0
  109. package/dist/openapi/models/index.js.map +1 -1
  110. package/dist/openapi/models/vip-port-check-request.d.ts +31 -0
  111. package/dist/openapi/models/vip-port-check-request.d.ts.map +1 -0
  112. package/dist/openapi/models/vip-port-check-request.js +16 -0
  113. package/dist/openapi/models/vip-port-check-request.js.map +1 -0
  114. package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.d.ts +31 -0
  115. package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.d.ts.map +1 -0
  116. package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.js +16 -0
  117. package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.js.map +1 -0
  118. package/dist/openapi/models/vip-port-check-result.d.ts +38 -0
  119. package/dist/openapi/models/vip-port-check-result.d.ts.map +1 -0
  120. package/dist/openapi/models/vip-port-check-result.js +16 -0
  121. package/dist/openapi/models/vip-port-check-result.js.map +1 -0
  122. package/package.json +1 -1
  123. package/src/adminapi/.openapi-generator/FILES +8 -0
  124. package/src/adminapi/apis/dms-api.ts +198 -0
  125. package/src/adminapi/apis/environment-api.ts +5 -5
  126. package/src/adminapi/apis/shared-api.ts +198 -0
  127. package/src/adminapi/apis/vip-pool-api.ts +118 -0
  128. package/src/adminapi/models/dms-audit-list.ts +39 -0
  129. package/src/adminapi/models/dms-audit-risk.ts +34 -0
  130. package/src/adminapi/models/dms-audit-statement.ts +104 -0
  131. package/src/adminapi/models/dms-audit-status.ts +32 -0
  132. package/src/adminapi/models/dms-audit.ts +167 -0
  133. package/src/adminapi/models/dms-option.ts +1 -1
  134. package/src/adminapi/models/environment-module-action.ts +3 -2
  135. package/src/adminapi/models/environment-module-status.ts +2 -0
  136. package/src/adminapi/models/environment-module-update.ts +1 -1
  137. package/src/adminapi/models/environment-module.ts +12 -0
  138. package/src/adminapi/models/index.ts +8 -0
  139. package/src/adminapi/models/vip-port-check-request.ts +36 -0
  140. package/src/adminapi/models/vip-port-check-result-occupied-ports-inner.ts +36 -0
  141. package/src/adminapi/models/vip-port-check-result.ts +45 -0
  142. package/src/adminapi.yaml +290 -2
  143. package/src/internalapi/apis/environment-api.ts +159 -0
  144. package/src/internalapi.yaml +64 -18
  145. package/src/openapi/.openapi-generator/FILES +8 -0
  146. package/src/openapi/apis/dms-api.ts +198 -0
  147. package/src/openapi/apis/shared-api.ts +198 -0
  148. package/src/openapi/apis/vip-pool-api.ts +118 -0
  149. package/src/openapi/models/dms-audit-list.ts +39 -0
  150. package/src/openapi/models/dms-audit-risk.ts +34 -0
  151. package/src/openapi/models/dms-audit-statement.ts +104 -0
  152. package/src/openapi/models/dms-audit-status.ts +32 -0
  153. package/src/openapi/models/dms-audit.ts +167 -0
  154. package/src/openapi/models/dms-option.ts +1 -1
  155. package/src/openapi/models/environment-module-status.ts +2 -0
  156. package/src/openapi/models/environment-module.ts +12 -0
  157. package/src/openapi/models/index.ts +8 -0
  158. package/src/openapi/models/vip-port-check-request.ts +36 -0
  159. package/src/openapi/models/vip-port-check-result-occupied-ports-inner.ts +36 -0
  160. package/src/openapi/models/vip-port-check-result.ts +45 -0
  161. package/src/openapi.yaml +285 -0
@@ -25,12 +25,63 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
25
25
  import type { APIErrorResponse } from '../models';
26
26
  // @ts-ignore
27
27
  import type { VipPoolList } from '../models';
28
+ // @ts-ignore
29
+ import type { VipPortCheckRequest } from '../models';
30
+ // @ts-ignore
31
+ import type { VipPortCheckResult } from '../models';
28
32
  /**
29
33
  * VipPoolApi - axios parameter creator
30
34
  * @export
31
35
  */
32
36
  export const VipPoolApiAxiosParamCreator = function (configuration?: Configuration) {
33
37
  return {
38
+ /**
39
+ *
40
+ * @summary Check whether ports are already used on a VIP
41
+ * @param {string} environmentName name of the environment
42
+ * @param {VipPortCheckRequest} vipPortCheckRequest
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ checkVIPPorts: async (environmentName: string, vipPortCheckRequest: VipPortCheckRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'environmentName' is not null or undefined
48
+ assertParamExists('checkVIPPorts', 'environmentName', environmentName)
49
+ // verify required parameter 'vipPortCheckRequest' is not null or undefined
50
+ assertParamExists('checkVIPPorts', 'vipPortCheckRequest', vipPortCheckRequest)
51
+ const localVarPath = `/api/v1/environments/{environmentName}/loadbalancer/vipPool/checkPorts`
52
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)));
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ if (configuration) {
57
+ baseOptions = configuration.baseOptions;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication BearerToken required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ // authentication DigestAuth required
69
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
70
+
71
+
72
+
73
+ localVarHeaderParameter['Content-Type'] = 'application/json';
74
+
75
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
76
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
78
+ localVarRequestOptions.data = serializeDataIfNeeded(vipPortCheckRequest, localVarRequestOptions, configuration)
79
+
80
+ return {
81
+ url: toPathString(localVarUrlObj),
82
+ options: localVarRequestOptions,
83
+ };
84
+ },
34
85
  /**
35
86
  *
36
87
  * @summary List environment VIP Pools
@@ -82,6 +133,20 @@ export const VipPoolApiAxiosParamCreator = function (configuration?: Configurati
82
133
  export const VipPoolApiFp = function(configuration?: Configuration) {
83
134
  const localVarAxiosParamCreator = VipPoolApiAxiosParamCreator(configuration)
84
135
  return {
136
+ /**
137
+ *
138
+ * @summary Check whether ports are already used on a VIP
139
+ * @param {string} environmentName name of the environment
140
+ * @param {VipPortCheckRequest} vipPortCheckRequest
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ async checkVIPPorts(environmentName: string, vipPortCheckRequest: VipPortCheckRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VipPortCheckResult>> {
145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkVIPPorts(environmentName, vipPortCheckRequest, options);
146
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
147
+ const localVarOperationServerBasePath = operationServerMap['VipPoolApi.checkVIPPorts']?.[localVarOperationServerIndex]?.url;
148
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
149
+ },
85
150
  /**
86
151
  *
87
152
  * @summary List environment VIP Pools
@@ -105,6 +170,16 @@ export const VipPoolApiFp = function(configuration?: Configuration) {
105
170
  export const VipPoolApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
106
171
  const localVarFp = VipPoolApiFp(configuration)
107
172
  return {
173
+ /**
174
+ *
175
+ * @summary Check whether ports are already used on a VIP
176
+ * @param {VipPoolApiCheckVIPPortsRequest} requestParameters Request parameters.
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ checkVIPPorts(requestParameters: VipPoolApiCheckVIPPortsRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPortCheckResult> {
181
+ return localVarFp.checkVIPPorts(requestParameters.environmentName, requestParameters.vipPortCheckRequest, options).then((request) => request(axios, basePath));
182
+ },
108
183
  /**
109
184
  *
110
185
  * @summary List environment VIP Pools
@@ -124,6 +199,16 @@ export const VipPoolApiFactory = function (configuration?: Configuration, basePa
124
199
  * @interface VipPoolApi
125
200
  */
126
201
  export interface VipPoolApiInterface {
202
+ /**
203
+ *
204
+ * @summary Check whether ports are already used on a VIP
205
+ * @param {VipPoolApiCheckVIPPortsRequest} requestParameters Request parameters.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ * @memberof VipPoolApiInterface
209
+ */
210
+ checkVIPPorts(requestParameters: VipPoolApiCheckVIPPortsRequest, options?: RawAxiosRequestConfig): AxiosPromise<VipPortCheckResult>;
211
+
127
212
  /**
128
213
  *
129
214
  * @summary List environment VIP Pools
@@ -136,6 +221,27 @@ export interface VipPoolApiInterface {
136
221
 
137
222
  }
138
223
 
224
+ /**
225
+ * Request parameters for checkVIPPorts operation in VipPoolApi.
226
+ * @export
227
+ * @interface VipPoolApiCheckVIPPortsRequest
228
+ */
229
+ export interface VipPoolApiCheckVIPPortsRequest {
230
+ /**
231
+ * name of the environment
232
+ * @type {string}
233
+ * @memberof VipPoolApiCheckVIPPorts
234
+ */
235
+ readonly environmentName: string
236
+
237
+ /**
238
+ *
239
+ * @type {VipPortCheckRequest}
240
+ * @memberof VipPoolApiCheckVIPPorts
241
+ */
242
+ readonly vipPortCheckRequest: VipPortCheckRequest
243
+ }
244
+
139
245
  /**
140
246
  * Request parameters for listVIPPool operation in VipPoolApi.
141
247
  * @export
@@ -157,6 +263,18 @@ export interface VipPoolApiListVIPPoolRequest {
157
263
  * @extends {BaseAPI}
158
264
  */
159
265
  export class VipPoolApi extends BaseAPI implements VipPoolApiInterface {
266
+ /**
267
+ *
268
+ * @summary Check whether ports are already used on a VIP
269
+ * @param {VipPoolApiCheckVIPPortsRequest} requestParameters Request parameters.
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ * @memberof VipPoolApi
273
+ */
274
+ public checkVIPPorts(requestParameters: VipPoolApiCheckVIPPortsRequest, options?: RawAxiosRequestConfig) {
275
+ return VipPoolApiFp(this.configuration).checkVIPPorts(requestParameters.environmentName, requestParameters.vipPortCheckRequest, options).then((request) => request(this.axios, this.basePath));
276
+ }
277
+
160
278
  /**
161
279
  *
162
280
  * @summary List environment VIP Pools
@@ -0,0 +1,39 @@
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 { DmsAudit } from './dms-audit';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface DmsAuditList
24
+ */
25
+ export interface DmsAuditList {
26
+ /**
27
+ *
28
+ * @type {Array<DmsAudit>}
29
+ * @memberof DmsAuditList
30
+ */
31
+ 'items': Array<DmsAudit>;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof DmsAuditList
36
+ */
37
+ 'total': number;
38
+ }
39
+
@@ -0,0 +1,34 @@
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 DmsAuditRisk = {
24
+ unknown: 'unknown',
25
+ read_only: 'read_only',
26
+ ddl: 'ddl',
27
+ dml: 'dml',
28
+ high: 'high'
29
+ } as const;
30
+
31
+ export type DmsAuditRisk = typeof DmsAuditRisk[keyof typeof DmsAuditRisk];
32
+
33
+
34
+
@@ -0,0 +1,104 @@
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 { DmsAuditRisk } from './dms-audit-risk';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { DmsAuditStatus } from './dms-audit-status';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface DmsAuditStatement
27
+ */
28
+ export interface DmsAuditStatement {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof DmsAuditStatement
33
+ */
34
+ 'sequence': number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof DmsAuditStatement
39
+ */
40
+ 'statement': string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof DmsAuditStatement
45
+ */
46
+ 'database': string;
47
+ /**
48
+ *
49
+ * @type {Array<string>}
50
+ * @memberof DmsAuditStatement
51
+ */
52
+ 'tableNames': Array<string>;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof DmsAuditStatement
57
+ */
58
+ 'sessionId'?: string;
59
+ /**
60
+ *
61
+ * @type {DmsAuditRisk}
62
+ * @memberof DmsAuditStatement
63
+ */
64
+ 'risk': DmsAuditRisk;
65
+ /**
66
+ *
67
+ * @type {DmsAuditStatus}
68
+ * @memberof DmsAuditStatement
69
+ */
70
+ 'status': DmsAuditStatus;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof DmsAuditStatement
75
+ */
76
+ 'errorMessage': string;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof DmsAuditStatement
81
+ */
82
+ 'durationMs'?: number;
83
+ /**
84
+ *
85
+ * @type {number}
86
+ * @memberof DmsAuditStatement
87
+ */
88
+ 'rowsAffected'?: number;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof DmsAuditStatement
93
+ */
94
+ 'startedAt'?: string;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof DmsAuditStatement
99
+ */
100
+ 'finishedAt'?: string;
101
+ }
102
+
103
+
104
+
@@ -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 DmsAuditStatus = {
24
+ success: 'success',
25
+ failed: 'failed',
26
+ unknown: 'unknown'
27
+ } as const;
28
+
29
+ export type DmsAuditStatus = typeof DmsAuditStatus[keyof typeof DmsAuditStatus];
30
+
31
+
32
+
@@ -0,0 +1,167 @@
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 { DmsAuditRisk } from './dms-audit-risk';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { DmsAuditStatement } from './dms-audit-statement';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { DmsAuditStatus } from './dms-audit-status';
25
+
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface DmsAudit
30
+ */
31
+ export interface DmsAudit {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof DmsAudit
36
+ */
37
+ 'id': string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof DmsAudit
42
+ */
43
+ 'orgName': string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof DmsAudit
48
+ */
49
+ 'clusterId': string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof DmsAudit
54
+ */
55
+ 'clusterName': string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof DmsAudit
60
+ */
61
+ 'datasourceId'?: string;
62
+ /**
63
+ * Absent for migrated history with unknown actor.
64
+ * @type {string}
65
+ * @memberof DmsAudit
66
+ */
67
+ 'userId'?: string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof DmsAudit
72
+ */
73
+ 'userName': string;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof DmsAudit
78
+ */
79
+ 'engine': string;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof DmsAudit
84
+ */
85
+ 'database': string;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof DmsAudit
90
+ */
91
+ 'operation': string;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof DmsAudit
96
+ */
97
+ 'statement': string;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof DmsAudit
102
+ */
103
+ 'clientIp'?: string;
104
+ /**
105
+ * Native database session ID; see individual statements when a batch uses multiple connections.
106
+ * @type {string}
107
+ * @memberof DmsAudit
108
+ */
109
+ 'sessionId'?: string;
110
+ /**
111
+ *
112
+ * @type {DmsAuditRisk}
113
+ * @memberof DmsAudit
114
+ */
115
+ 'risk'?: DmsAuditRisk;
116
+ /**
117
+ *
118
+ * @type {Array<string>}
119
+ * @memberof DmsAudit
120
+ */
121
+ 'tableNames'?: Array<string>;
122
+ /**
123
+ *
124
+ * @type {string}
125
+ * @memberof DmsAudit
126
+ */
127
+ 'errorMessage'?: string;
128
+ /**
129
+ *
130
+ * @type {number}
131
+ * @memberof DmsAudit
132
+ */
133
+ 'rowsAffected'?: number;
134
+ /**
135
+ *
136
+ * @type {Array<DmsAuditStatement>}
137
+ * @memberof DmsAudit
138
+ */
139
+ 'statements'?: Array<DmsAuditStatement>;
140
+ /**
141
+ *
142
+ * @type {DmsAuditStatus}
143
+ * @memberof DmsAudit
144
+ */
145
+ 'status': DmsAuditStatus;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof DmsAudit
150
+ */
151
+ 'createdAt': string;
152
+ /**
153
+ *
154
+ * @type {string}
155
+ * @memberof DmsAudit
156
+ */
157
+ 'finishedAt'?: string;
158
+ /**
159
+ *
160
+ * @type {number}
161
+ * @memberof DmsAudit
162
+ */
163
+ 'durationMs'?: number;
164
+ }
165
+
166
+
167
+
@@ -33,7 +33,7 @@ export interface DmsOption {
33
33
  */
34
34
  'protocol'?: string;
35
35
  /**
36
- *
36
+ * Engine capabilities and audit policy. auditSensitiveColumns is an array of case-insensitive sensitive column names; auditHighRiskStatements is an array of engine-specific rules: SQL keyword prefixes, Redis command/subcommand prefixes (FLUSHALL, CONFIG SET), or MongoDB command names (dropDatabase, delete, dropIndexes, $out). MongoDB shell helpers map to native command names; dynamic scripts may remain unclassified. Built-in credential redaction always applies.
37
37
  * @type {{ [key: string]: any; }}
38
38
  * @memberof DmsOption
39
39
  */
@@ -32,6 +32,8 @@ export const EnvironmentModuleStatus = {
32
32
  Upgradeable: 'Upgradeable',
33
33
  Upgrading: 'Upgrading',
34
34
  UpgradeFailed: 'UpgradeFailed',
35
+ Uninstalling: 'Uninstalling',
36
+ UninstallationFailed: 'UninstallationFailed',
35
37
  Unknown: 'Unknown'
36
38
  } as const;
37
39
 
@@ -101,6 +101,18 @@ export interface EnvironmentModule {
101
101
  * @memberof EnvironmentModule
102
102
  */
103
103
  'actionWarning'?: LocalizedDescription;
104
+ /**
105
+ * Whether the module supports the Uninstall action. A dry run checks whether it is currently safe to uninstall.
106
+ * @type {boolean}
107
+ * @memberof EnvironmentModule
108
+ */
109
+ 'uninstallSupported'?: boolean;
110
+ /**
111
+ *
112
+ * @type {LocalizedDescription}
113
+ * @memberof EnvironmentModule
114
+ */
115
+ 'uninstallWarning'?: LocalizedDescription;
104
116
  }
105
117
 
106
118
 
@@ -341,6 +341,11 @@ export * from './disaster-recovery-status-response';
341
341
  export * from './disaster-recovery-task';
342
342
  export * from './dm-file';
343
343
  export * from './dm-tablespace';
344
+ export * from './dms-audit';
345
+ export * from './dms-audit-list';
346
+ export * from './dms-audit-risk';
347
+ export * from './dms-audit-statement';
348
+ export * from './dms-audit-status';
344
349
  export * from './dms-check-constraint';
345
350
  export * from './dms-exclude-constraint';
346
351
  export * from './dms-exclude-constraint-exclude-inner';
@@ -1048,6 +1053,9 @@ export * from './user-org-list';
1048
1053
  export * from './user-update';
1049
1054
  export * from './vip-pool';
1050
1055
  export * from './vip-pool-list';
1056
+ export * from './vip-port-check-request';
1057
+ export * from './vip-port-check-result';
1058
+ export * from './vip-port-check-result-occupied-ports-inner';
1051
1059
  export * from './volume-restore-policy';
1052
1060
  export * from './webhook-config';
1053
1061
  export * from './ycsb';
@@ -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
+ * VIP port check request
19
+ * @export
20
+ * @interface VipPortCheckRequest
21
+ */
22
+ export interface VipPortCheckRequest {
23
+ /**
24
+ * VIP address to check
25
+ * @type {string}
26
+ * @memberof VipPortCheckRequest
27
+ */
28
+ 'ip': string;
29
+ /**
30
+ * TCP ports to check. When empty, only the occupied ports are returned.
31
+ * @type {Array<number>}
32
+ * @memberof VipPortCheckRequest
33
+ */
34
+ 'ports'?: Array<number>;
35
+ }
36
+
@@ -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
+ * A port already used on the VIP
19
+ * @export
20
+ * @interface VipPortCheckResultOccupiedPortsInner
21
+ */
22
+ export interface VipPortCheckResultOccupiedPortsInner {
23
+ /**
24
+ * Port number
25
+ * @type {number}
26
+ * @memberof VipPortCheckResultOccupiedPortsInner
27
+ */
28
+ 'port': number;
29
+ /**
30
+ * Port protocol
31
+ * @type {string}
32
+ * @memberof VipPortCheckResultOccupiedPortsInner
33
+ */
34
+ 'protocol': string;
35
+ }
36
+