kb-cloud-client-typescript 2.3.0-alpha.121 → 2.3.0-alpha.122

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 (50) hide show
  1. package/dist/adminapi/models/account-option.d.ts +6 -0
  2. package/dist/adminapi/models/account-option.d.ts.map +1 -1
  3. package/dist/openapi/apis/account-api.d.ts +406 -0
  4. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  5. package/dist/openapi/apis/account-api.js +427 -0
  6. package/dist/openapi/apis/account-api.js.map +1 -1
  7. package/dist/openapi/apis/rdbms-api.d.ts +406 -0
  8. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  9. package/dist/openapi/apis/rdbms-api.js +427 -0
  10. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  11. package/dist/openapi/apis/shared-api.d.ts +406 -0
  12. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  13. package/dist/openapi/apis/shared-api.js +427 -0
  14. package/dist/openapi/apis/shared-api.js.map +1 -1
  15. package/dist/openapi/models/account-option.d.ts +6 -0
  16. package/dist/openapi/models/account-option.d.ts.map +1 -1
  17. package/dist/openapi/models/dms-service-account-create-request.d.ts +55 -0
  18. package/dist/openapi/models/dms-service-account-create-request.d.ts.map +1 -0
  19. package/dist/openapi/models/dms-service-account-create-request.js +16 -0
  20. package/dist/openapi/models/dms-service-account-create-request.js.map +1 -0
  21. package/dist/openapi/models/dms-service-account-status.d.ts +22 -0
  22. package/dist/openapi/models/dms-service-account-status.d.ts.map +1 -0
  23. package/dist/openapi/models/dms-service-account-status.js +26 -0
  24. package/dist/openapi/models/dms-service-account-status.js.map +1 -0
  25. package/dist/openapi/models/dms-service-account-update-request.d.ts +32 -0
  26. package/dist/openapi/models/dms-service-account-update-request.d.ts.map +1 -0
  27. package/dist/openapi/models/dms-service-account-update-request.js +16 -0
  28. package/dist/openapi/models/dms-service-account-update-request.js.map +1 -0
  29. package/dist/openapi/models/dms-service-account.d.ts +73 -0
  30. package/dist/openapi/models/dms-service-account.d.ts.map +1 -0
  31. package/dist/openapi/models/dms-service-account.js +16 -0
  32. package/dist/openapi/models/dms-service-account.js.map +1 -0
  33. package/dist/openapi/models/index.d.ts +4 -0
  34. package/dist/openapi/models/index.d.ts.map +1 -1
  35. package/dist/openapi/models/index.js +4 -0
  36. package/dist/openapi/models/index.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/adminapi/models/account-option.ts +6 -0
  39. package/src/adminapi.yaml +3 -0
  40. package/src/openapi/.openapi-generator/FILES +4 -0
  41. package/src/openapi/apis/account-api.ts +703 -0
  42. package/src/openapi/apis/rdbms-api.ts +703 -0
  43. package/src/openapi/apis/shared-api.ts +703 -0
  44. package/src/openapi/models/account-option.ts +6 -0
  45. package/src/openapi/models/dms-service-account-create-request.ts +60 -0
  46. package/src/openapi/models/dms-service-account-status.ts +31 -0
  47. package/src/openapi/models/dms-service-account-update-request.ts +41 -0
  48. package/src/openapi/models/dms-service-account.ts +78 -0
  49. package/src/openapi/models/index.ts +4 -0
  50. package/src/openapi.yaml +333 -0
@@ -248,6 +248,53 @@ const AccountApiAxiosParamCreator = function (configuration) {
248
248
  options: localVarRequestOptions,
249
249
  };
250
250
  },
251
+ /**
252
+ * create a MinIO service account access key
253
+ * @summary Create MinIO access key
254
+ * @param {string} engineName name of the engine
255
+ * @param {string} orgName name of the organization
256
+ * @param {string} clusterName name of the cluster
257
+ * @param {DmsServiceAccountCreateRequest} body
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ createServiceAccount: async (engineName, orgName, clusterName, body, options = {}) => {
262
+ // verify required parameter 'engineName' is not null or undefined
263
+ (0, common_1.assertParamExists)('createServiceAccount', 'engineName', engineName);
264
+ // verify required parameter 'orgName' is not null or undefined
265
+ (0, common_1.assertParamExists)('createServiceAccount', 'orgName', orgName);
266
+ // verify required parameter 'clusterName' is not null or undefined
267
+ (0, common_1.assertParamExists)('createServiceAccount', 'clusterName', clusterName);
268
+ // verify required parameter 'body' is not null or undefined
269
+ (0, common_1.assertParamExists)('createServiceAccount', 'body', body);
270
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
271
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
272
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
273
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
274
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
275
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
276
+ let baseOptions;
277
+ if (configuration) {
278
+ baseOptions = configuration.baseOptions;
279
+ }
280
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
281
+ const localVarHeaderParameter = {};
282
+ const localVarQueryParameter = {};
283
+ // authentication BearerToken required
284
+ // http bearer authentication required
285
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
286
+ // authentication DigestAuth required
287
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
288
+ localVarHeaderParameter['Content-Type'] = 'application/json';
289
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
290
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
291
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
292
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
293
+ return {
294
+ url: (0, common_1.toPathString)(localVarUrlObj),
295
+ options: localVarRequestOptions,
296
+ };
297
+ },
251
298
  /**
252
299
  * delete an account in cluster
253
300
  * @summary Delete cluster account
@@ -506,6 +553,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
506
553
  options: localVarRequestOptions,
507
554
  };
508
555
  },
556
+ /**
557
+ * delete a MinIO service account access key
558
+ * @summary Delete MinIO access key
559
+ * @param {string} engineName name of the engine
560
+ * @param {string} orgName name of the organization
561
+ * @param {string} clusterName name of the cluster
562
+ * @param {string} accessKey MinIO access key
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ deleteServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
567
+ // verify required parameter 'engineName' is not null or undefined
568
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'engineName', engineName);
569
+ // verify required parameter 'orgName' is not null or undefined
570
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'orgName', orgName);
571
+ // verify required parameter 'clusterName' is not null or undefined
572
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'clusterName', clusterName);
573
+ // verify required parameter 'accessKey' is not null or undefined
574
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'accessKey', accessKey);
575
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
576
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
577
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
578
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
579
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
580
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
581
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
582
+ let baseOptions;
583
+ if (configuration) {
584
+ baseOptions = configuration.baseOptions;
585
+ }
586
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
587
+ const localVarHeaderParameter = {};
588
+ const localVarQueryParameter = {};
589
+ // authentication BearerToken required
590
+ // http bearer authentication required
591
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
592
+ // authentication DigestAuth required
593
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
594
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
595
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
596
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
597
+ return {
598
+ url: (0, common_1.toPathString)(localVarUrlObj),
599
+ options: localVarRequestOptions,
600
+ };
601
+ },
509
602
  /**
510
603
  * Get Hive accounts
511
604
  * @summary Get Hive accounts
@@ -596,6 +689,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
596
689
  options: localVarRequestOptions,
597
690
  };
598
691
  },
692
+ /**
693
+ * get a MinIO service account access key
694
+ * @summary Get MinIO access key
695
+ * @param {string} engineName name of the engine
696
+ * @param {string} orgName name of the organization
697
+ * @param {string} clusterName name of the cluster
698
+ * @param {string} accessKey MinIO access key
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ */
702
+ getServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
703
+ // verify required parameter 'engineName' is not null or undefined
704
+ (0, common_1.assertParamExists)('getServiceAccount', 'engineName', engineName);
705
+ // verify required parameter 'orgName' is not null or undefined
706
+ (0, common_1.assertParamExists)('getServiceAccount', 'orgName', orgName);
707
+ // verify required parameter 'clusterName' is not null or undefined
708
+ (0, common_1.assertParamExists)('getServiceAccount', 'clusterName', clusterName);
709
+ // verify required parameter 'accessKey' is not null or undefined
710
+ (0, common_1.assertParamExists)('getServiceAccount', 'accessKey', accessKey);
711
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
712
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
713
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
714
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
715
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
717
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
718
+ let baseOptions;
719
+ if (configuration) {
720
+ baseOptions = configuration.baseOptions;
721
+ }
722
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
723
+ const localVarHeaderParameter = {};
724
+ const localVarQueryParameter = {};
725
+ // authentication BearerToken required
726
+ // http bearer authentication required
727
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
728
+ // authentication DigestAuth required
729
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
730
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
731
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
732
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
733
+ return {
734
+ url: (0, common_1.toPathString)(localVarUrlObj),
735
+ options: localVarRequestOptions,
736
+ };
737
+ },
599
738
  /**
600
739
  * list accounts in cluster
601
740
  * @summary List cluster accounts
@@ -752,6 +891,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
752
891
  options: localVarRequestOptions,
753
892
  };
754
893
  },
894
+ /**
895
+ * list MinIO service account access keys
896
+ * @summary List MinIO access keys
897
+ * @param {string} engineName name of the engine
898
+ * @param {string} orgName name of the organization
899
+ * @param {string} clusterName name of the cluster
900
+ * @param {string} [userName] MinIO user that owns the service accounts
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ listServiceAccounts: async (engineName, orgName, clusterName, userName, options = {}) => {
905
+ // verify required parameter 'engineName' is not null or undefined
906
+ (0, common_1.assertParamExists)('listServiceAccounts', 'engineName', engineName);
907
+ // verify required parameter 'orgName' is not null or undefined
908
+ (0, common_1.assertParamExists)('listServiceAccounts', 'orgName', orgName);
909
+ // verify required parameter 'clusterName' is not null or undefined
910
+ (0, common_1.assertParamExists)('listServiceAccounts', 'clusterName', clusterName);
911
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
912
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
913
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
914
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
915
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
916
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
917
+ let baseOptions;
918
+ if (configuration) {
919
+ baseOptions = configuration.baseOptions;
920
+ }
921
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
922
+ const localVarHeaderParameter = {};
923
+ const localVarQueryParameter = {};
924
+ // authentication BearerToken required
925
+ // http bearer authentication required
926
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
927
+ // authentication DigestAuth required
928
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
929
+ if (userName !== undefined) {
930
+ localVarQueryParameter['userName'] = userName;
931
+ }
932
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
933
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
934
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
935
+ return {
936
+ url: (0, common_1.toPathString)(localVarUrlObj),
937
+ options: localVarRequestOptions,
938
+ };
939
+ },
755
940
  /**
756
941
  * lock an account in cluster
757
942
  * @summary Lock cluster account
@@ -1175,6 +1360,57 @@ const AccountApiAxiosParamCreator = function (configuration) {
1175
1360
  options: localVarRequestOptions,
1176
1361
  };
1177
1362
  },
1363
+ /**
1364
+ * update a MinIO service account access key
1365
+ * @summary Update MinIO access key
1366
+ * @param {string} engineName name of the engine
1367
+ * @param {string} orgName name of the organization
1368
+ * @param {string} clusterName name of the cluster
1369
+ * @param {string} accessKey MinIO access key
1370
+ * @param {DmsServiceAccountUpdateRequest} body
1371
+ * @param {*} [options] Override http request option.
1372
+ * @throws {RequiredError}
1373
+ */
1374
+ updateServiceAccount: async (engineName, orgName, clusterName, accessKey, body, options = {}) => {
1375
+ // verify required parameter 'engineName' is not null or undefined
1376
+ (0, common_1.assertParamExists)('updateServiceAccount', 'engineName', engineName);
1377
+ // verify required parameter 'orgName' is not null or undefined
1378
+ (0, common_1.assertParamExists)('updateServiceAccount', 'orgName', orgName);
1379
+ // verify required parameter 'clusterName' is not null or undefined
1380
+ (0, common_1.assertParamExists)('updateServiceAccount', 'clusterName', clusterName);
1381
+ // verify required parameter 'accessKey' is not null or undefined
1382
+ (0, common_1.assertParamExists)('updateServiceAccount', 'accessKey', accessKey);
1383
+ // verify required parameter 'body' is not null or undefined
1384
+ (0, common_1.assertParamExists)('updateServiceAccount', 'body', body);
1385
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
1386
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1387
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1388
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1389
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
1390
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1391
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1392
+ let baseOptions;
1393
+ if (configuration) {
1394
+ baseOptions = configuration.baseOptions;
1395
+ }
1396
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1397
+ const localVarHeaderParameter = {};
1398
+ const localVarQueryParameter = {};
1399
+ // authentication BearerToken required
1400
+ // http bearer authentication required
1401
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1402
+ // authentication DigestAuth required
1403
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1404
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1405
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1407
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1408
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1409
+ return {
1410
+ url: (0, common_1.toPathString)(localVarUrlObj),
1411
+ options: localVarRequestOptions,
1412
+ };
1413
+ },
1178
1414
  };
1179
1415
  };
1180
1416
  exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
@@ -1266,6 +1502,23 @@ const AccountApiFp = function (configuration) {
1266
1502
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.createRabbitAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1267
1503
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1268
1504
  },
1505
+ /**
1506
+ * create a MinIO service account access key
1507
+ * @summary Create MinIO access key
1508
+ * @param {string} engineName name of the engine
1509
+ * @param {string} orgName name of the organization
1510
+ * @param {string} clusterName name of the cluster
1511
+ * @param {DmsServiceAccountCreateRequest} body
1512
+ * @param {*} [options] Override http request option.
1513
+ * @throws {RequiredError}
1514
+ */
1515
+ async createServiceAccount(engineName, orgName, clusterName, body, options) {
1516
+ var _a, _b, _c;
1517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceAccount(engineName, orgName, clusterName, body, options);
1518
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1519
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.createServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1520
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1521
+ },
1269
1522
  /**
1270
1523
  * delete an account in cluster
1271
1524
  * @summary Delete cluster account
@@ -1363,6 +1616,23 @@ const AccountApiFp = function (configuration) {
1363
1616
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.deleteRabbitAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1364
1617
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1365
1618
  },
1619
+ /**
1620
+ * delete a MinIO service account access key
1621
+ * @summary Delete MinIO access key
1622
+ * @param {string} engineName name of the engine
1623
+ * @param {string} orgName name of the organization
1624
+ * @param {string} clusterName name of the cluster
1625
+ * @param {string} accessKey MinIO access key
1626
+ * @param {*} [options] Override http request option.
1627
+ * @throws {RequiredError}
1628
+ */
1629
+ async deleteServiceAccount(engineName, orgName, clusterName, accessKey, options) {
1630
+ var _a, _b, _c;
1631
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServiceAccount(engineName, orgName, clusterName, accessKey, options);
1632
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1633
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.deleteServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1634
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1635
+ },
1366
1636
  /**
1367
1637
  * Get Hive accounts
1368
1638
  * @summary Get Hive accounts
@@ -1396,6 +1666,23 @@ const AccountApiFp = function (configuration) {
1396
1666
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.getRootAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1397
1667
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1398
1668
  },
1669
+ /**
1670
+ * get a MinIO service account access key
1671
+ * @summary Get MinIO access key
1672
+ * @param {string} engineName name of the engine
1673
+ * @param {string} orgName name of the organization
1674
+ * @param {string} clusterName name of the cluster
1675
+ * @param {string} accessKey MinIO access key
1676
+ * @param {*} [options] Override http request option.
1677
+ * @throws {RequiredError}
1678
+ */
1679
+ async getServiceAccount(engineName, orgName, clusterName, accessKey, options) {
1680
+ var _a, _b, _c;
1681
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceAccount(engineName, orgName, clusterName, accessKey, options);
1682
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1683
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.getServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1684
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1685
+ },
1399
1686
  /**
1400
1687
  * list accounts in cluster
1401
1688
  * @summary List cluster accounts
@@ -1457,6 +1744,23 @@ const AccountApiFp = function (configuration) {
1457
1744
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listRabbitAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1458
1745
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1459
1746
  },
1747
+ /**
1748
+ * list MinIO service account access keys
1749
+ * @summary List MinIO access keys
1750
+ * @param {string} engineName name of the engine
1751
+ * @param {string} orgName name of the organization
1752
+ * @param {string} clusterName name of the cluster
1753
+ * @param {string} [userName] MinIO user that owns the service accounts
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ async listServiceAccounts(engineName, orgName, clusterName, userName, options) {
1758
+ var _a, _b, _c;
1759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceAccounts(engineName, orgName, clusterName, userName, options);
1760
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1761
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listServiceAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1762
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1763
+ },
1460
1764
  /**
1461
1765
  * lock an account in cluster
1462
1766
  * @summary Lock cluster account
@@ -1611,6 +1915,24 @@ const AccountApiFp = function (configuration) {
1611
1915
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.updateRabbitAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1612
1916
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1613
1917
  },
1918
+ /**
1919
+ * update a MinIO service account access key
1920
+ * @summary Update MinIO access key
1921
+ * @param {string} engineName name of the engine
1922
+ * @param {string} orgName name of the organization
1923
+ * @param {string} clusterName name of the cluster
1924
+ * @param {string} accessKey MinIO access key
1925
+ * @param {DmsServiceAccountUpdateRequest} body
1926
+ * @param {*} [options] Override http request option.
1927
+ * @throws {RequiredError}
1928
+ */
1929
+ async updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options) {
1930
+ var _a, _b, _c;
1931
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options);
1932
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1933
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.updateServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1934
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1935
+ },
1614
1936
  };
1615
1937
  };
1616
1938
  exports.AccountApiFp = AccountApiFp;
@@ -1671,6 +1993,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1671
1993
  createRabbitAccount(requestParameters, options) {
1672
1994
  return localVarFp.createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(axios, basePath));
1673
1995
  },
1996
+ /**
1997
+ * create a MinIO service account access key
1998
+ * @summary Create MinIO access key
1999
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
2000
+ * @param {*} [options] Override http request option.
2001
+ * @throws {RequiredError}
2002
+ */
2003
+ createServiceAccount(requestParameters, options) {
2004
+ return localVarFp.createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
2005
+ },
1674
2006
  /**
1675
2007
  * delete an account in cluster
1676
2008
  * @summary Delete cluster account
@@ -1731,6 +2063,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1731
2063
  deleteRabbitAccount(requestParameters, options) {
1732
2064
  return localVarFp.deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1733
2065
  },
2066
+ /**
2067
+ * delete a MinIO service account access key
2068
+ * @summary Delete MinIO access key
2069
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
2070
+ * @param {*} [options] Override http request option.
2071
+ * @throws {RequiredError}
2072
+ */
2073
+ deleteServiceAccount(requestParameters, options) {
2074
+ return localVarFp.deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
2075
+ },
1734
2076
  /**
1735
2077
  * Get Hive accounts
1736
2078
  * @summary Get Hive accounts
@@ -1751,6 +2093,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1751
2093
  getRootAccountPassword(requestParameters, options) {
1752
2094
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
1753
2095
  },
2096
+ /**
2097
+ * get a MinIO service account access key
2098
+ * @summary Get MinIO access key
2099
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
2100
+ * @param {*} [options] Override http request option.
2101
+ * @throws {RequiredError}
2102
+ */
2103
+ getServiceAccount(requestParameters, options) {
2104
+ return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
2105
+ },
1754
2106
  /**
1755
2107
  * list accounts in cluster
1756
2108
  * @summary List cluster accounts
@@ -1791,6 +2143,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1791
2143
  listRabbitAccounts(requestParameters, options) {
1792
2144
  return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1793
2145
  },
2146
+ /**
2147
+ * list MinIO service account access keys
2148
+ * @summary List MinIO access keys
2149
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
2150
+ * @param {*} [options] Override http request option.
2151
+ * @throws {RequiredError}
2152
+ */
2153
+ listServiceAccounts(requestParameters, options) {
2154
+ return localVarFp.listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(axios, basePath));
2155
+ },
1794
2156
  /**
1795
2157
  * lock an account in cluster
1796
2158
  * @summary Lock cluster account
@@ -1881,6 +2243,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1881
2243
  updateRabbitAccountPrivileges(requestParameters, options) {
1882
2244
  return localVarFp.updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(axios, basePath));
1883
2245
  },
2246
+ /**
2247
+ * update a MinIO service account access key
2248
+ * @summary Update MinIO access key
2249
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
2250
+ * @param {*} [options] Override http request option.
2251
+ * @throws {RequiredError}
2252
+ */
2253
+ updateServiceAccount(requestParameters, options) {
2254
+ return localVarFp.updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(axios, basePath));
2255
+ },
1884
2256
  };
1885
2257
  };
1886
2258
  exports.AccountApiFactory = AccountApiFactory;
@@ -1946,6 +2318,17 @@ class AccountApi extends base_1.BaseAPI {
1946
2318
  createRabbitAccount(requestParameters, options) {
1947
2319
  return (0, exports.AccountApiFp)(this.configuration).createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(this.axios, this.basePath));
1948
2320
  }
2321
+ /**
2322
+ * create a MinIO service account access key
2323
+ * @summary Create MinIO access key
2324
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
2325
+ * @param {*} [options] Override http request option.
2326
+ * @throws {RequiredError}
2327
+ * @memberof AccountApi
2328
+ */
2329
+ createServiceAccount(requestParameters, options) {
2330
+ return (0, exports.AccountApiFp)(this.configuration).createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2331
+ }
1949
2332
  /**
1950
2333
  * delete an account in cluster
1951
2334
  * @summary Delete cluster account
@@ -2012,6 +2395,17 @@ class AccountApi extends base_1.BaseAPI {
2012
2395
  deleteRabbitAccount(requestParameters, options) {
2013
2396
  return (0, exports.AccountApiFp)(this.configuration).deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2014
2397
  }
2398
+ /**
2399
+ * delete a MinIO service account access key
2400
+ * @summary Delete MinIO access key
2401
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
2402
+ * @param {*} [options] Override http request option.
2403
+ * @throws {RequiredError}
2404
+ * @memberof AccountApi
2405
+ */
2406
+ deleteServiceAccount(requestParameters, options) {
2407
+ return (0, exports.AccountApiFp)(this.configuration).deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
2408
+ }
2015
2409
  /**
2016
2410
  * Get Hive accounts
2017
2411
  * @summary Get Hive accounts
@@ -2034,6 +2428,17 @@ class AccountApi extends base_1.BaseAPI {
2034
2428
  getRootAccountPassword(requestParameters, options) {
2035
2429
  return (0, exports.AccountApiFp)(this.configuration).getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
2036
2430
  }
2431
+ /**
2432
+ * get a MinIO service account access key
2433
+ * @summary Get MinIO access key
2434
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
2435
+ * @param {*} [options] Override http request option.
2436
+ * @throws {RequiredError}
2437
+ * @memberof AccountApi
2438
+ */
2439
+ getServiceAccount(requestParameters, options) {
2440
+ return (0, exports.AccountApiFp)(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
2441
+ }
2037
2442
  /**
2038
2443
  * list accounts in cluster
2039
2444
  * @summary List cluster accounts
@@ -2078,6 +2483,17 @@ class AccountApi extends base_1.BaseAPI {
2078
2483
  listRabbitAccounts(requestParameters, options) {
2079
2484
  return (0, exports.AccountApiFp)(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
2080
2485
  }
2486
+ /**
2487
+ * list MinIO service account access keys
2488
+ * @summary List MinIO access keys
2489
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
2490
+ * @param {*} [options] Override http request option.
2491
+ * @throws {RequiredError}
2492
+ * @memberof AccountApi
2493
+ */
2494
+ listServiceAccounts(requestParameters, options) {
2495
+ return (0, exports.AccountApiFp)(this.configuration).listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(this.axios, this.basePath));
2496
+ }
2081
2497
  /**
2082
2498
  * lock an account in cluster
2083
2499
  * @summary Lock cluster account
@@ -2177,6 +2593,17 @@ class AccountApi extends base_1.BaseAPI {
2177
2593
  updateRabbitAccountPrivileges(requestParameters, options) {
2178
2594
  return (0, exports.AccountApiFp)(this.configuration).updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(this.axios, this.basePath));
2179
2595
  }
2596
+ /**
2597
+ * update a MinIO service account access key
2598
+ * @summary Update MinIO access key
2599
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
2600
+ * @param {*} [options] Override http request option.
2601
+ * @throws {RequiredError}
2602
+ * @memberof AccountApi
2603
+ */
2604
+ updateServiceAccount(requestParameters, options) {
2605
+ return (0, exports.AccountApiFp)(this.configuration).updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2606
+ }
2180
2607
  }
2181
2608
  exports.AccountApi = AccountApi;
2182
2609
  //# sourceMappingURL=account-api.js.map