kb-cloud-client-typescript 2.4.0-alpha.93 → 2.4.0-alpha.95

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 (245) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +1129 -38
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +1283 -149
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/mongodb-api.d.ts +943 -4
  6. package/dist/adminapi/apis/mongodb-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/mongodb-api.js +1005 -0
  8. package/dist/adminapi/apis/mongodb-api.js.map +1 -1
  9. package/dist/adminapi/apis/rdbms-api.d.ts +186 -34
  10. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/rdbms-api.js +166 -37
  12. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  13. package/dist/adminapi/apis/shared-api.d.ts +1196 -105
  14. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  15. package/dist/adminapi/apis/shared-api.js +1273 -139
  16. package/dist/adminapi/apis/shared-api.js.map +1 -1
  17. package/dist/adminapi/models/component-item-create.d.ts +12 -0
  18. package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
  19. package/dist/adminapi/models/component-item.d.ts +19 -0
  20. package/dist/adminapi/models/component-item.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.d.ts +12 -0
  22. package/dist/adminapi/models/index.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.js +12 -0
  24. package/dist/adminapi/models/index.js.map +1 -1
  25. package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
  26. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
  27. package/dist/adminapi/models/instance-template-attribute.js +0 -1
  28. package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
  29. package/dist/adminapi/models/instance-template-create.d.ts +9 -3
  30. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  31. package/dist/adminapi/models/instance.d.ts +6 -0
  32. package/dist/adminapi/models/instance.d.ts.map +1 -1
  33. package/dist/adminapi/models/mode-option.d.ts +7 -0
  34. package/dist/adminapi/models/mode-option.d.ts.map +1 -1
  35. package/dist/adminapi/models/mongo-rbacbinding-change.d.ts +32 -0
  36. package/dist/adminapi/models/mongo-rbacbinding-change.d.ts.map +1 -0
  37. package/dist/adminapi/models/mongo-rbacbinding-change.js +16 -0
  38. package/dist/adminapi/models/mongo-rbacbinding-change.js.map +1 -0
  39. package/dist/adminapi/models/mongo-rbaccapabilities.d.ts +32 -0
  40. package/dist/adminapi/models/mongo-rbaccapabilities.d.ts.map +1 -0
  41. package/dist/adminapi/models/mongo-rbaccapabilities.js +16 -0
  42. package/dist/adminapi/models/mongo-rbaccapabilities.js.map +1 -0
  43. package/dist/adminapi/models/mongo-rbacpassword-change.d.ts +25 -0
  44. package/dist/adminapi/models/mongo-rbacpassword-change.d.ts.map +1 -0
  45. package/dist/adminapi/models/mongo-rbacpassword-change.js +16 -0
  46. package/dist/adminapi/models/mongo-rbacpassword-change.js.map +1 -0
  47. package/dist/adminapi/models/mongo-rbacprivilege.d.ts +32 -0
  48. package/dist/adminapi/models/mongo-rbacprivilege.d.ts.map +1 -0
  49. package/dist/adminapi/models/mongo-rbacprivilege.js +16 -0
  50. package/dist/adminapi/models/mongo-rbacprivilege.js.map +1 -0
  51. package/dist/adminapi/models/mongo-rbacresource-capability.d.ts +31 -0
  52. package/dist/adminapi/models/mongo-rbacresource-capability.d.ts.map +1 -0
  53. package/dist/adminapi/models/mongo-rbacresource-capability.js +16 -0
  54. package/dist/adminapi/models/mongo-rbacresource-capability.js.map +1 -0
  55. package/dist/adminapi/models/mongo-rbacresource.d.ts +43 -0
  56. package/dist/adminapi/models/mongo-rbacresource.d.ts.map +1 -0
  57. package/dist/adminapi/models/mongo-rbacresource.js +16 -0
  58. package/dist/adminapi/models/mongo-rbacresource.js.map +1 -0
  59. package/dist/adminapi/models/mongo-rbacrole-ref.d.ts +31 -0
  60. package/dist/adminapi/models/mongo-rbacrole-ref.d.ts.map +1 -0
  61. package/dist/adminapi/models/mongo-rbacrole-ref.js +16 -0
  62. package/dist/adminapi/models/mongo-rbacrole-ref.js.map +1 -0
  63. package/dist/adminapi/models/mongo-rbacrole-write.d.ts +51 -0
  64. package/dist/adminapi/models/mongo-rbacrole-write.d.ts.map +1 -0
  65. package/dist/adminapi/models/mongo-rbacrole-write.js +16 -0
  66. package/dist/adminapi/models/mongo-rbacrole-write.js.map +1 -0
  67. package/dist/adminapi/models/mongo-rbacrole.d.ts +69 -0
  68. package/dist/adminapi/models/mongo-rbacrole.d.ts.map +1 -0
  69. package/dist/adminapi/models/mongo-rbacrole.js +16 -0
  70. package/dist/adminapi/models/mongo-rbacrole.js.map +1 -0
  71. package/dist/adminapi/models/mongo-rbacuser-create.d.ts +44 -0
  72. package/dist/adminapi/models/mongo-rbacuser-create.d.ts.map +1 -0
  73. package/dist/adminapi/models/mongo-rbacuser-create.js +16 -0
  74. package/dist/adminapi/models/mongo-rbacuser-create.js.map +1 -0
  75. package/dist/adminapi/models/mongo-rbacuser.d.ts +57 -0
  76. package/dist/adminapi/models/mongo-rbacuser.d.ts.map +1 -0
  77. package/dist/adminapi/models/mongo-rbacuser.js +16 -0
  78. package/dist/adminapi/models/mongo-rbacuser.js.map +1 -0
  79. package/dist/adminapi/models/object-privilege-evidence.d.ts +6 -0
  80. package/dist/adminapi/models/object-privilege-evidence.d.ts.map +1 -1
  81. package/dist/adminapi/models/object-privilege-reset-step.d.ts +1 -1
  82. package/dist/adminapi/models/placement-scope.d.ts +22 -0
  83. package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
  84. package/dist/adminapi/models/placement-scope.js +26 -0
  85. package/dist/adminapi/models/placement-scope.js.map +1 -0
  86. package/dist/internalapi/models/component-item.d.ts +19 -0
  87. package/dist/internalapi/models/component-item.d.ts.map +1 -1
  88. package/dist/internalapi/models/index.d.ts +2 -0
  89. package/dist/internalapi/models/index.d.ts.map +1 -1
  90. package/dist/internalapi/models/index.js +2 -0
  91. package/dist/internalapi/models/index.js.map +1 -1
  92. package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
  93. package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
  94. package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
  95. package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
  96. package/dist/internalapi/models/instance-template-create.d.ts +72 -0
  97. package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
  98. package/dist/internalapi/models/instance-template-create.js +16 -0
  99. package/dist/internalapi/models/instance-template-create.js.map +1 -0
  100. package/dist/openapi/apis/account-api.d.ts +1129 -38
  101. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  102. package/dist/openapi/apis/account-api.js +1283 -149
  103. package/dist/openapi/apis/account-api.js.map +1 -1
  104. package/dist/openapi/apis/mongodb-api.d.ts +943 -4
  105. package/dist/openapi/apis/mongodb-api.d.ts.map +1 -1
  106. package/dist/openapi/apis/mongodb-api.js +1005 -0
  107. package/dist/openapi/apis/mongodb-api.js.map +1 -1
  108. package/dist/openapi/apis/rdbms-api.d.ts +186 -34
  109. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  110. package/dist/openapi/apis/rdbms-api.js +166 -37
  111. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  112. package/dist/openapi/apis/shared-api.d.ts +1196 -105
  113. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  114. package/dist/openapi/apis/shared-api.js +1273 -139
  115. package/dist/openapi/apis/shared-api.js.map +1 -1
  116. package/dist/openapi/models/component-item-create.d.ts +12 -0
  117. package/dist/openapi/models/component-item-create.d.ts.map +1 -1
  118. package/dist/openapi/models/component-item.d.ts +19 -0
  119. package/dist/openapi/models/component-item.d.ts.map +1 -1
  120. package/dist/openapi/models/index.d.ts +12 -0
  121. package/dist/openapi/models/index.d.ts.map +1 -1
  122. package/dist/openapi/models/index.js +12 -0
  123. package/dist/openapi/models/index.js.map +1 -1
  124. package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
  125. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
  126. package/dist/openapi/models/instance-template-attribute.js +0 -1
  127. package/dist/openapi/models/instance-template-attribute.js.map +1 -1
  128. package/dist/openapi/models/instance-template-create.d.ts +9 -3
  129. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  130. package/dist/openapi/models/instance.d.ts +6 -0
  131. package/dist/openapi/models/instance.d.ts.map +1 -1
  132. package/dist/openapi/models/mode-option.d.ts +7 -0
  133. package/dist/openapi/models/mode-option.d.ts.map +1 -1
  134. package/dist/openapi/models/mongo-rbacbinding-change.d.ts +32 -0
  135. package/dist/openapi/models/mongo-rbacbinding-change.d.ts.map +1 -0
  136. package/dist/openapi/models/mongo-rbacbinding-change.js +16 -0
  137. package/dist/openapi/models/mongo-rbacbinding-change.js.map +1 -0
  138. package/dist/openapi/models/mongo-rbaccapabilities.d.ts +32 -0
  139. package/dist/openapi/models/mongo-rbaccapabilities.d.ts.map +1 -0
  140. package/dist/openapi/models/mongo-rbaccapabilities.js +16 -0
  141. package/dist/openapi/models/mongo-rbaccapabilities.js.map +1 -0
  142. package/dist/openapi/models/mongo-rbacpassword-change.d.ts +25 -0
  143. package/dist/openapi/models/mongo-rbacpassword-change.d.ts.map +1 -0
  144. package/dist/openapi/models/mongo-rbacpassword-change.js +16 -0
  145. package/dist/openapi/models/mongo-rbacpassword-change.js.map +1 -0
  146. package/dist/openapi/models/mongo-rbacprivilege.d.ts +32 -0
  147. package/dist/openapi/models/mongo-rbacprivilege.d.ts.map +1 -0
  148. package/dist/openapi/models/mongo-rbacprivilege.js +16 -0
  149. package/dist/openapi/models/mongo-rbacprivilege.js.map +1 -0
  150. package/dist/openapi/models/mongo-rbacresource-capability.d.ts +31 -0
  151. package/dist/openapi/models/mongo-rbacresource-capability.d.ts.map +1 -0
  152. package/dist/openapi/models/mongo-rbacresource-capability.js +16 -0
  153. package/dist/openapi/models/mongo-rbacresource-capability.js.map +1 -0
  154. package/dist/openapi/models/mongo-rbacresource.d.ts +43 -0
  155. package/dist/openapi/models/mongo-rbacresource.d.ts.map +1 -0
  156. package/dist/openapi/models/mongo-rbacresource.js +16 -0
  157. package/dist/openapi/models/mongo-rbacresource.js.map +1 -0
  158. package/dist/openapi/models/mongo-rbacrole-ref.d.ts +31 -0
  159. package/dist/openapi/models/mongo-rbacrole-ref.d.ts.map +1 -0
  160. package/dist/openapi/models/mongo-rbacrole-ref.js +16 -0
  161. package/dist/openapi/models/mongo-rbacrole-ref.js.map +1 -0
  162. package/dist/openapi/models/mongo-rbacrole-write.d.ts +51 -0
  163. package/dist/openapi/models/mongo-rbacrole-write.d.ts.map +1 -0
  164. package/dist/openapi/models/mongo-rbacrole-write.js +16 -0
  165. package/dist/openapi/models/mongo-rbacrole-write.js.map +1 -0
  166. package/dist/openapi/models/mongo-rbacrole.d.ts +69 -0
  167. package/dist/openapi/models/mongo-rbacrole.d.ts.map +1 -0
  168. package/dist/openapi/models/mongo-rbacrole.js +16 -0
  169. package/dist/openapi/models/mongo-rbacrole.js.map +1 -0
  170. package/dist/openapi/models/mongo-rbacuser-create.d.ts +44 -0
  171. package/dist/openapi/models/mongo-rbacuser-create.d.ts.map +1 -0
  172. package/dist/openapi/models/mongo-rbacuser-create.js +16 -0
  173. package/dist/openapi/models/mongo-rbacuser-create.js.map +1 -0
  174. package/dist/openapi/models/mongo-rbacuser.d.ts +57 -0
  175. package/dist/openapi/models/mongo-rbacuser.d.ts.map +1 -0
  176. package/dist/openapi/models/mongo-rbacuser.js +16 -0
  177. package/dist/openapi/models/mongo-rbacuser.js.map +1 -0
  178. package/dist/openapi/models/object-privilege-evidence.d.ts +6 -0
  179. package/dist/openapi/models/object-privilege-evidence.d.ts.map +1 -1
  180. package/dist/openapi/models/object-privilege-reset-step.d.ts +1 -1
  181. package/dist/openapi/models/placement-scope.d.ts +22 -0
  182. package/dist/openapi/models/placement-scope.d.ts.map +1 -0
  183. package/dist/openapi/models/placement-scope.js +26 -0
  184. package/dist/openapi/models/placement-scope.js.map +1 -0
  185. package/package.json +1 -1
  186. package/src/adminapi/.openapi-generator/FILES +12 -0
  187. package/src/adminapi/apis/account-api.ts +3961 -2069
  188. package/src/adminapi/apis/mongodb-api.ts +1757 -120
  189. package/src/adminapi/apis/rdbms-api.ts +298 -43
  190. package/src/adminapi/apis/shared-api.ts +2363 -471
  191. package/src/adminapi/models/component-item-create.ts +12 -0
  192. package/src/adminapi/models/component-item.ts +21 -0
  193. package/src/adminapi/models/index.ts +12 -0
  194. package/src/adminapi/models/instance-template-attribute.ts +0 -1
  195. package/src/adminapi/models/instance-template-create.ts +9 -3
  196. package/src/adminapi/models/instance.ts +6 -0
  197. package/src/adminapi/models/mode-option.ts +9 -0
  198. package/src/adminapi/models/mongo-rbacbinding-change.ts +39 -0
  199. package/src/adminapi/models/mongo-rbaccapabilities.ts +39 -0
  200. package/src/adminapi/models/mongo-rbacpassword-change.ts +30 -0
  201. package/src/adminapi/models/mongo-rbacprivilege.ts +39 -0
  202. package/src/adminapi/models/mongo-rbacresource-capability.ts +36 -0
  203. package/src/adminapi/models/mongo-rbacresource.ts +48 -0
  204. package/src/adminapi/models/mongo-rbacrole-ref.ts +36 -0
  205. package/src/adminapi/models/mongo-rbacrole-write.ts +60 -0
  206. package/src/adminapi/models/mongo-rbacrole.ts +78 -0
  207. package/src/adminapi/models/mongo-rbacuser-create.ts +51 -0
  208. package/src/adminapi/models/mongo-rbacuser.ts +66 -0
  209. package/src/adminapi/models/object-privilege-evidence.ts +6 -0
  210. package/src/adminapi/models/object-privilege-reset-step.ts +1 -1
  211. package/src/adminapi/models/placement-scope.ts +31 -0
  212. package/src/adminapi.yaml +935 -81
  213. package/src/internalapi/.openapi-generator/FILES +2 -0
  214. package/src/internalapi/models/component-item.ts +21 -0
  215. package/src/internalapi/models/index.ts +2 -0
  216. package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
  217. package/src/internalapi/models/instance-template-create.ts +75 -0
  218. package/src/internalapi.yaml +62 -0
  219. package/src/openapi/.openapi-generator/FILES +12 -0
  220. package/src/openapi/apis/account-api.ts +3961 -2069
  221. package/src/openapi/apis/mongodb-api.ts +1757 -120
  222. package/src/openapi/apis/rdbms-api.ts +298 -43
  223. package/src/openapi/apis/shared-api.ts +2168 -276
  224. package/src/openapi/models/component-item-create.ts +12 -0
  225. package/src/openapi/models/component-item.ts +21 -0
  226. package/src/openapi/models/index.ts +12 -0
  227. package/src/openapi/models/instance-template-attribute.ts +0 -1
  228. package/src/openapi/models/instance-template-create.ts +9 -3
  229. package/src/openapi/models/instance.ts +6 -0
  230. package/src/openapi/models/mode-option.ts +9 -0
  231. package/src/openapi/models/mongo-rbacbinding-change.ts +39 -0
  232. package/src/openapi/models/mongo-rbaccapabilities.ts +39 -0
  233. package/src/openapi/models/mongo-rbacpassword-change.ts +30 -0
  234. package/src/openapi/models/mongo-rbacprivilege.ts +39 -0
  235. package/src/openapi/models/mongo-rbacresource-capability.ts +36 -0
  236. package/src/openapi/models/mongo-rbacresource.ts +48 -0
  237. package/src/openapi/models/mongo-rbacrole-ref.ts +36 -0
  238. package/src/openapi/models/mongo-rbacrole-write.ts +60 -0
  239. package/src/openapi/models/mongo-rbacrole.ts +78 -0
  240. package/src/openapi/models/mongo-rbacuser-create.ts +51 -0
  241. package/src/openapi/models/mongo-rbacuser.ts +66 -0
  242. package/src/openapi/models/object-privilege-evidence.ts +6 -0
  243. package/src/openapi/models/object-privilege-reset-step.ts +1 -1
  244. package/src/openapi/models/placement-scope.ts +31 -0
  245. package/src/openapi.yaml +935 -81
@@ -4439,6 +4439,68 @@ const SharedApiAxiosParamCreator = function (configuration) {
4439
4439
  options: localVarRequestOptions,
4440
4440
  };
4441
4441
  },
4442
+ /**
4443
+ * Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
4444
+ * @summary Read native account privilege summary or selected database evidence
4445
+ * @param {string} engineName
4446
+ * @param {string} orgName
4447
+ * @param {string} clusterName
4448
+ * @param {string} accountName
4449
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
4450
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
4451
+ * @param {string} [subjectQualifiers]
4452
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
4453
+ * @param {*} [options] Override http request option.
4454
+ * @throws {RequiredError}
4455
+ */
4456
+ getAccountPrivilegeOverview: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options = {}) => {
4457
+ // verify required parameter 'engineName' is not null or undefined
4458
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'engineName', engineName);
4459
+ // verify required parameter 'orgName' is not null or undefined
4460
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'orgName', orgName);
4461
+ // verify required parameter 'clusterName' is not null or undefined
4462
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'clusterName', clusterName);
4463
+ // verify required parameter 'accountName' is not null or undefined
4464
+ (0, common_1.assertParamExists)('getAccountPrivilegeOverview', 'accountName', accountName);
4465
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/overview`
4466
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
4467
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4468
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
4469
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
4470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4471
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4472
+ let baseOptions;
4473
+ if (configuration) {
4474
+ baseOptions = configuration.baseOptions;
4475
+ }
4476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4477
+ const localVarHeaderParameter = {};
4478
+ const localVarQueryParameter = {};
4479
+ // authentication BearerToken required
4480
+ // http bearer authentication required
4481
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4482
+ // authentication DigestAuth required
4483
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4484
+ if (subjectType !== undefined) {
4485
+ localVarQueryParameter['subjectType'] = subjectType;
4486
+ }
4487
+ if (host !== undefined) {
4488
+ localVarQueryParameter['host'] = host;
4489
+ }
4490
+ if (subjectQualifiers !== undefined) {
4491
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
4492
+ }
4493
+ if (databaseName !== undefined) {
4494
+ localVarQueryParameter['databaseName'] = databaseName;
4495
+ }
4496
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4497
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4498
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4499
+ return {
4500
+ url: (0, common_1.toPathString)(localVarUrlObj),
4501
+ options: localVarRequestOptions,
4502
+ };
4503
+ },
4442
4504
  /**
4443
4505
  *
4444
4506
  * @summary Get backup
@@ -7158,19 +7220,20 @@ const SharedApiAxiosParamCreator = function (configuration) {
7158
7220
  };
7159
7221
  },
7160
7222
  /**
7161
- * Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
7223
+ * Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
7162
7224
  * @summary List exact column names for account object privileges
7163
7225
  * @param {string} engineName
7164
7226
  * @param {string} orgName
7165
7227
  * @param {string} clusterName
7166
7228
  * @param {string} accountName
7167
- * @param {string} objectType Object type, either table or view
7229
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
7168
7230
  * @param {string} databaseName
7169
7231
  * @param {string} objectName
7232
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
7170
7233
  * @param {*} [options] Override http request option.
7171
7234
  * @throws {RequiredError}
7172
7235
  */
7173
- listAccountObjectPrivilegeColumns: async (engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options = {}) => {
7236
+ listAccountObjectPrivilegeColumns: async (engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options = {}) => {
7174
7237
  // verify required parameter 'engineName' is not null or undefined
7175
7238
  (0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'engineName', engineName);
7176
7239
  // verify required parameter 'orgName' is not null or undefined
@@ -7213,6 +7276,9 @@ const SharedApiAxiosParamCreator = function (configuration) {
7213
7276
  if (objectName !== undefined) {
7214
7277
  localVarQueryParameter['objectName'] = objectName;
7215
7278
  }
7279
+ if (schemaName !== undefined) {
7280
+ localVarQueryParameter['schemaName'] = schemaName;
7281
+ }
7216
7282
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7217
7283
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7218
7284
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -10254,21 +10320,558 @@ const SharedApiAxiosParamCreator = function (configuration) {
10254
10320
  // verify required parameter 'orgName' is not null or undefined
10255
10321
  (0, common_1.assertParamExists)('lockAccount', 'orgName', orgName);
10256
10322
  // verify required parameter 'clusterName' is not null or undefined
10257
- (0, common_1.assertParamExists)('lockAccount', 'clusterName', clusterName);
10258
- // verify required parameter 'accountName' is not null or undefined
10259
- (0, common_1.assertParamExists)('lockAccount', 'accountName', accountName);
10260
- const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock`
10261
- .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
10323
+ (0, common_1.assertParamExists)('lockAccount', 'clusterName', clusterName);
10324
+ // verify required parameter 'accountName' is not null or undefined
10325
+ (0, common_1.assertParamExists)('lockAccount', 'accountName', accountName);
10326
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock`
10327
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
10328
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10329
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10330
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
10331
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10332
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10333
+ let baseOptions;
10334
+ if (configuration) {
10335
+ baseOptions = configuration.baseOptions;
10336
+ }
10337
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10338
+ const localVarHeaderParameter = {};
10339
+ const localVarQueryParameter = {};
10340
+ // authentication BearerToken required
10341
+ // http bearer authentication required
10342
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10343
+ // authentication DigestAuth required
10344
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10345
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10346
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10347
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10348
+ return {
10349
+ url: (0, common_1.toPathString)(localVarUrlObj),
10350
+ options: localVarRequestOptions,
10351
+ };
10352
+ },
10353
+ /**
10354
+ *
10355
+ * @summary Lock Elasticsearch account
10356
+ * @param {string} orgName
10357
+ * @param {string} clusterName
10358
+ * @param {string} username
10359
+ * @param {*} [options] Override http request option.
10360
+ * @throws {RequiredError}
10361
+ */
10362
+ lockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
10363
+ // verify required parameter 'orgName' is not null or undefined
10364
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'orgName', orgName);
10365
+ // verify required parameter 'clusterName' is not null or undefined
10366
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'clusterName', clusterName);
10367
+ // verify required parameter 'username' is not null or undefined
10368
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'username', username);
10369
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock`
10370
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10371
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10372
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10374
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10375
+ let baseOptions;
10376
+ if (configuration) {
10377
+ baseOptions = configuration.baseOptions;
10378
+ }
10379
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10380
+ const localVarHeaderParameter = {};
10381
+ const localVarQueryParameter = {};
10382
+ // authentication BearerToken required
10383
+ // http bearer authentication required
10384
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10385
+ // authentication DigestAuth required
10386
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10387
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10388
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10389
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10390
+ return {
10391
+ url: (0, common_1.toPathString)(localVarUrlObj),
10392
+ options: localVarRequestOptions,
10393
+ };
10394
+ },
10395
+ /**
10396
+ *
10397
+ * @summary batch modify database tde status
10398
+ * @param {string} orgName name of the organization
10399
+ * @param {string} clusterName name of the cluster
10400
+ * @param {DbTDERequest} [dbTDERequest]
10401
+ * @param {*} [options] Override http request option.
10402
+ * @throws {RequiredError}
10403
+ */
10404
+ manageMssqlTDEDatabase: async (orgName, clusterName, dbTDERequest, options = {}) => {
10405
+ // verify required parameter 'orgName' is not null or undefined
10406
+ (0, common_1.assertParamExists)('manageMssqlTDEDatabase', 'orgName', orgName);
10407
+ // verify required parameter 'clusterName' is not null or undefined
10408
+ (0, common_1.assertParamExists)('manageMssqlTDEDatabase', 'clusterName', clusterName);
10409
+ const localVarPath = `/admin/v1/data/mssql/organizations/{orgName}/clusters/{clusterName}/tde`
10410
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10411
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10413
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10414
+ let baseOptions;
10415
+ if (configuration) {
10416
+ baseOptions = configuration.baseOptions;
10417
+ }
10418
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10419
+ const localVarHeaderParameter = {};
10420
+ const localVarQueryParameter = {};
10421
+ // authentication BearerToken required
10422
+ // http bearer authentication required
10423
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10424
+ // authentication DigestAuth required
10425
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10426
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10427
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10428
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10429
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10430
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dbTDERequest, localVarRequestOptions, configuration);
10431
+ return {
10432
+ url: (0, common_1.toPathString)(localVarUrlObj),
10433
+ options: localVarRequestOptions,
10434
+ };
10435
+ },
10436
+ /**
10437
+ *
10438
+ * @summary mark cluster to restore completed, usually used when manually repairing or recovering issues
10439
+ * @param {string} orgName name of the Org
10440
+ * @param {string} clusterName name of the KubeBlocks cluster
10441
+ * @param {*} [options] Override http request option.
10442
+ * @throws {RequiredError}
10443
+ */
10444
+ markClusterRestoreCompleted: async (orgName, clusterName, options = {}) => {
10445
+ // verify required parameter 'orgName' is not null or undefined
10446
+ (0, common_1.assertParamExists)('markClusterRestoreCompleted', 'orgName', orgName);
10447
+ // verify required parameter 'clusterName' is not null or undefined
10448
+ (0, common_1.assertParamExists)('markClusterRestoreCompleted', 'clusterName', clusterName);
10449
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/markClusterRestoreCompleted`
10450
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10451
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10453
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10454
+ let baseOptions;
10455
+ if (configuration) {
10456
+ baseOptions = configuration.baseOptions;
10457
+ }
10458
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10459
+ const localVarHeaderParameter = {};
10460
+ const localVarQueryParameter = {};
10461
+ // authentication BearerToken required
10462
+ // http bearer authentication required
10463
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10464
+ // authentication DigestAuth required
10465
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10466
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10468
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10469
+ return {
10470
+ url: (0, common_1.toPathString)(localVarUrlObj),
10471
+ options: localVarRequestOptions,
10472
+ };
10473
+ },
10474
+ /**
10475
+ *
10476
+ * @summary ChangeRBACUserPassword
10477
+ * @param {string} orgName
10478
+ * @param {string} clusterName
10479
+ * @param {string} database
10480
+ * @param {string} username
10481
+ * @param {MongoRBACPasswordChange} mongoRBACPasswordChange
10482
+ * @param {*} [options] Override http request option.
10483
+ * @throws {RequiredError}
10484
+ */
10485
+ mongoChangeRBACUserPassword: async (orgName, clusterName, database, username, mongoRBACPasswordChange, options = {}) => {
10486
+ // verify required parameter 'orgName' is not null or undefined
10487
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'orgName', orgName);
10488
+ // verify required parameter 'clusterName' is not null or undefined
10489
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'clusterName', clusterName);
10490
+ // verify required parameter 'database' is not null or undefined
10491
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'database', database);
10492
+ // verify required parameter 'username' is not null or undefined
10493
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'username', username);
10494
+ // verify required parameter 'mongoRBACPasswordChange' is not null or undefined
10495
+ (0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'mongoRBACPasswordChange', mongoRBACPasswordChange);
10496
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/password`
10497
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10498
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10499
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10500
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10501
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10502
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10503
+ let baseOptions;
10504
+ if (configuration) {
10505
+ baseOptions = configuration.baseOptions;
10506
+ }
10507
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
10508
+ const localVarHeaderParameter = {};
10509
+ const localVarQueryParameter = {};
10510
+ // authentication BearerToken required
10511
+ // http bearer authentication required
10512
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10513
+ // authentication DigestAuth required
10514
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10515
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10516
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10518
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10519
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACPasswordChange, localVarRequestOptions, configuration);
10520
+ return {
10521
+ url: (0, common_1.toPathString)(localVarUrlObj),
10522
+ options: localVarRequestOptions,
10523
+ };
10524
+ },
10525
+ /**
10526
+ *
10527
+ * @summary ChangeRBACUserRoles
10528
+ * @param {string} orgName
10529
+ * @param {string} clusterName
10530
+ * @param {string} database
10531
+ * @param {string} username
10532
+ * @param {MongoRBACBindingChange} mongoRBACBindingChange
10533
+ * @param {*} [options] Override http request option.
10534
+ * @throws {RequiredError}
10535
+ */
10536
+ mongoChangeRBACUserRoles: async (orgName, clusterName, database, username, mongoRBACBindingChange, options = {}) => {
10537
+ // verify required parameter 'orgName' is not null or undefined
10538
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'orgName', orgName);
10539
+ // verify required parameter 'clusterName' is not null or undefined
10540
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'clusterName', clusterName);
10541
+ // verify required parameter 'database' is not null or undefined
10542
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'database', database);
10543
+ // verify required parameter 'username' is not null or undefined
10544
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'username', username);
10545
+ // verify required parameter 'mongoRBACBindingChange' is not null or undefined
10546
+ (0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'mongoRBACBindingChange', mongoRBACBindingChange);
10547
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/roles`
10548
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10549
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10550
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10551
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10552
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10553
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10554
+ let baseOptions;
10555
+ if (configuration) {
10556
+ baseOptions = configuration.baseOptions;
10557
+ }
10558
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10559
+ const localVarHeaderParameter = {};
10560
+ const localVarQueryParameter = {};
10561
+ // authentication BearerToken required
10562
+ // http bearer authentication required
10563
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10564
+ // authentication DigestAuth required
10565
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10566
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10567
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10568
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10569
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10570
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACBindingChange, localVarRequestOptions, configuration);
10571
+ return {
10572
+ url: (0, common_1.toPathString)(localVarUrlObj),
10573
+ options: localVarRequestOptions,
10574
+ };
10575
+ },
10576
+ /**
10577
+ *
10578
+ * @summary CreateRBACRole
10579
+ * @param {string} orgName
10580
+ * @param {string} clusterName
10581
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
10582
+ * @param {*} [options] Override http request option.
10583
+ * @throws {RequiredError}
10584
+ */
10585
+ mongoCreateRBACRole: async (orgName, clusterName, mongoRBACRoleWrite, options = {}) => {
10586
+ // verify required parameter 'orgName' is not null or undefined
10587
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'orgName', orgName);
10588
+ // verify required parameter 'clusterName' is not null or undefined
10589
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'clusterName', clusterName);
10590
+ // verify required parameter 'mongoRBACRoleWrite' is not null or undefined
10591
+ (0, common_1.assertParamExists)('mongoCreateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite);
10592
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
10593
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10594
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10595
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10596
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10597
+ let baseOptions;
10598
+ if (configuration) {
10599
+ baseOptions = configuration.baseOptions;
10600
+ }
10601
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10602
+ const localVarHeaderParameter = {};
10603
+ const localVarQueryParameter = {};
10604
+ // authentication BearerToken required
10605
+ // http bearer authentication required
10606
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10607
+ // authentication DigestAuth required
10608
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10609
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10610
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10611
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10612
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10613
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACRoleWrite, localVarRequestOptions, configuration);
10614
+ return {
10615
+ url: (0, common_1.toPathString)(localVarUrlObj),
10616
+ options: localVarRequestOptions,
10617
+ };
10618
+ },
10619
+ /**
10620
+ *
10621
+ * @summary CreateRBACUser
10622
+ * @param {string} orgName
10623
+ * @param {string} clusterName
10624
+ * @param {MongoRBACUserCreate} mongoRBACUserCreate
10625
+ * @param {*} [options] Override http request option.
10626
+ * @throws {RequiredError}
10627
+ */
10628
+ mongoCreateRBACUser: async (orgName, clusterName, mongoRBACUserCreate, options = {}) => {
10629
+ // verify required parameter 'orgName' is not null or undefined
10630
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'orgName', orgName);
10631
+ // verify required parameter 'clusterName' is not null or undefined
10632
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'clusterName', clusterName);
10633
+ // verify required parameter 'mongoRBACUserCreate' is not null or undefined
10634
+ (0, common_1.assertParamExists)('mongoCreateRBACUser', 'mongoRBACUserCreate', mongoRBACUserCreate);
10635
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
10636
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10637
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10638
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10639
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10640
+ let baseOptions;
10641
+ if (configuration) {
10642
+ baseOptions = configuration.baseOptions;
10643
+ }
10644
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10645
+ const localVarHeaderParameter = {};
10646
+ const localVarQueryParameter = {};
10647
+ // authentication BearerToken required
10648
+ // http bearer authentication required
10649
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10650
+ // authentication DigestAuth required
10651
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10652
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10653
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10654
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10655
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10656
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACUserCreate, localVarRequestOptions, configuration);
10657
+ return {
10658
+ url: (0, common_1.toPathString)(localVarUrlObj),
10659
+ options: localVarRequestOptions,
10660
+ };
10661
+ },
10662
+ /**
10663
+ *
10664
+ * @summary DeleteRBACRole
10665
+ * @param {string} orgName
10666
+ * @param {string} clusterName
10667
+ * @param {string} database
10668
+ * @param {string} roleName
10669
+ * @param {string} expectedRevision
10670
+ * @param {*} [options] Override http request option.
10671
+ * @throws {RequiredError}
10672
+ */
10673
+ mongoDeleteRBACRole: async (orgName, clusterName, database, roleName, expectedRevision, options = {}) => {
10674
+ // verify required parameter 'orgName' is not null or undefined
10675
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'orgName', orgName);
10676
+ // verify required parameter 'clusterName' is not null or undefined
10677
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'clusterName', clusterName);
10678
+ // verify required parameter 'database' is not null or undefined
10679
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'database', database);
10680
+ // verify required parameter 'roleName' is not null or undefined
10681
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'roleName', roleName);
10682
+ // verify required parameter 'expectedRevision' is not null or undefined
10683
+ (0, common_1.assertParamExists)('mongoDeleteRBACRole', 'expectedRevision', expectedRevision);
10684
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
10685
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10686
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10687
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10688
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
10689
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10690
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10691
+ let baseOptions;
10692
+ if (configuration) {
10693
+ baseOptions = configuration.baseOptions;
10694
+ }
10695
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
10696
+ const localVarHeaderParameter = {};
10697
+ const localVarQueryParameter = {};
10698
+ // authentication BearerToken required
10699
+ // http bearer authentication required
10700
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10701
+ // authentication DigestAuth required
10702
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10703
+ if (expectedRevision !== undefined) {
10704
+ localVarQueryParameter['expectedRevision'] = expectedRevision;
10705
+ }
10706
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10707
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10708
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10709
+ return {
10710
+ url: (0, common_1.toPathString)(localVarUrlObj),
10711
+ options: localVarRequestOptions,
10712
+ };
10713
+ },
10714
+ /**
10715
+ *
10716
+ * @summary DeleteRBACUser
10717
+ * @param {string} orgName
10718
+ * @param {string} clusterName
10719
+ * @param {string} database
10720
+ * @param {string} username
10721
+ * @param {*} [options] Override http request option.
10722
+ * @throws {RequiredError}
10723
+ */
10724
+ mongoDeleteRBACUser: async (orgName, clusterName, database, username, options = {}) => {
10725
+ // verify required parameter 'orgName' is not null or undefined
10726
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'orgName', orgName);
10727
+ // verify required parameter 'clusterName' is not null or undefined
10728
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'clusterName', clusterName);
10729
+ // verify required parameter 'database' is not null or undefined
10730
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'database', database);
10731
+ // verify required parameter 'username' is not null or undefined
10732
+ (0, common_1.assertParamExists)('mongoDeleteRBACUser', 'username', username);
10733
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
10734
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10735
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10736
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10737
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10738
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10739
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10740
+ let baseOptions;
10741
+ if (configuration) {
10742
+ baseOptions = configuration.baseOptions;
10743
+ }
10744
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
10745
+ const localVarHeaderParameter = {};
10746
+ const localVarQueryParameter = {};
10747
+ // authentication BearerToken required
10748
+ // http bearer authentication required
10749
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10750
+ // authentication DigestAuth required
10751
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10752
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10753
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10754
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10755
+ return {
10756
+ url: (0, common_1.toPathString)(localVarUrlObj),
10757
+ options: localVarRequestOptions,
10758
+ };
10759
+ },
10760
+ /**
10761
+ *
10762
+ * @summary GetRBACCapabilities
10763
+ * @param {string} orgName
10764
+ * @param {string} clusterName
10765
+ * @param {*} [options] Override http request option.
10766
+ * @throws {RequiredError}
10767
+ */
10768
+ mongoGetRBACCapabilities: async (orgName, clusterName, options = {}) => {
10769
+ // verify required parameter 'orgName' is not null or undefined
10770
+ (0, common_1.assertParamExists)('mongoGetRBACCapabilities', 'orgName', orgName);
10771
+ // verify required parameter 'clusterName' is not null or undefined
10772
+ (0, common_1.assertParamExists)('mongoGetRBACCapabilities', 'clusterName', clusterName);
10773
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/capabilities`
10774
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10775
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10776
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10777
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10778
+ let baseOptions;
10779
+ if (configuration) {
10780
+ baseOptions = configuration.baseOptions;
10781
+ }
10782
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10783
+ const localVarHeaderParameter = {};
10784
+ const localVarQueryParameter = {};
10785
+ // authentication BearerToken required
10786
+ // http bearer authentication required
10787
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10788
+ // authentication DigestAuth required
10789
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10790
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10792
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10793
+ return {
10794
+ url: (0, common_1.toPathString)(localVarUrlObj),
10795
+ options: localVarRequestOptions,
10796
+ };
10797
+ },
10798
+ /**
10799
+ *
10800
+ * @summary GetRBACRole
10801
+ * @param {string} orgName
10802
+ * @param {string} clusterName
10803
+ * @param {string} database
10804
+ * @param {string} roleName
10805
+ * @param {*} [options] Override http request option.
10806
+ * @throws {RequiredError}
10807
+ */
10808
+ mongoGetRBACRole: async (orgName, clusterName, database, roleName, options = {}) => {
10809
+ // verify required parameter 'orgName' is not null or undefined
10810
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'orgName', orgName);
10811
+ // verify required parameter 'clusterName' is not null or undefined
10812
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'clusterName', clusterName);
10813
+ // verify required parameter 'database' is not null or undefined
10814
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'database', database);
10815
+ // verify required parameter 'roleName' is not null or undefined
10816
+ (0, common_1.assertParamExists)('mongoGetRBACRole', 'roleName', roleName);
10817
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
10818
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10819
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10820
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10821
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
10822
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10823
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10824
+ let baseOptions;
10825
+ if (configuration) {
10826
+ baseOptions = configuration.baseOptions;
10827
+ }
10828
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10829
+ const localVarHeaderParameter = {};
10830
+ const localVarQueryParameter = {};
10831
+ // authentication BearerToken required
10832
+ // http bearer authentication required
10833
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10834
+ // authentication DigestAuth required
10835
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10836
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10837
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10838
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10839
+ return {
10840
+ url: (0, common_1.toPathString)(localVarUrlObj),
10841
+ options: localVarRequestOptions,
10842
+ };
10843
+ },
10844
+ /**
10845
+ *
10846
+ * @summary GetRBACUser
10847
+ * @param {string} orgName
10848
+ * @param {string} clusterName
10849
+ * @param {string} database
10850
+ * @param {string} username
10851
+ * @param {*} [options] Override http request option.
10852
+ * @throws {RequiredError}
10853
+ */
10854
+ mongoGetRBACUser: async (orgName, clusterName, database, username, options = {}) => {
10855
+ // verify required parameter 'orgName' is not null or undefined
10856
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'orgName', orgName);
10857
+ // verify required parameter 'clusterName' is not null or undefined
10858
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'clusterName', clusterName);
10859
+ // verify required parameter 'database' is not null or undefined
10860
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'database', database);
10861
+ // verify required parameter 'username' is not null or undefined
10862
+ (0, common_1.assertParamExists)('mongoGetRBACUser', 'username', username);
10863
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
10262
10864
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10263
10865
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10264
- .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
10866
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
10867
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10265
10868
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10266
10869
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10267
10870
  let baseOptions;
10268
10871
  if (configuration) {
10269
10872
  baseOptions = configuration.baseOptions;
10270
10873
  }
10271
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10874
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10272
10875
  const localVarHeaderParameter = {};
10273
10876
  const localVarQueryParameter = {};
10274
10877
  // authentication BearerToken required
@@ -10286,31 +10889,28 @@ const SharedApiAxiosParamCreator = function (configuration) {
10286
10889
  },
10287
10890
  /**
10288
10891
  *
10289
- * @summary Lock Elasticsearch account
10892
+ * @summary ListRBACRoles
10290
10893
  * @param {string} orgName
10291
10894
  * @param {string} clusterName
10292
- * @param {string} username
10895
+ * @param {string} [database]
10293
10896
  * @param {*} [options] Override http request option.
10294
10897
  * @throws {RequiredError}
10295
10898
  */
10296
- lockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
10899
+ mongoListRBACRoles: async (orgName, clusterName, database, options = {}) => {
10297
10900
  // verify required parameter 'orgName' is not null or undefined
10298
- (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'orgName', orgName);
10901
+ (0, common_1.assertParamExists)('mongoListRBACRoles', 'orgName', orgName);
10299
10902
  // verify required parameter 'clusterName' is not null or undefined
10300
- (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'clusterName', clusterName);
10301
- // verify required parameter 'username' is not null or undefined
10302
- (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'username', username);
10303
- const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock`
10903
+ (0, common_1.assertParamExists)('mongoListRBACRoles', 'clusterName', clusterName);
10904
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
10304
10905
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10305
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10306
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10906
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10307
10907
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10308
10908
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10309
10909
  let baseOptions;
10310
10910
  if (configuration) {
10311
10911
  baseOptions = configuration.baseOptions;
10312
10912
  }
10313
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10913
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10314
10914
  const localVarHeaderParameter = {};
10315
10915
  const localVarQueryParameter = {};
10316
10916
  // authentication BearerToken required
@@ -10318,6 +10918,9 @@ const SharedApiAxiosParamCreator = function (configuration) {
10318
10918
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10319
10919
  // authentication DigestAuth required
10320
10920
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10921
+ if (database !== undefined) {
10922
+ localVarQueryParameter['database'] = database;
10923
+ }
10321
10924
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10322
10925
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10323
10926
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -10328,19 +10931,19 @@ const SharedApiAxiosParamCreator = function (configuration) {
10328
10931
  },
10329
10932
  /**
10330
10933
  *
10331
- * @summary batch modify database tde status
10332
- * @param {string} orgName name of the organization
10333
- * @param {string} clusterName name of the cluster
10334
- * @param {DbTDERequest} [dbTDERequest]
10934
+ * @summary ListRBACUsers
10935
+ * @param {string} orgName
10936
+ * @param {string} clusterName
10937
+ * @param {string} [database]
10335
10938
  * @param {*} [options] Override http request option.
10336
10939
  * @throws {RequiredError}
10337
10940
  */
10338
- manageMssqlTDEDatabase: async (orgName, clusterName, dbTDERequest, options = {}) => {
10941
+ mongoListRBACUsers: async (orgName, clusterName, database, options = {}) => {
10339
10942
  // verify required parameter 'orgName' is not null or undefined
10340
- (0, common_1.assertParamExists)('manageMssqlTDEDatabase', 'orgName', orgName);
10943
+ (0, common_1.assertParamExists)('mongoListRBACUsers', 'orgName', orgName);
10341
10944
  // verify required parameter 'clusterName' is not null or undefined
10342
- (0, common_1.assertParamExists)('manageMssqlTDEDatabase', 'clusterName', clusterName);
10343
- const localVarPath = `/admin/v1/data/mssql/organizations/{orgName}/clusters/{clusterName}/tde`
10945
+ (0, common_1.assertParamExists)('mongoListRBACUsers', 'clusterName', clusterName);
10946
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
10344
10947
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10345
10948
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10346
10949
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -10349,7 +10952,7 @@ const SharedApiAxiosParamCreator = function (configuration) {
10349
10952
  if (configuration) {
10350
10953
  baseOptions = configuration.baseOptions;
10351
10954
  }
10352
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10955
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10353
10956
  const localVarHeaderParameter = {};
10354
10957
  const localVarQueryParameter = {};
10355
10958
  // authentication BearerToken required
@@ -10357,11 +10960,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
10357
10960
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10358
10961
  // authentication DigestAuth required
10359
10962
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10360
- localVarHeaderParameter['Content-Type'] = 'application/json';
10963
+ if (database !== undefined) {
10964
+ localVarQueryParameter['database'] = database;
10965
+ }
10361
10966
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10362
10967
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10363
10968
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10364
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dbTDERequest, localVarRequestOptions, configuration);
10365
10969
  return {
10366
10970
  url: (0, common_1.toPathString)(localVarUrlObj),
10367
10971
  options: localVarRequestOptions,
@@ -10369,27 +10973,38 @@ const SharedApiAxiosParamCreator = function (configuration) {
10369
10973
  },
10370
10974
  /**
10371
10975
  *
10372
- * @summary mark cluster to restore completed, usually used when manually repairing or recovering issues
10373
- * @param {string} orgName name of the Org
10374
- * @param {string} clusterName name of the KubeBlocks cluster
10976
+ * @summary UpdateRBACRole
10977
+ * @param {string} orgName
10978
+ * @param {string} clusterName
10979
+ * @param {string} database
10980
+ * @param {string} roleName
10981
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
10375
10982
  * @param {*} [options] Override http request option.
10376
10983
  * @throws {RequiredError}
10377
10984
  */
10378
- markClusterRestoreCompleted: async (orgName, clusterName, options = {}) => {
10985
+ mongoUpdateRBACRole: async (orgName, clusterName, database, roleName, mongoRBACRoleWrite, options = {}) => {
10379
10986
  // verify required parameter 'orgName' is not null or undefined
10380
- (0, common_1.assertParamExists)('markClusterRestoreCompleted', 'orgName', orgName);
10987
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'orgName', orgName);
10381
10988
  // verify required parameter 'clusterName' is not null or undefined
10382
- (0, common_1.assertParamExists)('markClusterRestoreCompleted', 'clusterName', clusterName);
10383
- const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/markClusterRestoreCompleted`
10989
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'clusterName', clusterName);
10990
+ // verify required parameter 'database' is not null or undefined
10991
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'database', database);
10992
+ // verify required parameter 'roleName' is not null or undefined
10993
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'roleName', roleName);
10994
+ // verify required parameter 'mongoRBACRoleWrite' is not null or undefined
10995
+ (0, common_1.assertParamExists)('mongoUpdateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite);
10996
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
10384
10997
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10385
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
10998
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10999
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
11000
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
10386
11001
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10387
11002
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10388
11003
  let baseOptions;
10389
11004
  if (configuration) {
10390
11005
  baseOptions = configuration.baseOptions;
10391
11006
  }
10392
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
11007
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
10393
11008
  const localVarHeaderParameter = {};
10394
11009
  const localVarQueryParameter = {};
10395
11010
  // authentication BearerToken required
@@ -10397,9 +11012,11 @@ const SharedApiAxiosParamCreator = function (configuration) {
10397
11012
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10398
11013
  // authentication DigestAuth required
10399
11014
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
11015
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10400
11016
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10401
11017
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10402
11018
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11019
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACRoleWrite, localVarRequestOptions, configuration);
10403
11020
  return {
10404
11021
  url: (0, common_1.toPathString)(localVarUrlObj),
10405
11022
  options: localVarRequestOptions,
@@ -10613,8 +11230,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
10613
11230
  };
10614
11231
  },
10615
11232
  /**
10616
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
10617
- * @summary Preview clearing all MySQL account privileges
11233
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
11234
+ * @summary Preview clearing explicit account privileges
10618
11235
  * @param {string} engineName
10619
11236
  * @param {string} orgName
10620
11237
  * @param {string} clusterName
@@ -10622,10 +11239,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
10622
11239
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
10623
11240
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
10624
11241
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
11242
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
11243
+ * @param {boolean} [allDatabases] PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
10625
11244
  * @param {*} [options] Override http request option.
10626
11245
  * @throws {RequiredError}
10627
11246
  */
10628
- previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
11247
+ previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options = {}) => {
10629
11248
  // verify required parameter 'engineName' is not null or undefined
10630
11249
  (0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'engineName', engineName);
10631
11250
  // verify required parameter 'orgName' is not null or undefined
@@ -10662,6 +11281,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
10662
11281
  if (subjectQualifiers !== undefined) {
10663
11282
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
10664
11283
  }
11284
+ if (databaseNames) {
11285
+ localVarQueryParameter['databaseNames'] = databaseNames;
11286
+ }
11287
+ if (allDatabases !== undefined) {
11288
+ localVarQueryParameter['allDatabases'] = allDatabases;
11289
+ }
10665
11290
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10666
11291
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10667
11292
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12481,8 +13106,8 @@ const SharedApiAxiosParamCreator = function (configuration) {
12481
13106
  };
12482
13107
  },
12483
13108
  /**
12484
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
12485
- * @summary Clear all MySQL account privileges
13109
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
13110
+ * @summary Clear explicit account privileges
12486
13111
  * @param {string} engineName
12487
13112
  * @param {string} orgName
12488
13113
  * @param {string} clusterName
@@ -12490,10 +13115,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
12490
13115
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
12491
13116
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
12492
13117
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
13118
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
13119
+ * @param {boolean} [allDatabases] PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
12493
13120
  * @param {*} [options] Override http request option.
12494
13121
  * @throws {RequiredError}
12495
13122
  */
12496
- resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
13123
+ resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options = {}) => {
12497
13124
  // verify required parameter 'engineName' is not null or undefined
12498
13125
  (0, common_1.assertParamExists)('resetAccountPrivileges', 'engineName', engineName);
12499
13126
  // verify required parameter 'orgName' is not null or undefined
@@ -12530,6 +13157,12 @@ const SharedApiAxiosParamCreator = function (configuration) {
12530
13157
  if (subjectQualifiers !== undefined) {
12531
13158
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
12532
13159
  }
13160
+ if (databaseNames) {
13161
+ localVarQueryParameter['databaseNames'] = databaseNames;
13162
+ }
13163
+ if (allDatabases !== undefined) {
13164
+ localVarQueryParameter['allDatabases'] = allDatabases;
13165
+ }
12533
13166
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12534
13167
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12535
13168
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -16670,6 +17303,27 @@ const SharedApiFp = function (configuration) {
16670
17303
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getAccountObjectPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16671
17304
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16672
17305
  },
17306
+ /**
17307
+ * Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
17308
+ * @summary Read native account privilege summary or selected database evidence
17309
+ * @param {string} engineName
17310
+ * @param {string} orgName
17311
+ * @param {string} clusterName
17312
+ * @param {string} accountName
17313
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
17314
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
17315
+ * @param {string} [subjectQualifiers]
17316
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
17317
+ * @param {*} [options] Override http request option.
17318
+ * @throws {RequiredError}
17319
+ */
17320
+ async getAccountPrivilegeOverview(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options) {
17321
+ var _a, _b, _c;
17322
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPrivilegeOverview(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options);
17323
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17324
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getAccountPrivilegeOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17325
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17326
+ },
16673
17327
  /**
16674
17328
  *
16675
17329
  * @summary Get backup
@@ -17667,21 +18321,22 @@ const SharedApiFp = function (configuration) {
17667
18321
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17668
18322
  },
17669
18323
  /**
17670
- * Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
18324
+ * Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
17671
18325
  * @summary List exact column names for account object privileges
17672
18326
  * @param {string} engineName
17673
18327
  * @param {string} orgName
17674
18328
  * @param {string} clusterName
17675
18329
  * @param {string} accountName
17676
- * @param {string} objectType Object type, either table or view
18330
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
17677
18331
  * @param {string} databaseName
17678
18332
  * @param {string} objectName
18333
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
17679
18334
  * @param {*} [options] Override http request option.
17680
18335
  * @throws {RequiredError}
17681
18336
  */
17682
- async listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options) {
18337
+ async listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options) {
17683
18338
  var _a, _b, _c;
17684
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
18339
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options);
17685
18340
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17686
18341
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listAccountObjectPrivilegeColumns']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17687
18342
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18750,149 +19405,351 @@ const SharedApiFp = function (configuration) {
18750
19405
  var _a, _b, _c;
18751
19406
  const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceVersion(environmentName, engineName, engineMode, engineVersion, component, options);
18752
19407
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18753
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19408
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19409
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19410
+ },
19411
+ /**
19412
+ * list sessions in cluster
19413
+ * @summary List cluster sessions
19414
+ * @param {string} engineName name of the engine
19415
+ * @param {string} orgName name of the Org
19416
+ * @param {string} clusterName name of the Cluster
19417
+ * @param {boolean} [all] whether list all session includes sleep
19418
+ * @param {*} [options] Override http request option.
19419
+ * @throws {RequiredError}
19420
+ */
19421
+ async listSessions(engineName, orgName, clusterName, all, options) {
19422
+ var _a, _b, _c;
19423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(engineName, orgName, clusterName, all, options);
19424
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19425
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19426
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19427
+ },
19428
+ /**
19429
+ *
19430
+ * @summary list all session for the cluster
19431
+ * @param {string} orgName name of the Org
19432
+ * @param {string} clusterName name of the cluster
19433
+ * @param {string} [all] whether list all session includes sleep
19434
+ * @param {*} [options] Override http request option.
19435
+ * @deprecated
19436
+ * @throws {RequiredError}
19437
+ */
19438
+ async listSessionsOld(orgName, clusterName, all, options) {
19439
+ var _a, _b, _c;
19440
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSessionsOld(orgName, clusterName, all, options);
19441
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19442
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSessionsOld']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19443
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19444
+ },
19445
+ /**
19446
+ * List task types
19447
+ * @summary List task types
19448
+ * @param {*} [options] Override http request option.
19449
+ * @throws {RequiredError}
19450
+ */
19451
+ async listTaskTypes(options) {
19452
+ var _a, _b, _c;
19453
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskTypes(options);
19454
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19455
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listTaskTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19456
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19457
+ },
19458
+ /**
19459
+ *
19460
+ * @summary list all tenants for the oceanbase cluster
19461
+ * @param {string} orgName name of the Org
19462
+ * @param {string} clusterName name of the cluster
19463
+ * @param {*} [options] Override http request option.
19464
+ * @throws {RequiredError}
19465
+ */
19466
+ async listTenants(orgName, clusterName, options) {
19467
+ var _a, _b, _c;
19468
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTenants(orgName, clusterName, options);
19469
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19470
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listTenants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19471
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19472
+ },
19473
+ /**
19474
+ * list upgraded service version of the component
19475
+ * @summary list upgraded service version of the component
19476
+ * @param {string} clusterName Name of the cluster
19477
+ * @param {string} orgName organization name
19478
+ * @param {string} component component type
19479
+ * @param {*} [options] Override http request option.
19480
+ * @throws {RequiredError}
19481
+ */
19482
+ async listUpgradeableServiceVersion(clusterName, orgName, component, options) {
19483
+ var _a, _b, _c;
19484
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUpgradeableServiceVersion(clusterName, orgName, component, options);
19485
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19486
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listUpgradeableServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19487
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19488
+ },
19489
+ /**
19490
+ * lock an account in cluster
19491
+ * @summary Lock cluster account
19492
+ * @param {string} engineName name of the engine
19493
+ * @param {string} orgName name of the organization
19494
+ * @param {string} clusterName name of the cluster
19495
+ * @param {string} accountName name of the account
19496
+ * @param {*} [options] Override http request option.
19497
+ * @throws {RequiredError}
19498
+ */
19499
+ async lockAccount(engineName, orgName, clusterName, accountName, options) {
19500
+ var _a, _b, _c;
19501
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockAccount(engineName, orgName, clusterName, accountName, options);
19502
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19503
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19504
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19505
+ },
19506
+ /**
19507
+ *
19508
+ * @summary Lock Elasticsearch account
19509
+ * @param {string} orgName
19510
+ * @param {string} clusterName
19511
+ * @param {string} username
19512
+ * @param {*} [options] Override http request option.
19513
+ * @throws {RequiredError}
19514
+ */
19515
+ async lockElasticsearchSecurityUser(orgName, clusterName, username, options) {
19516
+ var _a, _b, _c;
19517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockElasticsearchSecurityUser(orgName, clusterName, username, options);
19518
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19519
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19520
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19521
+ },
19522
+ /**
19523
+ *
19524
+ * @summary batch modify database tde status
19525
+ * @param {string} orgName name of the organization
19526
+ * @param {string} clusterName name of the cluster
19527
+ * @param {DbTDERequest} [dbTDERequest]
19528
+ * @param {*} [options] Override http request option.
19529
+ * @throws {RequiredError}
19530
+ */
19531
+ async manageMssqlTDEDatabase(orgName, clusterName, dbTDERequest, options) {
19532
+ var _a, _b, _c;
19533
+ const localVarAxiosArgs = await localVarAxiosParamCreator.manageMssqlTDEDatabase(orgName, clusterName, dbTDERequest, options);
19534
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19535
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.manageMssqlTDEDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19536
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19537
+ },
19538
+ /**
19539
+ *
19540
+ * @summary mark cluster to restore completed, usually used when manually repairing or recovering issues
19541
+ * @param {string} orgName name of the Org
19542
+ * @param {string} clusterName name of the KubeBlocks cluster
19543
+ * @param {*} [options] Override http request option.
19544
+ * @throws {RequiredError}
19545
+ */
19546
+ async markClusterRestoreCompleted(orgName, clusterName, options) {
19547
+ var _a, _b, _c;
19548
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markClusterRestoreCompleted(orgName, clusterName, options);
19549
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19550
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.markClusterRestoreCompleted']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19551
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19552
+ },
19553
+ /**
19554
+ *
19555
+ * @summary ChangeRBACUserPassword
19556
+ * @param {string} orgName
19557
+ * @param {string} clusterName
19558
+ * @param {string} database
19559
+ * @param {string} username
19560
+ * @param {MongoRBACPasswordChange} mongoRBACPasswordChange
19561
+ * @param {*} [options] Override http request option.
19562
+ * @throws {RequiredError}
19563
+ */
19564
+ async mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options) {
19565
+ var _a, _b, _c;
19566
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options);
19567
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19568
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoChangeRBACUserPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19569
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19570
+ },
19571
+ /**
19572
+ *
19573
+ * @summary ChangeRBACUserRoles
19574
+ * @param {string} orgName
19575
+ * @param {string} clusterName
19576
+ * @param {string} database
19577
+ * @param {string} username
19578
+ * @param {MongoRBACBindingChange} mongoRBACBindingChange
19579
+ * @param {*} [options] Override http request option.
19580
+ * @throws {RequiredError}
19581
+ */
19582
+ async mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options) {
19583
+ var _a, _b, _c;
19584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options);
19585
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19586
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoChangeRBACUserRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19587
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19588
+ },
19589
+ /**
19590
+ *
19591
+ * @summary CreateRBACRole
19592
+ * @param {string} orgName
19593
+ * @param {string} clusterName
19594
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
19595
+ * @param {*} [options] Override http request option.
19596
+ * @throws {RequiredError}
19597
+ */
19598
+ async mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options) {
19599
+ var _a, _b, _c;
19600
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options);
19601
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19602
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoCreateRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18754
19603
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18755
19604
  },
18756
19605
  /**
18757
- * list sessions in cluster
18758
- * @summary List cluster sessions
18759
- * @param {string} engineName name of the engine
18760
- * @param {string} orgName name of the Org
18761
- * @param {string} clusterName name of the Cluster
18762
- * @param {boolean} [all] whether list all session includes sleep
19606
+ *
19607
+ * @summary CreateRBACUser
19608
+ * @param {string} orgName
19609
+ * @param {string} clusterName
19610
+ * @param {MongoRBACUserCreate} mongoRBACUserCreate
18763
19611
  * @param {*} [options] Override http request option.
18764
19612
  * @throws {RequiredError}
18765
19613
  */
18766
- async listSessions(engineName, orgName, clusterName, all, options) {
19614
+ async mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options) {
18767
19615
  var _a, _b, _c;
18768
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(engineName, orgName, clusterName, all, options);
19616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options);
18769
19617
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18770
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19618
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoCreateRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18771
19619
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18772
19620
  },
18773
19621
  /**
18774
19622
  *
18775
- * @summary list all session for the cluster
18776
- * @param {string} orgName name of the Org
18777
- * @param {string} clusterName name of the cluster
18778
- * @param {string} [all] whether list all session includes sleep
19623
+ * @summary DeleteRBACRole
19624
+ * @param {string} orgName
19625
+ * @param {string} clusterName
19626
+ * @param {string} database
19627
+ * @param {string} roleName
19628
+ * @param {string} expectedRevision
18779
19629
  * @param {*} [options] Override http request option.
18780
- * @deprecated
18781
19630
  * @throws {RequiredError}
18782
19631
  */
18783
- async listSessionsOld(orgName, clusterName, all, options) {
19632
+ async mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options) {
18784
19633
  var _a, _b, _c;
18785
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSessionsOld(orgName, clusterName, all, options);
19634
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options);
18786
19635
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18787
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSessionsOld']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19636
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoDeleteRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18788
19637
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18789
19638
  },
18790
19639
  /**
18791
- * List task types
18792
- * @summary List task types
19640
+ *
19641
+ * @summary DeleteRBACUser
19642
+ * @param {string} orgName
19643
+ * @param {string} clusterName
19644
+ * @param {string} database
19645
+ * @param {string} username
18793
19646
  * @param {*} [options] Override http request option.
18794
19647
  * @throws {RequiredError}
18795
19648
  */
18796
- async listTaskTypes(options) {
19649
+ async mongoDeleteRBACUser(orgName, clusterName, database, username, options) {
18797
19650
  var _a, _b, _c;
18798
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskTypes(options);
19651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACUser(orgName, clusterName, database, username, options);
18799
19652
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18800
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listTaskTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19653
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoDeleteRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18801
19654
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18802
19655
  },
18803
19656
  /**
18804
19657
  *
18805
- * @summary list all tenants for the oceanbase cluster
18806
- * @param {string} orgName name of the Org
18807
- * @param {string} clusterName name of the cluster
19658
+ * @summary GetRBACCapabilities
19659
+ * @param {string} orgName
19660
+ * @param {string} clusterName
18808
19661
  * @param {*} [options] Override http request option.
18809
19662
  * @throws {RequiredError}
18810
19663
  */
18811
- async listTenants(orgName, clusterName, options) {
19664
+ async mongoGetRBACCapabilities(orgName, clusterName, options) {
18812
19665
  var _a, _b, _c;
18813
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTenants(orgName, clusterName, options);
19666
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACCapabilities(orgName, clusterName, options);
18814
19667
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18815
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listTenants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19668
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoGetRBACCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18816
19669
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18817
19670
  },
18818
19671
  /**
18819
- * list upgraded service version of the component
18820
- * @summary list upgraded service version of the component
18821
- * @param {string} clusterName Name of the cluster
18822
- * @param {string} orgName organization name
18823
- * @param {string} component component type
19672
+ *
19673
+ * @summary GetRBACRole
19674
+ * @param {string} orgName
19675
+ * @param {string} clusterName
19676
+ * @param {string} database
19677
+ * @param {string} roleName
18824
19678
  * @param {*} [options] Override http request option.
18825
19679
  * @throws {RequiredError}
18826
19680
  */
18827
- async listUpgradeableServiceVersion(clusterName, orgName, component, options) {
19681
+ async mongoGetRBACRole(orgName, clusterName, database, roleName, options) {
18828
19682
  var _a, _b, _c;
18829
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUpgradeableServiceVersion(clusterName, orgName, component, options);
19683
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACRole(orgName, clusterName, database, roleName, options);
18830
19684
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18831
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listUpgradeableServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19685
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoGetRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18832
19686
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18833
19687
  },
18834
19688
  /**
18835
- * lock an account in cluster
18836
- * @summary Lock cluster account
18837
- * @param {string} engineName name of the engine
18838
- * @param {string} orgName name of the organization
18839
- * @param {string} clusterName name of the cluster
18840
- * @param {string} accountName name of the account
19689
+ *
19690
+ * @summary GetRBACUser
19691
+ * @param {string} orgName
19692
+ * @param {string} clusterName
19693
+ * @param {string} database
19694
+ * @param {string} username
18841
19695
  * @param {*} [options] Override http request option.
18842
19696
  * @throws {RequiredError}
18843
19697
  */
18844
- async lockAccount(engineName, orgName, clusterName, accountName, options) {
19698
+ async mongoGetRBACUser(orgName, clusterName, database, username, options) {
18845
19699
  var _a, _b, _c;
18846
- const localVarAxiosArgs = await localVarAxiosParamCreator.lockAccount(engineName, orgName, clusterName, accountName, options);
19700
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACUser(orgName, clusterName, database, username, options);
18847
19701
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18848
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19702
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoGetRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18849
19703
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18850
19704
  },
18851
19705
  /**
18852
19706
  *
18853
- * @summary Lock Elasticsearch account
19707
+ * @summary ListRBACRoles
18854
19708
  * @param {string} orgName
18855
19709
  * @param {string} clusterName
18856
- * @param {string} username
19710
+ * @param {string} [database]
18857
19711
  * @param {*} [options] Override http request option.
18858
19712
  * @throws {RequiredError}
18859
19713
  */
18860
- async lockElasticsearchSecurityUser(orgName, clusterName, username, options) {
19714
+ async mongoListRBACRoles(orgName, clusterName, database, options) {
18861
19715
  var _a, _b, _c;
18862
- const localVarAxiosArgs = await localVarAxiosParamCreator.lockElasticsearchSecurityUser(orgName, clusterName, username, options);
19716
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACRoles(orgName, clusterName, database, options);
18863
19717
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18864
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19718
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoListRBACRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18865
19719
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18866
19720
  },
18867
19721
  /**
18868
19722
  *
18869
- * @summary batch modify database tde status
18870
- * @param {string} orgName name of the organization
18871
- * @param {string} clusterName name of the cluster
18872
- * @param {DbTDERequest} [dbTDERequest]
19723
+ * @summary ListRBACUsers
19724
+ * @param {string} orgName
19725
+ * @param {string} clusterName
19726
+ * @param {string} [database]
18873
19727
  * @param {*} [options] Override http request option.
18874
19728
  * @throws {RequiredError}
18875
19729
  */
18876
- async manageMssqlTDEDatabase(orgName, clusterName, dbTDERequest, options) {
19730
+ async mongoListRBACUsers(orgName, clusterName, database, options) {
18877
19731
  var _a, _b, _c;
18878
- const localVarAxiosArgs = await localVarAxiosParamCreator.manageMssqlTDEDatabase(orgName, clusterName, dbTDERequest, options);
19732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, options);
18879
19733
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18880
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.manageMssqlTDEDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19734
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoListRBACUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18881
19735
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18882
19736
  },
18883
19737
  /**
18884
19738
  *
18885
- * @summary mark cluster to restore completed, usually used when manually repairing or recovering issues
18886
- * @param {string} orgName name of the Org
18887
- * @param {string} clusterName name of the KubeBlocks cluster
19739
+ * @summary UpdateRBACRole
19740
+ * @param {string} orgName
19741
+ * @param {string} clusterName
19742
+ * @param {string} database
19743
+ * @param {string} roleName
19744
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
18888
19745
  * @param {*} [options] Override http request option.
18889
19746
  * @throws {RequiredError}
18890
19747
  */
18891
- async markClusterRestoreCompleted(orgName, clusterName, options) {
19748
+ async mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options) {
18892
19749
  var _a, _b, _c;
18893
- const localVarAxiosArgs = await localVarAxiosParamCreator.markClusterRestoreCompleted(orgName, clusterName, options);
19750
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options);
18894
19751
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18895
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.markClusterRestoreCompleted']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19752
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.mongoUpdateRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18896
19753
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18897
19754
  },
18898
19755
  /**
@@ -18974,8 +19831,8 @@ const SharedApiFp = function (configuration) {
18974
19831
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18975
19832
  },
18976
19833
  /**
18977
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
18978
- * @summary Preview clearing all MySQL account privileges
19834
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
19835
+ * @summary Preview clearing explicit account privileges
18979
19836
  * @param {string} engineName
18980
19837
  * @param {string} orgName
18981
19838
  * @param {string} clusterName
@@ -18983,12 +19840,14 @@ const SharedApiFp = function (configuration) {
18983
19840
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
18984
19841
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
18985
19842
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
19843
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
19844
+ * @param {boolean} [allDatabases] PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
18986
19845
  * @param {*} [options] Override http request option.
18987
19846
  * @throws {RequiredError}
18988
19847
  */
18989
- async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
19848
+ async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options) {
18990
19849
  var _a, _b, _c;
18991
- const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
19850
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
18992
19851
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18993
19852
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.previewAccountPrivilegeReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18994
19853
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19582,8 +20441,8 @@ const SharedApiFp = function (configuration) {
19582
20441
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19583
20442
  },
19584
20443
  /**
19585
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
19586
- * @summary Clear all MySQL account privileges
20444
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
20445
+ * @summary Clear explicit account privileges
19587
20446
  * @param {string} engineName
19588
20447
  * @param {string} orgName
19589
20448
  * @param {string} clusterName
@@ -19591,12 +20450,14 @@ const SharedApiFp = function (configuration) {
19591
20450
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
19592
20451
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
19593
20452
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
20453
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
20454
+ * @param {boolean} [allDatabases] PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
19594
20455
  * @param {*} [options] Override http request option.
19595
20456
  * @throws {RequiredError}
19596
20457
  */
19597
- async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
20458
+ async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options) {
19598
20459
  var _a, _b, _c;
19599
- const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
20460
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
19600
20461
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19601
20462
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.resetAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19602
20463
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -21497,6 +22358,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
21497
22358
  getAccountObjectPrivileges(requestParameters, options) {
21498
22359
  return localVarFp.getAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.objectName, requestParameters.objectId, requestParameters.subjectType, requestParameters.host, requestParameters.catalogName, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
21499
22360
  },
22361
+ /**
22362
+ * Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
22363
+ * @summary Read native account privilege summary or selected database evidence
22364
+ * @param {SharedApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
22365
+ * @param {*} [options] Override http request option.
22366
+ * @throws {RequiredError}
22367
+ */
22368
+ getAccountPrivilegeOverview(requestParameters, options) {
22369
+ return localVarFp.getAccountPrivilegeOverview(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseName, options).then((request) => request(axios, basePath));
22370
+ },
21500
22371
  /**
21501
22372
  *
21502
22373
  * @summary Get backup
@@ -22087,14 +22958,14 @@ const SharedApiFactory = function (configuration, basePath, axios) {
22087
22958
  return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
22088
22959
  },
22089
22960
  /**
22090
- * Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
22961
+ * Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
22091
22962
  * @summary List exact column names for account object privileges
22092
22963
  * @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
22093
22964
  * @param {*} [options] Override http request option.
22094
22965
  * @throws {RequiredError}
22095
22966
  */
22096
22967
  listAccountObjectPrivilegeColumns(requestParameters, options) {
22097
- return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
22968
+ return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, requestParameters.schemaName, options).then((request) => request(axios, basePath));
22098
22969
  },
22099
22970
  /**
22100
22971
  * Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
@@ -22852,6 +23723,126 @@ const SharedApiFactory = function (configuration, basePath, axios) {
22852
23723
  markClusterRestoreCompleted(requestParameters, options) {
22853
23724
  return localVarFp.markClusterRestoreCompleted(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
22854
23725
  },
23726
+ /**
23727
+ *
23728
+ * @summary ChangeRBACUserPassword
23729
+ * @param {SharedApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
23730
+ * @param {*} [options] Override http request option.
23731
+ * @throws {RequiredError}
23732
+ */
23733
+ mongoChangeRBACUserPassword(requestParameters, options) {
23734
+ return localVarFp.mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(axios, basePath));
23735
+ },
23736
+ /**
23737
+ *
23738
+ * @summary ChangeRBACUserRoles
23739
+ * @param {SharedApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
23740
+ * @param {*} [options] Override http request option.
23741
+ * @throws {RequiredError}
23742
+ */
23743
+ mongoChangeRBACUserRoles(requestParameters, options) {
23744
+ return localVarFp.mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(axios, basePath));
23745
+ },
23746
+ /**
23747
+ *
23748
+ * @summary CreateRBACRole
23749
+ * @param {SharedApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
23750
+ * @param {*} [options] Override http request option.
23751
+ * @throws {RequiredError}
23752
+ */
23753
+ mongoCreateRBACRole(requestParameters, options) {
23754
+ return localVarFp.mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
23755
+ },
23756
+ /**
23757
+ *
23758
+ * @summary CreateRBACUser
23759
+ * @param {SharedApiMongoCreateRBACUserRequest} requestParameters Request parameters.
23760
+ * @param {*} [options] Override http request option.
23761
+ * @throws {RequiredError}
23762
+ */
23763
+ mongoCreateRBACUser(requestParameters, options) {
23764
+ return localVarFp.mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(axios, basePath));
23765
+ },
23766
+ /**
23767
+ *
23768
+ * @summary DeleteRBACRole
23769
+ * @param {SharedApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
23770
+ * @param {*} [options] Override http request option.
23771
+ * @throws {RequiredError}
23772
+ */
23773
+ mongoDeleteRBACRole(requestParameters, options) {
23774
+ return localVarFp.mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(axios, basePath));
23775
+ },
23776
+ /**
23777
+ *
23778
+ * @summary DeleteRBACUser
23779
+ * @param {SharedApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
23780
+ * @param {*} [options] Override http request option.
23781
+ * @throws {RequiredError}
23782
+ */
23783
+ mongoDeleteRBACUser(requestParameters, options) {
23784
+ return localVarFp.mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
23785
+ },
23786
+ /**
23787
+ *
23788
+ * @summary GetRBACCapabilities
23789
+ * @param {SharedApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
23790
+ * @param {*} [options] Override http request option.
23791
+ * @throws {RequiredError}
23792
+ */
23793
+ mongoGetRBACCapabilities(requestParameters, options) {
23794
+ return localVarFp.mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
23795
+ },
23796
+ /**
23797
+ *
23798
+ * @summary GetRBACRole
23799
+ * @param {SharedApiMongoGetRBACRoleRequest} requestParameters Request parameters.
23800
+ * @param {*} [options] Override http request option.
23801
+ * @throws {RequiredError}
23802
+ */
23803
+ mongoGetRBACRole(requestParameters, options) {
23804
+ return localVarFp.mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(axios, basePath));
23805
+ },
23806
+ /**
23807
+ *
23808
+ * @summary GetRBACUser
23809
+ * @param {SharedApiMongoGetRBACUserRequest} requestParameters Request parameters.
23810
+ * @param {*} [options] Override http request option.
23811
+ * @throws {RequiredError}
23812
+ */
23813
+ mongoGetRBACUser(requestParameters, options) {
23814
+ return localVarFp.mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
23815
+ },
23816
+ /**
23817
+ *
23818
+ * @summary ListRBACRoles
23819
+ * @param {SharedApiMongoListRBACRolesRequest} requestParameters Request parameters.
23820
+ * @param {*} [options] Override http request option.
23821
+ * @throws {RequiredError}
23822
+ */
23823
+ mongoListRBACRoles(requestParameters, options) {
23824
+ return localVarFp.mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
23825
+ },
23826
+ /**
23827
+ *
23828
+ * @summary ListRBACUsers
23829
+ * @param {SharedApiMongoListRBACUsersRequest} requestParameters Request parameters.
23830
+ * @param {*} [options] Override http request option.
23831
+ * @throws {RequiredError}
23832
+ */
23833
+ mongoListRBACUsers(requestParameters, options) {
23834
+ return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
23835
+ },
23836
+ /**
23837
+ *
23838
+ * @summary UpdateRBACRole
23839
+ * @param {SharedApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
23840
+ * @param {*} [options] Override http request option.
23841
+ * @throws {RequiredError}
23842
+ */
23843
+ mongoUpdateRBACRole(requestParameters, options) {
23844
+ return localVarFp.mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
23845
+ },
22855
23846
  /**
22856
23847
  * partially update the specified apikey
22857
23848
  * @summary Update apikey information
@@ -22903,14 +23894,14 @@ const SharedApiFactory = function (configuration, basePath, axios) {
22903
23894
  return localVarFp.patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
22904
23895
  },
22905
23896
  /**
22906
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
22907
- * @summary Preview clearing all MySQL account privileges
23897
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
23898
+ * @summary Preview clearing explicit account privileges
22908
23899
  * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
22909
23900
  * @param {*} [options] Override http request option.
22910
23901
  * @throws {RequiredError}
22911
23902
  */
22912
23903
  previewAccountPrivilegeReset(requestParameters, options) {
22913
- return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
23904
+ return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(axios, basePath));
22914
23905
  },
22915
23906
  /**
22916
23907
  *
@@ -23192,14 +24183,14 @@ const SharedApiFactory = function (configuration, basePath, axios) {
23192
24183
  return localVarFp.reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
23193
24184
  },
23194
24185
  /**
23195
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
23196
- * @summary Clear all MySQL account privileges
24186
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
24187
+ * @summary Clear explicit account privileges
23197
24188
  * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
23198
24189
  * @param {*} [options] Override http request option.
23199
24190
  * @throws {RequiredError}
23200
24191
  */
23201
24192
  resetAccountPrivileges(requestParameters, options) {
23202
- return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
24193
+ return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(axios, basePath));
23203
24194
  },
23204
24195
  /**
23205
24196
  *
@@ -24827,6 +25818,17 @@ class SharedApi extends base_1.BaseAPI {
24827
25818
  getAccountObjectPrivileges(requestParameters, options) {
24828
25819
  return (0, exports.SharedApiFp)(this.configuration).getAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.objectName, requestParameters.objectId, requestParameters.subjectType, requestParameters.host, requestParameters.catalogName, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
24829
25820
  }
25821
+ /**
25822
+ * Without databaseName, returns role attributes, memberships, database access summaries and shared ACLs without connecting to other databases. PostgreSQL databaseName reads schema, object, ownership and PUBLIC evidence from that database only. Failed reads return an error, never an empty grant list. SQL is read-only evidence, not an exhaustive effective-access decision.
25823
+ * @summary Read native account privilege summary or selected database evidence
25824
+ * @param {SharedApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
25825
+ * @param {*} [options] Override http request option.
25826
+ * @throws {RequiredError}
25827
+ * @memberof SharedApi
25828
+ */
25829
+ getAccountPrivilegeOverview(requestParameters, options) {
25830
+ return (0, exports.SharedApiFp)(this.configuration).getAccountPrivilegeOverview(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath));
25831
+ }
24830
25832
  /**
24831
25833
  *
24832
25834
  * @summary Get backup
@@ -25476,7 +26478,7 @@ class SharedApi extends base_1.BaseAPI {
25476
26478
  return (0, exports.SharedApiFp)(this.configuration).killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(this.axios, this.basePath));
25477
26479
  }
25478
26480
  /**
25479
- * Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
26481
+ * Read MySQL or PostgreSQL relation column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
25480
26482
  * @summary List exact column names for account object privileges
25481
26483
  * @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
25482
26484
  * @param {*} [options] Override http request option.
@@ -25484,7 +26486,7 @@ class SharedApi extends base_1.BaseAPI {
25484
26486
  * @memberof SharedApi
25485
26487
  */
25486
26488
  listAccountObjectPrivilegeColumns(requestParameters, options) {
25487
- return (0, exports.SharedApiFp)(this.configuration).listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(this.axios, this.basePath));
26489
+ return (0, exports.SharedApiFp)(this.configuration).listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, requestParameters.schemaName, options).then((request) => request(this.axios, this.basePath));
25488
26490
  }
25489
26491
  /**
25490
26492
  * Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
@@ -26318,6 +27320,138 @@ class SharedApi extends base_1.BaseAPI {
26318
27320
  markClusterRestoreCompleted(requestParameters, options) {
26319
27321
  return (0, exports.SharedApiFp)(this.configuration).markClusterRestoreCompleted(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
26320
27322
  }
27323
+ /**
27324
+ *
27325
+ * @summary ChangeRBACUserPassword
27326
+ * @param {SharedApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
27327
+ * @param {*} [options] Override http request option.
27328
+ * @throws {RequiredError}
27329
+ * @memberof SharedApi
27330
+ */
27331
+ mongoChangeRBACUserPassword(requestParameters, options) {
27332
+ return (0, exports.SharedApiFp)(this.configuration).mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(this.axios, this.basePath));
27333
+ }
27334
+ /**
27335
+ *
27336
+ * @summary ChangeRBACUserRoles
27337
+ * @param {SharedApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
27338
+ * @param {*} [options] Override http request option.
27339
+ * @throws {RequiredError}
27340
+ * @memberof SharedApi
27341
+ */
27342
+ mongoChangeRBACUserRoles(requestParameters, options) {
27343
+ return (0, exports.SharedApiFp)(this.configuration).mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(this.axios, this.basePath));
27344
+ }
27345
+ /**
27346
+ *
27347
+ * @summary CreateRBACRole
27348
+ * @param {SharedApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
27349
+ * @param {*} [options] Override http request option.
27350
+ * @throws {RequiredError}
27351
+ * @memberof SharedApi
27352
+ */
27353
+ mongoCreateRBACRole(requestParameters, options) {
27354
+ return (0, exports.SharedApiFp)(this.configuration).mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
27355
+ }
27356
+ /**
27357
+ *
27358
+ * @summary CreateRBACUser
27359
+ * @param {SharedApiMongoCreateRBACUserRequest} requestParameters Request parameters.
27360
+ * @param {*} [options] Override http request option.
27361
+ * @throws {RequiredError}
27362
+ * @memberof SharedApi
27363
+ */
27364
+ mongoCreateRBACUser(requestParameters, options) {
27365
+ return (0, exports.SharedApiFp)(this.configuration).mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(this.axios, this.basePath));
27366
+ }
27367
+ /**
27368
+ *
27369
+ * @summary DeleteRBACRole
27370
+ * @param {SharedApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
27371
+ * @param {*} [options] Override http request option.
27372
+ * @throws {RequiredError}
27373
+ * @memberof SharedApi
27374
+ */
27375
+ mongoDeleteRBACRole(requestParameters, options) {
27376
+ return (0, exports.SharedApiFp)(this.configuration).mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(this.axios, this.basePath));
27377
+ }
27378
+ /**
27379
+ *
27380
+ * @summary DeleteRBACUser
27381
+ * @param {SharedApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
27382
+ * @param {*} [options] Override http request option.
27383
+ * @throws {RequiredError}
27384
+ * @memberof SharedApi
27385
+ */
27386
+ mongoDeleteRBACUser(requestParameters, options) {
27387
+ return (0, exports.SharedApiFp)(this.configuration).mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
27388
+ }
27389
+ /**
27390
+ *
27391
+ * @summary GetRBACCapabilities
27392
+ * @param {SharedApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
27393
+ * @param {*} [options] Override http request option.
27394
+ * @throws {RequiredError}
27395
+ * @memberof SharedApi
27396
+ */
27397
+ mongoGetRBACCapabilities(requestParameters, options) {
27398
+ return (0, exports.SharedApiFp)(this.configuration).mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
27399
+ }
27400
+ /**
27401
+ *
27402
+ * @summary GetRBACRole
27403
+ * @param {SharedApiMongoGetRBACRoleRequest} requestParameters Request parameters.
27404
+ * @param {*} [options] Override http request option.
27405
+ * @throws {RequiredError}
27406
+ * @memberof SharedApi
27407
+ */
27408
+ mongoGetRBACRole(requestParameters, options) {
27409
+ return (0, exports.SharedApiFp)(this.configuration).mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
27410
+ }
27411
+ /**
27412
+ *
27413
+ * @summary GetRBACUser
27414
+ * @param {SharedApiMongoGetRBACUserRequest} requestParameters Request parameters.
27415
+ * @param {*} [options] Override http request option.
27416
+ * @throws {RequiredError}
27417
+ * @memberof SharedApi
27418
+ */
27419
+ mongoGetRBACUser(requestParameters, options) {
27420
+ return (0, exports.SharedApiFp)(this.configuration).mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
27421
+ }
27422
+ /**
27423
+ *
27424
+ * @summary ListRBACRoles
27425
+ * @param {SharedApiMongoListRBACRolesRequest} requestParameters Request parameters.
27426
+ * @param {*} [options] Override http request option.
27427
+ * @throws {RequiredError}
27428
+ * @memberof SharedApi
27429
+ */
27430
+ mongoListRBACRoles(requestParameters, options) {
27431
+ return (0, exports.SharedApiFp)(this.configuration).mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
27432
+ }
27433
+ /**
27434
+ *
27435
+ * @summary ListRBACUsers
27436
+ * @param {SharedApiMongoListRBACUsersRequest} requestParameters Request parameters.
27437
+ * @param {*} [options] Override http request option.
27438
+ * @throws {RequiredError}
27439
+ * @memberof SharedApi
27440
+ */
27441
+ mongoListRBACUsers(requestParameters, options) {
27442
+ return (0, exports.SharedApiFp)(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
27443
+ }
27444
+ /**
27445
+ *
27446
+ * @summary UpdateRBACRole
27447
+ * @param {SharedApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
27448
+ * @param {*} [options] Override http request option.
27449
+ * @throws {RequiredError}
27450
+ * @memberof SharedApi
27451
+ */
27452
+ mongoUpdateRBACRole(requestParameters, options) {
27453
+ return (0, exports.SharedApiFp)(this.configuration).mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
27454
+ }
26321
27455
  /**
26322
27456
  * partially update the specified apikey
26323
27457
  * @summary Update apikey information
@@ -26374,15 +27508,15 @@ class SharedApi extends base_1.BaseAPI {
26374
27508
  return (0, exports.SharedApiFp)(this.configuration).patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
26375
27509
  }
26376
27510
  /**
26377
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
26378
- * @summary Preview clearing all MySQL account privileges
27511
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
27512
+ * @summary Preview clearing explicit account privileges
26379
27513
  * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
26380
27514
  * @param {*} [options] Override http request option.
26381
27515
  * @throws {RequiredError}
26382
27516
  * @memberof SharedApi
26383
27517
  */
26384
27518
  previewAccountPrivilegeReset(requestParameters, options) {
26385
- return (0, exports.SharedApiFp)(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
27519
+ return (0, exports.SharedApiFp)(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(this.axios, this.basePath));
26386
27520
  }
26387
27521
  /**
26388
27522
  *
@@ -26692,15 +27826,15 @@ class SharedApi extends base_1.BaseAPI {
26692
27826
  return (0, exports.SharedApiFp)(this.configuration).reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
26693
27827
  }
26694
27828
  /**
26695
- * MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
26696
- * @summary Clear all MySQL account privileges
27829
+ * MySQL clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections. PostgreSQL requires selected databaseNames or explicit allDatabases=true. Selected scope clears direct database/local/default ACLs only. It preserves global memberships, role attributes and privileges in other databases. Whole-account scope additionally clears memberships and elevated attributes. PUBLIC access remains. Object ownership prevents reset; RESTRICT protects dependent grants. Each database is transactional, but cross-database reset is not atomic. No objects are dropped or reassigned.
27830
+ * @summary Clear explicit account privileges
26697
27831
  * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
26698
27832
  * @param {*} [options] Override http request option.
26699
27833
  * @throws {RequiredError}
26700
27834
  * @memberof SharedApi
26701
27835
  */
26702
27836
  resetAccountPrivileges(requestParameters, options) {
26703
- return (0, exports.SharedApiFp)(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
27837
+ return (0, exports.SharedApiFp)(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, requestParameters.databaseNames, requestParameters.allDatabases, options).then((request) => request(this.axios, this.basePath));
26704
27838
  }
26705
27839
  /**
26706
27840
  *