kb-cloud-client-typescript 2.4.0-alpha.144 → 2.4.0-alpha.146

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
@@ -37494,6 +37586,143 @@ components:
37494
37586
  deprecated:
37495
37587
  description: which version the parameter is deprecated
37496
37588
  type: string
37589
+ dmsAuditStatus:
37590
+ type: string
37591
+ enum:
37592
+ - success
37593
+ - failed
37594
+ - unknown
37595
+ dmsAuditRisk:
37596
+ type: string
37597
+ enum:
37598
+ - unknown
37599
+ - read_only
37600
+ - ddl
37601
+ - dml
37602
+ - high
37603
+ dmsAuditStatement:
37604
+ type: object
37605
+ required:
37606
+ - sequence
37607
+ - statement
37608
+ - database
37609
+ - tableNames
37610
+ - risk
37611
+ - status
37612
+ - errorMessage
37613
+ properties:
37614
+ sequence:
37615
+ type: integer
37616
+ statement:
37617
+ type: string
37618
+ database:
37619
+ type: string
37620
+ tableNames:
37621
+ type: array
37622
+ items:
37623
+ type: string
37624
+ sessionId:
37625
+ type: string
37626
+ risk:
37627
+ $ref: '#/components/schemas/dmsAuditRisk'
37628
+ status:
37629
+ $ref: '#/components/schemas/dmsAuditStatus'
37630
+ errorMessage:
37631
+ type: string
37632
+ durationMs:
37633
+ type: integer
37634
+ format: int64
37635
+ rowsAffected:
37636
+ type: integer
37637
+ format: int64
37638
+ startedAt:
37639
+ type: string
37640
+ format: date-time
37641
+ finishedAt:
37642
+ type: string
37643
+ format: date-time
37644
+ dmsAudit:
37645
+ type: object
37646
+ required:
37647
+ - id
37648
+ - orgName
37649
+ - clusterId
37650
+ - clusterName
37651
+ - userName
37652
+ - engine
37653
+ - database
37654
+ - operation
37655
+ - statement
37656
+ - status
37657
+ - createdAt
37658
+ properties:
37659
+ id:
37660
+ type: string
37661
+ orgName:
37662
+ type: string
37663
+ clusterId:
37664
+ type: string
37665
+ clusterName:
37666
+ type: string
37667
+ datasourceId:
37668
+ type: string
37669
+ userId:
37670
+ type: string
37671
+ description: Absent for migrated history with unknown actor.
37672
+ userName:
37673
+ type: string
37674
+ engine:
37675
+ type: string
37676
+ database:
37677
+ type: string
37678
+ operation:
37679
+ type: string
37680
+ statement:
37681
+ type: string
37682
+ clientIp:
37683
+ type: string
37684
+ sessionId:
37685
+ type: string
37686
+ description: Native database session ID; see individual statements when a batch uses multiple connections.
37687
+ risk:
37688
+ $ref: '#/components/schemas/dmsAuditRisk'
37689
+ tableNames:
37690
+ type: array
37691
+ items:
37692
+ type: string
37693
+ errorMessage:
37694
+ type: string
37695
+ rowsAffected:
37696
+ type: integer
37697
+ format: int64
37698
+ statements:
37699
+ type: array
37700
+ items:
37701
+ $ref: '#/components/schemas/dmsAuditStatement'
37702
+ status:
37703
+ $ref: '#/components/schemas/dmsAuditStatus'
37704
+ createdAt:
37705
+ type: string
37706
+ format: date-time
37707
+ finishedAt:
37708
+ type: string
37709
+ format: date-time
37710
+ durationMs:
37711
+ type: integer
37712
+ format: int64
37713
+ dmsAuditList:
37714
+ type: object
37715
+ required:
37716
+ - items
37717
+ - total
37718
+ properties:
37719
+ items:
37720
+ type: array
37721
+ items:
37722
+ $ref: '#/components/schemas/dmsAudit'
37723
+ total:
37724
+ type: integer
37725
+ format: int64
37497
37726
  datasource:
37498
37727
  required:
37499
37728
  - type
@@ -41297,6 +41526,8 @@ components:
41297
41526
  - Upgradeable
41298
41527
  - Upgrading
41299
41528
  - UpgradeFailed
41529
+ - Uninstalling
41530
+ - UninstallationFailed
41300
41531
  - Unknown
41301
41532
  clusterInfo:
41302
41533
  type: object
@@ -41350,6 +41581,12 @@ components:
41350
41581
  actionWarning:
41351
41582
  $ref: '#/components/schemas/localizedDescription'
41352
41583
  description: Localized business-impact warning for the component action represented by the current status.
41584
+ uninstallSupported:
41585
+ type: boolean
41586
+ description: Whether the module supports the Uninstall action. A dry run checks whether it is currently safe to uninstall.
41587
+ uninstallWarning:
41588
+ $ref: '#/components/schemas/localizedDescription'
41589
+ description: Localized warning about resources and data removed by uninstallation.
41353
41590
  required:
41354
41591
  - name
41355
41592
  - status
@@ -42485,6 +42722,54 @@ components:
42485
42722
  - addresses
42486
42723
  - poolName
42487
42724
  type: object
42725
+ vipPortCheckRequest:
42726
+ description: VIP port check request
42727
+ properties:
42728
+ ip:
42729
+ description: VIP address to check
42730
+ type: string
42731
+ ports:
42732
+ description: TCP ports to check. When empty, only the occupied ports are returned.
42733
+ items:
42734
+ format: int32
42735
+ type: integer
42736
+ type: array
42737
+ required:
42738
+ - ip
42739
+ type: object
42740
+ vipPortCheckResult:
42741
+ description: VIP port check result
42742
+ properties:
42743
+ conflicts:
42744
+ description: Requested ports that are already in use
42745
+ items:
42746
+ format: int32
42747
+ type: integer
42748
+ type: array
42749
+ ip:
42750
+ description: Checked VIP address
42751
+ type: string
42752
+ occupiedPorts:
42753
+ description: Ports already used on the VIP. Resource ownership details are intentionally omitted.
42754
+ items:
42755
+ description: A port already used on the VIP
42756
+ properties:
42757
+ port:
42758
+ description: Port number
42759
+ format: int32
42760
+ type: integer
42761
+ protocol:
42762
+ description: Port protocol
42763
+ type: string
42764
+ required:
42765
+ - port
42766
+ - protocol
42767
+ type: object
42768
+ type: array
42769
+ required:
42770
+ - ip
42771
+ - occupiedPorts
42772
+ type: object
42488
42773
  vipPoolUpdate:
42489
42774
  description: VIP Pool update
42490
42775
  properties:
@@ -45303,6 +45588,7 @@ components:
45303
45588
  type: string
45304
45589
  feature:
45305
45590
  type: object
45591
+ 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.'
45306
45592
  additionalProperties: {}
45307
45593
  defaultAccount:
45308
45594
  type: string
@@ -49629,10 +49915,12 @@ components:
49629
49915
  - Enable: Enable the module
49630
49916
  - Disable: Disable the module
49631
49917
  - Upgrade: Upgrade the module
49918
+ - Uninstall: Remove the module and its dedicated resources. Read uninstallWarning and run a dry run before confirmation.
49632
49919
  enum:
49633
49920
  - Enable
49634
49921
  - Disable
49635
49922
  - Upgrade
49923
+ - Uninstall
49636
49924
  environmentModuleUpdate:
49637
49925
  type: object
49638
49926
  description: Update information for an environment module
@@ -49645,7 +49933,7 @@ components:
49645
49933
  dryRun:
49646
49934
  type: boolean
49647
49935
  default: false
49648
- 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.
49936
+ 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.
49649
49937
  required:
49650
49938
  - name
49651
49939
  - 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];