kb-cloud-client-typescript 2.2.97 → 2.2.99

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 (43) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +406 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +427 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +406 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +427 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +406 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +427 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/dms-service-account-create-request.d.ts +55 -0
  14. package/dist/adminapi/models/dms-service-account-create-request.d.ts.map +1 -0
  15. package/dist/adminapi/models/dms-service-account-create-request.js +16 -0
  16. package/dist/adminapi/models/dms-service-account-create-request.js.map +1 -0
  17. package/dist/adminapi/models/dms-service-account-status.d.ts +22 -0
  18. package/dist/adminapi/models/dms-service-account-status.d.ts.map +1 -0
  19. package/dist/adminapi/models/dms-service-account-status.js +26 -0
  20. package/dist/adminapi/models/dms-service-account-status.js.map +1 -0
  21. package/dist/adminapi/models/dms-service-account-update-request.d.ts +32 -0
  22. package/dist/adminapi/models/dms-service-account-update-request.d.ts.map +1 -0
  23. package/dist/adminapi/models/dms-service-account-update-request.js +16 -0
  24. package/dist/adminapi/models/dms-service-account-update-request.js.map +1 -0
  25. package/dist/adminapi/models/dms-service-account.d.ts +73 -0
  26. package/dist/adminapi/models/dms-service-account.d.ts.map +1 -0
  27. package/dist/adminapi/models/dms-service-account.js +16 -0
  28. package/dist/adminapi/models/dms-service-account.js.map +1 -0
  29. package/dist/adminapi/models/index.d.ts +4 -0
  30. package/dist/adminapi/models/index.d.ts.map +1 -1
  31. package/dist/adminapi/models/index.js +4 -0
  32. package/dist/adminapi/models/index.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/adminapi/.openapi-generator/FILES +4 -0
  35. package/src/adminapi/apis/account-api.ts +703 -0
  36. package/src/adminapi/apis/rdbms-api.ts +703 -0
  37. package/src/adminapi/apis/shared-api.ts +703 -0
  38. package/src/adminapi/models/dms-service-account-create-request.ts +60 -0
  39. package/src/adminapi/models/dms-service-account-status.ts +31 -0
  40. package/src/adminapi/models/dms-service-account-update-request.ts +41 -0
  41. package/src/adminapi/models/dms-service-account.ts +78 -0
  42. package/src/adminapi/models/index.ts +4 -0
  43. package/src/adminapi.yaml +330 -0
@@ -1177,6 +1177,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
1177
1177
  options: localVarRequestOptions,
1178
1178
  };
1179
1179
  },
1180
+ /**
1181
+ * create a MinIO service account access key
1182
+ * @summary Create MinIO access key
1183
+ * @param {string} engineName name of the engine
1184
+ * @param {string} orgName name of the organization
1185
+ * @param {string} clusterName name of the cluster
1186
+ * @param {DmsServiceAccountCreateRequest} body
1187
+ * @param {*} [options] Override http request option.
1188
+ * @throws {RequiredError}
1189
+ */
1190
+ createServiceAccount: async (engineName, orgName, clusterName, body, options = {}) => {
1191
+ // verify required parameter 'engineName' is not null or undefined
1192
+ (0, common_1.assertParamExists)('createServiceAccount', 'engineName', engineName);
1193
+ // verify required parameter 'orgName' is not null or undefined
1194
+ (0, common_1.assertParamExists)('createServiceAccount', 'orgName', orgName);
1195
+ // verify required parameter 'clusterName' is not null or undefined
1196
+ (0, common_1.assertParamExists)('createServiceAccount', 'clusterName', clusterName);
1197
+ // verify required parameter 'body' is not null or undefined
1198
+ (0, common_1.assertParamExists)('createServiceAccount', 'body', body);
1199
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
1200
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1201
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1202
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1204
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1205
+ let baseOptions;
1206
+ if (configuration) {
1207
+ baseOptions = configuration.baseOptions;
1208
+ }
1209
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1210
+ const localVarHeaderParameter = {};
1211
+ const localVarQueryParameter = {};
1212
+ // authentication BearerToken required
1213
+ // http bearer authentication required
1214
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1215
+ // authentication DigestAuth required
1216
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1217
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1218
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1221
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1222
+ return {
1223
+ url: (0, common_1.toPathString)(localVarUrlObj),
1224
+ options: localVarRequestOptions,
1225
+ };
1226
+ },
1180
1227
  /**
1181
1228
  * create tag
1182
1229
  * @summary Create cluster tags
@@ -2426,6 +2473,52 @@ const SharedApiAxiosParamCreator = function (configuration) {
2426
2473
  options: localVarRequestOptions,
2427
2474
  };
2428
2475
  },
2476
+ /**
2477
+ * delete a MinIO service account access key
2478
+ * @summary Delete MinIO access key
2479
+ * @param {string} engineName name of the engine
2480
+ * @param {string} orgName name of the organization
2481
+ * @param {string} clusterName name of the cluster
2482
+ * @param {string} accessKey MinIO access key
2483
+ * @param {*} [options] Override http request option.
2484
+ * @throws {RequiredError}
2485
+ */
2486
+ deleteServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
2487
+ // verify required parameter 'engineName' is not null or undefined
2488
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'engineName', engineName);
2489
+ // verify required parameter 'orgName' is not null or undefined
2490
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'orgName', orgName);
2491
+ // verify required parameter 'clusterName' is not null or undefined
2492
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'clusterName', clusterName);
2493
+ // verify required parameter 'accessKey' is not null or undefined
2494
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'accessKey', accessKey);
2495
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
2496
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
2497
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2498
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2499
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
2500
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2501
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2502
+ let baseOptions;
2503
+ if (configuration) {
2504
+ baseOptions = configuration.baseOptions;
2505
+ }
2506
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2507
+ const localVarHeaderParameter = {};
2508
+ const localVarQueryParameter = {};
2509
+ // authentication BearerToken required
2510
+ // http bearer authentication required
2511
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2512
+ // authentication DigestAuth required
2513
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2514
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2516
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2517
+ return {
2518
+ url: (0, common_1.toPathString)(localVarUrlObj),
2519
+ options: localVarRequestOptions,
2520
+ };
2521
+ },
2429
2522
  /**
2430
2523
  * delete cluster tag
2431
2524
  * @summary Delete tag
@@ -4795,6 +4888,52 @@ const SharedApiAxiosParamCreator = function (configuration) {
4795
4888
  options: localVarRequestOptions,
4796
4889
  };
4797
4890
  },
4891
+ /**
4892
+ * get a MinIO service account access key
4893
+ * @summary Get MinIO access key
4894
+ * @param {string} engineName name of the engine
4895
+ * @param {string} orgName name of the organization
4896
+ * @param {string} clusterName name of the cluster
4897
+ * @param {string} accessKey MinIO access key
4898
+ * @param {*} [options] Override http request option.
4899
+ * @throws {RequiredError}
4900
+ */
4901
+ getServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
4902
+ // verify required parameter 'engineName' is not null or undefined
4903
+ (0, common_1.assertParamExists)('getServiceAccount', 'engineName', engineName);
4904
+ // verify required parameter 'orgName' is not null or undefined
4905
+ (0, common_1.assertParamExists)('getServiceAccount', 'orgName', orgName);
4906
+ // verify required parameter 'clusterName' is not null or undefined
4907
+ (0, common_1.assertParamExists)('getServiceAccount', 'clusterName', clusterName);
4908
+ // verify required parameter 'accessKey' is not null or undefined
4909
+ (0, common_1.assertParamExists)('getServiceAccount', 'accessKey', accessKey);
4910
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
4911
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
4912
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4913
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
4914
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
4915
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4916
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4917
+ let baseOptions;
4918
+ if (configuration) {
4919
+ baseOptions = configuration.baseOptions;
4920
+ }
4921
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4922
+ const localVarHeaderParameter = {};
4923
+ const localVarQueryParameter = {};
4924
+ // authentication BearerToken required
4925
+ // http bearer authentication required
4926
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4927
+ // authentication DigestAuth required
4928
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4929
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4931
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4932
+ return {
4933
+ url: (0, common_1.toPathString)(localVarUrlObj),
4934
+ options: localVarRequestOptions,
4935
+ };
4936
+ },
4798
4937
  /**
4799
4938
  * Get statistics summary for slow logs of a cluster
4800
4939
  * @summary Get cluster slow log statistics
@@ -7463,6 +7602,52 @@ const SharedApiAxiosParamCreator = function (configuration) {
7463
7602
  options: localVarRequestOptions,
7464
7603
  };
7465
7604
  },
7605
+ /**
7606
+ * list MinIO service account access keys
7607
+ * @summary List MinIO access keys
7608
+ * @param {string} engineName name of the engine
7609
+ * @param {string} orgName name of the organization
7610
+ * @param {string} clusterName name of the cluster
7611
+ * @param {string} [userName] MinIO user that owns the service accounts
7612
+ * @param {*} [options] Override http request option.
7613
+ * @throws {RequiredError}
7614
+ */
7615
+ listServiceAccounts: async (engineName, orgName, clusterName, userName, options = {}) => {
7616
+ // verify required parameter 'engineName' is not null or undefined
7617
+ (0, common_1.assertParamExists)('listServiceAccounts', 'engineName', engineName);
7618
+ // verify required parameter 'orgName' is not null or undefined
7619
+ (0, common_1.assertParamExists)('listServiceAccounts', 'orgName', orgName);
7620
+ // verify required parameter 'clusterName' is not null or undefined
7621
+ (0, common_1.assertParamExists)('listServiceAccounts', 'clusterName', clusterName);
7622
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
7623
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
7624
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
7625
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
7626
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7627
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7628
+ let baseOptions;
7629
+ if (configuration) {
7630
+ baseOptions = configuration.baseOptions;
7631
+ }
7632
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7633
+ const localVarHeaderParameter = {};
7634
+ const localVarQueryParameter = {};
7635
+ // authentication BearerToken required
7636
+ // http bearer authentication required
7637
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7638
+ // authentication DigestAuth required
7639
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
7640
+ if (userName !== undefined) {
7641
+ localVarQueryParameter['userName'] = userName;
7642
+ }
7643
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7644
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7645
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7646
+ return {
7647
+ url: (0, common_1.toPathString)(localVarUrlObj),
7648
+ options: localVarRequestOptions,
7649
+ };
7650
+ },
7466
7651
  /**
7467
7652
  * list the service version of the engine
7468
7653
  * @summary list the service version of the engine
@@ -10656,6 +10841,57 @@ const SharedApiAxiosParamCreator = function (configuration) {
10656
10841
  options: localVarRequestOptions,
10657
10842
  };
10658
10843
  },
10844
+ /**
10845
+ * update a MinIO service account access key
10846
+ * @summary Update MinIO access key
10847
+ * @param {string} engineName name of the engine
10848
+ * @param {string} orgName name of the organization
10849
+ * @param {string} clusterName name of the cluster
10850
+ * @param {string} accessKey MinIO access key
10851
+ * @param {DmsServiceAccountUpdateRequest} body
10852
+ * @param {*} [options] Override http request option.
10853
+ * @throws {RequiredError}
10854
+ */
10855
+ updateServiceAccount: async (engineName, orgName, clusterName, accessKey, body, options = {}) => {
10856
+ // verify required parameter 'engineName' is not null or undefined
10857
+ (0, common_1.assertParamExists)('updateServiceAccount', 'engineName', engineName);
10858
+ // verify required parameter 'orgName' is not null or undefined
10859
+ (0, common_1.assertParamExists)('updateServiceAccount', 'orgName', orgName);
10860
+ // verify required parameter 'clusterName' is not null or undefined
10861
+ (0, common_1.assertParamExists)('updateServiceAccount', 'clusterName', clusterName);
10862
+ // verify required parameter 'accessKey' is not null or undefined
10863
+ (0, common_1.assertParamExists)('updateServiceAccount', 'accessKey', accessKey);
10864
+ // verify required parameter 'body' is not null or undefined
10865
+ (0, common_1.assertParamExists)('updateServiceAccount', 'body', body);
10866
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
10867
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
10868
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10869
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10870
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
10871
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10872
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10873
+ let baseOptions;
10874
+ if (configuration) {
10875
+ baseOptions = configuration.baseOptions;
10876
+ }
10877
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
10878
+ const localVarHeaderParameter = {};
10879
+ const localVarQueryParameter = {};
10880
+ // authentication BearerToken required
10881
+ // http bearer authentication required
10882
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10883
+ // authentication DigestAuth required
10884
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10885
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10886
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10887
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10888
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10889
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
10890
+ return {
10891
+ url: (0, common_1.toPathString)(localVarUrlObj),
10892
+ options: localVarRequestOptions,
10893
+ };
10894
+ },
10659
10895
  /**
10660
10896
  * Enable or disable SQL audit log for a cluster component
10661
10897
  * @summary Update SQL audit log status
@@ -11347,6 +11583,23 @@ const SharedApiFp = function (configuration) {
11347
11583
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11348
11584
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11349
11585
  },
11586
+ /**
11587
+ * create a MinIO service account access key
11588
+ * @summary Create MinIO access key
11589
+ * @param {string} engineName name of the engine
11590
+ * @param {string} orgName name of the organization
11591
+ * @param {string} clusterName name of the cluster
11592
+ * @param {DmsServiceAccountCreateRequest} body
11593
+ * @param {*} [options] Override http request option.
11594
+ * @throws {RequiredError}
11595
+ */
11596
+ async createServiceAccount(engineName, orgName, clusterName, body, options) {
11597
+ var _a, _b, _c;
11598
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceAccount(engineName, orgName, clusterName, body, options);
11599
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11600
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11601
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11602
+ },
11350
11603
  /**
11351
11604
  * create tag
11352
11605
  * @summary Create cluster tags
@@ -11822,6 +12075,23 @@ const SharedApiFp = function (configuration) {
11822
12075
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteRoleByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11823
12076
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11824
12077
  },
12078
+ /**
12079
+ * delete a MinIO service account access key
12080
+ * @summary Delete MinIO access key
12081
+ * @param {string} engineName name of the engine
12082
+ * @param {string} orgName name of the organization
12083
+ * @param {string} clusterName name of the cluster
12084
+ * @param {string} accessKey MinIO access key
12085
+ * @param {*} [options] Override http request option.
12086
+ * @throws {RequiredError}
12087
+ */
12088
+ async deleteServiceAccount(engineName, orgName, clusterName, accessKey, options) {
12089
+ var _a, _b, _c;
12090
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServiceAccount(engineName, orgName, clusterName, accessKey, options);
12091
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12092
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12093
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12094
+ },
11825
12095
  /**
11826
12096
  * delete cluster tag
11827
12097
  * @summary Delete tag
@@ -12713,6 +12983,23 @@ const SharedApiFp = function (configuration) {
12713
12983
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getSchemaList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12714
12984
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12715
12985
  },
12986
+ /**
12987
+ * get a MinIO service account access key
12988
+ * @summary Get MinIO access key
12989
+ * @param {string} engineName name of the engine
12990
+ * @param {string} orgName name of the organization
12991
+ * @param {string} clusterName name of the cluster
12992
+ * @param {string} accessKey MinIO access key
12993
+ * @param {*} [options] Override http request option.
12994
+ * @throws {RequiredError}
12995
+ */
12996
+ async getServiceAccount(engineName, orgName, clusterName, accessKey, options) {
12997
+ var _a, _b, _c;
12998
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceAccount(engineName, orgName, clusterName, accessKey, options);
12999
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13000
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13001
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13002
+ },
12716
13003
  /**
12717
13004
  * Get statistics summary for slow logs of a cluster
12718
13005
  * @summary Get cluster slow log statistics
@@ -13725,6 +14012,23 @@ const SharedApiFp = function (configuration) {
13725
14012
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13726
14013
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13727
14014
  },
14015
+ /**
14016
+ * list MinIO service account access keys
14017
+ * @summary List MinIO access keys
14018
+ * @param {string} engineName name of the engine
14019
+ * @param {string} orgName name of the organization
14020
+ * @param {string} clusterName name of the cluster
14021
+ * @param {string} [userName] MinIO user that owns the service accounts
14022
+ * @param {*} [options] Override http request option.
14023
+ * @throws {RequiredError}
14024
+ */
14025
+ async listServiceAccounts(engineName, orgName, clusterName, userName, options) {
14026
+ var _a, _b, _c;
14027
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceAccounts(engineName, orgName, clusterName, userName, options);
14028
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14029
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listServiceAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14030
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14031
+ },
13728
14032
  /**
13729
14033
  * list the service version of the engine
13730
14034
  * @summary list the service version of the engine
@@ -14885,6 +15189,24 @@ const SharedApiFp = function (configuration) {
14885
15189
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateRoleByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14886
15190
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14887
15191
  },
15192
+ /**
15193
+ * update a MinIO service account access key
15194
+ * @summary Update MinIO access key
15195
+ * @param {string} engineName name of the engine
15196
+ * @param {string} orgName name of the organization
15197
+ * @param {string} clusterName name of the cluster
15198
+ * @param {string} accessKey MinIO access key
15199
+ * @param {DmsServiceAccountUpdateRequest} body
15200
+ * @param {*} [options] Override http request option.
15201
+ * @throws {RequiredError}
15202
+ */
15203
+ async updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options) {
15204
+ var _a, _b, _c;
15205
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options);
15206
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15207
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15208
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15209
+ },
14888
15210
  /**
14889
15211
  * Enable or disable SQL audit log for a cluster component
14890
15212
  * @summary Update SQL audit log status
@@ -15259,6 +15581,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
15259
15581
  createRole(requestParameters, options) {
15260
15582
  return localVarFp.createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(axios, basePath));
15261
15583
  },
15584
+ /**
15585
+ * create a MinIO service account access key
15586
+ * @summary Create MinIO access key
15587
+ * @param {SharedApiCreateServiceAccountRequest} requestParameters Request parameters.
15588
+ * @param {*} [options] Override http request option.
15589
+ * @throws {RequiredError}
15590
+ */
15591
+ createServiceAccount(requestParameters, options) {
15592
+ return localVarFp.createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
15593
+ },
15262
15594
  /**
15263
15595
  * create tag
15264
15596
  * @summary Create cluster tags
@@ -15559,6 +15891,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
15559
15891
  deleteRoleByName(requestParameters, options) {
15560
15892
  return localVarFp.deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(axios, basePath));
15561
15893
  },
15894
+ /**
15895
+ * delete a MinIO service account access key
15896
+ * @summary Delete MinIO access key
15897
+ * @param {SharedApiDeleteServiceAccountRequest} requestParameters Request parameters.
15898
+ * @param {*} [options] Override http request option.
15899
+ * @throws {RequiredError}
15900
+ */
15901
+ deleteServiceAccount(requestParameters, options) {
15902
+ return localVarFp.deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
15903
+ },
15562
15904
  /**
15563
15905
  * delete cluster tag
15564
15906
  * @summary Delete tag
@@ -16109,6 +16451,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16109
16451
  getSchemaList(requestParameters, options) {
16110
16452
  return localVarFp.getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath));
16111
16453
  },
16454
+ /**
16455
+ * get a MinIO service account access key
16456
+ * @summary Get MinIO access key
16457
+ * @param {SharedApiGetServiceAccountRequest} requestParameters Request parameters.
16458
+ * @param {*} [options] Override http request option.
16459
+ * @throws {RequiredError}
16460
+ */
16461
+ getServiceAccount(requestParameters, options) {
16462
+ return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
16463
+ },
16112
16464
  /**
16113
16465
  * Get statistics summary for slow logs of a cluster
16114
16466
  * @summary Get cluster slow log statistics
@@ -16745,6 +17097,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16745
17097
  listRoles(requestParameters, options) {
16746
17098
  return localVarFp.listRoles(requestParameters.orgName, options).then((request) => request(axios, basePath));
16747
17099
  },
17100
+ /**
17101
+ * list MinIO service account access keys
17102
+ * @summary List MinIO access keys
17103
+ * @param {SharedApiListServiceAccountsRequest} requestParameters Request parameters.
17104
+ * @param {*} [options] Override http request option.
17105
+ * @throws {RequiredError}
17106
+ */
17107
+ listServiceAccounts(requestParameters, options) {
17108
+ return localVarFp.listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(axios, basePath));
17109
+ },
16748
17110
  /**
16749
17111
  * list the service version of the engine
16750
17112
  * @summary list the service version of the engine
@@ -17434,6 +17796,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
17434
17796
  updateRoleByName(requestParameters, options) {
17435
17797
  return localVarFp.updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(axios, basePath));
17436
17798
  },
17799
+ /**
17800
+ * update a MinIO service account access key
17801
+ * @summary Update MinIO access key
17802
+ * @param {SharedApiUpdateServiceAccountRequest} requestParameters Request parameters.
17803
+ * @param {*} [options] Override http request option.
17804
+ * @throws {RequiredError}
17805
+ */
17806
+ updateServiceAccount(requestParameters, options) {
17807
+ return localVarFp.updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(axios, basePath));
17808
+ },
17437
17809
  /**
17438
17810
  * Enable or disable SQL audit log for a cluster component
17439
17811
  * @summary Update SQL audit log status
@@ -17800,6 +18172,17 @@ class SharedApi extends base_1.BaseAPI {
17800
18172
  createRole(requestParameters, options) {
17801
18173
  return (0, exports.SharedApiFp)(this.configuration).createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(this.axios, this.basePath));
17802
18174
  }
18175
+ /**
18176
+ * create a MinIO service account access key
18177
+ * @summary Create MinIO access key
18178
+ * @param {SharedApiCreateServiceAccountRequest} requestParameters Request parameters.
18179
+ * @param {*} [options] Override http request option.
18180
+ * @throws {RequiredError}
18181
+ * @memberof SharedApi
18182
+ */
18183
+ createServiceAccount(requestParameters, options) {
18184
+ return (0, exports.SharedApiFp)(this.configuration).createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
18185
+ }
17803
18186
  /**
17804
18187
  * create tag
17805
18188
  * @summary Create cluster tags
@@ -18130,6 +18513,17 @@ class SharedApi extends base_1.BaseAPI {
18130
18513
  deleteRoleByName(requestParameters, options) {
18131
18514
  return (0, exports.SharedApiFp)(this.configuration).deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
18132
18515
  }
18516
+ /**
18517
+ * delete a MinIO service account access key
18518
+ * @summary Delete MinIO access key
18519
+ * @param {SharedApiDeleteServiceAccountRequest} requestParameters Request parameters.
18520
+ * @param {*} [options] Override http request option.
18521
+ * @throws {RequiredError}
18522
+ * @memberof SharedApi
18523
+ */
18524
+ deleteServiceAccount(requestParameters, options) {
18525
+ return (0, exports.SharedApiFp)(this.configuration).deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
18526
+ }
18133
18527
  /**
18134
18528
  * delete cluster tag
18135
18529
  * @summary Delete tag
@@ -18735,6 +19129,17 @@ class SharedApi extends base_1.BaseAPI {
18735
19129
  getSchemaList(requestParameters, options) {
18736
19130
  return (0, exports.SharedApiFp)(this.configuration).getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
18737
19131
  }
19132
+ /**
19133
+ * get a MinIO service account access key
19134
+ * @summary Get MinIO access key
19135
+ * @param {SharedApiGetServiceAccountRequest} requestParameters Request parameters.
19136
+ * @param {*} [options] Override http request option.
19137
+ * @throws {RequiredError}
19138
+ * @memberof SharedApi
19139
+ */
19140
+ getServiceAccount(requestParameters, options) {
19141
+ return (0, exports.SharedApiFp)(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
19142
+ }
18738
19143
  /**
18739
19144
  * Get statistics summary for slow logs of a cluster
18740
19145
  * @summary Get cluster slow log statistics
@@ -19435,6 +19840,17 @@ class SharedApi extends base_1.BaseAPI {
19435
19840
  listRoles(requestParameters, options) {
19436
19841
  return (0, exports.SharedApiFp)(this.configuration).listRoles(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
19437
19842
  }
19843
+ /**
19844
+ * list MinIO service account access keys
19845
+ * @summary List MinIO access keys
19846
+ * @param {SharedApiListServiceAccountsRequest} requestParameters Request parameters.
19847
+ * @param {*} [options] Override http request option.
19848
+ * @throws {RequiredError}
19849
+ * @memberof SharedApi
19850
+ */
19851
+ listServiceAccounts(requestParameters, options) {
19852
+ return (0, exports.SharedApiFp)(this.configuration).listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(this.axios, this.basePath));
19853
+ }
19438
19854
  /**
19439
19855
  * list the service version of the engine
19440
19856
  * @summary list the service version of the engine
@@ -20193,6 +20609,17 @@ class SharedApi extends base_1.BaseAPI {
20193
20609
  updateRoleByName(requestParameters, options) {
20194
20610
  return (0, exports.SharedApiFp)(this.configuration).updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(this.axios, this.basePath));
20195
20611
  }
20612
+ /**
20613
+ * update a MinIO service account access key
20614
+ * @summary Update MinIO access key
20615
+ * @param {SharedApiUpdateServiceAccountRequest} requestParameters Request parameters.
20616
+ * @param {*} [options] Override http request option.
20617
+ * @throws {RequiredError}
20618
+ * @memberof SharedApi
20619
+ */
20620
+ updateServiceAccount(requestParameters, options) {
20621
+ return (0, exports.SharedApiFp)(this.configuration).updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
20622
+ }
20196
20623
  /**
20197
20624
  * Enable or disable SQL audit log for a cluster component
20198
20625
  * @summary Update SQL audit log status