kb-cloud-client-typescript 2.3.72 → 2.3.74

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 (87) hide show
  1. package/dist/adminapi/apis/environment-api.d.ts +5 -5
  2. package/dist/adminapi/apis/environment-api.js +4 -4
  3. package/dist/adminapi/apis/vip-pool-api.d.ts +65 -0
  4. package/dist/adminapi/apis/vip-pool-api.d.ts.map +1 -1
  5. package/dist/adminapi/apis/vip-pool-api.js +75 -0
  6. package/dist/adminapi/apis/vip-pool-api.js.map +1 -1
  7. package/dist/adminapi/models/environment-module-action.d.ts +2 -1
  8. package/dist/adminapi/models/environment-module-action.d.ts.map +1 -1
  9. package/dist/adminapi/models/environment-module-action.js +3 -2
  10. package/dist/adminapi/models/environment-module-action.js.map +1 -1
  11. package/dist/adminapi/models/environment-module-status.d.ts +2 -0
  12. package/dist/adminapi/models/environment-module-status.d.ts.map +1 -1
  13. package/dist/adminapi/models/environment-module-status.js +2 -0
  14. package/dist/adminapi/models/environment-module-status.js.map +1 -1
  15. package/dist/adminapi/models/environment-module-update.d.ts +1 -1
  16. package/dist/adminapi/models/environment-module.d.ts +12 -0
  17. package/dist/adminapi/models/environment-module.d.ts.map +1 -1
  18. package/dist/adminapi/models/index.d.ts +3 -0
  19. package/dist/adminapi/models/index.d.ts.map +1 -1
  20. package/dist/adminapi/models/index.js +3 -0
  21. package/dist/adminapi/models/index.js.map +1 -1
  22. package/dist/adminapi/models/vip-port-check-request.d.ts +31 -0
  23. package/dist/adminapi/models/vip-port-check-request.d.ts.map +1 -0
  24. package/dist/adminapi/models/vip-port-check-request.js +16 -0
  25. package/dist/adminapi/models/vip-port-check-request.js.map +1 -0
  26. package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.d.ts +31 -0
  27. package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.d.ts.map +1 -0
  28. package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.js +16 -0
  29. package/dist/adminapi/models/vip-port-check-result-occupied-ports-inner.js.map +1 -0
  30. package/dist/adminapi/models/vip-port-check-result.d.ts +38 -0
  31. package/dist/adminapi/models/vip-port-check-result.d.ts.map +1 -0
  32. package/dist/adminapi/models/vip-port-check-result.js +16 -0
  33. package/dist/adminapi/models/vip-port-check-result.js.map +1 -0
  34. package/dist/internalapi/apis/environment-api.d.ts +101 -0
  35. package/dist/internalapi/apis/environment-api.d.ts.map +1 -1
  36. package/dist/internalapi/apis/environment-api.js +98 -1
  37. package/dist/internalapi/apis/environment-api.js.map +1 -1
  38. package/dist/openapi/apis/vip-pool-api.d.ts +65 -0
  39. package/dist/openapi/apis/vip-pool-api.d.ts.map +1 -1
  40. package/dist/openapi/apis/vip-pool-api.js +75 -0
  41. package/dist/openapi/apis/vip-pool-api.js.map +1 -1
  42. package/dist/openapi/models/environment-module-status.d.ts +2 -0
  43. package/dist/openapi/models/environment-module-status.d.ts.map +1 -1
  44. package/dist/openapi/models/environment-module-status.js +2 -0
  45. package/dist/openapi/models/environment-module-status.js.map +1 -1
  46. package/dist/openapi/models/environment-module.d.ts +12 -0
  47. package/dist/openapi/models/environment-module.d.ts.map +1 -1
  48. package/dist/openapi/models/index.d.ts +3 -0
  49. package/dist/openapi/models/index.d.ts.map +1 -1
  50. package/dist/openapi/models/index.js +3 -0
  51. package/dist/openapi/models/index.js.map +1 -1
  52. package/dist/openapi/models/vip-port-check-request.d.ts +31 -0
  53. package/dist/openapi/models/vip-port-check-request.d.ts.map +1 -0
  54. package/dist/openapi/models/vip-port-check-request.js +16 -0
  55. package/dist/openapi/models/vip-port-check-request.js.map +1 -0
  56. package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.d.ts +31 -0
  57. package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.d.ts.map +1 -0
  58. package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.js +16 -0
  59. package/dist/openapi/models/vip-port-check-result-occupied-ports-inner.js.map +1 -0
  60. package/dist/openapi/models/vip-port-check-result.d.ts +38 -0
  61. package/dist/openapi/models/vip-port-check-result.d.ts.map +1 -0
  62. package/dist/openapi/models/vip-port-check-result.js +16 -0
  63. package/dist/openapi/models/vip-port-check-result.js.map +1 -0
  64. package/package.json +1 -1
  65. package/src/adminapi/.openapi-generator/FILES +3 -0
  66. package/src/adminapi/apis/environment-api.ts +5 -5
  67. package/src/adminapi/apis/vip-pool-api.ts +118 -0
  68. package/src/adminapi/models/environment-module-action.ts +3 -2
  69. package/src/adminapi/models/environment-module-status.ts +2 -0
  70. package/src/adminapi/models/environment-module-update.ts +1 -1
  71. package/src/adminapi/models/environment-module.ts +12 -0
  72. package/src/adminapi/models/index.ts +3 -0
  73. package/src/adminapi/models/vip-port-check-request.ts +36 -0
  74. package/src/adminapi/models/vip-port-check-result-occupied-ports-inner.ts +36 -0
  75. package/src/adminapi/models/vip-port-check-result.ts +45 -0
  76. package/src/adminapi.yaml +93 -2
  77. package/src/internalapi/apis/environment-api.ts +159 -0
  78. package/src/internalapi.yaml +61 -15
  79. package/src/openapi/.openapi-generator/FILES +3 -0
  80. package/src/openapi/apis/vip-pool-api.ts +118 -0
  81. package/src/openapi/models/environment-module-status.ts +2 -0
  82. package/src/openapi/models/environment-module.ts +12 -0
  83. package/src/openapi/models/index.ts +3 -0
  84. package/src/openapi/models/vip-port-check-request.ts +36 -0
  85. package/src/openapi/models/vip-port-check-result-occupied-ports-inner.ts +36 -0
  86. package/src/openapi/models/vip-port-check-result.ts +45 -0
  87. package/src/openapi.yaml +88 -0
@@ -0,0 +1,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { VipPortCheckResultOccupiedPortsInner } from './vip-port-check-result-occupied-ports-inner';
19
+
20
+ /**
21
+ * VIP port check result
22
+ * @export
23
+ * @interface VipPortCheckResult
24
+ */
25
+ export interface VipPortCheckResult {
26
+ /**
27
+ * Requested ports that are already in use
28
+ * @type {Array<number>}
29
+ * @memberof VipPortCheckResult
30
+ */
31
+ 'conflicts'?: Array<number>;
32
+ /**
33
+ * Checked VIP address
34
+ * @type {string}
35
+ * @memberof VipPortCheckResult
36
+ */
37
+ 'ip': string;
38
+ /**
39
+ * Ports already used on the VIP. Resource ownership details are intentionally omitted.
40
+ * @type {Array<VipPortCheckResultOccupiedPortsInner>}
41
+ * @memberof VipPortCheckResult
42
+ */
43
+ 'occupiedPorts': Array<VipPortCheckResultOccupiedPortsInner>;
44
+ }
45
+
package/src/adminapi.yaml CHANGED
@@ -12087,6 +12087,39 @@ paths:
12087
12087
  tags:
12088
12088
  - vipPool
12089
12089
  x-codegen-request-body-name: body
12090
+ /admin/v1/environments/{environmentName}/loadbalancer/vipPool/checkPorts:
12091
+ post:
12092
+ operationId: checkVIPPorts
12093
+ summary: Check whether ports are already used on a VIP
12094
+ parameters:
12095
+ - description: name of the environment
12096
+ in: path
12097
+ name: environmentName
12098
+ required: true
12099
+ schema:
12100
+ type: string
12101
+ requestBody:
12102
+ content:
12103
+ application/json:
12104
+ schema:
12105
+ $ref: '#/components/schemas/vipPortCheckRequest'
12106
+ required: true
12107
+ responses:
12108
+ '200':
12109
+ content:
12110
+ application/json:
12111
+ schema:
12112
+ $ref: '#/components/schemas/vipPortCheckResult'
12113
+ description: A successful response.
12114
+ '400':
12115
+ $ref: '#/components/responses/400'
12116
+ '403':
12117
+ $ref: '#/components/responses/403'
12118
+ '404':
12119
+ $ref: '#/components/responses/404'
12120
+ tags:
12121
+ - vipPool
12122
+ x-codegen-request-body-name: body
12090
12123
  /admin/v1/environments/{environmentName}/loadbalancer/vipPool/{poolID}:
12091
12124
  delete:
12092
12125
  operationId: deleteVIPPool
@@ -19030,7 +19063,7 @@ paths:
19030
19063
  patch:
19031
19064
  operationId: updateEnvironmentModule
19032
19065
  summary: Update an environment module
19033
- description: Performs the requested module action. Supported quick install and upgrade actions use dryRun=true for synchronous checks without changes; dryRun=false or omitted repeats the checks and submits an asynchronous task only when all checks pass. Other module actions keep their original behavior.
19066
+ description: Performs the requested module action. Supported install, upgrade, and uninstall actions use dryRun=true for synchronous checks without changes; dryRun=false or omitted repeats the checks and submits an asynchronous task only when all checks pass. Failed uninstall tasks reuse their original resource snapshot on retry. Other module actions keep their original behavior.
19034
19067
  parameters:
19035
19068
  - name: environmentName
19036
19069
  in: path
@@ -37836,6 +37869,8 @@ components:
37836
37869
  - Upgradeable
37837
37870
  - Upgrading
37838
37871
  - UpgradeFailed
37872
+ - Uninstalling
37873
+ - UninstallationFailed
37839
37874
  - Unknown
37840
37875
  clusterInfo:
37841
37876
  type: object
@@ -37889,6 +37924,12 @@ components:
37889
37924
  actionWarning:
37890
37925
  $ref: '#/components/schemas/localizedDescription'
37891
37926
  description: Localized business-impact warning for the component action represented by the current status.
37927
+ uninstallSupported:
37928
+ type: boolean
37929
+ description: Whether the module supports the Uninstall action. A dry run checks whether it is currently safe to uninstall.
37930
+ uninstallWarning:
37931
+ $ref: '#/components/schemas/localizedDescription'
37932
+ description: Localized warning about resources and data removed by uninstallation.
37892
37933
  required:
37893
37934
  - name
37894
37935
  - status
@@ -38888,6 +38929,54 @@ components:
38888
38929
  - addresses
38889
38930
  - poolName
38890
38931
  type: object
38932
+ vipPortCheckRequest:
38933
+ description: VIP port check request
38934
+ properties:
38935
+ ip:
38936
+ description: VIP address to check
38937
+ type: string
38938
+ ports:
38939
+ description: TCP ports to check. When empty, only the occupied ports are returned.
38940
+ items:
38941
+ format: int32
38942
+ type: integer
38943
+ type: array
38944
+ required:
38945
+ - ip
38946
+ type: object
38947
+ vipPortCheckResult:
38948
+ description: VIP port check result
38949
+ properties:
38950
+ conflicts:
38951
+ description: Requested ports that are already in use
38952
+ items:
38953
+ format: int32
38954
+ type: integer
38955
+ type: array
38956
+ ip:
38957
+ description: Checked VIP address
38958
+ type: string
38959
+ occupiedPorts:
38960
+ description: Ports already used on the VIP. Resource ownership details are intentionally omitted.
38961
+ items:
38962
+ description: A port already used on the VIP
38963
+ properties:
38964
+ port:
38965
+ description: Port number
38966
+ format: int32
38967
+ type: integer
38968
+ protocol:
38969
+ description: Port protocol
38970
+ type: string
38971
+ required:
38972
+ - port
38973
+ - protocol
38974
+ type: object
38975
+ type: array
38976
+ required:
38977
+ - ip
38978
+ - occupiedPorts
38979
+ type: object
38891
38980
  vipPoolUpdate:
38892
38981
  description: VIP Pool update
38893
38982
  properties:
@@ -46048,10 +46137,12 @@ components:
46048
46137
  - Enable: Enable the module
46049
46138
  - Disable: Disable the module
46050
46139
  - Upgrade: Upgrade the module
46140
+ - Uninstall: Remove the module and its dedicated resources. Read uninstallWarning and run a dry run before confirmation.
46051
46141
  enum:
46052
46142
  - Enable
46053
46143
  - Disable
46054
46144
  - Upgrade
46145
+ - Uninstall
46055
46146
  environmentModuleUpdate:
46056
46147
  type: object
46057
46148
  description: Update information for an environment module
@@ -46064,7 +46155,7 @@ components:
46064
46155
  dryRun:
46065
46156
  type: boolean
46066
46157
  default: false
46067
- description: For a supported quick install or upgrade action, only run synchronous checks when true. When false or omitted, repeat the checks and submit the asynchronous task if all checks pass.
46158
+ description: For a supported install, upgrade, or uninstall action, only run synchronous checks when true. When false or omitted, repeat the checks and submit the asynchronous task if all checks pass.
46068
46159
  required:
46069
46160
  - name
46070
46161
  - action
@@ -69,6 +69,66 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
69
69
  options: localVarRequestOptions,
70
70
  };
71
71
  },
72
+ /**
73
+ *
74
+ * @summary Execute a persisted module uninstall step
75
+ * @param {string} environmentName
76
+ * @param {string} moduleName
77
+ * @param {ExecuteEnvironmentModuleUninstallStageEnum} stage
78
+ * @param {{ [key: string]: any; }} requestBody
79
+ * @param {string} [uid]
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ executeEnvironmentModuleUninstall: async (environmentName: string, moduleName: string, stage: ExecuteEnvironmentModuleUninstallStageEnum, requestBody: { [key: string]: any; }, uid?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
84
+ // verify required parameter 'environmentName' is not null or undefined
85
+ assertParamExists('executeEnvironmentModuleUninstall', 'environmentName', environmentName)
86
+ // verify required parameter 'moduleName' is not null or undefined
87
+ assertParamExists('executeEnvironmentModuleUninstall', 'moduleName', moduleName)
88
+ // verify required parameter 'stage' is not null or undefined
89
+ assertParamExists('executeEnvironmentModuleUninstall', 'stage', stage)
90
+ // verify required parameter 'requestBody' is not null or undefined
91
+ assertParamExists('executeEnvironmentModuleUninstall', 'requestBody', requestBody)
92
+ const localVarPath = `/internal/v1/environments/{environmentName}/modules/{moduleName}/uninstall`
93
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
94
+ .replace(`{${"moduleName"}}`, encodeURIComponent(String(moduleName)));
95
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
+ let baseOptions;
98
+ if (configuration) {
99
+ baseOptions = configuration.baseOptions;
100
+ }
101
+
102
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
103
+ const localVarHeaderParameter = {} as any;
104
+ const localVarQueryParameter = {} as any;
105
+
106
+ // authentication BasicAuth required
107
+ // http basic authentication required
108
+ setBasicAuthToObject(localVarRequestOptions, configuration)
109
+
110
+ if (stage !== undefined) {
111
+ localVarQueryParameter['stage'] = stage;
112
+ }
113
+
114
+ if (uid !== undefined) {
115
+ localVarQueryParameter['uid'] = uid;
116
+ }
117
+
118
+
119
+
120
+ localVarHeaderParameter['Content-Type'] = 'application/json';
121
+
122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
125
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
126
+
127
+ return {
128
+ url: toPathString(localVarUrlObj),
129
+ options: localVarRequestOptions,
130
+ };
131
+ },
72
132
  /**
73
133
  *
74
134
  * @summary Get environment kubeconfig
@@ -183,6 +243,23 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
183
243
  const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.deleteEnvironment']?.[localVarOperationServerIndex]?.url;
184
244
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
185
245
  },
246
+ /**
247
+ *
248
+ * @summary Execute a persisted module uninstall step
249
+ * @param {string} environmentName
250
+ * @param {string} moduleName
251
+ * @param {ExecuteEnvironmentModuleUninstallStageEnum} stage
252
+ * @param {{ [key: string]: any; }} requestBody
253
+ * @param {string} [uid]
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ async executeEnvironmentModuleUninstall(environmentName: string, moduleName: string, stage: ExecuteEnvironmentModuleUninstallStageEnum, requestBody: { [key: string]: any; }, uid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeEnvironmentModuleUninstall(environmentName, moduleName, stage, requestBody, uid, options);
259
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
260
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.executeEnvironmentModuleUninstall']?.[localVarOperationServerIndex]?.url;
261
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
262
+ },
186
263
  /**
187
264
  *
188
265
  * @summary Get environment kubeconfig
@@ -232,6 +309,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
232
309
  deleteEnvironment(requestParameters: EnvironmentApiDeleteEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
233
310
  return localVarFp.deleteEnvironment(requestParameters.environmentName, options).then((request) => request(axios, basePath));
234
311
  },
312
+ /**
313
+ *
314
+ * @summary Execute a persisted module uninstall step
315
+ * @param {EnvironmentApiExecuteEnvironmentModuleUninstallRequest} requestParameters Request parameters.
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ executeEnvironmentModuleUninstall(requestParameters: EnvironmentApiExecuteEnvironmentModuleUninstallRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
320
+ return localVarFp.executeEnvironmentModuleUninstall(requestParameters.environmentName, requestParameters.moduleName, requestParameters.stage, requestParameters.requestBody, requestParameters.uid, options).then((request) => request(axios, basePath));
321
+ },
235
322
  /**
236
323
  *
237
324
  * @summary Get environment kubeconfig
@@ -271,6 +358,16 @@ export interface EnvironmentApiInterface {
271
358
  */
272
359
  deleteEnvironment(requestParameters: EnvironmentApiDeleteEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
273
360
 
361
+ /**
362
+ *
363
+ * @summary Execute a persisted module uninstall step
364
+ * @param {EnvironmentApiExecuteEnvironmentModuleUninstallRequest} requestParameters Request parameters.
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ * @memberof EnvironmentApiInterface
368
+ */
369
+ executeEnvironmentModuleUninstall(requestParameters: EnvironmentApiExecuteEnvironmentModuleUninstallRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
370
+
274
371
  /**
275
372
  *
276
373
  * @summary Get environment kubeconfig
@@ -307,6 +404,48 @@ export interface EnvironmentApiDeleteEnvironmentRequest {
307
404
  readonly environmentName: string
308
405
  }
309
406
 
407
+ /**
408
+ * Request parameters for executeEnvironmentModuleUninstall operation in EnvironmentApi.
409
+ * @export
410
+ * @interface EnvironmentApiExecuteEnvironmentModuleUninstallRequest
411
+ */
412
+ export interface EnvironmentApiExecuteEnvironmentModuleUninstallRequest {
413
+ /**
414
+ *
415
+ * @type {string}
416
+ * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall
417
+ */
418
+ readonly environmentName: string
419
+
420
+ /**
421
+ *
422
+ * @type {string}
423
+ * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall
424
+ */
425
+ readonly moduleName: string
426
+
427
+ /**
428
+ *
429
+ * @type {'detach' | 'delete'}
430
+ * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall
431
+ */
432
+ readonly stage: ExecuteEnvironmentModuleUninstallStageEnum
433
+
434
+ /**
435
+ *
436
+ * @type {{ [key: string]: any; }}
437
+ * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall
438
+ */
439
+ readonly requestBody: { [key: string]: any; }
440
+
441
+ /**
442
+ *
443
+ * @type {string}
444
+ * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall
445
+ */
446
+ readonly uid?: string
447
+ }
448
+
310
449
  /**
311
450
  * Request parameters for getEnvironmentKubeconfigInternal operation in EnvironmentApi.
312
451
  * @export
@@ -375,6 +514,18 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
375
514
  return EnvironmentApiFp(this.configuration).deleteEnvironment(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath));
376
515
  }
377
516
 
517
+ /**
518
+ *
519
+ * @summary Execute a persisted module uninstall step
520
+ * @param {EnvironmentApiExecuteEnvironmentModuleUninstallRequest} requestParameters Request parameters.
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ * @memberof EnvironmentApi
524
+ */
525
+ public executeEnvironmentModuleUninstall(requestParameters: EnvironmentApiExecuteEnvironmentModuleUninstallRequest, options?: RawAxiosRequestConfig) {
526
+ return EnvironmentApiFp(this.configuration).executeEnvironmentModuleUninstall(requestParameters.environmentName, requestParameters.moduleName, requestParameters.stage, requestParameters.requestBody, requestParameters.uid, options).then((request) => request(this.axios, this.basePath));
527
+ }
528
+
378
529
  /**
379
530
  *
380
531
  * @summary Get environment kubeconfig
@@ -400,3 +551,11 @@ export class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface {
400
551
  }
401
552
  }
402
553
 
554
+ /**
555
+ * @export
556
+ */
557
+ export const ExecuteEnvironmentModuleUninstallStageEnum = {
558
+ detach: 'detach',
559
+ delete: 'delete'
560
+ } as const;
561
+ export type ExecuteEnvironmentModuleUninstallStageEnum = typeof ExecuteEnvironmentModuleUninstallStageEnum[keyof typeof ExecuteEnvironmentModuleUninstallStageEnum];
@@ -13,6 +13,52 @@ servers:
13
13
  security:
14
14
  - BasicAuth: []
15
15
  paths:
16
+ /internal/v1/environments/{environmentName}/modules/{moduleName}/uninstall:
17
+ post:
18
+ tags:
19
+ - environment
20
+ operationId: executeEnvironmentModuleUninstall
21
+ summary: Execute a persisted module uninstall step
22
+ parameters:
23
+ - name: environmentName
24
+ in: path
25
+ required: true
26
+ schema:
27
+ type: string
28
+ - name: moduleName
29
+ in: path
30
+ required: true
31
+ schema:
32
+ type: string
33
+ - name: stage
34
+ in: query
35
+ required: true
36
+ schema:
37
+ type: string
38
+ enum:
39
+ - detach
40
+ - delete
41
+ - name: uid
42
+ in: query
43
+ schema:
44
+ type: string
45
+ requestBody:
46
+ required: true
47
+ content:
48
+ application/json:
49
+ schema:
50
+ type: object
51
+ description: Component-specific resource identities saved by the uninstall task.
52
+ additionalProperties: true
53
+ responses:
54
+ '200':
55
+ description: Step completed
56
+ '202':
57
+ description: Waiting for resource deletion; repeat the same step with the same payload
58
+ '400':
59
+ $ref: '#/components/responses/400'
60
+ '500':
61
+ $ref: '#/components/responses/500'
16
62
  /internal/v1/environments/{environmentName}/alertConfigs/sync:
17
63
  post:
18
64
  tags:
@@ -1045,6 +1091,21 @@ components:
1045
1091
  type: http
1046
1092
  scheme: basic
1047
1093
  schemas:
1094
+ APIErrorResponse:
1095
+ description: API error response.
1096
+ properties:
1097
+ code:
1098
+ description: The HTTP status code.
1099
+ type: integer
1100
+ reason:
1101
+ description: The reason for the error.
1102
+ type: string
1103
+ message:
1104
+ description: The message for the error.
1105
+ type: string
1106
+ required:
1107
+ - code
1108
+ type: object
1048
1109
  alertStatus:
1049
1110
  enum:
1050
1111
  - resolved
@@ -1112,21 +1173,6 @@ components:
1112
1173
  version:
1113
1174
  type: string
1114
1175
  type: object
1115
- APIErrorResponse:
1116
- description: API error response.
1117
- properties:
1118
- code:
1119
- description: The HTTP status code.
1120
- type: integer
1121
- reason:
1122
- description: The reason for the error.
1123
- type: string
1124
- message:
1125
- description: The message for the error.
1126
- type: string
1127
- required:
1128
- - code
1129
- type: object
1130
1176
  httpBody:
1131
1177
  description: Represents an HTTP request or response body.
1132
1178
  properties:
@@ -1056,6 +1056,9 @@ models/user-update.ts
1056
1056
  models/user.ts
1057
1057
  models/vip-pool-list.ts
1058
1058
  models/vip-pool.ts
1059
+ models/vip-port-check-request.ts
1060
+ models/vip-port-check-result-occupied-ports-inner.ts
1061
+ models/vip-port-check-result.ts
1059
1062
  models/volume-restore-policy.ts
1060
1063
  models/webhook-config.ts
1061
1064
  models/ycsb-redis-mode.ts
@@ -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
@@ -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