kb-cloud-client-typescript 0.0.0-refactor-remove-optional-components.20261111.642 → 0.0.0-refactor-remove-optional-components.20261111.858

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
@@ -0,0 +1,36 @@
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
+
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
+
@@ -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
@@ -7014,6 +7014,65 @@ paths:
7014
7014
  tags:
7015
7015
  - databaseParameters
7016
7016
  x-codegen-request-body-name: body
7017
+ /admin/v1/organizations/{orgName}/clusters/{clusterName}/dms/audits:
7018
+ get:
7019
+ tags:
7020
+ - dms
7021
+ - shared
7022
+ operationId: listDMSAudit
7023
+ summary: List independent DMS audit records
7024
+ description: Only organization administrators and authorized admin-portal users can read these records.
7025
+ parameters:
7026
+ - name: orgName
7027
+ in: path
7028
+ required: true
7029
+ schema:
7030
+ type: string
7031
+ - name: clusterName
7032
+ in: path
7033
+ required: true
7034
+ schema:
7035
+ type: string
7036
+ - name: offset
7037
+ in: query
7038
+ schema:
7039
+ type: integer
7040
+ minimum: 0
7041
+ default: 0
7042
+ - name: limit
7043
+ in: query
7044
+ schema:
7045
+ type: integer
7046
+ minimum: 1
7047
+ maximum: 100
7048
+ default: 20
7049
+ - name: userName
7050
+ in: query
7051
+ schema:
7052
+ type: string
7053
+ - name: status
7054
+ in: query
7055
+ schema:
7056
+ $ref: '#/components/schemas/dmsAuditStatus'
7057
+ - name: from
7058
+ in: query
7059
+ schema:
7060
+ type: string
7061
+ format: date-time
7062
+ - name: to
7063
+ in: query
7064
+ schema:
7065
+ type: string
7066
+ format: date-time
7067
+ responses:
7068
+ '200':
7069
+ description: Audit records, ordered by newest first.
7070
+ content:
7071
+ application/json:
7072
+ schema:
7073
+ $ref: '#/components/schemas/dmsAuditList'
7074
+ '403':
7075
+ $ref: '#/components/responses/403'
7017
7076
  /admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}:
7018
7077
  get:
7019
7078
  tags:
@@ -13588,6 +13647,39 @@ paths:
13588
13647
  tags:
13589
13648
  - vipPool
13590
13649
  x-codegen-request-body-name: body
13650
+ /admin/v1/environments/{environmentName}/loadbalancer/vipPool/checkPorts:
13651
+ post:
13652
+ operationId: checkVIPPorts
13653
+ summary: Check whether ports are already used on a VIP
13654
+ parameters:
13655
+ - description: name of the environment
13656
+ in: path
13657
+ name: environmentName
13658
+ required: true
13659
+ schema:
13660
+ type: string
13661
+ requestBody:
13662
+ content:
13663
+ application/json:
13664
+ schema:
13665
+ $ref: '#/components/schemas/vipPortCheckRequest'
13666
+ required: true
13667
+ responses:
13668
+ '200':
13669
+ content:
13670
+ application/json:
13671
+ schema:
13672
+ $ref: '#/components/schemas/vipPortCheckResult'
13673
+ description: A successful response.
13674
+ '400':
13675
+ $ref: '#/components/responses/400'
13676
+ '403':
13677
+ $ref: '#/components/responses/403'
13678
+ '404':
13679
+ $ref: '#/components/responses/404'
13680
+ tags:
13681
+ - vipPool
13682
+ x-codegen-request-body-name: body
13591
13683
  /admin/v1/environments/{environmentName}/loadbalancer/vipPool/{poolID}:
13592
13684
  delete:
13593
13685
  operationId: deleteVIPPool
@@ -20641,7 +20733,7 @@ paths:
20641
20733
  patch:
20642
20734
  operationId: updateEnvironmentModule
20643
20735
  summary: Update an environment module
20644
- 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.
20736
+ 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.
20645
20737
  parameters:
20646
20738
  - name: environmentName
20647
20739
  in: path
@@ -37495,6 +37587,143 @@ components:
37495
37587
  deprecated:
37496
37588
  description: which version the parameter is deprecated
37497
37589
  type: string
37590
+ dmsAuditStatus:
37591
+ type: string
37592
+ enum:
37593
+ - success
37594
+ - failed
37595
+ - unknown
37596
+ dmsAuditRisk:
37597
+ type: string
37598
+ enum:
37599
+ - unknown
37600
+ - read_only
37601
+ - ddl
37602
+ - dml
37603
+ - high
37604
+ dmsAuditStatement:
37605
+ type: object
37606
+ required:
37607
+ - sequence
37608
+ - statement
37609
+ - database
37610
+ - tableNames
37611
+ - risk
37612
+ - status
37613
+ - errorMessage
37614
+ properties:
37615
+ sequence:
37616
+ type: integer
37617
+ statement:
37618
+ type: string
37619
+ database:
37620
+ type: string
37621
+ tableNames:
37622
+ type: array
37623
+ items:
37624
+ type: string
37625
+ sessionId:
37626
+ type: string
37627
+ risk:
37628
+ $ref: '#/components/schemas/dmsAuditRisk'
37629
+ status:
37630
+ $ref: '#/components/schemas/dmsAuditStatus'
37631
+ errorMessage:
37632
+ type: string
37633
+ durationMs:
37634
+ type: integer
37635
+ format: int64
37636
+ rowsAffected:
37637
+ type: integer
37638
+ format: int64
37639
+ startedAt:
37640
+ type: string
37641
+ format: date-time
37642
+ finishedAt:
37643
+ type: string
37644
+ format: date-time
37645
+ dmsAudit:
37646
+ type: object
37647
+ required:
37648
+ - id
37649
+ - orgName
37650
+ - clusterId
37651
+ - clusterName
37652
+ - userName
37653
+ - engine
37654
+ - database
37655
+ - operation
37656
+ - statement
37657
+ - status
37658
+ - createdAt
37659
+ properties:
37660
+ id:
37661
+ type: string
37662
+ orgName:
37663
+ type: string
37664
+ clusterId:
37665
+ type: string
37666
+ clusterName:
37667
+ type: string
37668
+ datasourceId:
37669
+ type: string
37670
+ userId:
37671
+ type: string
37672
+ description: Absent for migrated history with unknown actor.
37673
+ userName:
37674
+ type: string
37675
+ engine:
37676
+ type: string
37677
+ database:
37678
+ type: string
37679
+ operation:
37680
+ type: string
37681
+ statement:
37682
+ type: string
37683
+ clientIp:
37684
+ type: string
37685
+ sessionId:
37686
+ type: string
37687
+ description: Native database session ID; see individual statements when a batch uses multiple connections.
37688
+ risk:
37689
+ $ref: '#/components/schemas/dmsAuditRisk'
37690
+ tableNames:
37691
+ type: array
37692
+ items:
37693
+ type: string
37694
+ errorMessage:
37695
+ type: string
37696
+ rowsAffected:
37697
+ type: integer
37698
+ format: int64
37699
+ statements:
37700
+ type: array
37701
+ items:
37702
+ $ref: '#/components/schemas/dmsAuditStatement'
37703
+ status:
37704
+ $ref: '#/components/schemas/dmsAuditStatus'
37705
+ createdAt:
37706
+ type: string
37707
+ format: date-time
37708
+ finishedAt:
37709
+ type: string
37710
+ format: date-time
37711
+ durationMs:
37712
+ type: integer
37713
+ format: int64
37714
+ dmsAuditList:
37715
+ type: object
37716
+ required:
37717
+ - items
37718
+ - total
37719
+ properties:
37720
+ items:
37721
+ type: array
37722
+ items:
37723
+ $ref: '#/components/schemas/dmsAudit'
37724
+ total:
37725
+ type: integer
37726
+ format: int64
37498
37727
  datasource:
37499
37728
  required:
37500
37729
  - type
@@ -41298,6 +41527,8 @@ components:
41298
41527
  - Upgradeable
41299
41528
  - Upgrading
41300
41529
  - UpgradeFailed
41530
+ - Uninstalling
41531
+ - UninstallationFailed
41301
41532
  - Unknown
41302
41533
  clusterInfo:
41303
41534
  type: object
@@ -41351,6 +41582,12 @@ components:
41351
41582
  actionWarning:
41352
41583
  $ref: '#/components/schemas/localizedDescription'
41353
41584
  description: Localized business-impact warning for the component action represented by the current status.
41585
+ uninstallSupported:
41586
+ type: boolean
41587
+ description: Whether the module supports the Uninstall action. A dry run checks whether it is currently safe to uninstall.
41588
+ uninstallWarning:
41589
+ $ref: '#/components/schemas/localizedDescription'
41590
+ description: Localized warning about resources and data removed by uninstallation.
41354
41591
  required:
41355
41592
  - name
41356
41593
  - status
@@ -42486,6 +42723,54 @@ components:
42486
42723
  - addresses
42487
42724
  - poolName
42488
42725
  type: object
42726
+ vipPortCheckRequest:
42727
+ description: VIP port check request
42728
+ properties:
42729
+ ip:
42730
+ description: VIP address to check
42731
+ type: string
42732
+ ports:
42733
+ description: TCP ports to check. When empty, only the occupied ports are returned.
42734
+ items:
42735
+ format: int32
42736
+ type: integer
42737
+ type: array
42738
+ required:
42739
+ - ip
42740
+ type: object
42741
+ vipPortCheckResult:
42742
+ description: VIP port check result
42743
+ properties:
42744
+ conflicts:
42745
+ description: Requested ports that are already in use
42746
+ items:
42747
+ format: int32
42748
+ type: integer
42749
+ type: array
42750
+ ip:
42751
+ description: Checked VIP address
42752
+ type: string
42753
+ occupiedPorts:
42754
+ description: Ports already used on the VIP. Resource ownership details are intentionally omitted.
42755
+ items:
42756
+ description: A port already used on the VIP
42757
+ properties:
42758
+ port:
42759
+ description: Port number
42760
+ format: int32
42761
+ type: integer
42762
+ protocol:
42763
+ description: Port protocol
42764
+ type: string
42765
+ required:
42766
+ - port
42767
+ - protocol
42768
+ type: object
42769
+ type: array
42770
+ required:
42771
+ - ip
42772
+ - occupiedPorts
42773
+ type: object
42489
42774
  vipPoolUpdate:
42490
42775
  description: VIP Pool update
42491
42776
  properties:
@@ -45304,6 +45589,7 @@ components:
45304
45589
  type: string
45305
45590
  feature:
45306
45591
  type: object
45592
+ description: '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.'
45307
45593
  additionalProperties: {}
45308
45594
  defaultAccount:
45309
45595
  type: string
@@ -49630,10 +49916,12 @@ components:
49630
49916
  - Enable: Enable the module
49631
49917
  - Disable: Disable the module
49632
49918
  - Upgrade: Upgrade the module
49919
+ - Uninstall: Remove the module and its dedicated resources. Read uninstallWarning and run a dry run before confirmation.
49633
49920
  enum:
49634
49921
  - Enable
49635
49922
  - Disable
49636
49923
  - Upgrade
49924
+ - Uninstall
49637
49925
  environmentModuleUpdate:
49638
49926
  type: object
49639
49927
  description: Update information for an environment module
@@ -49646,7 +49934,7 @@ components:
49646
49934
  dryRun:
49647
49935
  type: boolean
49648
49936
  default: false
49649
- 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.
49937
+ 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.
49650
49938
  required:
49651
49939
  - name
49652
49940
  - 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];