kb-cloud-client-typescript 2.4.0-alpha.94 → 2.4.0-alpha.96

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 (175) 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/index.d.ts +11 -0
  18. package/dist/adminapi/models/index.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.js +11 -0
  20. package/dist/adminapi/models/index.js.map +1 -1
  21. package/dist/adminapi/models/mongo-rbacbinding-change.d.ts +32 -0
  22. package/dist/adminapi/models/mongo-rbacbinding-change.d.ts.map +1 -0
  23. package/dist/adminapi/models/mongo-rbacbinding-change.js +16 -0
  24. package/dist/adminapi/models/mongo-rbacbinding-change.js.map +1 -0
  25. package/dist/adminapi/models/mongo-rbaccapabilities.d.ts +32 -0
  26. package/dist/adminapi/models/mongo-rbaccapabilities.d.ts.map +1 -0
  27. package/dist/adminapi/models/mongo-rbaccapabilities.js +16 -0
  28. package/dist/adminapi/models/mongo-rbaccapabilities.js.map +1 -0
  29. package/dist/adminapi/models/mongo-rbacpassword-change.d.ts +25 -0
  30. package/dist/adminapi/models/mongo-rbacpassword-change.d.ts.map +1 -0
  31. package/dist/adminapi/models/mongo-rbacpassword-change.js +16 -0
  32. package/dist/adminapi/models/mongo-rbacpassword-change.js.map +1 -0
  33. package/dist/adminapi/models/mongo-rbacprivilege.d.ts +32 -0
  34. package/dist/adminapi/models/mongo-rbacprivilege.d.ts.map +1 -0
  35. package/dist/adminapi/models/mongo-rbacprivilege.js +16 -0
  36. package/dist/adminapi/models/mongo-rbacprivilege.js.map +1 -0
  37. package/dist/adminapi/models/mongo-rbacresource-capability.d.ts +31 -0
  38. package/dist/adminapi/models/mongo-rbacresource-capability.d.ts.map +1 -0
  39. package/dist/adminapi/models/mongo-rbacresource-capability.js +16 -0
  40. package/dist/adminapi/models/mongo-rbacresource-capability.js.map +1 -0
  41. package/dist/adminapi/models/mongo-rbacresource.d.ts +43 -0
  42. package/dist/adminapi/models/mongo-rbacresource.d.ts.map +1 -0
  43. package/dist/adminapi/models/mongo-rbacresource.js +16 -0
  44. package/dist/adminapi/models/mongo-rbacresource.js.map +1 -0
  45. package/dist/adminapi/models/mongo-rbacrole-ref.d.ts +31 -0
  46. package/dist/adminapi/models/mongo-rbacrole-ref.d.ts.map +1 -0
  47. package/dist/adminapi/models/mongo-rbacrole-ref.js +16 -0
  48. package/dist/adminapi/models/mongo-rbacrole-ref.js.map +1 -0
  49. package/dist/adminapi/models/mongo-rbacrole-write.d.ts +51 -0
  50. package/dist/adminapi/models/mongo-rbacrole-write.d.ts.map +1 -0
  51. package/dist/adminapi/models/mongo-rbacrole-write.js +16 -0
  52. package/dist/adminapi/models/mongo-rbacrole-write.js.map +1 -0
  53. package/dist/adminapi/models/mongo-rbacrole.d.ts +69 -0
  54. package/dist/adminapi/models/mongo-rbacrole.d.ts.map +1 -0
  55. package/dist/adminapi/models/mongo-rbacrole.js +16 -0
  56. package/dist/adminapi/models/mongo-rbacrole.js.map +1 -0
  57. package/dist/adminapi/models/mongo-rbacuser-create.d.ts +44 -0
  58. package/dist/adminapi/models/mongo-rbacuser-create.d.ts.map +1 -0
  59. package/dist/adminapi/models/mongo-rbacuser-create.js +16 -0
  60. package/dist/adminapi/models/mongo-rbacuser-create.js.map +1 -0
  61. package/dist/adminapi/models/mongo-rbacuser.d.ts +57 -0
  62. package/dist/adminapi/models/mongo-rbacuser.d.ts.map +1 -0
  63. package/dist/adminapi/models/mongo-rbacuser.js +16 -0
  64. package/dist/adminapi/models/mongo-rbacuser.js.map +1 -0
  65. package/dist/adminapi/models/object-privilege-evidence.d.ts +6 -0
  66. package/dist/adminapi/models/object-privilege-evidence.d.ts.map +1 -1
  67. package/dist/adminapi/models/object-privilege-reset-step.d.ts +1 -1
  68. package/dist/openapi/apis/account-api.d.ts +1129 -38
  69. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  70. package/dist/openapi/apis/account-api.js +1283 -149
  71. package/dist/openapi/apis/account-api.js.map +1 -1
  72. package/dist/openapi/apis/mongodb-api.d.ts +943 -4
  73. package/dist/openapi/apis/mongodb-api.d.ts.map +1 -1
  74. package/dist/openapi/apis/mongodb-api.js +1005 -0
  75. package/dist/openapi/apis/mongodb-api.js.map +1 -1
  76. package/dist/openapi/apis/rdbms-api.d.ts +186 -34
  77. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  78. package/dist/openapi/apis/rdbms-api.js +166 -37
  79. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  80. package/dist/openapi/apis/shared-api.d.ts +1196 -105
  81. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  82. package/dist/openapi/apis/shared-api.js +1273 -139
  83. package/dist/openapi/apis/shared-api.js.map +1 -1
  84. package/dist/openapi/models/index.d.ts +11 -0
  85. package/dist/openapi/models/index.d.ts.map +1 -1
  86. package/dist/openapi/models/index.js +11 -0
  87. package/dist/openapi/models/index.js.map +1 -1
  88. package/dist/openapi/models/mongo-rbacbinding-change.d.ts +32 -0
  89. package/dist/openapi/models/mongo-rbacbinding-change.d.ts.map +1 -0
  90. package/dist/openapi/models/mongo-rbacbinding-change.js +16 -0
  91. package/dist/openapi/models/mongo-rbacbinding-change.js.map +1 -0
  92. package/dist/openapi/models/mongo-rbaccapabilities.d.ts +32 -0
  93. package/dist/openapi/models/mongo-rbaccapabilities.d.ts.map +1 -0
  94. package/dist/openapi/models/mongo-rbaccapabilities.js +16 -0
  95. package/dist/openapi/models/mongo-rbaccapabilities.js.map +1 -0
  96. package/dist/openapi/models/mongo-rbacpassword-change.d.ts +25 -0
  97. package/dist/openapi/models/mongo-rbacpassword-change.d.ts.map +1 -0
  98. package/dist/openapi/models/mongo-rbacpassword-change.js +16 -0
  99. package/dist/openapi/models/mongo-rbacpassword-change.js.map +1 -0
  100. package/dist/openapi/models/mongo-rbacprivilege.d.ts +32 -0
  101. package/dist/openapi/models/mongo-rbacprivilege.d.ts.map +1 -0
  102. package/dist/openapi/models/mongo-rbacprivilege.js +16 -0
  103. package/dist/openapi/models/mongo-rbacprivilege.js.map +1 -0
  104. package/dist/openapi/models/mongo-rbacresource-capability.d.ts +31 -0
  105. package/dist/openapi/models/mongo-rbacresource-capability.d.ts.map +1 -0
  106. package/dist/openapi/models/mongo-rbacresource-capability.js +16 -0
  107. package/dist/openapi/models/mongo-rbacresource-capability.js.map +1 -0
  108. package/dist/openapi/models/mongo-rbacresource.d.ts +43 -0
  109. package/dist/openapi/models/mongo-rbacresource.d.ts.map +1 -0
  110. package/dist/openapi/models/mongo-rbacresource.js +16 -0
  111. package/dist/openapi/models/mongo-rbacresource.js.map +1 -0
  112. package/dist/openapi/models/mongo-rbacrole-ref.d.ts +31 -0
  113. package/dist/openapi/models/mongo-rbacrole-ref.d.ts.map +1 -0
  114. package/dist/openapi/models/mongo-rbacrole-ref.js +16 -0
  115. package/dist/openapi/models/mongo-rbacrole-ref.js.map +1 -0
  116. package/dist/openapi/models/mongo-rbacrole-write.d.ts +51 -0
  117. package/dist/openapi/models/mongo-rbacrole-write.d.ts.map +1 -0
  118. package/dist/openapi/models/mongo-rbacrole-write.js +16 -0
  119. package/dist/openapi/models/mongo-rbacrole-write.js.map +1 -0
  120. package/dist/openapi/models/mongo-rbacrole.d.ts +69 -0
  121. package/dist/openapi/models/mongo-rbacrole.d.ts.map +1 -0
  122. package/dist/openapi/models/mongo-rbacrole.js +16 -0
  123. package/dist/openapi/models/mongo-rbacrole.js.map +1 -0
  124. package/dist/openapi/models/mongo-rbacuser-create.d.ts +44 -0
  125. package/dist/openapi/models/mongo-rbacuser-create.d.ts.map +1 -0
  126. package/dist/openapi/models/mongo-rbacuser-create.js +16 -0
  127. package/dist/openapi/models/mongo-rbacuser-create.js.map +1 -0
  128. package/dist/openapi/models/mongo-rbacuser.d.ts +57 -0
  129. package/dist/openapi/models/mongo-rbacuser.d.ts.map +1 -0
  130. package/dist/openapi/models/mongo-rbacuser.js +16 -0
  131. package/dist/openapi/models/mongo-rbacuser.js.map +1 -0
  132. package/dist/openapi/models/object-privilege-evidence.d.ts +6 -0
  133. package/dist/openapi/models/object-privilege-evidence.d.ts.map +1 -1
  134. package/dist/openapi/models/object-privilege-reset-step.d.ts +1 -1
  135. package/package.json +1 -1
  136. package/src/adminapi/.openapi-generator/FILES +11 -0
  137. package/src/adminapi/apis/account-api.ts +3961 -2069
  138. package/src/adminapi/apis/mongodb-api.ts +1757 -120
  139. package/src/adminapi/apis/rdbms-api.ts +298 -43
  140. package/src/adminapi/apis/shared-api.ts +2363 -471
  141. package/src/adminapi/models/index.ts +11 -0
  142. package/src/adminapi/models/mongo-rbacbinding-change.ts +39 -0
  143. package/src/adminapi/models/mongo-rbaccapabilities.ts +39 -0
  144. package/src/adminapi/models/mongo-rbacpassword-change.ts +30 -0
  145. package/src/adminapi/models/mongo-rbacprivilege.ts +39 -0
  146. package/src/adminapi/models/mongo-rbacresource-capability.ts +36 -0
  147. package/src/adminapi/models/mongo-rbacresource.ts +48 -0
  148. package/src/adminapi/models/mongo-rbacrole-ref.ts +36 -0
  149. package/src/adminapi/models/mongo-rbacrole-write.ts +60 -0
  150. package/src/adminapi/models/mongo-rbacrole.ts +78 -0
  151. package/src/adminapi/models/mongo-rbacuser-create.ts +51 -0
  152. package/src/adminapi/models/mongo-rbacuser.ts +66 -0
  153. package/src/adminapi/models/object-privilege-evidence.ts +6 -0
  154. package/src/adminapi/models/object-privilege-reset-step.ts +1 -1
  155. package/src/adminapi.yaml +958 -134
  156. package/src/openapi/.openapi-generator/FILES +11 -0
  157. package/src/openapi/apis/account-api.ts +3961 -2069
  158. package/src/openapi/apis/mongodb-api.ts +1757 -120
  159. package/src/openapi/apis/rdbms-api.ts +298 -43
  160. package/src/openapi/apis/shared-api.ts +2168 -276
  161. package/src/openapi/models/index.ts +11 -0
  162. package/src/openapi/models/mongo-rbacbinding-change.ts +39 -0
  163. package/src/openapi/models/mongo-rbaccapabilities.ts +39 -0
  164. package/src/openapi/models/mongo-rbacpassword-change.ts +30 -0
  165. package/src/openapi/models/mongo-rbacprivilege.ts +39 -0
  166. package/src/openapi/models/mongo-rbacresource-capability.ts +36 -0
  167. package/src/openapi/models/mongo-rbacresource.ts +48 -0
  168. package/src/openapi/models/mongo-rbacrole-ref.ts +36 -0
  169. package/src/openapi/models/mongo-rbacrole-write.ts +60 -0
  170. package/src/openapi/models/mongo-rbacrole.ts +78 -0
  171. package/src/openapi/models/mongo-rbacuser-create.ts +51 -0
  172. package/src/openapi/models/mongo-rbacuser.ts +66 -0
  173. package/src/openapi/models/object-privilege-evidence.ts +6 -0
  174. package/src/openapi/models/object-privilege-reset-step.ts +1 -1
  175. package/src/openapi.yaml +958 -134
@@ -284,6 +284,20 @@ import type { MilvusRoleList } from '../models';
284
284
  // @ts-ignore
285
285
  import type { MilvusRoleRequest } from '../models';
286
286
  // @ts-ignore
287
+ import type { MongoRBACBindingChange } from '../models';
288
+ // @ts-ignore
289
+ import type { MongoRBACCapabilities } from '../models';
290
+ // @ts-ignore
291
+ import type { MongoRBACPasswordChange } from '../models';
292
+ // @ts-ignore
293
+ import type { MongoRBACRole } from '../models';
294
+ // @ts-ignore
295
+ import type { MongoRBACRoleWrite } from '../models';
296
+ // @ts-ignore
297
+ import type { MongoRBACUser } from '../models';
298
+ // @ts-ignore
299
+ import type { MongoRBACUserCreate } from '../models';
300
+ // @ts-ignore
287
301
  import type { NodeList } from '../models';
288
302
  // @ts-ignore
289
303
  import type { NodeResourceStatsList } from '../models';
@@ -292,6 +306,8 @@ import type { ObjectPrivilegeCapabilities } from '../models';
292
306
  // @ts-ignore
293
307
  import type { ObjectPrivilegeChange } from '../models';
294
308
  // @ts-ignore
309
+ import type { ObjectPrivilegeEvidence } from '../models';
310
+ // @ts-ignore
295
311
  import type { ObjectPrivilegeObjectList } from '../models';
296
312
  // @ts-ignore
297
313
  import type { ObjectPrivilegeResetStep } from '../models';
@@ -5681,118 +5697,33 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5681
5697
  };
5682
5698
  },
5683
5699
  /**
5684
- *
5685
- * @summary Get backup
5686
- * @param {string} orgName name of the Org
5687
- * @param {string} backupId id of the Backup
5688
- * @param {*} [options] Override http request option.
5689
- * @throws {RequiredError}
5690
- */
5691
- getBackup: async (orgName: string, backupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5692
- // verify required parameter 'orgName' is not null or undefined
5693
- assertParamExists('getBackup', 'orgName', orgName)
5694
- // verify required parameter 'backupId' is not null or undefined
5695
- assertParamExists('getBackup', 'backupId', backupId)
5696
- const localVarPath = `/admin/v1/organizations/{orgName}/backups/{backupId}`
5697
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5698
- .replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
5699
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5700
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5701
- let baseOptions;
5702
- if (configuration) {
5703
- baseOptions = configuration.baseOptions;
5704
- }
5705
-
5706
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5707
- const localVarHeaderParameter = {} as any;
5708
- const localVarQueryParameter = {} as any;
5709
-
5710
- // authentication BearerToken required
5711
- // http bearer authentication required
5712
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
5713
-
5714
- // authentication DigestAuth required
5715
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5716
-
5717
-
5718
-
5719
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5720
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5721
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5722
-
5723
- return {
5724
- url: toPathString(localVarUrlObj),
5725
- options: localVarRequestOptions,
5726
- };
5727
- },
5728
- /**
5729
- *
5730
- * @summary Get backup log
5731
- * @param {string} orgName name of the Org
5732
- * @param {string} backupId id of the Backup
5733
- * @param {*} [options] Override http request option.
5734
- * @throws {RequiredError}
5735
- */
5736
- getBackupLog: async (orgName: string, backupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5737
- // verify required parameter 'orgName' is not null or undefined
5738
- assertParamExists('getBackupLog', 'orgName', orgName)
5739
- // verify required parameter 'backupId' is not null or undefined
5740
- assertParamExists('getBackupLog', 'backupId', backupId)
5741
- const localVarPath = `/admin/v1/organizations/{orgName}/backups/{backupId}/logs`
5742
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5743
- .replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
5744
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5745
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5746
- let baseOptions;
5747
- if (configuration) {
5748
- baseOptions = configuration.baseOptions;
5749
- }
5750
-
5751
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5752
- const localVarHeaderParameter = {} as any;
5753
- const localVarQueryParameter = {} as any;
5754
-
5755
- // authentication BearerToken required
5756
- // http bearer authentication required
5757
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
5758
-
5759
- // authentication DigestAuth required
5760
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5761
-
5762
-
5763
-
5764
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5765
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5766
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5767
-
5768
- return {
5769
- url: toPathString(localVarUrlObj),
5770
- options: localVarRequestOptions,
5771
- };
5772
- },
5773
- /**
5774
- *
5775
- * @summary get backup method
5776
- * @param {string} orgName name of the org
5777
- * @param {string} engineName engine name
5778
- * @param {string} [clusterID] clusterID is required when you want to get the backup method of a existing cluster
5779
- * @param {boolean} [enablePITR] define whether to enable PITR (Point-In-Time Recovery). This setting is required when clusterId is not empty.
5780
- * @param {boolean} [withRebuildInstance] defined whether to search for rebuilding instance.
5781
- * @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
5782
- * @param {boolean} [withHScale] defined whether to search for rebuilding instance.
5783
- * @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
5784
- * @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
5700
+ * 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.
5701
+ * @summary Read native account privilege summary or selected database evidence
5702
+ * @param {string} engineName
5703
+ * @param {string} orgName
5704
+ * @param {string} clusterName
5705
+ * @param {string} accountName
5706
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
5707
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
5708
+ * @param {string} [subjectQualifiers]
5709
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
5785
5710
  * @param {*} [options] Override http request option.
5786
5711
  * @throws {RequiredError}
5787
5712
  */
5788
- getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5789
- // verify required parameter 'orgName' is not null or undefined
5790
- assertParamExists('getBackupMethod', 'orgName', orgName)
5713
+ getAccountPrivilegeOverview: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5791
5714
  // verify required parameter 'engineName' is not null or undefined
5792
- assertParamExists('getBackupMethod', 'engineName', engineName)
5793
- const localVarPath = `/admin/v1/organizations/{orgName}/{engineName}/clusterBackupMethod`
5715
+ assertParamExists('getAccountPrivilegeOverview', 'engineName', engineName)
5716
+ // verify required parameter 'orgName' is not null or undefined
5717
+ assertParamExists('getAccountPrivilegeOverview', 'orgName', orgName)
5718
+ // verify required parameter 'clusterName' is not null or undefined
5719
+ assertParamExists('getAccountPrivilegeOverview', 'clusterName', clusterName)
5720
+ // verify required parameter 'accountName' is not null or undefined
5721
+ assertParamExists('getAccountPrivilegeOverview', 'accountName', accountName)
5722
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/overview`
5723
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
5794
5724
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5795
- .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)));
5725
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
5726
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
5796
5727
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5797
5728
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5798
5729
  let baseOptions;
@@ -5811,133 +5742,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5811
5742
  // authentication DigestAuth required
5812
5743
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5813
5744
 
5814
- if (clusterID !== undefined) {
5815
- localVarQueryParameter['clusterID'] = clusterID;
5816
- }
5817
-
5818
- if (enablePITR !== undefined) {
5819
- localVarQueryParameter['enablePITR'] = enablePITR;
5820
- }
5821
-
5822
- if (withRebuildInstance !== undefined) {
5823
- localVarQueryParameter['withRebuildInstance'] = withRebuildInstance;
5824
- }
5825
-
5826
- if (withRestoreCluster !== undefined) {
5827
- localVarQueryParameter['withRestoreCluster'] = withRestoreCluster;
5828
- }
5829
-
5830
- if (withHScale !== undefined) {
5831
- localVarQueryParameter['withHScale'] = withHScale;
5832
- }
5833
-
5834
- if (component !== undefined) {
5835
- localVarQueryParameter['component'] = component;
5836
- }
5837
-
5838
- if (mode !== undefined) {
5839
- localVarQueryParameter['mode'] = mode;
5745
+ if (subjectType !== undefined) {
5746
+ localVarQueryParameter['subjectType'] = subjectType;
5840
5747
  }
5841
5748
 
5842
-
5843
-
5844
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5845
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5846
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5847
-
5848
- return {
5849
- url: toPathString(localVarUrlObj),
5850
- options: localVarRequestOptions,
5851
- };
5852
- },
5853
- /**
5854
- *
5855
- * @summary Get backup repo
5856
- * @param {string} environmentName name of the environment
5857
- * @param {string} backupRepoName name of the BackupRepo
5858
- * @param {string} [orgName] name of the organization
5859
- * @param {*} [options] Override http request option.
5860
- * @throws {RequiredError}
5861
- */
5862
- getBackupRepo: async (environmentName: string, backupRepoName: string, orgName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5863
- // verify required parameter 'environmentName' is not null or undefined
5864
- assertParamExists('getBackupRepo', 'environmentName', environmentName)
5865
- // verify required parameter 'backupRepoName' is not null or undefined
5866
- assertParamExists('getBackupRepo', 'backupRepoName', backupRepoName)
5867
- const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo/{backupRepoName}`
5868
- .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
5869
- .replace(`{${"backupRepoName"}}`, encodeURIComponent(String(backupRepoName)));
5870
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5871
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5872
- let baseOptions;
5873
- if (configuration) {
5874
- baseOptions = configuration.baseOptions;
5749
+ if (host !== undefined) {
5750
+ localVarQueryParameter['host'] = host;
5875
5751
  }
5876
5752
 
5877
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5878
- const localVarHeaderParameter = {} as any;
5879
- const localVarQueryParameter = {} as any;
5880
-
5881
- // authentication BearerToken required
5882
- // http bearer authentication required
5883
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
5884
-
5885
- // authentication DigestAuth required
5886
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5887
-
5888
- if (orgName !== undefined) {
5889
- localVarQueryParameter['orgName'] = orgName;
5753
+ if (subjectQualifiers !== undefined) {
5754
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
5890
5755
  }
5891
5756
 
5892
-
5893
-
5894
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5895
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5896
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5897
-
5898
- return {
5899
- url: toPathString(localVarUrlObj),
5900
- options: localVarRequestOptions,
5901
- };
5902
- },
5903
- /**
5904
- *
5905
- * @summary Get the grants (privileges) of a ClickHouse role
5906
- * @param {string} orgName
5907
- * @param {string} clusterName
5908
- * @param {string} roleName
5909
- * @param {*} [options] Override http request option.
5910
- * @throws {RequiredError}
5911
- */
5912
- getClickhouseRoleGrants: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5913
- // verify required parameter 'orgName' is not null or undefined
5914
- assertParamExists('getClickhouseRoleGrants', 'orgName', orgName)
5915
- // verify required parameter 'clusterName' is not null or undefined
5916
- assertParamExists('getClickhouseRoleGrants', 'clusterName', clusterName)
5917
- // verify required parameter 'roleName' is not null or undefined
5918
- assertParamExists('getClickhouseRoleGrants', 'roleName', roleName)
5919
- const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
5920
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5921
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
5922
- .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
5923
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5924
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5925
- let baseOptions;
5926
- if (configuration) {
5927
- baseOptions = configuration.baseOptions;
5757
+ if (databaseName !== undefined) {
5758
+ localVarQueryParameter['databaseName'] = databaseName;
5928
5759
  }
5929
5760
 
5930
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5931
- const localVarHeaderParameter = {} as any;
5932
- const localVarQueryParameter = {} as any;
5933
-
5934
- // authentication BearerToken required
5935
- // http bearer authentication required
5936
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
5937
-
5938
- // authentication DigestAuth required
5939
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5940
-
5941
5761
 
5942
5762
 
5943
5763
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -5951,20 +5771,289 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5951
5771
  },
5952
5772
  /**
5953
5773
  *
5954
- * @summary Get cluster details
5774
+ * @summary Get backup
5955
5775
  * @param {string} orgName name of the Org
5956
- * @param {string} clusterName name of the KubeBlocks cluster
5776
+ * @param {string} backupId id of the Backup
5957
5777
  * @param {*} [options] Override http request option.
5958
5778
  * @throws {RequiredError}
5959
5779
  */
5960
- getCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5780
+ getBackup: async (orgName: string, backupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5961
5781
  // verify required parameter 'orgName' is not null or undefined
5962
- assertParamExists('getCluster', 'orgName', orgName)
5963
- // verify required parameter 'clusterName' is not null or undefined
5964
- assertParamExists('getCluster', 'clusterName', clusterName)
5965
- const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}`
5782
+ assertParamExists('getBackup', 'orgName', orgName)
5783
+ // verify required parameter 'backupId' is not null or undefined
5784
+ assertParamExists('getBackup', 'backupId', backupId)
5785
+ const localVarPath = `/admin/v1/organizations/{orgName}/backups/{backupId}`
5966
5786
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5967
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5787
+ .replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
5788
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5789
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5790
+ let baseOptions;
5791
+ if (configuration) {
5792
+ baseOptions = configuration.baseOptions;
5793
+ }
5794
+
5795
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5796
+ const localVarHeaderParameter = {} as any;
5797
+ const localVarQueryParameter = {} as any;
5798
+
5799
+ // authentication BearerToken required
5800
+ // http bearer authentication required
5801
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5802
+
5803
+ // authentication DigestAuth required
5804
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5805
+
5806
+
5807
+
5808
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5809
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5810
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5811
+
5812
+ return {
5813
+ url: toPathString(localVarUrlObj),
5814
+ options: localVarRequestOptions,
5815
+ };
5816
+ },
5817
+ /**
5818
+ *
5819
+ * @summary Get backup log
5820
+ * @param {string} orgName name of the Org
5821
+ * @param {string} backupId id of the Backup
5822
+ * @param {*} [options] Override http request option.
5823
+ * @throws {RequiredError}
5824
+ */
5825
+ getBackupLog: async (orgName: string, backupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5826
+ // verify required parameter 'orgName' is not null or undefined
5827
+ assertParamExists('getBackupLog', 'orgName', orgName)
5828
+ // verify required parameter 'backupId' is not null or undefined
5829
+ assertParamExists('getBackupLog', 'backupId', backupId)
5830
+ const localVarPath = `/admin/v1/organizations/{orgName}/backups/{backupId}/logs`
5831
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5832
+ .replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
5833
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5834
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5835
+ let baseOptions;
5836
+ if (configuration) {
5837
+ baseOptions = configuration.baseOptions;
5838
+ }
5839
+
5840
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5841
+ const localVarHeaderParameter = {} as any;
5842
+ const localVarQueryParameter = {} as any;
5843
+
5844
+ // authentication BearerToken required
5845
+ // http bearer authentication required
5846
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5847
+
5848
+ // authentication DigestAuth required
5849
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5850
+
5851
+
5852
+
5853
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5854
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5855
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5856
+
5857
+ return {
5858
+ url: toPathString(localVarUrlObj),
5859
+ options: localVarRequestOptions,
5860
+ };
5861
+ },
5862
+ /**
5863
+ *
5864
+ * @summary get backup method
5865
+ * @param {string} orgName name of the org
5866
+ * @param {string} engineName engine name
5867
+ * @param {string} [clusterID] clusterID is required when you want to get the backup method of a existing cluster
5868
+ * @param {boolean} [enablePITR] define whether to enable PITR (Point-In-Time Recovery). This setting is required when clusterId is not empty.
5869
+ * @param {boolean} [withRebuildInstance] defined whether to search for rebuilding instance.
5870
+ * @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
5871
+ * @param {boolean} [withHScale] defined whether to search for rebuilding instance.
5872
+ * @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
5873
+ * @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
5874
+ * @param {*} [options] Override http request option.
5875
+ * @throws {RequiredError}
5876
+ */
5877
+ getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5878
+ // verify required parameter 'orgName' is not null or undefined
5879
+ assertParamExists('getBackupMethod', 'orgName', orgName)
5880
+ // verify required parameter 'engineName' is not null or undefined
5881
+ assertParamExists('getBackupMethod', 'engineName', engineName)
5882
+ const localVarPath = `/admin/v1/organizations/{orgName}/{engineName}/clusterBackupMethod`
5883
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5884
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)));
5885
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5886
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5887
+ let baseOptions;
5888
+ if (configuration) {
5889
+ baseOptions = configuration.baseOptions;
5890
+ }
5891
+
5892
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5893
+ const localVarHeaderParameter = {} as any;
5894
+ const localVarQueryParameter = {} as any;
5895
+
5896
+ // authentication BearerToken required
5897
+ // http bearer authentication required
5898
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5899
+
5900
+ // authentication DigestAuth required
5901
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5902
+
5903
+ if (clusterID !== undefined) {
5904
+ localVarQueryParameter['clusterID'] = clusterID;
5905
+ }
5906
+
5907
+ if (enablePITR !== undefined) {
5908
+ localVarQueryParameter['enablePITR'] = enablePITR;
5909
+ }
5910
+
5911
+ if (withRebuildInstance !== undefined) {
5912
+ localVarQueryParameter['withRebuildInstance'] = withRebuildInstance;
5913
+ }
5914
+
5915
+ if (withRestoreCluster !== undefined) {
5916
+ localVarQueryParameter['withRestoreCluster'] = withRestoreCluster;
5917
+ }
5918
+
5919
+ if (withHScale !== undefined) {
5920
+ localVarQueryParameter['withHScale'] = withHScale;
5921
+ }
5922
+
5923
+ if (component !== undefined) {
5924
+ localVarQueryParameter['component'] = component;
5925
+ }
5926
+
5927
+ if (mode !== undefined) {
5928
+ localVarQueryParameter['mode'] = mode;
5929
+ }
5930
+
5931
+
5932
+
5933
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5934
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5935
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5936
+
5937
+ return {
5938
+ url: toPathString(localVarUrlObj),
5939
+ options: localVarRequestOptions,
5940
+ };
5941
+ },
5942
+ /**
5943
+ *
5944
+ * @summary Get backup repo
5945
+ * @param {string} environmentName name of the environment
5946
+ * @param {string} backupRepoName name of the BackupRepo
5947
+ * @param {string} [orgName] name of the organization
5948
+ * @param {*} [options] Override http request option.
5949
+ * @throws {RequiredError}
5950
+ */
5951
+ getBackupRepo: async (environmentName: string, backupRepoName: string, orgName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5952
+ // verify required parameter 'environmentName' is not null or undefined
5953
+ assertParamExists('getBackupRepo', 'environmentName', environmentName)
5954
+ // verify required parameter 'backupRepoName' is not null or undefined
5955
+ assertParamExists('getBackupRepo', 'backupRepoName', backupRepoName)
5956
+ const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo/{backupRepoName}`
5957
+ .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName)))
5958
+ .replace(`{${"backupRepoName"}}`, encodeURIComponent(String(backupRepoName)));
5959
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5960
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5961
+ let baseOptions;
5962
+ if (configuration) {
5963
+ baseOptions = configuration.baseOptions;
5964
+ }
5965
+
5966
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5967
+ const localVarHeaderParameter = {} as any;
5968
+ const localVarQueryParameter = {} as any;
5969
+
5970
+ // authentication BearerToken required
5971
+ // http bearer authentication required
5972
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5973
+
5974
+ // authentication DigestAuth required
5975
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5976
+
5977
+ if (orgName !== undefined) {
5978
+ localVarQueryParameter['orgName'] = orgName;
5979
+ }
5980
+
5981
+
5982
+
5983
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5984
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5985
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5986
+
5987
+ return {
5988
+ url: toPathString(localVarUrlObj),
5989
+ options: localVarRequestOptions,
5990
+ };
5991
+ },
5992
+ /**
5993
+ *
5994
+ * @summary Get the grants (privileges) of a ClickHouse role
5995
+ * @param {string} orgName
5996
+ * @param {string} clusterName
5997
+ * @param {string} roleName
5998
+ * @param {*} [options] Override http request option.
5999
+ * @throws {RequiredError}
6000
+ */
6001
+ getClickhouseRoleGrants: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6002
+ // verify required parameter 'orgName' is not null or undefined
6003
+ assertParamExists('getClickhouseRoleGrants', 'orgName', orgName)
6004
+ // verify required parameter 'clusterName' is not null or undefined
6005
+ assertParamExists('getClickhouseRoleGrants', 'clusterName', clusterName)
6006
+ // verify required parameter 'roleName' is not null or undefined
6007
+ assertParamExists('getClickhouseRoleGrants', 'roleName', roleName)
6008
+ const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
6009
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6010
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6011
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
6012
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6013
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6014
+ let baseOptions;
6015
+ if (configuration) {
6016
+ baseOptions = configuration.baseOptions;
6017
+ }
6018
+
6019
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6020
+ const localVarHeaderParameter = {} as any;
6021
+ const localVarQueryParameter = {} as any;
6022
+
6023
+ // authentication BearerToken required
6024
+ // http bearer authentication required
6025
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6026
+
6027
+ // authentication DigestAuth required
6028
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6029
+
6030
+
6031
+
6032
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6033
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6034
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6035
+
6036
+ return {
6037
+ url: toPathString(localVarUrlObj),
6038
+ options: localVarRequestOptions,
6039
+ };
6040
+ },
6041
+ /**
6042
+ *
6043
+ * @summary Get cluster details
6044
+ * @param {string} orgName name of the Org
6045
+ * @param {string} clusterName name of the KubeBlocks cluster
6046
+ * @param {*} [options] Override http request option.
6047
+ * @throws {RequiredError}
6048
+ */
6049
+ getCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6050
+ // verify required parameter 'orgName' is not null or undefined
6051
+ assertParamExists('getCluster', 'orgName', orgName)
6052
+ // verify required parameter 'clusterName' is not null or undefined
6053
+ assertParamExists('getCluster', 'clusterName', clusterName)
6054
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}`
6055
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6056
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5968
6057
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5969
6058
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5970
6059
  let baseOptions;
@@ -8893,19 +8982,20 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
8893
8982
  };
8894
8983
  },
8895
8984
  /**
8896
- * 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.
8985
+ * 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.
8897
8986
  * @summary List exact column names for account object privileges
8898
8987
  * @param {string} engineName
8899
8988
  * @param {string} orgName
8900
8989
  * @param {string} clusterName
8901
8990
  * @param {string} accountName
8902
- * @param {string} objectType Object type, either table or view
8991
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
8903
8992
  * @param {string} databaseName
8904
8993
  * @param {string} objectName
8994
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
8905
8995
  * @param {*} [options] Override http request option.
8906
8996
  * @throws {RequiredError}
8907
8997
  */
8908
- listAccountObjectPrivilegeColumns: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8998
+ listAccountObjectPrivilegeColumns: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, schemaName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8909
8999
  // verify required parameter 'engineName' is not null or undefined
8910
9000
  assertParamExists('listAccountObjectPrivilegeColumns', 'engineName', engineName)
8911
9001
  // verify required parameter 'orgName' is not null or undefined
@@ -8955,6 +9045,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
8955
9045
  localVarQueryParameter['objectName'] = objectName;
8956
9046
  }
8957
9047
 
9048
+ if (schemaName !== undefined) {
9049
+ localVarQueryParameter['schemaName'] = schemaName;
9050
+ }
9051
+
8958
9052
 
8959
9053
 
8960
9054
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -12758,20 +12852,32 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12758
12852
  };
12759
12853
  },
12760
12854
  /**
12761
- * partially update the specified apikey
12762
- * @summary Update apikey information
12763
- * @param {string} keyName Name of the apikey
12764
- * @param {ApikeyCreate} body
12855
+ *
12856
+ * @summary ChangeRBACUserPassword
12857
+ * @param {string} orgName
12858
+ * @param {string} clusterName
12859
+ * @param {string} database
12860
+ * @param {string} username
12861
+ * @param {MongoRBACPasswordChange} mongoRBACPasswordChange
12765
12862
  * @param {*} [options] Override http request option.
12766
12863
  * @throws {RequiredError}
12767
12864
  */
12768
- patchAPIkey: async (keyName: string, body: ApikeyCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12769
- // verify required parameter 'keyName' is not null or undefined
12770
- assertParamExists('patchAPIkey', 'keyName', keyName)
12771
- // verify required parameter 'body' is not null or undefined
12772
- assertParamExists('patchAPIkey', 'body', body)
12773
- const localVarPath = `/admin/v1/user/apikey/{keyName}`
12774
- .replace(`{${"keyName"}}`, encodeURIComponent(String(keyName)));
12865
+ mongoChangeRBACUserPassword: async (orgName: string, clusterName: string, database: string, username: string, mongoRBACPasswordChange: MongoRBACPasswordChange, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12866
+ // verify required parameter 'orgName' is not null or undefined
12867
+ assertParamExists('mongoChangeRBACUserPassword', 'orgName', orgName)
12868
+ // verify required parameter 'clusterName' is not null or undefined
12869
+ assertParamExists('mongoChangeRBACUserPassword', 'clusterName', clusterName)
12870
+ // verify required parameter 'database' is not null or undefined
12871
+ assertParamExists('mongoChangeRBACUserPassword', 'database', database)
12872
+ // verify required parameter 'username' is not null or undefined
12873
+ assertParamExists('mongoChangeRBACUserPassword', 'username', username)
12874
+ // verify required parameter 'mongoRBACPasswordChange' is not null or undefined
12875
+ assertParamExists('mongoChangeRBACUserPassword', 'mongoRBACPasswordChange', mongoRBACPasswordChange)
12876
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/password`
12877
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12878
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
12879
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
12880
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
12775
12881
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12776
12882
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12777
12883
  let baseOptions;
@@ -12779,7 +12885,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12779
12885
  baseOptions = configuration.baseOptions;
12780
12886
  }
12781
12887
 
12782
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12888
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12783
12889
  const localVarHeaderParameter = {} as any;
12784
12890
  const localVarQueryParameter = {} as any;
12785
12891
 
@@ -12797,7 +12903,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12797
12903
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12798
12904
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12799
12905
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12800
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
12906
+ localVarRequestOptions.data = serializeDataIfNeeded(mongoRBACPasswordChange, localVarRequestOptions, configuration)
12801
12907
 
12802
12908
  return {
12803
12909
  url: toPathString(localVarUrlObj),
@@ -12805,24 +12911,32 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12805
12911
  };
12806
12912
  },
12807
12913
  /**
12808
- * Update the specified Cluster
12809
- * @summary Update cluster specified fields
12810
- * @param {string} orgName name of the Org
12811
- * @param {string} clusterName name of the KubeBlocks cluster
12812
- * @param {ClusterUpdate} body
12914
+ *
12915
+ * @summary ChangeRBACUserRoles
12916
+ * @param {string} orgName
12917
+ * @param {string} clusterName
12918
+ * @param {string} database
12919
+ * @param {string} username
12920
+ * @param {MongoRBACBindingChange} mongoRBACBindingChange
12813
12921
  * @param {*} [options] Override http request option.
12814
12922
  * @throws {RequiredError}
12815
12923
  */
12816
- patchCluster: async (orgName: string, clusterName: string, body: ClusterUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12924
+ mongoChangeRBACUserRoles: async (orgName: string, clusterName: string, database: string, username: string, mongoRBACBindingChange: MongoRBACBindingChange, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12817
12925
  // verify required parameter 'orgName' is not null or undefined
12818
- assertParamExists('patchCluster', 'orgName', orgName)
12926
+ assertParamExists('mongoChangeRBACUserRoles', 'orgName', orgName)
12819
12927
  // verify required parameter 'clusterName' is not null or undefined
12820
- assertParamExists('patchCluster', 'clusterName', clusterName)
12821
- // verify required parameter 'body' is not null or undefined
12822
- assertParamExists('patchCluster', 'body', body)
12823
- const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}`
12928
+ assertParamExists('mongoChangeRBACUserRoles', 'clusterName', clusterName)
12929
+ // verify required parameter 'database' is not null or undefined
12930
+ assertParamExists('mongoChangeRBACUserRoles', 'database', database)
12931
+ // verify required parameter 'username' is not null or undefined
12932
+ assertParamExists('mongoChangeRBACUserRoles', 'username', username)
12933
+ // verify required parameter 'mongoRBACBindingChange' is not null or undefined
12934
+ assertParamExists('mongoChangeRBACUserRoles', 'mongoRBACBindingChange', mongoRBACBindingChange)
12935
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/roles`
12824
12936
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12825
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12937
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
12938
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
12939
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
12826
12940
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12827
12941
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12828
12942
  let baseOptions;
@@ -12848,7 +12962,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12848
12962
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12849
12963
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12850
12964
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12851
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
12965
+ localVarRequestOptions.data = serializeDataIfNeeded(mongoRBACBindingChange, localVarRequestOptions, configuration)
12852
12966
 
12853
12967
  return {
12854
12968
  url: toPathString(localVarUrlObj),
@@ -12856,20 +12970,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12856
12970
  };
12857
12971
  },
12858
12972
  /**
12859
- * partially update the specified Org
12860
- * @summary Update organization
12861
- * @param {string} orgName name of the Org
12862
- * @param {OrgUpdate} body
12973
+ *
12974
+ * @summary CreateRBACRole
12975
+ * @param {string} orgName
12976
+ * @param {string} clusterName
12977
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
12863
12978
  * @param {*} [options] Override http request option.
12864
12979
  * @throws {RequiredError}
12865
12980
  */
12866
- patchOrg: async (orgName: string, body: OrgUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12981
+ mongoCreateRBACRole: async (orgName: string, clusterName: string, mongoRBACRoleWrite: MongoRBACRoleWrite, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12867
12982
  // verify required parameter 'orgName' is not null or undefined
12868
- assertParamExists('patchOrg', 'orgName', orgName)
12869
- // verify required parameter 'body' is not null or undefined
12870
- assertParamExists('patchOrg', 'body', body)
12871
- const localVarPath = `/admin/v1/organizations/{orgName}`
12872
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
12983
+ assertParamExists('mongoCreateRBACRole', 'orgName', orgName)
12984
+ // verify required parameter 'clusterName' is not null or undefined
12985
+ assertParamExists('mongoCreateRBACRole', 'clusterName', clusterName)
12986
+ // verify required parameter 'mongoRBACRoleWrite' is not null or undefined
12987
+ assertParamExists('mongoCreateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite)
12988
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
12989
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12990
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12873
12991
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12874
12992
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12875
12993
  let baseOptions;
@@ -12877,7 +12995,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12877
12995
  baseOptions = configuration.baseOptions;
12878
12996
  }
12879
12997
 
12880
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
12998
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12881
12999
  const localVarHeaderParameter = {} as any;
12882
13000
  const localVarQueryParameter = {} as any;
12883
13001
 
@@ -12895,7 +13013,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12895
13013
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12896
13014
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12897
13015
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12898
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13016
+ localVarRequestOptions.data = serializeDataIfNeeded(mongoRBACRoleWrite, localVarRequestOptions, configuration)
12899
13017
 
12900
13018
  return {
12901
13019
  url: toPathString(localVarUrlObj),
@@ -12903,24 +13021,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12903
13021
  };
12904
13022
  },
12905
13023
  /**
12906
- * Only authenticated organization admins can update the member\'s role
12907
- * @summary Update member role
12908
- * @param {string} orgName name of the Org
12909
- * @param {string} memberId ID of the member
12910
- * @param {OrgMemberUpdate} body
13024
+ *
13025
+ * @summary CreateRBACUser
13026
+ * @param {string} orgName
13027
+ * @param {string} clusterName
13028
+ * @param {MongoRBACUserCreate} mongoRBACUserCreate
12911
13029
  * @param {*} [options] Override http request option.
12912
13030
  * @throws {RequiredError}
12913
13031
  */
12914
- patchOrgMember: async (orgName: string, memberId: string, body: OrgMemberUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13032
+ mongoCreateRBACUser: async (orgName: string, clusterName: string, mongoRBACUserCreate: MongoRBACUserCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12915
13033
  // verify required parameter 'orgName' is not null or undefined
12916
- assertParamExists('patchOrgMember', 'orgName', orgName)
12917
- // verify required parameter 'memberId' is not null or undefined
12918
- assertParamExists('patchOrgMember', 'memberId', memberId)
12919
- // verify required parameter 'body' is not null or undefined
12920
- assertParamExists('patchOrgMember', 'body', body)
12921
- const localVarPath = `/admin/v1/organizations/{orgName}/members/{memberId}`
13034
+ assertParamExists('mongoCreateRBACUser', 'orgName', orgName)
13035
+ // verify required parameter 'clusterName' is not null or undefined
13036
+ assertParamExists('mongoCreateRBACUser', 'clusterName', clusterName)
13037
+ // verify required parameter 'mongoRBACUserCreate' is not null or undefined
13038
+ assertParamExists('mongoCreateRBACUser', 'mongoRBACUserCreate', mongoRBACUserCreate)
13039
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
12922
13040
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12923
- .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
13041
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12924
13042
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12925
13043
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12926
13044
  let baseOptions;
@@ -12928,7 +13046,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12928
13046
  baseOptions = configuration.baseOptions;
12929
13047
  }
12930
13048
 
12931
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13049
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12932
13050
  const localVarHeaderParameter = {} as any;
12933
13051
  const localVarQueryParameter = {} as any;
12934
13052
 
@@ -12946,7 +13064,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12946
13064
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12947
13065
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12948
13066
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12949
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13067
+ localVarRequestOptions.data = serializeDataIfNeeded(mongoRBACUserCreate, localVarRequestOptions, configuration)
12950
13068
 
12951
13069
  return {
12952
13070
  url: toPathString(localVarUrlObj),
@@ -12954,24 +13072,32 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12954
13072
  };
12955
13073
  },
12956
13074
  /**
12957
- * Update a parameter of an organization
12958
- * @summary Update a parameter of an organization
12959
- * @param {string} orgName The name of the organization
12960
- * @param {string} parameterName The name of the parameter
12961
- * @param {OrgParameter} orgParameter
13075
+ *
13076
+ * @summary DeleteRBACRole
13077
+ * @param {string} orgName
13078
+ * @param {string} clusterName
13079
+ * @param {string} database
13080
+ * @param {string} roleName
13081
+ * @param {string} expectedRevision
12962
13082
  * @param {*} [options] Override http request option.
12963
13083
  * @throws {RequiredError}
12964
13084
  */
12965
- patchOrgParameter: async (orgName: string, parameterName: string, orgParameter: OrgParameter, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13085
+ mongoDeleteRBACRole: async (orgName: string, clusterName: string, database: string, roleName: string, expectedRevision: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12966
13086
  // verify required parameter 'orgName' is not null or undefined
12967
- assertParamExists('patchOrgParameter', 'orgName', orgName)
12968
- // verify required parameter 'parameterName' is not null or undefined
12969
- assertParamExists('patchOrgParameter', 'parameterName', parameterName)
12970
- // verify required parameter 'orgParameter' is not null or undefined
12971
- assertParamExists('patchOrgParameter', 'orgParameter', orgParameter)
12972
- const localVarPath = `/admin/v1/organizations/{orgName}/parameters/{parameterName}`
13087
+ assertParamExists('mongoDeleteRBACRole', 'orgName', orgName)
13088
+ // verify required parameter 'clusterName' is not null or undefined
13089
+ assertParamExists('mongoDeleteRBACRole', 'clusterName', clusterName)
13090
+ // verify required parameter 'database' is not null or undefined
13091
+ assertParamExists('mongoDeleteRBACRole', 'database', database)
13092
+ // verify required parameter 'roleName' is not null or undefined
13093
+ assertParamExists('mongoDeleteRBACRole', 'roleName', roleName)
13094
+ // verify required parameter 'expectedRevision' is not null or undefined
13095
+ assertParamExists('mongoDeleteRBACRole', 'expectedRevision', expectedRevision)
13096
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
12973
13097
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12974
- .replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
13098
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13099
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
13100
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
12975
13101
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12976
13102
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12977
13103
  let baseOptions;
@@ -12979,7 +13105,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12979
13105
  baseOptions = configuration.baseOptions;
12980
13106
  }
12981
13107
 
12982
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13108
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12983
13109
  const localVarHeaderParameter = {} as any;
12984
13110
  const localVarQueryParameter = {} as any;
12985
13111
 
@@ -12990,14 +13116,15 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12990
13116
  // authentication DigestAuth required
12991
13117
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12992
13118
 
13119
+ if (expectedRevision !== undefined) {
13120
+ localVarQueryParameter['expectedRevision'] = expectedRevision;
13121
+ }
12993
13122
 
12994
-
12995
- localVarHeaderParameter['Content-Type'] = 'application/json';
12996
13123
 
13124
+
12997
13125
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12998
13126
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12999
13127
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13000
- localVarRequestOptions.data = serializeDataIfNeeded(orgParameter, localVarRequestOptions, configuration)
13001
13128
 
13002
13129
  return {
13003
13130
  url: toPathString(localVarUrlObj),
@@ -13005,32 +13132,29 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13005
13132
  };
13006
13133
  },
13007
13134
  /**
13008
- * 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.
13009
- * @summary Preview clearing all MySQL account privileges
13010
- * @param {string} engineName
13135
+ *
13136
+ * @summary DeleteRBACUser
13011
13137
  * @param {string} orgName
13012
13138
  * @param {string} clusterName
13013
- * @param {string} accountName
13014
- * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
13015
- * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
13016
- * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
13139
+ * @param {string} database
13140
+ * @param {string} username
13017
13141
  * @param {*} [options] Override http request option.
13018
13142
  * @throws {RequiredError}
13019
13143
  */
13020
- previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13021
- // verify required parameter 'engineName' is not null or undefined
13022
- assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
13144
+ mongoDeleteRBACUser: async (orgName: string, clusterName: string, database: string, username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13023
13145
  // verify required parameter 'orgName' is not null or undefined
13024
- assertParamExists('previewAccountPrivilegeReset', 'orgName', orgName)
13146
+ assertParamExists('mongoDeleteRBACUser', 'orgName', orgName)
13025
13147
  // verify required parameter 'clusterName' is not null or undefined
13026
- assertParamExists('previewAccountPrivilegeReset', 'clusterName', clusterName)
13027
- // verify required parameter 'accountName' is not null or undefined
13028
- assertParamExists('previewAccountPrivilegeReset', 'accountName', accountName)
13029
- const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
13030
- .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
13148
+ assertParamExists('mongoDeleteRBACUser', 'clusterName', clusterName)
13149
+ // verify required parameter 'database' is not null or undefined
13150
+ assertParamExists('mongoDeleteRBACUser', 'database', database)
13151
+ // verify required parameter 'username' is not null or undefined
13152
+ assertParamExists('mongoDeleteRBACUser', 'username', username)
13153
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
13031
13154
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13032
13155
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13033
- .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
13156
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
13157
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
13034
13158
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13035
13159
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13036
13160
  let baseOptions;
@@ -13038,7 +13162,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13038
13162
  baseOptions = configuration.baseOptions;
13039
13163
  }
13040
13164
 
13041
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13165
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
13042
13166
  const localVarHeaderParameter = {} as any;
13043
13167
  const localVarQueryParameter = {} as any;
13044
13168
 
@@ -13049,18 +13173,6 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13049
13173
  // authentication DigestAuth required
13050
13174
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13051
13175
 
13052
- if (subjectType !== undefined) {
13053
- localVarQueryParameter['subjectType'] = subjectType;
13054
- }
13055
-
13056
- if (host !== undefined) {
13057
- localVarQueryParameter['host'] = host;
13058
- }
13059
-
13060
- if (subjectQualifiers !== undefined) {
13061
- localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
13062
- }
13063
-
13064
13176
 
13065
13177
 
13066
13178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13074,27 +13186,20 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13074
13186
  },
13075
13187
  /**
13076
13188
  *
13077
- * @summary Produce message to topic
13078
- * @param {string} orgName The name of organization
13079
- * @param {string} clusterName The name of cluster
13080
- * @param {string} topic
13081
- * @param {TopicMessageRequest} topicMessageRequest
13189
+ * @summary GetRBACCapabilities
13190
+ * @param {string} orgName
13191
+ * @param {string} clusterName
13082
13192
  * @param {*} [options] Override http request option.
13083
13193
  * @throws {RequiredError}
13084
13194
  */
13085
- produceKafkaTopicMessage: async (orgName: string, clusterName: string, topic: string, topicMessageRequest: TopicMessageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13195
+ mongoGetRBACCapabilities: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13086
13196
  // verify required parameter 'orgName' is not null or undefined
13087
- assertParamExists('produceKafkaTopicMessage', 'orgName', orgName)
13197
+ assertParamExists('mongoGetRBACCapabilities', 'orgName', orgName)
13088
13198
  // verify required parameter 'clusterName' is not null or undefined
13089
- assertParamExists('produceKafkaTopicMessage', 'clusterName', clusterName)
13090
- // verify required parameter 'topic' is not null or undefined
13091
- assertParamExists('produceKafkaTopicMessage', 'topic', topic)
13092
- // verify required parameter 'topicMessageRequest' is not null or undefined
13093
- assertParamExists('produceKafkaTopicMessage', 'topicMessageRequest', topicMessageRequest)
13094
- const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages`
13199
+ assertParamExists('mongoGetRBACCapabilities', 'clusterName', clusterName)
13200
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/capabilities`
13095
13201
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13096
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13097
- .replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
13202
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
13098
13203
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13099
13204
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13100
13205
  let baseOptions;
@@ -13102,7 +13207,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13102
13207
  baseOptions = configuration.baseOptions;
13103
13208
  }
13104
13209
 
13105
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13210
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13106
13211
  const localVarHeaderParameter = {} as any;
13107
13212
  const localVarQueryParameter = {} as any;
13108
13213
 
@@ -13115,12 +13220,9 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13115
13220
 
13116
13221
 
13117
13222
 
13118
- localVarHeaderParameter['Content-Type'] = 'application/json';
13119
-
13120
13223
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13121
13224
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13122
13225
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13123
- localVarRequestOptions.data = serializeDataIfNeeded(topicMessageRequest, localVarRequestOptions, configuration)
13124
13226
 
13125
13227
  return {
13126
13228
  url: toPathString(localVarUrlObj),
@@ -13129,23 +13231,28 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13129
13231
  },
13130
13232
  /**
13131
13233
  *
13132
- * @summary Promote cluster intance to primary
13133
- * @param {string} orgName name of the Org
13134
- * @param {string} clusterName name of the KubeBlocks cluster
13135
- * @param {OpsPromote} body
13234
+ * @summary GetRBACRole
13235
+ * @param {string} orgName
13236
+ * @param {string} clusterName
13237
+ * @param {string} database
13238
+ * @param {string} roleName
13136
13239
  * @param {*} [options] Override http request option.
13137
13240
  * @throws {RequiredError}
13138
13241
  */
13139
- promoteCluster: async (orgName: string, clusterName: string, body: OpsPromote, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13242
+ mongoGetRBACRole: async (orgName: string, clusterName: string, database: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13140
13243
  // verify required parameter 'orgName' is not null or undefined
13141
- assertParamExists('promoteCluster', 'orgName', orgName)
13244
+ assertParamExists('mongoGetRBACRole', 'orgName', orgName)
13142
13245
  // verify required parameter 'clusterName' is not null or undefined
13143
- assertParamExists('promoteCluster', 'clusterName', clusterName)
13144
- // verify required parameter 'body' is not null or undefined
13145
- assertParamExists('promoteCluster', 'body', body)
13146
- const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/promote`
13246
+ assertParamExists('mongoGetRBACRole', 'clusterName', clusterName)
13247
+ // verify required parameter 'database' is not null or undefined
13248
+ assertParamExists('mongoGetRBACRole', 'database', database)
13249
+ // verify required parameter 'roleName' is not null or undefined
13250
+ assertParamExists('mongoGetRBACRole', 'roleName', roleName)
13251
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
13147
13252
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13148
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
13253
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13254
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
13255
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
13149
13256
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13150
13257
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13151
13258
  let baseOptions;
@@ -13153,7 +13260,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13153
13260
  baseOptions = configuration.baseOptions;
13154
13261
  }
13155
13262
 
13156
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13263
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13157
13264
  const localVarHeaderParameter = {} as any;
13158
13265
  const localVarQueryParameter = {} as any;
13159
13266
 
@@ -13166,12 +13273,9 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13166
13273
 
13167
13274
 
13168
13275
 
13169
- localVarHeaderParameter['Content-Type'] = 'application/json';
13170
-
13171
13276
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13172
13277
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13173
13278
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13174
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13175
13279
 
13176
13280
  return {
13177
13281
  url: toPathString(localVarUrlObj),
@@ -13180,27 +13284,28 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13180
13284
  },
13181
13285
  /**
13182
13286
  *
13183
- * @summary Create or update Elasticsearch security role
13287
+ * @summary GetRBACUser
13184
13288
  * @param {string} orgName
13185
13289
  * @param {string} clusterName
13186
- * @param {string} roleName
13187
- * @param {ESSecurityRoleDescriptor} body
13290
+ * @param {string} database
13291
+ * @param {string} username
13188
13292
  * @param {*} [options] Override http request option.
13189
13293
  * @throws {RequiredError}
13190
13294
  */
13191
- putElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, body: ESSecurityRoleDescriptor, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13295
+ mongoGetRBACUser: async (orgName: string, clusterName: string, database: string, username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13192
13296
  // verify required parameter 'orgName' is not null or undefined
13193
- assertParamExists('putElasticsearchSecurityRole', 'orgName', orgName)
13297
+ assertParamExists('mongoGetRBACUser', 'orgName', orgName)
13194
13298
  // verify required parameter 'clusterName' is not null or undefined
13195
- assertParamExists('putElasticsearchSecurityRole', 'clusterName', clusterName)
13196
- // verify required parameter 'roleName' is not null or undefined
13197
- assertParamExists('putElasticsearchSecurityRole', 'roleName', roleName)
13198
- // verify required parameter 'body' is not null or undefined
13199
- assertParamExists('putElasticsearchSecurityRole', 'body', body)
13200
- const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
13299
+ assertParamExists('mongoGetRBACUser', 'clusterName', clusterName)
13300
+ // verify required parameter 'database' is not null or undefined
13301
+ assertParamExists('mongoGetRBACUser', 'database', database)
13302
+ // verify required parameter 'username' is not null or undefined
13303
+ assertParamExists('mongoGetRBACUser', 'username', username)
13304
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
13201
13305
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13202
13306
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13203
- .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
13307
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
13308
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
13204
13309
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13205
13310
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13206
13311
  let baseOptions;
@@ -13208,7 +13313,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13208
13313
  baseOptions = configuration.baseOptions;
13209
13314
  }
13210
13315
 
13211
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13316
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13212
13317
  const localVarHeaderParameter = {} as any;
13213
13318
  const localVarQueryParameter = {} as any;
13214
13319
 
@@ -13221,12 +13326,9 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13221
13326
 
13222
13327
 
13223
13328
 
13224
- localVarHeaderParameter['Content-Type'] = 'application/json';
13225
-
13226
13329
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13227
13330
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13228
13331
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13229
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13230
13332
 
13231
13333
  return {
13232
13334
  url: toPathString(localVarUrlObj),
@@ -13235,27 +13337,21 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13235
13337
  },
13236
13338
  /**
13237
13339
  *
13238
- * @summary Create or update Elasticsearch security role mapping
13340
+ * @summary ListRBACRoles
13239
13341
  * @param {string} orgName
13240
13342
  * @param {string} clusterName
13241
- * @param {string} mappingName
13242
- * @param {ESSecurityRoleMapping} body
13343
+ * @param {string} [database]
13243
13344
  * @param {*} [options] Override http request option.
13244
13345
  * @throws {RequiredError}
13245
13346
  */
13246
- putElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, body: ESSecurityRoleMapping, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13347
+ mongoListRBACRoles: async (orgName: string, clusterName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13247
13348
  // verify required parameter 'orgName' is not null or undefined
13248
- assertParamExists('putElasticsearchSecurityRoleMapping', 'orgName', orgName)
13349
+ assertParamExists('mongoListRBACRoles', 'orgName', orgName)
13249
13350
  // verify required parameter 'clusterName' is not null or undefined
13250
- assertParamExists('putElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
13251
- // verify required parameter 'mappingName' is not null or undefined
13252
- assertParamExists('putElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
13253
- // verify required parameter 'body' is not null or undefined
13254
- assertParamExists('putElasticsearchSecurityRoleMapping', 'body', body)
13255
- const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
13351
+ assertParamExists('mongoListRBACRoles', 'clusterName', clusterName)
13352
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
13256
13353
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13257
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13258
- .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
13354
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
13259
13355
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13260
13356
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13261
13357
  let baseOptions;
@@ -13263,7 +13359,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13263
13359
  baseOptions = configuration.baseOptions;
13264
13360
  }
13265
13361
 
13266
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13362
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13267
13363
  const localVarHeaderParameter = {} as any;
13268
13364
  const localVarQueryParameter = {} as any;
13269
13365
 
@@ -13274,14 +13370,15 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13274
13370
  // authentication DigestAuth required
13275
13371
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13276
13372
 
13373
+ if (database !== undefined) {
13374
+ localVarQueryParameter['database'] = database;
13375
+ }
13277
13376
 
13278
-
13279
- localVarHeaderParameter['Content-Type'] = 'application/json';
13280
13377
 
13378
+
13281
13379
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13282
13380
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13283
13381
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13284
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13285
13382
 
13286
13383
  return {
13287
13384
  url: toPathString(localVarUrlObj),
@@ -13290,27 +13387,21 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13290
13387
  },
13291
13388
  /**
13292
13389
  *
13293
- * @summary Create or update Elasticsearch security user
13390
+ * @summary ListRBACUsers
13294
13391
  * @param {string} orgName
13295
13392
  * @param {string} clusterName
13296
- * @param {string} username
13297
- * @param {ESPutSecurityUserRequest} body
13393
+ * @param {string} [database]
13298
13394
  * @param {*} [options] Override http request option.
13299
13395
  * @throws {RequiredError}
13300
13396
  */
13301
- putElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, body: ESPutSecurityUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13397
+ mongoListRBACUsers: async (orgName: string, clusterName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13302
13398
  // verify required parameter 'orgName' is not null or undefined
13303
- assertParamExists('putElasticsearchSecurityUser', 'orgName', orgName)
13399
+ assertParamExists('mongoListRBACUsers', 'orgName', orgName)
13304
13400
  // verify required parameter 'clusterName' is not null or undefined
13305
- assertParamExists('putElasticsearchSecurityUser', 'clusterName', clusterName)
13306
- // verify required parameter 'username' is not null or undefined
13307
- assertParamExists('putElasticsearchSecurityUser', 'username', username)
13308
- // verify required parameter 'body' is not null or undefined
13309
- assertParamExists('putElasticsearchSecurityUser', 'body', body)
13310
- const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
13401
+ assertParamExists('mongoListRBACUsers', 'clusterName', clusterName)
13402
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
13311
13403
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13312
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13313
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
13404
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
13314
13405
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13315
13406
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13316
13407
  let baseOptions;
@@ -13318,7 +13409,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13318
13409
  baseOptions = configuration.baseOptions;
13319
13410
  }
13320
13411
 
13321
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13412
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13322
13413
  const localVarHeaderParameter = {} as any;
13323
13414
  const localVarQueryParameter = {} as any;
13324
13415
 
@@ -13329,14 +13420,15 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13329
13420
  // authentication DigestAuth required
13330
13421
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13331
13422
 
13423
+ if (database !== undefined) {
13424
+ localVarQueryParameter['database'] = database;
13425
+ }
13426
+
13332
13427
 
13333
13428
 
13334
- localVarHeaderParameter['Content-Type'] = 'application/json';
13335
-
13336
13429
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13337
13430
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13338
13431
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13339
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13340
13432
 
13341
13433
  return {
13342
13434
  url: toPathString(localVarUrlObj),
@@ -13344,28 +13436,683 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
13344
13436
  };
13345
13437
  },
13346
13438
  /**
13347
- * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
13348
- * @summary putSeaweedFSPolicy
13439
+ *
13440
+ * @summary UpdateRBACRole
13349
13441
  * @param {string} orgName
13350
13442
  * @param {string} clusterName
13351
- * @param {string} policyName
13352
- * @param {{ [key: string]: any; }} requestBody
13443
+ * @param {string} database
13444
+ * @param {string} roleName
13445
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
13353
13446
  * @param {*} [options] Override http request option.
13354
13447
  * @throws {RequiredError}
13355
13448
  */
13356
- putSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13449
+ mongoUpdateRBACRole: async (orgName: string, clusterName: string, database: string, roleName: string, mongoRBACRoleWrite: MongoRBACRoleWrite, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13357
13450
  // verify required parameter 'orgName' is not null or undefined
13358
- assertParamExists('putSeaweedFSPolicy', 'orgName', orgName)
13451
+ assertParamExists('mongoUpdateRBACRole', 'orgName', orgName)
13359
13452
  // verify required parameter 'clusterName' is not null or undefined
13360
- assertParamExists('putSeaweedFSPolicy', 'clusterName', clusterName)
13361
- // verify required parameter 'policyName' is not null or undefined
13362
- assertParamExists('putSeaweedFSPolicy', 'policyName', policyName)
13363
- // verify required parameter 'requestBody' is not null or undefined
13364
- assertParamExists('putSeaweedFSPolicy', 'requestBody', requestBody)
13365
- const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
13453
+ assertParamExists('mongoUpdateRBACRole', 'clusterName', clusterName)
13454
+ // verify required parameter 'database' is not null or undefined
13455
+ assertParamExists('mongoUpdateRBACRole', 'database', database)
13456
+ // verify required parameter 'roleName' is not null or undefined
13457
+ assertParamExists('mongoUpdateRBACRole', 'roleName', roleName)
13458
+ // verify required parameter 'mongoRBACRoleWrite' is not null or undefined
13459
+ assertParamExists('mongoUpdateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite)
13460
+ const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
13366
13461
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13367
13462
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13368
- .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
13463
+ .replace(`{${"database"}}`, encodeURIComponent(String(database)))
13464
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
13465
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13466
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13467
+ let baseOptions;
13468
+ if (configuration) {
13469
+ baseOptions = configuration.baseOptions;
13470
+ }
13471
+
13472
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13473
+ const localVarHeaderParameter = {} as any;
13474
+ const localVarQueryParameter = {} as any;
13475
+
13476
+ // authentication BearerToken required
13477
+ // http bearer authentication required
13478
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13479
+
13480
+ // authentication DigestAuth required
13481
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13482
+
13483
+
13484
+
13485
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13486
+
13487
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13489
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13490
+ localVarRequestOptions.data = serializeDataIfNeeded(mongoRBACRoleWrite, localVarRequestOptions, configuration)
13491
+
13492
+ return {
13493
+ url: toPathString(localVarUrlObj),
13494
+ options: localVarRequestOptions,
13495
+ };
13496
+ },
13497
+ /**
13498
+ * partially update the specified apikey
13499
+ * @summary Update apikey information
13500
+ * @param {string} keyName Name of the apikey
13501
+ * @param {ApikeyCreate} body
13502
+ * @param {*} [options] Override http request option.
13503
+ * @throws {RequiredError}
13504
+ */
13505
+ patchAPIkey: async (keyName: string, body: ApikeyCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13506
+ // verify required parameter 'keyName' is not null or undefined
13507
+ assertParamExists('patchAPIkey', 'keyName', keyName)
13508
+ // verify required parameter 'body' is not null or undefined
13509
+ assertParamExists('patchAPIkey', 'body', body)
13510
+ const localVarPath = `/admin/v1/user/apikey/{keyName}`
13511
+ .replace(`{${"keyName"}}`, encodeURIComponent(String(keyName)));
13512
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13513
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13514
+ let baseOptions;
13515
+ if (configuration) {
13516
+ baseOptions = configuration.baseOptions;
13517
+ }
13518
+
13519
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13520
+ const localVarHeaderParameter = {} as any;
13521
+ const localVarQueryParameter = {} as any;
13522
+
13523
+ // authentication BearerToken required
13524
+ // http bearer authentication required
13525
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13526
+
13527
+ // authentication DigestAuth required
13528
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13529
+
13530
+
13531
+
13532
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13533
+
13534
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13536
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13537
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13538
+
13539
+ return {
13540
+ url: toPathString(localVarUrlObj),
13541
+ options: localVarRequestOptions,
13542
+ };
13543
+ },
13544
+ /**
13545
+ * Update the specified Cluster
13546
+ * @summary Update cluster specified fields
13547
+ * @param {string} orgName name of the Org
13548
+ * @param {string} clusterName name of the KubeBlocks cluster
13549
+ * @param {ClusterUpdate} body
13550
+ * @param {*} [options] Override http request option.
13551
+ * @throws {RequiredError}
13552
+ */
13553
+ patchCluster: async (orgName: string, clusterName: string, body: ClusterUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13554
+ // verify required parameter 'orgName' is not null or undefined
13555
+ assertParamExists('patchCluster', 'orgName', orgName)
13556
+ // verify required parameter 'clusterName' is not null or undefined
13557
+ assertParamExists('patchCluster', 'clusterName', clusterName)
13558
+ // verify required parameter 'body' is not null or undefined
13559
+ assertParamExists('patchCluster', 'body', body)
13560
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}`
13561
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13562
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
13563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13564
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13565
+ let baseOptions;
13566
+ if (configuration) {
13567
+ baseOptions = configuration.baseOptions;
13568
+ }
13569
+
13570
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13571
+ const localVarHeaderParameter = {} as any;
13572
+ const localVarQueryParameter = {} as any;
13573
+
13574
+ // authentication BearerToken required
13575
+ // http bearer authentication required
13576
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13577
+
13578
+ // authentication DigestAuth required
13579
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13580
+
13581
+
13582
+
13583
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13584
+
13585
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13586
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13587
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13588
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13589
+
13590
+ return {
13591
+ url: toPathString(localVarUrlObj),
13592
+ options: localVarRequestOptions,
13593
+ };
13594
+ },
13595
+ /**
13596
+ * partially update the specified Org
13597
+ * @summary Update organization
13598
+ * @param {string} orgName name of the Org
13599
+ * @param {OrgUpdate} body
13600
+ * @param {*} [options] Override http request option.
13601
+ * @throws {RequiredError}
13602
+ */
13603
+ patchOrg: async (orgName: string, body: OrgUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13604
+ // verify required parameter 'orgName' is not null or undefined
13605
+ assertParamExists('patchOrg', 'orgName', orgName)
13606
+ // verify required parameter 'body' is not null or undefined
13607
+ assertParamExists('patchOrg', 'body', body)
13608
+ const localVarPath = `/admin/v1/organizations/{orgName}`
13609
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
13610
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13611
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13612
+ let baseOptions;
13613
+ if (configuration) {
13614
+ baseOptions = configuration.baseOptions;
13615
+ }
13616
+
13617
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13618
+ const localVarHeaderParameter = {} as any;
13619
+ const localVarQueryParameter = {} as any;
13620
+
13621
+ // authentication BearerToken required
13622
+ // http bearer authentication required
13623
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13624
+
13625
+ // authentication DigestAuth required
13626
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13627
+
13628
+
13629
+
13630
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13631
+
13632
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13633
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13634
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13635
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13636
+
13637
+ return {
13638
+ url: toPathString(localVarUrlObj),
13639
+ options: localVarRequestOptions,
13640
+ };
13641
+ },
13642
+ /**
13643
+ * Only authenticated organization admins can update the member\'s role
13644
+ * @summary Update member role
13645
+ * @param {string} orgName name of the Org
13646
+ * @param {string} memberId ID of the member
13647
+ * @param {OrgMemberUpdate} body
13648
+ * @param {*} [options] Override http request option.
13649
+ * @throws {RequiredError}
13650
+ */
13651
+ patchOrgMember: async (orgName: string, memberId: string, body: OrgMemberUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13652
+ // verify required parameter 'orgName' is not null or undefined
13653
+ assertParamExists('patchOrgMember', 'orgName', orgName)
13654
+ // verify required parameter 'memberId' is not null or undefined
13655
+ assertParamExists('patchOrgMember', 'memberId', memberId)
13656
+ // verify required parameter 'body' is not null or undefined
13657
+ assertParamExists('patchOrgMember', 'body', body)
13658
+ const localVarPath = `/admin/v1/organizations/{orgName}/members/{memberId}`
13659
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13660
+ .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
13661
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13662
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13663
+ let baseOptions;
13664
+ if (configuration) {
13665
+ baseOptions = configuration.baseOptions;
13666
+ }
13667
+
13668
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13669
+ const localVarHeaderParameter = {} as any;
13670
+ const localVarQueryParameter = {} as any;
13671
+
13672
+ // authentication BearerToken required
13673
+ // http bearer authentication required
13674
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13675
+
13676
+ // authentication DigestAuth required
13677
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13678
+
13679
+
13680
+
13681
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13682
+
13683
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13685
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13686
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13687
+
13688
+ return {
13689
+ url: toPathString(localVarUrlObj),
13690
+ options: localVarRequestOptions,
13691
+ };
13692
+ },
13693
+ /**
13694
+ * Update a parameter of an organization
13695
+ * @summary Update a parameter of an organization
13696
+ * @param {string} orgName The name of the organization
13697
+ * @param {string} parameterName The name of the parameter
13698
+ * @param {OrgParameter} orgParameter
13699
+ * @param {*} [options] Override http request option.
13700
+ * @throws {RequiredError}
13701
+ */
13702
+ patchOrgParameter: async (orgName: string, parameterName: string, orgParameter: OrgParameter, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13703
+ // verify required parameter 'orgName' is not null or undefined
13704
+ assertParamExists('patchOrgParameter', 'orgName', orgName)
13705
+ // verify required parameter 'parameterName' is not null or undefined
13706
+ assertParamExists('patchOrgParameter', 'parameterName', parameterName)
13707
+ // verify required parameter 'orgParameter' is not null or undefined
13708
+ assertParamExists('patchOrgParameter', 'orgParameter', orgParameter)
13709
+ const localVarPath = `/admin/v1/organizations/{orgName}/parameters/{parameterName}`
13710
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13711
+ .replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
13712
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13713
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13714
+ let baseOptions;
13715
+ if (configuration) {
13716
+ baseOptions = configuration.baseOptions;
13717
+ }
13718
+
13719
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
13720
+ const localVarHeaderParameter = {} as any;
13721
+ const localVarQueryParameter = {} as any;
13722
+
13723
+ // authentication BearerToken required
13724
+ // http bearer authentication required
13725
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13726
+
13727
+ // authentication DigestAuth required
13728
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13729
+
13730
+
13731
+
13732
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13733
+
13734
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13736
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13737
+ localVarRequestOptions.data = serializeDataIfNeeded(orgParameter, localVarRequestOptions, configuration)
13738
+
13739
+ return {
13740
+ url: toPathString(localVarUrlObj),
13741
+ options: localVarRequestOptions,
13742
+ };
13743
+ },
13744
+ /**
13745
+ * 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.
13746
+ * @summary Preview clearing explicit account privileges
13747
+ * @param {string} engineName
13748
+ * @param {string} orgName
13749
+ * @param {string} clusterName
13750
+ * @param {string} accountName
13751
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
13752
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
13753
+ * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
13754
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
13755
+ * @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.
13756
+ * @param {*} [options] Override http request option.
13757
+ * @throws {RequiredError}
13758
+ */
13759
+ previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseNames?: Array<string>, allDatabases?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13760
+ // verify required parameter 'engineName' is not null or undefined
13761
+ assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
13762
+ // verify required parameter 'orgName' is not null or undefined
13763
+ assertParamExists('previewAccountPrivilegeReset', 'orgName', orgName)
13764
+ // verify required parameter 'clusterName' is not null or undefined
13765
+ assertParamExists('previewAccountPrivilegeReset', 'clusterName', clusterName)
13766
+ // verify required parameter 'accountName' is not null or undefined
13767
+ assertParamExists('previewAccountPrivilegeReset', 'accountName', accountName)
13768
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
13769
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
13770
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13771
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13772
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
13773
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13774
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13775
+ let baseOptions;
13776
+ if (configuration) {
13777
+ baseOptions = configuration.baseOptions;
13778
+ }
13779
+
13780
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13781
+ const localVarHeaderParameter = {} as any;
13782
+ const localVarQueryParameter = {} as any;
13783
+
13784
+ // authentication BearerToken required
13785
+ // http bearer authentication required
13786
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13787
+
13788
+ // authentication DigestAuth required
13789
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13790
+
13791
+ if (subjectType !== undefined) {
13792
+ localVarQueryParameter['subjectType'] = subjectType;
13793
+ }
13794
+
13795
+ if (host !== undefined) {
13796
+ localVarQueryParameter['host'] = host;
13797
+ }
13798
+
13799
+ if (subjectQualifiers !== undefined) {
13800
+ localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
13801
+ }
13802
+
13803
+ if (databaseNames) {
13804
+ localVarQueryParameter['databaseNames'] = databaseNames;
13805
+ }
13806
+
13807
+ if (allDatabases !== undefined) {
13808
+ localVarQueryParameter['allDatabases'] = allDatabases;
13809
+ }
13810
+
13811
+
13812
+
13813
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13814
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13815
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13816
+
13817
+ return {
13818
+ url: toPathString(localVarUrlObj),
13819
+ options: localVarRequestOptions,
13820
+ };
13821
+ },
13822
+ /**
13823
+ *
13824
+ * @summary Produce message to topic
13825
+ * @param {string} orgName The name of organization
13826
+ * @param {string} clusterName The name of cluster
13827
+ * @param {string} topic
13828
+ * @param {TopicMessageRequest} topicMessageRequest
13829
+ * @param {*} [options] Override http request option.
13830
+ * @throws {RequiredError}
13831
+ */
13832
+ produceKafkaTopicMessage: async (orgName: string, clusterName: string, topic: string, topicMessageRequest: TopicMessageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13833
+ // verify required parameter 'orgName' is not null or undefined
13834
+ assertParamExists('produceKafkaTopicMessage', 'orgName', orgName)
13835
+ // verify required parameter 'clusterName' is not null or undefined
13836
+ assertParamExists('produceKafkaTopicMessage', 'clusterName', clusterName)
13837
+ // verify required parameter 'topic' is not null or undefined
13838
+ assertParamExists('produceKafkaTopicMessage', 'topic', topic)
13839
+ // verify required parameter 'topicMessageRequest' is not null or undefined
13840
+ assertParamExists('produceKafkaTopicMessage', 'topicMessageRequest', topicMessageRequest)
13841
+ const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages`
13842
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13843
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13844
+ .replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
13845
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13846
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13847
+ let baseOptions;
13848
+ if (configuration) {
13849
+ baseOptions = configuration.baseOptions;
13850
+ }
13851
+
13852
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13853
+ const localVarHeaderParameter = {} as any;
13854
+ const localVarQueryParameter = {} as any;
13855
+
13856
+ // authentication BearerToken required
13857
+ // http bearer authentication required
13858
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13859
+
13860
+ // authentication DigestAuth required
13861
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13862
+
13863
+
13864
+
13865
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13866
+
13867
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13868
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13869
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13870
+ localVarRequestOptions.data = serializeDataIfNeeded(topicMessageRequest, localVarRequestOptions, configuration)
13871
+
13872
+ return {
13873
+ url: toPathString(localVarUrlObj),
13874
+ options: localVarRequestOptions,
13875
+ };
13876
+ },
13877
+ /**
13878
+ *
13879
+ * @summary Promote cluster intance to primary
13880
+ * @param {string} orgName name of the Org
13881
+ * @param {string} clusterName name of the KubeBlocks cluster
13882
+ * @param {OpsPromote} body
13883
+ * @param {*} [options] Override http request option.
13884
+ * @throws {RequiredError}
13885
+ */
13886
+ promoteCluster: async (orgName: string, clusterName: string, body: OpsPromote, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13887
+ // verify required parameter 'orgName' is not null or undefined
13888
+ assertParamExists('promoteCluster', 'orgName', orgName)
13889
+ // verify required parameter 'clusterName' is not null or undefined
13890
+ assertParamExists('promoteCluster', 'clusterName', clusterName)
13891
+ // verify required parameter 'body' is not null or undefined
13892
+ assertParamExists('promoteCluster', 'body', body)
13893
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/promote`
13894
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13895
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
13896
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13897
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13898
+ let baseOptions;
13899
+ if (configuration) {
13900
+ baseOptions = configuration.baseOptions;
13901
+ }
13902
+
13903
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13904
+ const localVarHeaderParameter = {} as any;
13905
+ const localVarQueryParameter = {} as any;
13906
+
13907
+ // authentication BearerToken required
13908
+ // http bearer authentication required
13909
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13910
+
13911
+ // authentication DigestAuth required
13912
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13913
+
13914
+
13915
+
13916
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13917
+
13918
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13919
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13920
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13921
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13922
+
13923
+ return {
13924
+ url: toPathString(localVarUrlObj),
13925
+ options: localVarRequestOptions,
13926
+ };
13927
+ },
13928
+ /**
13929
+ *
13930
+ * @summary Create or update Elasticsearch security role
13931
+ * @param {string} orgName
13932
+ * @param {string} clusterName
13933
+ * @param {string} roleName
13934
+ * @param {ESSecurityRoleDescriptor} body
13935
+ * @param {*} [options] Override http request option.
13936
+ * @throws {RequiredError}
13937
+ */
13938
+ putElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, body: ESSecurityRoleDescriptor, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13939
+ // verify required parameter 'orgName' is not null or undefined
13940
+ assertParamExists('putElasticsearchSecurityRole', 'orgName', orgName)
13941
+ // verify required parameter 'clusterName' is not null or undefined
13942
+ assertParamExists('putElasticsearchSecurityRole', 'clusterName', clusterName)
13943
+ // verify required parameter 'roleName' is not null or undefined
13944
+ assertParamExists('putElasticsearchSecurityRole', 'roleName', roleName)
13945
+ // verify required parameter 'body' is not null or undefined
13946
+ assertParamExists('putElasticsearchSecurityRole', 'body', body)
13947
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
13948
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13949
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13950
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
13951
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13952
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13953
+ let baseOptions;
13954
+ if (configuration) {
13955
+ baseOptions = configuration.baseOptions;
13956
+ }
13957
+
13958
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13959
+ const localVarHeaderParameter = {} as any;
13960
+ const localVarQueryParameter = {} as any;
13961
+
13962
+ // authentication BearerToken required
13963
+ // http bearer authentication required
13964
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13965
+
13966
+ // authentication DigestAuth required
13967
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
13968
+
13969
+
13970
+
13971
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13972
+
13973
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13974
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13975
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13976
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
13977
+
13978
+ return {
13979
+ url: toPathString(localVarUrlObj),
13980
+ options: localVarRequestOptions,
13981
+ };
13982
+ },
13983
+ /**
13984
+ *
13985
+ * @summary Create or update Elasticsearch security role mapping
13986
+ * @param {string} orgName
13987
+ * @param {string} clusterName
13988
+ * @param {string} mappingName
13989
+ * @param {ESSecurityRoleMapping} body
13990
+ * @param {*} [options] Override http request option.
13991
+ * @throws {RequiredError}
13992
+ */
13993
+ putElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, body: ESSecurityRoleMapping, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13994
+ // verify required parameter 'orgName' is not null or undefined
13995
+ assertParamExists('putElasticsearchSecurityRoleMapping', 'orgName', orgName)
13996
+ // verify required parameter 'clusterName' is not null or undefined
13997
+ assertParamExists('putElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
13998
+ // verify required parameter 'mappingName' is not null or undefined
13999
+ assertParamExists('putElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
14000
+ // verify required parameter 'body' is not null or undefined
14001
+ assertParamExists('putElasticsearchSecurityRoleMapping', 'body', body)
14002
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
14003
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14004
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14005
+ .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
14006
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14007
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14008
+ let baseOptions;
14009
+ if (configuration) {
14010
+ baseOptions = configuration.baseOptions;
14011
+ }
14012
+
14013
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14014
+ const localVarHeaderParameter = {} as any;
14015
+ const localVarQueryParameter = {} as any;
14016
+
14017
+ // authentication BearerToken required
14018
+ // http bearer authentication required
14019
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14020
+
14021
+ // authentication DigestAuth required
14022
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
14023
+
14024
+
14025
+
14026
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14027
+
14028
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14029
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14030
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14031
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14032
+
14033
+ return {
14034
+ url: toPathString(localVarUrlObj),
14035
+ options: localVarRequestOptions,
14036
+ };
14037
+ },
14038
+ /**
14039
+ *
14040
+ * @summary Create or update Elasticsearch security user
14041
+ * @param {string} orgName
14042
+ * @param {string} clusterName
14043
+ * @param {string} username
14044
+ * @param {ESPutSecurityUserRequest} body
14045
+ * @param {*} [options] Override http request option.
14046
+ * @throws {RequiredError}
14047
+ */
14048
+ putElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, body: ESPutSecurityUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14049
+ // verify required parameter 'orgName' is not null or undefined
14050
+ assertParamExists('putElasticsearchSecurityUser', 'orgName', orgName)
14051
+ // verify required parameter 'clusterName' is not null or undefined
14052
+ assertParamExists('putElasticsearchSecurityUser', 'clusterName', clusterName)
14053
+ // verify required parameter 'username' is not null or undefined
14054
+ assertParamExists('putElasticsearchSecurityUser', 'username', username)
14055
+ // verify required parameter 'body' is not null or undefined
14056
+ assertParamExists('putElasticsearchSecurityUser', 'body', body)
14057
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
14058
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14059
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14060
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
14061
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14062
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14063
+ let baseOptions;
14064
+ if (configuration) {
14065
+ baseOptions = configuration.baseOptions;
14066
+ }
14067
+
14068
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14069
+ const localVarHeaderParameter = {} as any;
14070
+ const localVarQueryParameter = {} as any;
14071
+
14072
+ // authentication BearerToken required
14073
+ // http bearer authentication required
14074
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14075
+
14076
+ // authentication DigestAuth required
14077
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
14078
+
14079
+
14080
+
14081
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14082
+
14083
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14084
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14085
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14086
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14087
+
14088
+ return {
14089
+ url: toPathString(localVarUrlObj),
14090
+ options: localVarRequestOptions,
14091
+ };
14092
+ },
14093
+ /**
14094
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
14095
+ * @summary putSeaweedFSPolicy
14096
+ * @param {string} orgName
14097
+ * @param {string} clusterName
14098
+ * @param {string} policyName
14099
+ * @param {{ [key: string]: any; }} requestBody
14100
+ * @param {*} [options] Override http request option.
14101
+ * @throws {RequiredError}
14102
+ */
14103
+ putSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14104
+ // verify required parameter 'orgName' is not null or undefined
14105
+ assertParamExists('putSeaweedFSPolicy', 'orgName', orgName)
14106
+ // verify required parameter 'clusterName' is not null or undefined
14107
+ assertParamExists('putSeaweedFSPolicy', 'clusterName', clusterName)
14108
+ // verify required parameter 'policyName' is not null or undefined
14109
+ assertParamExists('putSeaweedFSPolicy', 'policyName', policyName)
14110
+ // verify required parameter 'requestBody' is not null or undefined
14111
+ assertParamExists('putSeaweedFSPolicy', 'requestBody', requestBody)
14112
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
14113
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
14114
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
14115
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
13369
14116
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13370
14117
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13371
14118
  let baseOptions;
@@ -15244,8 +15991,8 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
15244
15991
  };
15245
15992
  },
15246
15993
  /**
15247
- * 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.
15248
- * @summary Clear all MySQL account privileges
15994
+ * 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.
15995
+ * @summary Clear explicit account privileges
15249
15996
  * @param {string} engineName
15250
15997
  * @param {string} orgName
15251
15998
  * @param {string} clusterName
@@ -15253,10 +16000,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
15253
16000
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
15254
16001
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
15255
16002
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
16003
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
16004
+ * @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.
15256
16005
  * @param {*} [options] Override http request option.
15257
16006
  * @throws {RequiredError}
15258
16007
  */
15259
- resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16008
+ resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseNames?: Array<string>, allDatabases?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15260
16009
  // verify required parameter 'engineName' is not null or undefined
15261
16010
  assertParamExists('resetAccountPrivileges', 'engineName', engineName)
15262
16011
  // verify required parameter 'orgName' is not null or undefined
@@ -15300,6 +16049,14 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
15300
16049
  localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
15301
16050
  }
15302
16051
 
16052
+ if (databaseNames) {
16053
+ localVarQueryParameter['databaseNames'] = databaseNames;
16054
+ }
16055
+
16056
+ if (allDatabases !== undefined) {
16057
+ localVarQueryParameter['allDatabases'] = allDatabases;
16058
+ }
16059
+
15303
16060
 
15304
16061
 
15305
16062
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -19784,6 +20541,26 @@ export const SharedApiFp = function(configuration?: Configuration) {
19784
20541
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getAccountObjectPrivileges']?.[localVarOperationServerIndex]?.url;
19785
20542
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19786
20543
  },
20544
+ /**
20545
+ * 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.
20546
+ * @summary Read native account privilege summary or selected database evidence
20547
+ * @param {string} engineName
20548
+ * @param {string} orgName
20549
+ * @param {string} clusterName
20550
+ * @param {string} accountName
20551
+ * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
20552
+ * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
20553
+ * @param {string} [subjectQualifiers]
20554
+ * @param {string} [databaseName] PostgreSQL database to inspect on demand. Omit for the global summary.
20555
+ * @param {*} [options] Override http request option.
20556
+ * @throws {RequiredError}
20557
+ */
20558
+ async getAccountPrivilegeOverview(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectPrivilegeEvidence>>> {
20559
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPrivilegeOverview(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseName, options);
20560
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20561
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.getAccountPrivilegeOverview']?.[localVarOperationServerIndex]?.url;
20562
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20563
+ },
19787
20564
  /**
19788
20565
  *
19789
20566
  * @summary Get backup
@@ -20722,20 +21499,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
20722
21499
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20723
21500
  },
20724
21501
  /**
20725
- * 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.
21502
+ * 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.
20726
21503
  * @summary List exact column names for account object privileges
20727
21504
  * @param {string} engineName
20728
21505
  * @param {string} orgName
20729
21506
  * @param {string} clusterName
20730
21507
  * @param {string} accountName
20731
- * @param {string} objectType Object type, either table or view
21508
+ * @param {string} objectType Object type, table/view; PostgreSQL also supports materializedView/foreignTable
20732
21509
  * @param {string} databaseName
20733
21510
  * @param {string} objectName
21511
+ * @param {string} [schemaName] Required for PostgreSQL; not accepted for MySQL
20734
21512
  * @param {*} [options] Override http request option.
20735
21513
  * @throws {RequiredError}
20736
21514
  */
20737
- async listAccountObjectPrivilegeColumns(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
20738
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
21515
+ async listAccountObjectPrivilegeColumns(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, schemaName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
21516
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, schemaName, options);
20739
21517
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20740
21518
  const localVarOperationServerBasePath = operationServerMap['SharedApi.listAccountObjectPrivilegeColumns']?.[localVarOperationServerIndex]?.url;
20741
21519
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -21873,6 +22651,196 @@ export const SharedApiFp = function(configuration?: Configuration) {
21873
22651
  const localVarOperationServerBasePath = operationServerMap['SharedApi.markClusterRestoreCompleted']?.[localVarOperationServerIndex]?.url;
21874
22652
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21875
22653
  },
22654
+ /**
22655
+ *
22656
+ * @summary ChangeRBACUserPassword
22657
+ * @param {string} orgName
22658
+ * @param {string} clusterName
22659
+ * @param {string} database
22660
+ * @param {string} username
22661
+ * @param {MongoRBACPasswordChange} mongoRBACPasswordChange
22662
+ * @param {*} [options] Override http request option.
22663
+ * @throws {RequiredError}
22664
+ */
22665
+ async mongoChangeRBACUserPassword(orgName: string, clusterName: string, database: string, username: string, mongoRBACPasswordChange: MongoRBACPasswordChange, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22666
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options);
22667
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22668
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoChangeRBACUserPassword']?.[localVarOperationServerIndex]?.url;
22669
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22670
+ },
22671
+ /**
22672
+ *
22673
+ * @summary ChangeRBACUserRoles
22674
+ * @param {string} orgName
22675
+ * @param {string} clusterName
22676
+ * @param {string} database
22677
+ * @param {string} username
22678
+ * @param {MongoRBACBindingChange} mongoRBACBindingChange
22679
+ * @param {*} [options] Override http request option.
22680
+ * @throws {RequiredError}
22681
+ */
22682
+ async mongoChangeRBACUserRoles(orgName: string, clusterName: string, database: string, username: string, mongoRBACBindingChange: MongoRBACBindingChange, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22683
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options);
22684
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22685
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoChangeRBACUserRoles']?.[localVarOperationServerIndex]?.url;
22686
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22687
+ },
22688
+ /**
22689
+ *
22690
+ * @summary CreateRBACRole
22691
+ * @param {string} orgName
22692
+ * @param {string} clusterName
22693
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
22694
+ * @param {*} [options] Override http request option.
22695
+ * @throws {RequiredError}
22696
+ */
22697
+ async mongoCreateRBACRole(orgName: string, clusterName: string, mongoRBACRoleWrite: MongoRBACRoleWrite, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22698
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options);
22699
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22700
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoCreateRBACRole']?.[localVarOperationServerIndex]?.url;
22701
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22702
+ },
22703
+ /**
22704
+ *
22705
+ * @summary CreateRBACUser
22706
+ * @param {string} orgName
22707
+ * @param {string} clusterName
22708
+ * @param {MongoRBACUserCreate} mongoRBACUserCreate
22709
+ * @param {*} [options] Override http request option.
22710
+ * @throws {RequiredError}
22711
+ */
22712
+ async mongoCreateRBACUser(orgName: string, clusterName: string, mongoRBACUserCreate: MongoRBACUserCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options);
22714
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22715
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoCreateRBACUser']?.[localVarOperationServerIndex]?.url;
22716
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22717
+ },
22718
+ /**
22719
+ *
22720
+ * @summary DeleteRBACRole
22721
+ * @param {string} orgName
22722
+ * @param {string} clusterName
22723
+ * @param {string} database
22724
+ * @param {string} roleName
22725
+ * @param {string} expectedRevision
22726
+ * @param {*} [options] Override http request option.
22727
+ * @throws {RequiredError}
22728
+ */
22729
+ async mongoDeleteRBACRole(orgName: string, clusterName: string, database: string, roleName: string, expectedRevision: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22730
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options);
22731
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22732
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoDeleteRBACRole']?.[localVarOperationServerIndex]?.url;
22733
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22734
+ },
22735
+ /**
22736
+ *
22737
+ * @summary DeleteRBACUser
22738
+ * @param {string} orgName
22739
+ * @param {string} clusterName
22740
+ * @param {string} database
22741
+ * @param {string} username
22742
+ * @param {*} [options] Override http request option.
22743
+ * @throws {RequiredError}
22744
+ */
22745
+ async mongoDeleteRBACUser(orgName: string, clusterName: string, database: string, username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACUser(orgName, clusterName, database, username, options);
22747
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22748
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoDeleteRBACUser']?.[localVarOperationServerIndex]?.url;
22749
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22750
+ },
22751
+ /**
22752
+ *
22753
+ * @summary GetRBACCapabilities
22754
+ * @param {string} orgName
22755
+ * @param {string} clusterName
22756
+ * @param {*} [options] Override http request option.
22757
+ * @throws {RequiredError}
22758
+ */
22759
+ async mongoGetRBACCapabilities(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MongoRBACCapabilities>> {
22760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACCapabilities(orgName, clusterName, options);
22761
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22762
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoGetRBACCapabilities']?.[localVarOperationServerIndex]?.url;
22763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22764
+ },
22765
+ /**
22766
+ *
22767
+ * @summary GetRBACRole
22768
+ * @param {string} orgName
22769
+ * @param {string} clusterName
22770
+ * @param {string} database
22771
+ * @param {string} roleName
22772
+ * @param {*} [options] Override http request option.
22773
+ * @throws {RequiredError}
22774
+ */
22775
+ async mongoGetRBACRole(orgName: string, clusterName: string, database: string, roleName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MongoRBACRole>> {
22776
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACRole(orgName, clusterName, database, roleName, options);
22777
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22778
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoGetRBACRole']?.[localVarOperationServerIndex]?.url;
22779
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22780
+ },
22781
+ /**
22782
+ *
22783
+ * @summary GetRBACUser
22784
+ * @param {string} orgName
22785
+ * @param {string} clusterName
22786
+ * @param {string} database
22787
+ * @param {string} username
22788
+ * @param {*} [options] Override http request option.
22789
+ * @throws {RequiredError}
22790
+ */
22791
+ async mongoGetRBACUser(orgName: string, clusterName: string, database: string, username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MongoRBACUser>> {
22792
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACUser(orgName, clusterName, database, username, options);
22793
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22794
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoGetRBACUser']?.[localVarOperationServerIndex]?.url;
22795
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22796
+ },
22797
+ /**
22798
+ *
22799
+ * @summary ListRBACRoles
22800
+ * @param {string} orgName
22801
+ * @param {string} clusterName
22802
+ * @param {string} [database]
22803
+ * @param {*} [options] Override http request option.
22804
+ * @throws {RequiredError}
22805
+ */
22806
+ async mongoListRBACRoles(orgName: string, clusterName: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MongoRBACRole>>> {
22807
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACRoles(orgName, clusterName, database, options);
22808
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22809
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoListRBACRoles']?.[localVarOperationServerIndex]?.url;
22810
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22811
+ },
22812
+ /**
22813
+ *
22814
+ * @summary ListRBACUsers
22815
+ * @param {string} orgName
22816
+ * @param {string} clusterName
22817
+ * @param {string} [database]
22818
+ * @param {*} [options] Override http request option.
22819
+ * @throws {RequiredError}
22820
+ */
22821
+ async mongoListRBACUsers(orgName: string, clusterName: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MongoRBACUser>>> {
22822
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, options);
22823
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22824
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoListRBACUsers']?.[localVarOperationServerIndex]?.url;
22825
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22826
+ },
22827
+ /**
22828
+ *
22829
+ * @summary UpdateRBACRole
22830
+ * @param {string} orgName
22831
+ * @param {string} clusterName
22832
+ * @param {string} database
22833
+ * @param {string} roleName
22834
+ * @param {MongoRBACRoleWrite} mongoRBACRoleWrite
22835
+ * @param {*} [options] Override http request option.
22836
+ * @throws {RequiredError}
22837
+ */
22838
+ async mongoUpdateRBACRole(orgName: string, clusterName: string, database: string, roleName: string, mongoRBACRoleWrite: MongoRBACRoleWrite, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22839
+ const localVarAxiosArgs = await localVarAxiosParamCreator.mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options);
22840
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22841
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoUpdateRBACRole']?.[localVarOperationServerIndex]?.url;
22842
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22843
+ },
21876
22844
  /**
21877
22845
  * partially update the specified apikey
21878
22846
  * @summary Update apikey information
@@ -21947,8 +22915,8 @@ export const SharedApiFp = function(configuration?: Configuration) {
21947
22915
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21948
22916
  },
21949
22917
  /**
21950
- * 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.
21951
- * @summary Preview clearing all MySQL account privileges
22918
+ * 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.
22919
+ * @summary Preview clearing explicit account privileges
21952
22920
  * @param {string} engineName
21953
22921
  * @param {string} orgName
21954
22922
  * @param {string} clusterName
@@ -21956,11 +22924,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
21956
22924
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
21957
22925
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
21958
22926
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
22927
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
22928
+ * @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.
21959
22929
  * @param {*} [options] Override http request option.
21960
22930
  * @throws {RequiredError}
21961
22931
  */
21962
- async previewAccountPrivilegeReset(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectPrivilegeResetStep>>> {
21963
- const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
22932
+ async previewAccountPrivilegeReset(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseNames?: Array<string>, allDatabases?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectPrivilegeResetStep>>> {
22933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
21964
22934
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21965
22935
  const localVarOperationServerBasePath = operationServerMap['SharedApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
21966
22936
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -22526,8 +23496,8 @@ export const SharedApiFp = function(configuration?: Configuration) {
22526
23496
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
22527
23497
  },
22528
23498
  /**
22529
- * 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.
22530
- * @summary Clear all MySQL account privileges
23499
+ * 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.
23500
+ * @summary Clear explicit account privileges
22531
23501
  * @param {string} engineName
22532
23502
  * @param {string} orgName
22533
23503
  * @param {string} clusterName
@@ -22535,11 +23505,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
22535
23505
  * @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
22536
23506
  * @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
22537
23507
  * @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
23508
+ * @param {Array<string>} [databaseNames] PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
23509
+ * @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.
22538
23510
  * @param {*} [options] Override http request option.
22539
23511
  * @throws {RequiredError}
22540
23512
  */
22541
- async resetAccountPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
22542
- const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
23513
+ async resetAccountPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, databaseNames?: Array<string>, allDatabases?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
23514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, databaseNames, allDatabases, options);
22543
23515
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
22544
23516
  const localVarOperationServerBasePath = operationServerMap['SharedApi.resetAccountPrivileges']?.[localVarOperationServerIndex]?.url;
22545
23517
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -24385,6 +25357,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
24385
25357
  getAccountObjectPrivileges(requestParameters: SharedApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot> {
24386
25358
  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));
24387
25359
  },
25360
+ /**
25361
+ * 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.
25362
+ * @summary Read native account privilege summary or selected database evidence
25363
+ * @param {SharedApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
25364
+ * @param {*} [options] Override http request option.
25365
+ * @throws {RequiredError}
25366
+ */
25367
+ getAccountPrivilegeOverview(requestParameters: SharedApiGetAccountPrivilegeOverviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeEvidence>> {
25368
+ 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));
25369
+ },
24388
25370
  /**
24389
25371
  *
24390
25372
  * @summary Get backup
@@ -24975,14 +25957,14 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
24975
25957
  return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
24976
25958
  },
24977
25959
  /**
24978
- * 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.
25960
+ * 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.
24979
25961
  * @summary List exact column names for account object privileges
24980
25962
  * @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
24981
25963
  * @param {*} [options] Override http request option.
24982
25964
  * @throws {RequiredError}
24983
25965
  */
24984
25966
  listAccountObjectPrivilegeColumns(requestParameters: SharedApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
24985
- return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
25967
+ 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));
24986
25968
  },
24987
25969
  /**
24988
25970
  * 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.
@@ -25740,6 +26722,126 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
25740
26722
  markClusterRestoreCompleted(requestParameters: SharedApiMarkClusterRestoreCompletedRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
25741
26723
  return localVarFp.markClusterRestoreCompleted(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
25742
26724
  },
26725
+ /**
26726
+ *
26727
+ * @summary ChangeRBACUserPassword
26728
+ * @param {SharedApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
26729
+ * @param {*} [options] Override http request option.
26730
+ * @throws {RequiredError}
26731
+ */
26732
+ mongoChangeRBACUserPassword(requestParameters: SharedApiMongoChangeRBACUserPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26733
+ return localVarFp.mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(axios, basePath));
26734
+ },
26735
+ /**
26736
+ *
26737
+ * @summary ChangeRBACUserRoles
26738
+ * @param {SharedApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
26739
+ * @param {*} [options] Override http request option.
26740
+ * @throws {RequiredError}
26741
+ */
26742
+ mongoChangeRBACUserRoles(requestParameters: SharedApiMongoChangeRBACUserRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26743
+ return localVarFp.mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(axios, basePath));
26744
+ },
26745
+ /**
26746
+ *
26747
+ * @summary CreateRBACRole
26748
+ * @param {SharedApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
26749
+ * @param {*} [options] Override http request option.
26750
+ * @throws {RequiredError}
26751
+ */
26752
+ mongoCreateRBACRole(requestParameters: SharedApiMongoCreateRBACRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26753
+ return localVarFp.mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
26754
+ },
26755
+ /**
26756
+ *
26757
+ * @summary CreateRBACUser
26758
+ * @param {SharedApiMongoCreateRBACUserRequest} requestParameters Request parameters.
26759
+ * @param {*} [options] Override http request option.
26760
+ * @throws {RequiredError}
26761
+ */
26762
+ mongoCreateRBACUser(requestParameters: SharedApiMongoCreateRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26763
+ return localVarFp.mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(axios, basePath));
26764
+ },
26765
+ /**
26766
+ *
26767
+ * @summary DeleteRBACRole
26768
+ * @param {SharedApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
26769
+ * @param {*} [options] Override http request option.
26770
+ * @throws {RequiredError}
26771
+ */
26772
+ mongoDeleteRBACRole(requestParameters: SharedApiMongoDeleteRBACRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26773
+ return localVarFp.mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(axios, basePath));
26774
+ },
26775
+ /**
26776
+ *
26777
+ * @summary DeleteRBACUser
26778
+ * @param {SharedApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
26779
+ * @param {*} [options] Override http request option.
26780
+ * @throws {RequiredError}
26781
+ */
26782
+ mongoDeleteRBACUser(requestParameters: SharedApiMongoDeleteRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26783
+ return localVarFp.mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
26784
+ },
26785
+ /**
26786
+ *
26787
+ * @summary GetRBACCapabilities
26788
+ * @param {SharedApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
26789
+ * @param {*} [options] Override http request option.
26790
+ * @throws {RequiredError}
26791
+ */
26792
+ mongoGetRBACCapabilities(requestParameters: SharedApiMongoGetRBACCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACCapabilities> {
26793
+ return localVarFp.mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
26794
+ },
26795
+ /**
26796
+ *
26797
+ * @summary GetRBACRole
26798
+ * @param {SharedApiMongoGetRBACRoleRequest} requestParameters Request parameters.
26799
+ * @param {*} [options] Override http request option.
26800
+ * @throws {RequiredError}
26801
+ */
26802
+ mongoGetRBACRole(requestParameters: SharedApiMongoGetRBACRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACRole> {
26803
+ return localVarFp.mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(axios, basePath));
26804
+ },
26805
+ /**
26806
+ *
26807
+ * @summary GetRBACUser
26808
+ * @param {SharedApiMongoGetRBACUserRequest} requestParameters Request parameters.
26809
+ * @param {*} [options] Override http request option.
26810
+ * @throws {RequiredError}
26811
+ */
26812
+ mongoGetRBACUser(requestParameters: SharedApiMongoGetRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACUser> {
26813
+ return localVarFp.mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
26814
+ },
26815
+ /**
26816
+ *
26817
+ * @summary ListRBACRoles
26818
+ * @param {SharedApiMongoListRBACRolesRequest} requestParameters Request parameters.
26819
+ * @param {*} [options] Override http request option.
26820
+ * @throws {RequiredError}
26821
+ */
26822
+ mongoListRBACRoles(requestParameters: SharedApiMongoListRBACRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoRBACRole>> {
26823
+ return localVarFp.mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
26824
+ },
26825
+ /**
26826
+ *
26827
+ * @summary ListRBACUsers
26828
+ * @param {SharedApiMongoListRBACUsersRequest} requestParameters Request parameters.
26829
+ * @param {*} [options] Override http request option.
26830
+ * @throws {RequiredError}
26831
+ */
26832
+ mongoListRBACUsers(requestParameters: SharedApiMongoListRBACUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoRBACUser>> {
26833
+ return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
26834
+ },
26835
+ /**
26836
+ *
26837
+ * @summary UpdateRBACRole
26838
+ * @param {SharedApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
26839
+ * @param {*} [options] Override http request option.
26840
+ * @throws {RequiredError}
26841
+ */
26842
+ mongoUpdateRBACRole(requestParameters: SharedApiMongoUpdateRBACRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26843
+ return localVarFp.mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
26844
+ },
25743
26845
  /**
25744
26846
  * partially update the specified apikey
25745
26847
  * @summary Update apikey information
@@ -25791,14 +26893,14 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
25791
26893
  return localVarFp.patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
25792
26894
  },
25793
26895
  /**
25794
- * 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.
25795
- * @summary Preview clearing all MySQL account privileges
26896
+ * 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.
26897
+ * @summary Preview clearing explicit account privileges
25796
26898
  * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
25797
26899
  * @param {*} [options] Override http request option.
25798
26900
  * @throws {RequiredError}
25799
26901
  */
25800
26902
  previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
25801
- return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
26903
+ 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));
25802
26904
  },
25803
26905
  /**
25804
26906
  *
@@ -26080,14 +27182,14 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
26080
27182
  return localVarFp.reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
26081
27183
  },
26082
27184
  /**
26083
- * 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.
26084
- * @summary Clear all MySQL account privileges
27185
+ * 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.
27186
+ * @summary Clear explicit account privileges
26085
27187
  * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
26086
27188
  * @param {*} [options] Override http request option.
26087
27189
  * @throws {RequiredError}
26088
27190
  */
26089
27191
  resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26090
- return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
27192
+ 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));
26091
27193
  },
26092
27194
  /**
26093
27195
  *
@@ -27617,6 +28719,16 @@ export interface SharedApiInterface {
27617
28719
  */
27618
28720
  getAccountObjectPrivileges(requestParameters: SharedApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot>;
27619
28721
 
28722
+ /**
28723
+ * 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.
28724
+ * @summary Read native account privilege summary or selected database evidence
28725
+ * @param {SharedApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
28726
+ * @param {*} [options] Override http request option.
28727
+ * @throws {RequiredError}
28728
+ * @memberof SharedApiInterface
28729
+ */
28730
+ getAccountPrivilegeOverview(requestParameters: SharedApiGetAccountPrivilegeOverviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeEvidence>>;
28731
+
27620
28732
  /**
27621
28733
  *
27622
28734
  * @summary Get backup
@@ -28207,7 +29319,7 @@ export interface SharedApiInterface {
28207
29319
  killSession(requestParameters: SharedApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
28208
29320
 
28209
29321
  /**
28210
- * 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.
29322
+ * 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.
28211
29323
  * @summary List exact column names for account object privileges
28212
29324
  * @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
28213
29325
  * @param {*} [options] Override http request option.
@@ -28972,6 +30084,126 @@ export interface SharedApiInterface {
28972
30084
  */
28973
30085
  markClusterRestoreCompleted(requestParameters: SharedApiMarkClusterRestoreCompletedRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
28974
30086
 
30087
+ /**
30088
+ *
30089
+ * @summary ChangeRBACUserPassword
30090
+ * @param {SharedApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
30091
+ * @param {*} [options] Override http request option.
30092
+ * @throws {RequiredError}
30093
+ * @memberof SharedApiInterface
30094
+ */
30095
+ mongoChangeRBACUserPassword(requestParameters: SharedApiMongoChangeRBACUserPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30096
+
30097
+ /**
30098
+ *
30099
+ * @summary ChangeRBACUserRoles
30100
+ * @param {SharedApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
30101
+ * @param {*} [options] Override http request option.
30102
+ * @throws {RequiredError}
30103
+ * @memberof SharedApiInterface
30104
+ */
30105
+ mongoChangeRBACUserRoles(requestParameters: SharedApiMongoChangeRBACUserRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30106
+
30107
+ /**
30108
+ *
30109
+ * @summary CreateRBACRole
30110
+ * @param {SharedApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
30111
+ * @param {*} [options] Override http request option.
30112
+ * @throws {RequiredError}
30113
+ * @memberof SharedApiInterface
30114
+ */
30115
+ mongoCreateRBACRole(requestParameters: SharedApiMongoCreateRBACRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30116
+
30117
+ /**
30118
+ *
30119
+ * @summary CreateRBACUser
30120
+ * @param {SharedApiMongoCreateRBACUserRequest} requestParameters Request parameters.
30121
+ * @param {*} [options] Override http request option.
30122
+ * @throws {RequiredError}
30123
+ * @memberof SharedApiInterface
30124
+ */
30125
+ mongoCreateRBACUser(requestParameters: SharedApiMongoCreateRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30126
+
30127
+ /**
30128
+ *
30129
+ * @summary DeleteRBACRole
30130
+ * @param {SharedApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
30131
+ * @param {*} [options] Override http request option.
30132
+ * @throws {RequiredError}
30133
+ * @memberof SharedApiInterface
30134
+ */
30135
+ mongoDeleteRBACRole(requestParameters: SharedApiMongoDeleteRBACRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30136
+
30137
+ /**
30138
+ *
30139
+ * @summary DeleteRBACUser
30140
+ * @param {SharedApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
30141
+ * @param {*} [options] Override http request option.
30142
+ * @throws {RequiredError}
30143
+ * @memberof SharedApiInterface
30144
+ */
30145
+ mongoDeleteRBACUser(requestParameters: SharedApiMongoDeleteRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30146
+
30147
+ /**
30148
+ *
30149
+ * @summary GetRBACCapabilities
30150
+ * @param {SharedApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
30151
+ * @param {*} [options] Override http request option.
30152
+ * @throws {RequiredError}
30153
+ * @memberof SharedApiInterface
30154
+ */
30155
+ mongoGetRBACCapabilities(requestParameters: SharedApiMongoGetRBACCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACCapabilities>;
30156
+
30157
+ /**
30158
+ *
30159
+ * @summary GetRBACRole
30160
+ * @param {SharedApiMongoGetRBACRoleRequest} requestParameters Request parameters.
30161
+ * @param {*} [options] Override http request option.
30162
+ * @throws {RequiredError}
30163
+ * @memberof SharedApiInterface
30164
+ */
30165
+ mongoGetRBACRole(requestParameters: SharedApiMongoGetRBACRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACRole>;
30166
+
30167
+ /**
30168
+ *
30169
+ * @summary GetRBACUser
30170
+ * @param {SharedApiMongoGetRBACUserRequest} requestParameters Request parameters.
30171
+ * @param {*} [options] Override http request option.
30172
+ * @throws {RequiredError}
30173
+ * @memberof SharedApiInterface
30174
+ */
30175
+ mongoGetRBACUser(requestParameters: SharedApiMongoGetRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACUser>;
30176
+
30177
+ /**
30178
+ *
30179
+ * @summary ListRBACRoles
30180
+ * @param {SharedApiMongoListRBACRolesRequest} requestParameters Request parameters.
30181
+ * @param {*} [options] Override http request option.
30182
+ * @throws {RequiredError}
30183
+ * @memberof SharedApiInterface
30184
+ */
30185
+ mongoListRBACRoles(requestParameters: SharedApiMongoListRBACRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoRBACRole>>;
30186
+
30187
+ /**
30188
+ *
30189
+ * @summary ListRBACUsers
30190
+ * @param {SharedApiMongoListRBACUsersRequest} requestParameters Request parameters.
30191
+ * @param {*} [options] Override http request option.
30192
+ * @throws {RequiredError}
30193
+ * @memberof SharedApiInterface
30194
+ */
30195
+ mongoListRBACUsers(requestParameters: SharedApiMongoListRBACUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoRBACUser>>;
30196
+
30197
+ /**
30198
+ *
30199
+ * @summary UpdateRBACRole
30200
+ * @param {SharedApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
30201
+ * @param {*} [options] Override http request option.
30202
+ * @throws {RequiredError}
30203
+ * @memberof SharedApiInterface
30204
+ */
30205
+ mongoUpdateRBACRole(requestParameters: SharedApiMongoUpdateRBACRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
30206
+
28975
30207
  /**
28976
30208
  * partially update the specified apikey
28977
30209
  * @summary Update apikey information
@@ -29023,8 +30255,8 @@ export interface SharedApiInterface {
29023
30255
  patchOrgParameter(requestParameters: SharedApiPatchOrgParameterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgParameter>;
29024
30256
 
29025
30257
  /**
29026
- * 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.
29027
- * @summary Preview clearing all MySQL account privileges
30258
+ * 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.
30259
+ * @summary Preview clearing explicit account privileges
29028
30260
  * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
29029
30261
  * @param {*} [options] Override http request option.
29030
30262
  * @throws {RequiredError}
@@ -29312,8 +30544,8 @@ export interface SharedApiInterface {
29312
30544
  reconfigureCluster(requestParameters: SharedApiReconfigureClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<OpsRequestName>;
29313
30545
 
29314
30546
  /**
29315
- * 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.
29316
- * @summary Clear all MySQL account privileges
30547
+ * 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.
30548
+ * @summary Clear explicit account privileges
29317
30549
  * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
29318
30550
  * @param {*} [options] Override http request option.
29319
30551
  * @throws {RequiredError}
@@ -33050,6 +34282,69 @@ export interface SharedApiGetAccountObjectPrivilegesRequest {
33050
34282
  readonly subjectQualifiers?: string
33051
34283
  }
33052
34284
 
34285
+ /**
34286
+ * Request parameters for getAccountPrivilegeOverview operation in SharedApi.
34287
+ * @export
34288
+ * @interface SharedApiGetAccountPrivilegeOverviewRequest
34289
+ */
34290
+ export interface SharedApiGetAccountPrivilegeOverviewRequest {
34291
+ /**
34292
+ *
34293
+ * @type {string}
34294
+ * @memberof SharedApiGetAccountPrivilegeOverview
34295
+ */
34296
+ readonly engineName: string
34297
+
34298
+ /**
34299
+ *
34300
+ * @type {string}
34301
+ * @memberof SharedApiGetAccountPrivilegeOverview
34302
+ */
34303
+ readonly orgName: string
34304
+
34305
+ /**
34306
+ *
34307
+ * @type {string}
34308
+ * @memberof SharedApiGetAccountPrivilegeOverview
34309
+ */
34310
+ readonly clusterName: string
34311
+
34312
+ /**
34313
+ *
34314
+ * @type {string}
34315
+ * @memberof SharedApiGetAccountPrivilegeOverview
34316
+ */
34317
+ readonly accountName: string
34318
+
34319
+ /**
34320
+ * Native subject kind; path account name identifies the subject.
34321
+ * @type {ObjectPrivilegeSubjectType}
34322
+ * @memberof SharedApiGetAccountPrivilegeOverview
34323
+ */
34324
+ readonly subjectType?: ObjectPrivilegeSubjectType
34325
+
34326
+ /**
34327
+ * Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
34328
+ * @type {string}
34329
+ * @memberof SharedApiGetAccountPrivilegeOverview
34330
+ */
34331
+ readonly host?: string
34332
+
34333
+ /**
34334
+ *
34335
+ * @type {string}
34336
+ * @memberof SharedApiGetAccountPrivilegeOverview
34337
+ */
34338
+ readonly subjectQualifiers?: string
34339
+
34340
+ /**
34341
+ * PostgreSQL database to inspect on demand. Omit for the global summary.
34342
+ * @type {string}
34343
+ * @memberof SharedApiGetAccountPrivilegeOverview
34344
+ */
34345
+ readonly databaseName?: string
34346
+ }
34347
+
33053
34348
  /**
33054
34349
  * Request parameters for getBackup operation in SharedApi.
33055
34350
  * @export
@@ -35108,7 +36403,7 @@ export interface SharedApiListAccountObjectPrivilegeColumnsRequest {
35108
36403
  readonly accountName: string
35109
36404
 
35110
36405
  /**
35111
- * Object type, either table or view
36406
+ * Object type, table/view; PostgreSQL also supports materializedView/foreignTable
35112
36407
  * @type {string}
35113
36408
  * @memberof SharedApiListAccountObjectPrivilegeColumns
35114
36409
  */
@@ -35127,6 +36422,13 @@ export interface SharedApiListAccountObjectPrivilegeColumnsRequest {
35127
36422
  * @memberof SharedApiListAccountObjectPrivilegeColumns
35128
36423
  */
35129
36424
  readonly objectName: string
36425
+
36426
+ /**
36427
+ * Required for PostgreSQL; not accepted for MySQL
36428
+ * @type {string}
36429
+ * @memberof SharedApiListAccountObjectPrivilegeColumns
36430
+ */
36431
+ readonly schemaName?: string
35130
36432
  }
35131
36433
 
35132
36434
  /**
@@ -37166,6 +38468,412 @@ export interface SharedApiMarkClusterRestoreCompletedRequest {
37166
38468
  readonly clusterName: string
37167
38469
  }
37168
38470
 
38471
+ /**
38472
+ * Request parameters for mongoChangeRBACUserPassword operation in SharedApi.
38473
+ * @export
38474
+ * @interface SharedApiMongoChangeRBACUserPasswordRequest
38475
+ */
38476
+ export interface SharedApiMongoChangeRBACUserPasswordRequest {
38477
+ /**
38478
+ *
38479
+ * @type {string}
38480
+ * @memberof SharedApiMongoChangeRBACUserPassword
38481
+ */
38482
+ readonly orgName: string
38483
+
38484
+ /**
38485
+ *
38486
+ * @type {string}
38487
+ * @memberof SharedApiMongoChangeRBACUserPassword
38488
+ */
38489
+ readonly clusterName: string
38490
+
38491
+ /**
38492
+ *
38493
+ * @type {string}
38494
+ * @memberof SharedApiMongoChangeRBACUserPassword
38495
+ */
38496
+ readonly database: string
38497
+
38498
+ /**
38499
+ *
38500
+ * @type {string}
38501
+ * @memberof SharedApiMongoChangeRBACUserPassword
38502
+ */
38503
+ readonly username: string
38504
+
38505
+ /**
38506
+ *
38507
+ * @type {MongoRBACPasswordChange}
38508
+ * @memberof SharedApiMongoChangeRBACUserPassword
38509
+ */
38510
+ readonly mongoRBACPasswordChange: MongoRBACPasswordChange
38511
+ }
38512
+
38513
+ /**
38514
+ * Request parameters for mongoChangeRBACUserRoles operation in SharedApi.
38515
+ * @export
38516
+ * @interface SharedApiMongoChangeRBACUserRolesRequest
38517
+ */
38518
+ export interface SharedApiMongoChangeRBACUserRolesRequest {
38519
+ /**
38520
+ *
38521
+ * @type {string}
38522
+ * @memberof SharedApiMongoChangeRBACUserRoles
38523
+ */
38524
+ readonly orgName: string
38525
+
38526
+ /**
38527
+ *
38528
+ * @type {string}
38529
+ * @memberof SharedApiMongoChangeRBACUserRoles
38530
+ */
38531
+ readonly clusterName: string
38532
+
38533
+ /**
38534
+ *
38535
+ * @type {string}
38536
+ * @memberof SharedApiMongoChangeRBACUserRoles
38537
+ */
38538
+ readonly database: string
38539
+
38540
+ /**
38541
+ *
38542
+ * @type {string}
38543
+ * @memberof SharedApiMongoChangeRBACUserRoles
38544
+ */
38545
+ readonly username: string
38546
+
38547
+ /**
38548
+ *
38549
+ * @type {MongoRBACBindingChange}
38550
+ * @memberof SharedApiMongoChangeRBACUserRoles
38551
+ */
38552
+ readonly mongoRBACBindingChange: MongoRBACBindingChange
38553
+ }
38554
+
38555
+ /**
38556
+ * Request parameters for mongoCreateRBACRole operation in SharedApi.
38557
+ * @export
38558
+ * @interface SharedApiMongoCreateRBACRoleRequest
38559
+ */
38560
+ export interface SharedApiMongoCreateRBACRoleRequest {
38561
+ /**
38562
+ *
38563
+ * @type {string}
38564
+ * @memberof SharedApiMongoCreateRBACRole
38565
+ */
38566
+ readonly orgName: string
38567
+
38568
+ /**
38569
+ *
38570
+ * @type {string}
38571
+ * @memberof SharedApiMongoCreateRBACRole
38572
+ */
38573
+ readonly clusterName: string
38574
+
38575
+ /**
38576
+ *
38577
+ * @type {MongoRBACRoleWrite}
38578
+ * @memberof SharedApiMongoCreateRBACRole
38579
+ */
38580
+ readonly mongoRBACRoleWrite: MongoRBACRoleWrite
38581
+ }
38582
+
38583
+ /**
38584
+ * Request parameters for mongoCreateRBACUser operation in SharedApi.
38585
+ * @export
38586
+ * @interface SharedApiMongoCreateRBACUserRequest
38587
+ */
38588
+ export interface SharedApiMongoCreateRBACUserRequest {
38589
+ /**
38590
+ *
38591
+ * @type {string}
38592
+ * @memberof SharedApiMongoCreateRBACUser
38593
+ */
38594
+ readonly orgName: string
38595
+
38596
+ /**
38597
+ *
38598
+ * @type {string}
38599
+ * @memberof SharedApiMongoCreateRBACUser
38600
+ */
38601
+ readonly clusterName: string
38602
+
38603
+ /**
38604
+ *
38605
+ * @type {MongoRBACUserCreate}
38606
+ * @memberof SharedApiMongoCreateRBACUser
38607
+ */
38608
+ readonly mongoRBACUserCreate: MongoRBACUserCreate
38609
+ }
38610
+
38611
+ /**
38612
+ * Request parameters for mongoDeleteRBACRole operation in SharedApi.
38613
+ * @export
38614
+ * @interface SharedApiMongoDeleteRBACRoleRequest
38615
+ */
38616
+ export interface SharedApiMongoDeleteRBACRoleRequest {
38617
+ /**
38618
+ *
38619
+ * @type {string}
38620
+ * @memberof SharedApiMongoDeleteRBACRole
38621
+ */
38622
+ readonly orgName: string
38623
+
38624
+ /**
38625
+ *
38626
+ * @type {string}
38627
+ * @memberof SharedApiMongoDeleteRBACRole
38628
+ */
38629
+ readonly clusterName: string
38630
+
38631
+ /**
38632
+ *
38633
+ * @type {string}
38634
+ * @memberof SharedApiMongoDeleteRBACRole
38635
+ */
38636
+ readonly database: string
38637
+
38638
+ /**
38639
+ *
38640
+ * @type {string}
38641
+ * @memberof SharedApiMongoDeleteRBACRole
38642
+ */
38643
+ readonly roleName: string
38644
+
38645
+ /**
38646
+ *
38647
+ * @type {string}
38648
+ * @memberof SharedApiMongoDeleteRBACRole
38649
+ */
38650
+ readonly expectedRevision: string
38651
+ }
38652
+
38653
+ /**
38654
+ * Request parameters for mongoDeleteRBACUser operation in SharedApi.
38655
+ * @export
38656
+ * @interface SharedApiMongoDeleteRBACUserRequest
38657
+ */
38658
+ export interface SharedApiMongoDeleteRBACUserRequest {
38659
+ /**
38660
+ *
38661
+ * @type {string}
38662
+ * @memberof SharedApiMongoDeleteRBACUser
38663
+ */
38664
+ readonly orgName: string
38665
+
38666
+ /**
38667
+ *
38668
+ * @type {string}
38669
+ * @memberof SharedApiMongoDeleteRBACUser
38670
+ */
38671
+ readonly clusterName: string
38672
+
38673
+ /**
38674
+ *
38675
+ * @type {string}
38676
+ * @memberof SharedApiMongoDeleteRBACUser
38677
+ */
38678
+ readonly database: string
38679
+
38680
+ /**
38681
+ *
38682
+ * @type {string}
38683
+ * @memberof SharedApiMongoDeleteRBACUser
38684
+ */
38685
+ readonly username: string
38686
+ }
38687
+
38688
+ /**
38689
+ * Request parameters for mongoGetRBACCapabilities operation in SharedApi.
38690
+ * @export
38691
+ * @interface SharedApiMongoGetRBACCapabilitiesRequest
38692
+ */
38693
+ export interface SharedApiMongoGetRBACCapabilitiesRequest {
38694
+ /**
38695
+ *
38696
+ * @type {string}
38697
+ * @memberof SharedApiMongoGetRBACCapabilities
38698
+ */
38699
+ readonly orgName: string
38700
+
38701
+ /**
38702
+ *
38703
+ * @type {string}
38704
+ * @memberof SharedApiMongoGetRBACCapabilities
38705
+ */
38706
+ readonly clusterName: string
38707
+ }
38708
+
38709
+ /**
38710
+ * Request parameters for mongoGetRBACRole operation in SharedApi.
38711
+ * @export
38712
+ * @interface SharedApiMongoGetRBACRoleRequest
38713
+ */
38714
+ export interface SharedApiMongoGetRBACRoleRequest {
38715
+ /**
38716
+ *
38717
+ * @type {string}
38718
+ * @memberof SharedApiMongoGetRBACRole
38719
+ */
38720
+ readonly orgName: string
38721
+
38722
+ /**
38723
+ *
38724
+ * @type {string}
38725
+ * @memberof SharedApiMongoGetRBACRole
38726
+ */
38727
+ readonly clusterName: string
38728
+
38729
+ /**
38730
+ *
38731
+ * @type {string}
38732
+ * @memberof SharedApiMongoGetRBACRole
38733
+ */
38734
+ readonly database: string
38735
+
38736
+ /**
38737
+ *
38738
+ * @type {string}
38739
+ * @memberof SharedApiMongoGetRBACRole
38740
+ */
38741
+ readonly roleName: string
38742
+ }
38743
+
38744
+ /**
38745
+ * Request parameters for mongoGetRBACUser operation in SharedApi.
38746
+ * @export
38747
+ * @interface SharedApiMongoGetRBACUserRequest
38748
+ */
38749
+ export interface SharedApiMongoGetRBACUserRequest {
38750
+ /**
38751
+ *
38752
+ * @type {string}
38753
+ * @memberof SharedApiMongoGetRBACUser
38754
+ */
38755
+ readonly orgName: string
38756
+
38757
+ /**
38758
+ *
38759
+ * @type {string}
38760
+ * @memberof SharedApiMongoGetRBACUser
38761
+ */
38762
+ readonly clusterName: string
38763
+
38764
+ /**
38765
+ *
38766
+ * @type {string}
38767
+ * @memberof SharedApiMongoGetRBACUser
38768
+ */
38769
+ readonly database: string
38770
+
38771
+ /**
38772
+ *
38773
+ * @type {string}
38774
+ * @memberof SharedApiMongoGetRBACUser
38775
+ */
38776
+ readonly username: string
38777
+ }
38778
+
38779
+ /**
38780
+ * Request parameters for mongoListRBACRoles operation in SharedApi.
38781
+ * @export
38782
+ * @interface SharedApiMongoListRBACRolesRequest
38783
+ */
38784
+ export interface SharedApiMongoListRBACRolesRequest {
38785
+ /**
38786
+ *
38787
+ * @type {string}
38788
+ * @memberof SharedApiMongoListRBACRoles
38789
+ */
38790
+ readonly orgName: string
38791
+
38792
+ /**
38793
+ *
38794
+ * @type {string}
38795
+ * @memberof SharedApiMongoListRBACRoles
38796
+ */
38797
+ readonly clusterName: string
38798
+
38799
+ /**
38800
+ *
38801
+ * @type {string}
38802
+ * @memberof SharedApiMongoListRBACRoles
38803
+ */
38804
+ readonly database?: string
38805
+ }
38806
+
38807
+ /**
38808
+ * Request parameters for mongoListRBACUsers operation in SharedApi.
38809
+ * @export
38810
+ * @interface SharedApiMongoListRBACUsersRequest
38811
+ */
38812
+ export interface SharedApiMongoListRBACUsersRequest {
38813
+ /**
38814
+ *
38815
+ * @type {string}
38816
+ * @memberof SharedApiMongoListRBACUsers
38817
+ */
38818
+ readonly orgName: string
38819
+
38820
+ /**
38821
+ *
38822
+ * @type {string}
38823
+ * @memberof SharedApiMongoListRBACUsers
38824
+ */
38825
+ readonly clusterName: string
38826
+
38827
+ /**
38828
+ *
38829
+ * @type {string}
38830
+ * @memberof SharedApiMongoListRBACUsers
38831
+ */
38832
+ readonly database?: string
38833
+ }
38834
+
38835
+ /**
38836
+ * Request parameters for mongoUpdateRBACRole operation in SharedApi.
38837
+ * @export
38838
+ * @interface SharedApiMongoUpdateRBACRoleRequest
38839
+ */
38840
+ export interface SharedApiMongoUpdateRBACRoleRequest {
38841
+ /**
38842
+ *
38843
+ * @type {string}
38844
+ * @memberof SharedApiMongoUpdateRBACRole
38845
+ */
38846
+ readonly orgName: string
38847
+
38848
+ /**
38849
+ *
38850
+ * @type {string}
38851
+ * @memberof SharedApiMongoUpdateRBACRole
38852
+ */
38853
+ readonly clusterName: string
38854
+
38855
+ /**
38856
+ *
38857
+ * @type {string}
38858
+ * @memberof SharedApiMongoUpdateRBACRole
38859
+ */
38860
+ readonly database: string
38861
+
38862
+ /**
38863
+ *
38864
+ * @type {string}
38865
+ * @memberof SharedApiMongoUpdateRBACRole
38866
+ */
38867
+ readonly roleName: string
38868
+
38869
+ /**
38870
+ *
38871
+ * @type {MongoRBACRoleWrite}
38872
+ * @memberof SharedApiMongoUpdateRBACRole
38873
+ */
38874
+ readonly mongoRBACRoleWrite: MongoRBACRoleWrite
38875
+ }
38876
+
37169
38877
  /**
37170
38878
  * Request parameters for patchAPIkey operation in SharedApi.
37171
38879
  * @export
@@ -37346,6 +39054,20 @@ export interface SharedApiPreviewAccountPrivilegeResetRequest {
37346
39054
  * @memberof SharedApiPreviewAccountPrivilegeReset
37347
39055
  */
37348
39056
  readonly subjectQualifiers?: string
39057
+
39058
+ /**
39059
+ * PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
39060
+ * @type {Array<string>}
39061
+ * @memberof SharedApiPreviewAccountPrivilegeReset
39062
+ */
39063
+ readonly databaseNames?: Array<string>
39064
+
39065
+ /**
39066
+ * PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
39067
+ * @type {boolean}
39068
+ * @memberof SharedApiPreviewAccountPrivilegeReset
39069
+ */
39070
+ readonly allDatabases?: boolean
37349
39071
  }
37350
39072
 
37351
39073
  /**
@@ -39159,6 +40881,20 @@ export interface SharedApiResetAccountPrivilegesRequest {
39159
40881
  * @memberof SharedApiResetAccountPrivileges
39160
40882
  */
39161
40883
  readonly subjectQualifiers?: string
40884
+
40885
+ /**
40886
+ * PostgreSQL only; exact selected database names as repeated parameters. Mutually exclusive with allDatabases.
40887
+ * @type {Array<string>}
40888
+ * @memberof SharedApiResetAccountPrivileges
40889
+ */
40890
+ readonly databaseNames?: Array<string>
40891
+
40892
+ /**
40893
+ * PostgreSQL whole-account reset requires explicit true; otherwise databaseNames must be nonempty. Selected scope preserves global memberships/attributes and privileges outside those databases.
40894
+ * @type {boolean}
40895
+ * @memberof SharedApiResetAccountPrivileges
40896
+ */
40897
+ readonly allDatabases?: boolean
39162
40898
  }
39163
40899
 
39164
40900
  /**
@@ -42131,6 +43867,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
42131
43867
  return 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));
42132
43868
  }
42133
43869
 
43870
+ /**
43871
+ * 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.
43872
+ * @summary Read native account privilege summary or selected database evidence
43873
+ * @param {SharedApiGetAccountPrivilegeOverviewRequest} requestParameters Request parameters.
43874
+ * @param {*} [options] Override http request option.
43875
+ * @throws {RequiredError}
43876
+ * @memberof SharedApi
43877
+ */
43878
+ public getAccountPrivilegeOverview(requestParameters: SharedApiGetAccountPrivilegeOverviewRequest, options?: RawAxiosRequestConfig) {
43879
+ return 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));
43880
+ }
43881
+
42134
43882
  /**
42135
43883
  *
42136
43884
  * @summary Get backup
@@ -42839,7 +44587,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
42839
44587
  }
42840
44588
 
42841
44589
  /**
42842
- * 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.
44590
+ * 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.
42843
44591
  * @summary List exact column names for account object privileges
42844
44592
  * @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
42845
44593
  * @param {*} [options] Override http request option.
@@ -42847,7 +44595,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
42847
44595
  * @memberof SharedApi
42848
44596
  */
42849
44597
  public listAccountObjectPrivilegeColumns(requestParameters: SharedApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig) {
42850
- return 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));
44598
+ return 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));
42851
44599
  }
42852
44600
 
42853
44601
  /**
@@ -43758,6 +45506,150 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
43758
45506
  return SharedApiFp(this.configuration).markClusterRestoreCompleted(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
43759
45507
  }
43760
45508
 
45509
+ /**
45510
+ *
45511
+ * @summary ChangeRBACUserPassword
45512
+ * @param {SharedApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
45513
+ * @param {*} [options] Override http request option.
45514
+ * @throws {RequiredError}
45515
+ * @memberof SharedApi
45516
+ */
45517
+ public mongoChangeRBACUserPassword(requestParameters: SharedApiMongoChangeRBACUserPasswordRequest, options?: RawAxiosRequestConfig) {
45518
+ return SharedApiFp(this.configuration).mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(this.axios, this.basePath));
45519
+ }
45520
+
45521
+ /**
45522
+ *
45523
+ * @summary ChangeRBACUserRoles
45524
+ * @param {SharedApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
45525
+ * @param {*} [options] Override http request option.
45526
+ * @throws {RequiredError}
45527
+ * @memberof SharedApi
45528
+ */
45529
+ public mongoChangeRBACUserRoles(requestParameters: SharedApiMongoChangeRBACUserRolesRequest, options?: RawAxiosRequestConfig) {
45530
+ return SharedApiFp(this.configuration).mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(this.axios, this.basePath));
45531
+ }
45532
+
45533
+ /**
45534
+ *
45535
+ * @summary CreateRBACRole
45536
+ * @param {SharedApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
45537
+ * @param {*} [options] Override http request option.
45538
+ * @throws {RequiredError}
45539
+ * @memberof SharedApi
45540
+ */
45541
+ public mongoCreateRBACRole(requestParameters: SharedApiMongoCreateRBACRoleRequest, options?: RawAxiosRequestConfig) {
45542
+ return SharedApiFp(this.configuration).mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
45543
+ }
45544
+
45545
+ /**
45546
+ *
45547
+ * @summary CreateRBACUser
45548
+ * @param {SharedApiMongoCreateRBACUserRequest} requestParameters Request parameters.
45549
+ * @param {*} [options] Override http request option.
45550
+ * @throws {RequiredError}
45551
+ * @memberof SharedApi
45552
+ */
45553
+ public mongoCreateRBACUser(requestParameters: SharedApiMongoCreateRBACUserRequest, options?: RawAxiosRequestConfig) {
45554
+ return SharedApiFp(this.configuration).mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(this.axios, this.basePath));
45555
+ }
45556
+
45557
+ /**
45558
+ *
45559
+ * @summary DeleteRBACRole
45560
+ * @param {SharedApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
45561
+ * @param {*} [options] Override http request option.
45562
+ * @throws {RequiredError}
45563
+ * @memberof SharedApi
45564
+ */
45565
+ public mongoDeleteRBACRole(requestParameters: SharedApiMongoDeleteRBACRoleRequest, options?: RawAxiosRequestConfig) {
45566
+ return SharedApiFp(this.configuration).mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(this.axios, this.basePath));
45567
+ }
45568
+
45569
+ /**
45570
+ *
45571
+ * @summary DeleteRBACUser
45572
+ * @param {SharedApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
45573
+ * @param {*} [options] Override http request option.
45574
+ * @throws {RequiredError}
45575
+ * @memberof SharedApi
45576
+ */
45577
+ public mongoDeleteRBACUser(requestParameters: SharedApiMongoDeleteRBACUserRequest, options?: RawAxiosRequestConfig) {
45578
+ return SharedApiFp(this.configuration).mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
45579
+ }
45580
+
45581
+ /**
45582
+ *
45583
+ * @summary GetRBACCapabilities
45584
+ * @param {SharedApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
45585
+ * @param {*} [options] Override http request option.
45586
+ * @throws {RequiredError}
45587
+ * @memberof SharedApi
45588
+ */
45589
+ public mongoGetRBACCapabilities(requestParameters: SharedApiMongoGetRBACCapabilitiesRequest, options?: RawAxiosRequestConfig) {
45590
+ return SharedApiFp(this.configuration).mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
45591
+ }
45592
+
45593
+ /**
45594
+ *
45595
+ * @summary GetRBACRole
45596
+ * @param {SharedApiMongoGetRBACRoleRequest} requestParameters Request parameters.
45597
+ * @param {*} [options] Override http request option.
45598
+ * @throws {RequiredError}
45599
+ * @memberof SharedApi
45600
+ */
45601
+ public mongoGetRBACRole(requestParameters: SharedApiMongoGetRBACRoleRequest, options?: RawAxiosRequestConfig) {
45602
+ return SharedApiFp(this.configuration).mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
45603
+ }
45604
+
45605
+ /**
45606
+ *
45607
+ * @summary GetRBACUser
45608
+ * @param {SharedApiMongoGetRBACUserRequest} requestParameters Request parameters.
45609
+ * @param {*} [options] Override http request option.
45610
+ * @throws {RequiredError}
45611
+ * @memberof SharedApi
45612
+ */
45613
+ public mongoGetRBACUser(requestParameters: SharedApiMongoGetRBACUserRequest, options?: RawAxiosRequestConfig) {
45614
+ return SharedApiFp(this.configuration).mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
45615
+ }
45616
+
45617
+ /**
45618
+ *
45619
+ * @summary ListRBACRoles
45620
+ * @param {SharedApiMongoListRBACRolesRequest} requestParameters Request parameters.
45621
+ * @param {*} [options] Override http request option.
45622
+ * @throws {RequiredError}
45623
+ * @memberof SharedApi
45624
+ */
45625
+ public mongoListRBACRoles(requestParameters: SharedApiMongoListRBACRolesRequest, options?: RawAxiosRequestConfig) {
45626
+ return SharedApiFp(this.configuration).mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
45627
+ }
45628
+
45629
+ /**
45630
+ *
45631
+ * @summary ListRBACUsers
45632
+ * @param {SharedApiMongoListRBACUsersRequest} requestParameters Request parameters.
45633
+ * @param {*} [options] Override http request option.
45634
+ * @throws {RequiredError}
45635
+ * @memberof SharedApi
45636
+ */
45637
+ public mongoListRBACUsers(requestParameters: SharedApiMongoListRBACUsersRequest, options?: RawAxiosRequestConfig) {
45638
+ return SharedApiFp(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
45639
+ }
45640
+
45641
+ /**
45642
+ *
45643
+ * @summary UpdateRBACRole
45644
+ * @param {SharedApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
45645
+ * @param {*} [options] Override http request option.
45646
+ * @throws {RequiredError}
45647
+ * @memberof SharedApi
45648
+ */
45649
+ public mongoUpdateRBACRole(requestParameters: SharedApiMongoUpdateRBACRoleRequest, options?: RawAxiosRequestConfig) {
45650
+ return SharedApiFp(this.configuration).mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
45651
+ }
45652
+
43761
45653
  /**
43762
45654
  * partially update the specified apikey
43763
45655
  * @summary Update apikey information
@@ -43819,15 +45711,15 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
43819
45711
  }
43820
45712
 
43821
45713
  /**
43822
- * 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.
43823
- * @summary Preview clearing all MySQL account privileges
45714
+ * 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.
45715
+ * @summary Preview clearing explicit account privileges
43824
45716
  * @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
43825
45717
  * @param {*} [options] Override http request option.
43826
45718
  * @throws {RequiredError}
43827
45719
  * @memberof SharedApi
43828
45720
  */
43829
45721
  public previewAccountPrivilegeReset(requestParameters: SharedApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig) {
43830
- return 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));
45722
+ return 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));
43831
45723
  }
43832
45724
 
43833
45725
  /**
@@ -44166,15 +46058,15 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
44166
46058
  }
44167
46059
 
44168
46060
  /**
44169
- * 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.
44170
- * @summary Clear all MySQL account privileges
46061
+ * 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.
46062
+ * @summary Clear explicit account privileges
44171
46063
  * @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
44172
46064
  * @param {*} [options] Override http request option.
44173
46065
  * @throws {RequiredError}
44174
46066
  * @memberof SharedApi
44175
46067
  */
44176
46068
  public resetAccountPrivileges(requestParameters: SharedApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
44177
- return 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));
46069
+ return 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));
44178
46070
  }
44179
46071
 
44180
46072
  /**