kb-cloud-client-typescript 2.2.96 → 2.2.97

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/openapi/apis/account-api.d.ts +406 -0
  2. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/openapi/apis/account-api.js +427 -0
  4. package/dist/openapi/apis/account-api.js.map +1 -1
  5. package/dist/openapi/apis/rdbms-api.d.ts +406 -0
  6. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/openapi/apis/rdbms-api.js +427 -0
  8. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/openapi/apis/shared-api.d.ts +406 -0
  10. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/openapi/apis/shared-api.js +427 -0
  12. package/dist/openapi/apis/shared-api.js.map +1 -1
  13. package/dist/openapi/models/dms-service-account-create-request.d.ts +55 -0
  14. package/dist/openapi/models/dms-service-account-create-request.d.ts.map +1 -0
  15. package/dist/openapi/models/dms-service-account-create-request.js +16 -0
  16. package/dist/openapi/models/dms-service-account-create-request.js.map +1 -0
  17. package/dist/openapi/models/dms-service-account-status.d.ts +22 -0
  18. package/dist/openapi/models/dms-service-account-status.d.ts.map +1 -0
  19. package/dist/openapi/models/dms-service-account-status.js +26 -0
  20. package/dist/openapi/models/dms-service-account-status.js.map +1 -0
  21. package/dist/openapi/models/dms-service-account-update-request.d.ts +32 -0
  22. package/dist/openapi/models/dms-service-account-update-request.d.ts.map +1 -0
  23. package/dist/openapi/models/dms-service-account-update-request.js +16 -0
  24. package/dist/openapi/models/dms-service-account-update-request.js.map +1 -0
  25. package/dist/openapi/models/dms-service-account.d.ts +73 -0
  26. package/dist/openapi/models/dms-service-account.d.ts.map +1 -0
  27. package/dist/openapi/models/dms-service-account.js +16 -0
  28. package/dist/openapi/models/dms-service-account.js.map +1 -0
  29. package/dist/openapi/models/index.d.ts +4 -0
  30. package/dist/openapi/models/index.d.ts.map +1 -1
  31. package/dist/openapi/models/index.js +4 -0
  32. package/dist/openapi/models/index.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/openapi/.openapi-generator/FILES +4 -0
  35. package/src/openapi/apis/account-api.ts +703 -0
  36. package/src/openapi/apis/rdbms-api.ts +703 -0
  37. package/src/openapi/apis/shared-api.ts +703 -0
  38. package/src/openapi/models/dms-service-account-create-request.ts +60 -0
  39. package/src/openapi/models/dms-service-account-status.ts +31 -0
  40. package/src/openapi/models/dms-service-account-update-request.ts +41 -0
  41. package/src/openapi/models/dms-service-account.ts +78 -0
  42. package/src/openapi/models/index.ts +4 -0
  43. package/src/openapi.yaml +330 -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
@@ -548,6 +595,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
548
595
  options: localVarRequestOptions,
549
596
  };
550
597
  },
598
+ /**
599
+ * delete a MinIO service account access key
600
+ * @summary Delete MinIO access key
601
+ * @param {string} engineName name of the engine
602
+ * @param {string} orgName name of the organization
603
+ * @param {string} clusterName name of the cluster
604
+ * @param {string} accessKey MinIO access key
605
+ * @param {*} [options] Override http request option.
606
+ * @throws {RequiredError}
607
+ */
608
+ deleteServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
609
+ // verify required parameter 'engineName' is not null or undefined
610
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'engineName', engineName);
611
+ // verify required parameter 'orgName' is not null or undefined
612
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'orgName', orgName);
613
+ // verify required parameter 'clusterName' is not null or undefined
614
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'clusterName', clusterName);
615
+ // verify required parameter 'accessKey' is not null or undefined
616
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'accessKey', accessKey);
617
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
618
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
619
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
620
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
621
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
623
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
624
+ let baseOptions;
625
+ if (configuration) {
626
+ baseOptions = configuration.baseOptions;
627
+ }
628
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
629
+ const localVarHeaderParameter = {};
630
+ const localVarQueryParameter = {};
631
+ // authentication BearerToken required
632
+ // http bearer authentication required
633
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
634
+ // authentication DigestAuth required
635
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
636
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
637
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
638
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
639
+ return {
640
+ url: (0, common_1.toPathString)(localVarUrlObj),
641
+ options: localVarRequestOptions,
642
+ };
643
+ },
551
644
  /**
552
645
  * Get Hive accounts
553
646
  * @summary Get Hive accounts
@@ -680,6 +773,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
680
773
  options: localVarRequestOptions,
681
774
  };
682
775
  },
776
+ /**
777
+ * get a MinIO service account access key
778
+ * @summary Get MinIO access key
779
+ * @param {string} engineName name of the engine
780
+ * @param {string} orgName name of the organization
781
+ * @param {string} clusterName name of the cluster
782
+ * @param {string} accessKey MinIO access key
783
+ * @param {*} [options] Override http request option.
784
+ * @throws {RequiredError}
785
+ */
786
+ getServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
787
+ // verify required parameter 'engineName' is not null or undefined
788
+ (0, common_1.assertParamExists)('getServiceAccount', 'engineName', engineName);
789
+ // verify required parameter 'orgName' is not null or undefined
790
+ (0, common_1.assertParamExists)('getServiceAccount', 'orgName', orgName);
791
+ // verify required parameter 'clusterName' is not null or undefined
792
+ (0, common_1.assertParamExists)('getServiceAccount', 'clusterName', clusterName);
793
+ // verify required parameter 'accessKey' is not null or undefined
794
+ (0, common_1.assertParamExists)('getServiceAccount', 'accessKey', accessKey);
795
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
796
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
797
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
798
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
799
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
800
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
801
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
802
+ let baseOptions;
803
+ if (configuration) {
804
+ baseOptions = configuration.baseOptions;
805
+ }
806
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
807
+ const localVarHeaderParameter = {};
808
+ const localVarQueryParameter = {};
809
+ // authentication BearerToken required
810
+ // http bearer authentication required
811
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
812
+ // authentication DigestAuth required
813
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
814
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
815
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
816
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
817
+ return {
818
+ url: (0, common_1.toPathString)(localVarUrlObj),
819
+ options: localVarRequestOptions,
820
+ };
821
+ },
683
822
  /**
684
823
  * list accounts in cluster
685
824
  * @summary List cluster accounts
@@ -874,6 +1013,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
874
1013
  options: localVarRequestOptions,
875
1014
  };
876
1015
  },
1016
+ /**
1017
+ * list MinIO service account access keys
1018
+ * @summary List MinIO access keys
1019
+ * @param {string} engineName name of the engine
1020
+ * @param {string} orgName name of the organization
1021
+ * @param {string} clusterName name of the cluster
1022
+ * @param {string} [userName] MinIO user that owns the service accounts
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ */
1026
+ listServiceAccounts: async (engineName, orgName, clusterName, userName, options = {}) => {
1027
+ // verify required parameter 'engineName' is not null or undefined
1028
+ (0, common_1.assertParamExists)('listServiceAccounts', 'engineName', engineName);
1029
+ // verify required parameter 'orgName' is not null or undefined
1030
+ (0, common_1.assertParamExists)('listServiceAccounts', 'orgName', orgName);
1031
+ // verify required parameter 'clusterName' is not null or undefined
1032
+ (0, common_1.assertParamExists)('listServiceAccounts', 'clusterName', clusterName);
1033
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
1034
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1035
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1036
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1037
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1038
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1039
+ let baseOptions;
1040
+ if (configuration) {
1041
+ baseOptions = configuration.baseOptions;
1042
+ }
1043
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1044
+ const localVarHeaderParameter = {};
1045
+ const localVarQueryParameter = {};
1046
+ // authentication BearerToken required
1047
+ // http bearer authentication required
1048
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1049
+ // authentication DigestAuth required
1050
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1051
+ if (userName !== undefined) {
1052
+ localVarQueryParameter['userName'] = userName;
1053
+ }
1054
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1055
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1056
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1057
+ return {
1058
+ url: (0, common_1.toPathString)(localVarUrlObj),
1059
+ options: localVarRequestOptions,
1060
+ };
1061
+ },
877
1062
  /**
878
1063
  * Create or update a Milvus native role and replace its privilege grants.
879
1064
  * @summary Put Milvus role
@@ -1346,6 +1531,57 @@ const AccountApiAxiosParamCreator = function (configuration) {
1346
1531
  options: localVarRequestOptions,
1347
1532
  };
1348
1533
  },
1534
+ /**
1535
+ * update a MinIO service account access key
1536
+ * @summary Update MinIO access key
1537
+ * @param {string} engineName name of the engine
1538
+ * @param {string} orgName name of the organization
1539
+ * @param {string} clusterName name of the cluster
1540
+ * @param {string} accessKey MinIO access key
1541
+ * @param {DmsServiceAccountUpdateRequest} body
1542
+ * @param {*} [options] Override http request option.
1543
+ * @throws {RequiredError}
1544
+ */
1545
+ updateServiceAccount: async (engineName, orgName, clusterName, accessKey, body, options = {}) => {
1546
+ // verify required parameter 'engineName' is not null or undefined
1547
+ (0, common_1.assertParamExists)('updateServiceAccount', 'engineName', engineName);
1548
+ // verify required parameter 'orgName' is not null or undefined
1549
+ (0, common_1.assertParamExists)('updateServiceAccount', 'orgName', orgName);
1550
+ // verify required parameter 'clusterName' is not null or undefined
1551
+ (0, common_1.assertParamExists)('updateServiceAccount', 'clusterName', clusterName);
1552
+ // verify required parameter 'accessKey' is not null or undefined
1553
+ (0, common_1.assertParamExists)('updateServiceAccount', 'accessKey', accessKey);
1554
+ // verify required parameter 'body' is not null or undefined
1555
+ (0, common_1.assertParamExists)('updateServiceAccount', 'body', body);
1556
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
1557
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1558
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1559
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1560
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
1561
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1562
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1563
+ let baseOptions;
1564
+ if (configuration) {
1565
+ baseOptions = configuration.baseOptions;
1566
+ }
1567
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1568
+ const localVarHeaderParameter = {};
1569
+ const localVarQueryParameter = {};
1570
+ // authentication BearerToken required
1571
+ // http bearer authentication required
1572
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1573
+ // authentication DigestAuth required
1574
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1575
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1576
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1577
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1578
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1579
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1580
+ return {
1581
+ url: (0, common_1.toPathString)(localVarUrlObj),
1582
+ options: localVarRequestOptions,
1583
+ };
1584
+ },
1349
1585
  };
1350
1586
  };
1351
1587
  exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
@@ -1437,6 +1673,23 @@ const AccountApiFp = function (configuration) {
1437
1673
  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;
1438
1674
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1439
1675
  },
1676
+ /**
1677
+ * create a MinIO service account access key
1678
+ * @summary Create MinIO access key
1679
+ * @param {string} engineName name of the engine
1680
+ * @param {string} orgName name of the organization
1681
+ * @param {string} clusterName name of the cluster
1682
+ * @param {DmsServiceAccountCreateRequest} body
1683
+ * @param {*} [options] Override http request option.
1684
+ * @throws {RequiredError}
1685
+ */
1686
+ async createServiceAccount(engineName, orgName, clusterName, body, options) {
1687
+ var _a, _b, _c;
1688
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceAccount(engineName, orgName, clusterName, body, options);
1689
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1690
+ 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;
1691
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1692
+ },
1440
1693
  /**
1441
1694
  * delete an account in cluster
1442
1695
  * @summary Delete cluster account
@@ -1550,6 +1803,23 @@ const AccountApiFp = function (configuration) {
1550
1803
  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;
1551
1804
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1552
1805
  },
1806
+ /**
1807
+ * delete a MinIO service account access key
1808
+ * @summary Delete MinIO access key
1809
+ * @param {string} engineName name of the engine
1810
+ * @param {string} orgName name of the organization
1811
+ * @param {string} clusterName name of the cluster
1812
+ * @param {string} accessKey MinIO access key
1813
+ * @param {*} [options] Override http request option.
1814
+ * @throws {RequiredError}
1815
+ */
1816
+ async deleteServiceAccount(engineName, orgName, clusterName, accessKey, options) {
1817
+ var _a, _b, _c;
1818
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServiceAccount(engineName, orgName, clusterName, accessKey, options);
1819
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1820
+ 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;
1821
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1822
+ },
1553
1823
  /**
1554
1824
  * Get Hive accounts
1555
1825
  * @summary Get Hive accounts
@@ -1599,6 +1869,23 @@ const AccountApiFp = function (configuration) {
1599
1869
  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;
1600
1870
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1601
1871
  },
1872
+ /**
1873
+ * get a MinIO service account access key
1874
+ * @summary Get MinIO access key
1875
+ * @param {string} engineName name of the engine
1876
+ * @param {string} orgName name of the organization
1877
+ * @param {string} clusterName name of the cluster
1878
+ * @param {string} accessKey MinIO access key
1879
+ * @param {*} [options] Override http request option.
1880
+ * @throws {RequiredError}
1881
+ */
1882
+ async getServiceAccount(engineName, orgName, clusterName, accessKey, options) {
1883
+ var _a, _b, _c;
1884
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceAccount(engineName, orgName, clusterName, accessKey, options);
1885
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1886
+ 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;
1887
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1888
+ },
1602
1889
  /**
1603
1890
  * list accounts in cluster
1604
1891
  * @summary List cluster accounts
@@ -1675,6 +1962,23 @@ const AccountApiFp = function (configuration) {
1675
1962
  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;
1676
1963
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1677
1964
  },
1965
+ /**
1966
+ * list MinIO service account access keys
1967
+ * @summary List MinIO access keys
1968
+ * @param {string} engineName name of the engine
1969
+ * @param {string} orgName name of the organization
1970
+ * @param {string} clusterName name of the cluster
1971
+ * @param {string} [userName] MinIO user that owns the service accounts
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ async listServiceAccounts(engineName, orgName, clusterName, userName, options) {
1976
+ var _a, _b, _c;
1977
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceAccounts(engineName, orgName, clusterName, userName, options);
1978
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1979
+ 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;
1980
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1981
+ },
1678
1982
  /**
1679
1983
  * Create or update a Milvus native role and replace its privilege grants.
1680
1984
  * @summary Put Milvus role
@@ -1846,6 +2150,24 @@ const AccountApiFp = function (configuration) {
1846
2150
  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;
1847
2151
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1848
2152
  },
2153
+ /**
2154
+ * update a MinIO service account access key
2155
+ * @summary Update MinIO access key
2156
+ * @param {string} engineName name of the engine
2157
+ * @param {string} orgName name of the organization
2158
+ * @param {string} clusterName name of the cluster
2159
+ * @param {string} accessKey MinIO access key
2160
+ * @param {DmsServiceAccountUpdateRequest} body
2161
+ * @param {*} [options] Override http request option.
2162
+ * @throws {RequiredError}
2163
+ */
2164
+ async updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options) {
2165
+ var _a, _b, _c;
2166
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options);
2167
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2168
+ 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;
2169
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2170
+ },
1849
2171
  };
1850
2172
  };
1851
2173
  exports.AccountApiFp = AccountApiFp;
@@ -1906,6 +2228,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1906
2228
  createRabbitAccount(requestParameters, options) {
1907
2229
  return localVarFp.createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(axios, basePath));
1908
2230
  },
2231
+ /**
2232
+ * create a MinIO service account access key
2233
+ * @summary Create MinIO access key
2234
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
2235
+ * @param {*} [options] Override http request option.
2236
+ * @throws {RequiredError}
2237
+ */
2238
+ createServiceAccount(requestParameters, options) {
2239
+ return localVarFp.createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
2240
+ },
1909
2241
  /**
1910
2242
  * delete an account in cluster
1911
2243
  * @summary Delete cluster account
@@ -1976,6 +2308,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1976
2308
  deleteRabbitAccount(requestParameters, options) {
1977
2309
  return localVarFp.deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1978
2310
  },
2311
+ /**
2312
+ * delete a MinIO service account access key
2313
+ * @summary Delete MinIO access key
2314
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
2315
+ * @param {*} [options] Override http request option.
2316
+ * @throws {RequiredError}
2317
+ */
2318
+ deleteServiceAccount(requestParameters, options) {
2319
+ return localVarFp.deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
2320
+ },
1979
2321
  /**
1980
2322
  * Get Hive accounts
1981
2323
  * @summary Get Hive accounts
@@ -2006,6 +2348,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2006
2348
  getRootAccountPassword(requestParameters, options) {
2007
2349
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
2008
2350
  },
2351
+ /**
2352
+ * get a MinIO service account access key
2353
+ * @summary Get MinIO access key
2354
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
2355
+ * @param {*} [options] Override http request option.
2356
+ * @throws {RequiredError}
2357
+ */
2358
+ getServiceAccount(requestParameters, options) {
2359
+ return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
2360
+ },
2009
2361
  /**
2010
2362
  * list accounts in cluster
2011
2363
  * @summary List cluster accounts
@@ -2056,6 +2408,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2056
2408
  listRabbitAccounts(requestParameters, options) {
2057
2409
  return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
2058
2410
  },
2411
+ /**
2412
+ * list MinIO service account access keys
2413
+ * @summary List MinIO access keys
2414
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
2415
+ * @param {*} [options] Override http request option.
2416
+ * @throws {RequiredError}
2417
+ */
2418
+ listServiceAccounts(requestParameters, options) {
2419
+ return localVarFp.listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(axios, basePath));
2420
+ },
2059
2421
  /**
2060
2422
  * Create or update a Milvus native role and replace its privilege grants.
2061
2423
  * @summary Put Milvus role
@@ -2156,6 +2518,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2156
2518
  updateRabbitAccountPrivileges(requestParameters, options) {
2157
2519
  return localVarFp.updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(axios, basePath));
2158
2520
  },
2521
+ /**
2522
+ * update a MinIO service account access key
2523
+ * @summary Update MinIO access key
2524
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
2525
+ * @param {*} [options] Override http request option.
2526
+ * @throws {RequiredError}
2527
+ */
2528
+ updateServiceAccount(requestParameters, options) {
2529
+ return localVarFp.updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(axios, basePath));
2530
+ },
2159
2531
  };
2160
2532
  };
2161
2533
  exports.AccountApiFactory = AccountApiFactory;
@@ -2221,6 +2593,17 @@ class AccountApi extends base_1.BaseAPI {
2221
2593
  createRabbitAccount(requestParameters, options) {
2222
2594
  return (0, exports.AccountApiFp)(this.configuration).createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(this.axios, this.basePath));
2223
2595
  }
2596
+ /**
2597
+ * create a MinIO service account access key
2598
+ * @summary Create MinIO access key
2599
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
2600
+ * @param {*} [options] Override http request option.
2601
+ * @throws {RequiredError}
2602
+ * @memberof AccountApi
2603
+ */
2604
+ createServiceAccount(requestParameters, options) {
2605
+ return (0, exports.AccountApiFp)(this.configuration).createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2606
+ }
2224
2607
  /**
2225
2608
  * delete an account in cluster
2226
2609
  * @summary Delete cluster account
@@ -2298,6 +2681,17 @@ class AccountApi extends base_1.BaseAPI {
2298
2681
  deleteRabbitAccount(requestParameters, options) {
2299
2682
  return (0, exports.AccountApiFp)(this.configuration).deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2300
2683
  }
2684
+ /**
2685
+ * delete a MinIO service account access key
2686
+ * @summary Delete MinIO access key
2687
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
2688
+ * @param {*} [options] Override http request option.
2689
+ * @throws {RequiredError}
2690
+ * @memberof AccountApi
2691
+ */
2692
+ deleteServiceAccount(requestParameters, options) {
2693
+ return (0, exports.AccountApiFp)(this.configuration).deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
2694
+ }
2301
2695
  /**
2302
2696
  * Get Hive accounts
2303
2697
  * @summary Get Hive accounts
@@ -2331,6 +2725,17 @@ class AccountApi extends base_1.BaseAPI {
2331
2725
  getRootAccountPassword(requestParameters, options) {
2332
2726
  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));
2333
2727
  }
2728
+ /**
2729
+ * get a MinIO service account access key
2730
+ * @summary Get MinIO access key
2731
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
2732
+ * @param {*} [options] Override http request option.
2733
+ * @throws {RequiredError}
2734
+ * @memberof AccountApi
2735
+ */
2736
+ getServiceAccount(requestParameters, options) {
2737
+ return (0, exports.AccountApiFp)(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
2738
+ }
2334
2739
  /**
2335
2740
  * list accounts in cluster
2336
2741
  * @summary List cluster accounts
@@ -2386,6 +2791,17 @@ class AccountApi extends base_1.BaseAPI {
2386
2791
  listRabbitAccounts(requestParameters, options) {
2387
2792
  return (0, exports.AccountApiFp)(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
2388
2793
  }
2794
+ /**
2795
+ * list MinIO service account access keys
2796
+ * @summary List MinIO access keys
2797
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
2798
+ * @param {*} [options] Override http request option.
2799
+ * @throws {RequiredError}
2800
+ * @memberof AccountApi
2801
+ */
2802
+ listServiceAccounts(requestParameters, options) {
2803
+ return (0, exports.AccountApiFp)(this.configuration).listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(this.axios, this.basePath));
2804
+ }
2389
2805
  /**
2390
2806
  * Create or update a Milvus native role and replace its privilege grants.
2391
2807
  * @summary Put Milvus role
@@ -2496,6 +2912,17 @@ class AccountApi extends base_1.BaseAPI {
2496
2912
  updateRabbitAccountPrivileges(requestParameters, options) {
2497
2913
  return (0, exports.AccountApiFp)(this.configuration).updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(this.axios, this.basePath));
2498
2914
  }
2915
+ /**
2916
+ * update a MinIO service account access key
2917
+ * @summary Update MinIO access key
2918
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
2919
+ * @param {*} [options] Override http request option.
2920
+ * @throws {RequiredError}
2921
+ * @memberof AccountApi
2922
+ */
2923
+ updateServiceAccount(requestParameters, options) {
2924
+ 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));
2925
+ }
2499
2926
  }
2500
2927
  exports.AccountApi = AccountApi;
2501
2928
  //# sourceMappingURL=account-api.js.map