kb-cloud-client-typescript 2.2.96 → 2.2.98

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 (85) 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/dist/openapi/apis/account-api.d.ts +406 -0
  34. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  35. package/dist/openapi/apis/account-api.js +427 -0
  36. package/dist/openapi/apis/account-api.js.map +1 -1
  37. package/dist/openapi/apis/rdbms-api.d.ts +406 -0
  38. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  39. package/dist/openapi/apis/rdbms-api.js +427 -0
  40. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  41. package/dist/openapi/apis/shared-api.d.ts +406 -0
  42. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  43. package/dist/openapi/apis/shared-api.js +427 -0
  44. package/dist/openapi/apis/shared-api.js.map +1 -1
  45. package/dist/openapi/models/dms-service-account-create-request.d.ts +55 -0
  46. package/dist/openapi/models/dms-service-account-create-request.d.ts.map +1 -0
  47. package/dist/openapi/models/dms-service-account-create-request.js +16 -0
  48. package/dist/openapi/models/dms-service-account-create-request.js.map +1 -0
  49. package/dist/openapi/models/dms-service-account-status.d.ts +22 -0
  50. package/dist/openapi/models/dms-service-account-status.d.ts.map +1 -0
  51. package/dist/openapi/models/dms-service-account-status.js +26 -0
  52. package/dist/openapi/models/dms-service-account-status.js.map +1 -0
  53. package/dist/openapi/models/dms-service-account-update-request.d.ts +32 -0
  54. package/dist/openapi/models/dms-service-account-update-request.d.ts.map +1 -0
  55. package/dist/openapi/models/dms-service-account-update-request.js +16 -0
  56. package/dist/openapi/models/dms-service-account-update-request.js.map +1 -0
  57. package/dist/openapi/models/dms-service-account.d.ts +73 -0
  58. package/dist/openapi/models/dms-service-account.d.ts.map +1 -0
  59. package/dist/openapi/models/dms-service-account.js +16 -0
  60. package/dist/openapi/models/dms-service-account.js.map +1 -0
  61. package/dist/openapi/models/index.d.ts +4 -0
  62. package/dist/openapi/models/index.d.ts.map +1 -1
  63. package/dist/openapi/models/index.js +4 -0
  64. package/dist/openapi/models/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/adminapi/.openapi-generator/FILES +4 -0
  67. package/src/adminapi/apis/account-api.ts +703 -0
  68. package/src/adminapi/apis/rdbms-api.ts +703 -0
  69. package/src/adminapi/apis/shared-api.ts +703 -0
  70. package/src/adminapi/models/dms-service-account-create-request.ts +60 -0
  71. package/src/adminapi/models/dms-service-account-status.ts +31 -0
  72. package/src/adminapi/models/dms-service-account-update-request.ts +41 -0
  73. package/src/adminapi/models/dms-service-account.ts +78 -0
  74. package/src/adminapi/models/index.ts +4 -0
  75. package/src/adminapi.yaml +330 -0
  76. package/src/openapi/.openapi-generator/FILES +4 -0
  77. package/src/openapi/apis/account-api.ts +703 -0
  78. package/src/openapi/apis/rdbms-api.ts +703 -0
  79. package/src/openapi/apis/shared-api.ts +703 -0
  80. package/src/openapi/models/dms-service-account-create-request.ts +60 -0
  81. package/src/openapi/models/dms-service-account-status.ts +31 -0
  82. package/src/openapi/models/dms-service-account-update-request.ts +41 -0
  83. package/src/openapi/models/dms-service-account.ts +78 -0
  84. package/src/openapi/models/index.ts +4 -0
  85. package/src/openapi.yaml +330 -0
@@ -162,6 +162,53 @@ const AccountApiAxiosParamCreator = function (configuration) {
162
162
  options: localVarRequestOptions,
163
163
  };
164
164
  },
165
+ /**
166
+ * create a MinIO service account access key
167
+ * @summary Create MinIO access key
168
+ * @param {string} engineName name of the engine
169
+ * @param {string} orgName name of the organization
170
+ * @param {string} clusterName name of the cluster
171
+ * @param {DmsServiceAccountCreateRequest} body
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ createServiceAccount: async (engineName, orgName, clusterName, body, options = {}) => {
176
+ // verify required parameter 'engineName' is not null or undefined
177
+ (0, common_1.assertParamExists)('createServiceAccount', 'engineName', engineName);
178
+ // verify required parameter 'orgName' is not null or undefined
179
+ (0, common_1.assertParamExists)('createServiceAccount', 'orgName', orgName);
180
+ // verify required parameter 'clusterName' is not null or undefined
181
+ (0, common_1.assertParamExists)('createServiceAccount', 'clusterName', clusterName);
182
+ // verify required parameter 'body' is not null or undefined
183
+ (0, common_1.assertParamExists)('createServiceAccount', 'body', body);
184
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
185
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
186
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
187
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
190
+ let baseOptions;
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ }
194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
195
+ const localVarHeaderParameter = {};
196
+ const localVarQueryParameter = {};
197
+ // authentication BearerToken required
198
+ // http bearer authentication required
199
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
200
+ // authentication DigestAuth required
201
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
202
+ localVarHeaderParameter['Content-Type'] = 'application/json';
203
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
204
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
205
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
206
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
207
+ return {
208
+ url: (0, common_1.toPathString)(localVarUrlObj),
209
+ options: localVarRequestOptions,
210
+ };
211
+ },
165
212
  /**
166
213
  * delete an account in cluster
167
214
  * @summary Delete cluster account
@@ -378,6 +425,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
378
425
  options: localVarRequestOptions,
379
426
  };
380
427
  },
428
+ /**
429
+ * delete a MinIO service account access key
430
+ * @summary Delete MinIO access key
431
+ * @param {string} engineName name of the engine
432
+ * @param {string} orgName name of the organization
433
+ * @param {string} clusterName name of the cluster
434
+ * @param {string} accessKey MinIO access key
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ deleteServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
439
+ // verify required parameter 'engineName' is not null or undefined
440
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'engineName', engineName);
441
+ // verify required parameter 'orgName' is not null or undefined
442
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'orgName', orgName);
443
+ // verify required parameter 'clusterName' is not null or undefined
444
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'clusterName', clusterName);
445
+ // verify required parameter 'accessKey' is not null or undefined
446
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'accessKey', accessKey);
447
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
448
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
449
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
450
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
451
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
453
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
454
+ let baseOptions;
455
+ if (configuration) {
456
+ baseOptions = configuration.baseOptions;
457
+ }
458
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
459
+ const localVarHeaderParameter = {};
460
+ const localVarQueryParameter = {};
461
+ // authentication BearerToken required
462
+ // http bearer authentication required
463
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
464
+ // authentication DigestAuth required
465
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
466
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
469
+ return {
470
+ url: (0, common_1.toPathString)(localVarUrlObj),
471
+ options: localVarRequestOptions,
472
+ };
473
+ },
381
474
  /**
382
475
  * Get a Milvus native role and its privilege grants.
383
476
  * @summary Get Milvus role
@@ -472,6 +565,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
472
565
  options: localVarRequestOptions,
473
566
  };
474
567
  },
568
+ /**
569
+ * get a MinIO service account access key
570
+ * @summary Get MinIO access key
571
+ * @param {string} engineName name of the engine
572
+ * @param {string} orgName name of the organization
573
+ * @param {string} clusterName name of the cluster
574
+ * @param {string} accessKey MinIO access key
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ getServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
579
+ // verify required parameter 'engineName' is not null or undefined
580
+ (0, common_1.assertParamExists)('getServiceAccount', 'engineName', engineName);
581
+ // verify required parameter 'orgName' is not null or undefined
582
+ (0, common_1.assertParamExists)('getServiceAccount', 'orgName', orgName);
583
+ // verify required parameter 'clusterName' is not null or undefined
584
+ (0, common_1.assertParamExists)('getServiceAccount', 'clusterName', clusterName);
585
+ // verify required parameter 'accessKey' is not null or undefined
586
+ (0, common_1.assertParamExists)('getServiceAccount', 'accessKey', accessKey);
587
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
588
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
589
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
590
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
591
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
592
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
593
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
594
+ let baseOptions;
595
+ if (configuration) {
596
+ baseOptions = configuration.baseOptions;
597
+ }
598
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
599
+ const localVarHeaderParameter = {};
600
+ const localVarQueryParameter = {};
601
+ // authentication BearerToken required
602
+ // http bearer authentication required
603
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
604
+ // authentication DigestAuth required
605
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
606
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
608
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
609
+ return {
610
+ url: (0, common_1.toPathString)(localVarUrlObj),
611
+ options: localVarRequestOptions,
612
+ };
613
+ },
475
614
  /**
476
615
  * list accounts in cluster
477
616
  * @summary List cluster accounts
@@ -628,6 +767,52 @@ const AccountApiAxiosParamCreator = function (configuration) {
628
767
  options: localVarRequestOptions,
629
768
  };
630
769
  },
770
+ /**
771
+ * list MinIO service account access keys
772
+ * @summary List MinIO access keys
773
+ * @param {string} engineName name of the engine
774
+ * @param {string} orgName name of the organization
775
+ * @param {string} clusterName name of the cluster
776
+ * @param {string} [userName] MinIO user that owns the service accounts
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ listServiceAccounts: async (engineName, orgName, clusterName, userName, options = {}) => {
781
+ // verify required parameter 'engineName' is not null or undefined
782
+ (0, common_1.assertParamExists)('listServiceAccounts', 'engineName', engineName);
783
+ // verify required parameter 'orgName' is not null or undefined
784
+ (0, common_1.assertParamExists)('listServiceAccounts', 'orgName', orgName);
785
+ // verify required parameter 'clusterName' is not null or undefined
786
+ (0, common_1.assertParamExists)('listServiceAccounts', 'clusterName', clusterName);
787
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
788
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
789
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
790
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
791
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
792
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
793
+ let baseOptions;
794
+ if (configuration) {
795
+ baseOptions = configuration.baseOptions;
796
+ }
797
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
798
+ const localVarHeaderParameter = {};
799
+ const localVarQueryParameter = {};
800
+ // authentication BearerToken required
801
+ // http bearer authentication required
802
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
803
+ // authentication DigestAuth required
804
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
805
+ if (userName !== undefined) {
806
+ localVarQueryParameter['userName'] = userName;
807
+ }
808
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
809
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
810
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
811
+ return {
812
+ url: (0, common_1.toPathString)(localVarUrlObj),
813
+ options: localVarRequestOptions,
814
+ };
815
+ },
631
816
  /**
632
817
  * Create or update a Milvus native role and replace its privilege grants.
633
818
  * @summary Put Milvus role
@@ -1006,6 +1191,57 @@ const AccountApiAxiosParamCreator = function (configuration) {
1006
1191
  options: localVarRequestOptions,
1007
1192
  };
1008
1193
  },
1194
+ /**
1195
+ * update a MinIO service account access key
1196
+ * @summary Update MinIO access key
1197
+ * @param {string} engineName name of the engine
1198
+ * @param {string} orgName name of the organization
1199
+ * @param {string} clusterName name of the cluster
1200
+ * @param {string} accessKey MinIO access key
1201
+ * @param {DmsServiceAccountUpdateRequest} body
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ */
1205
+ updateServiceAccount: async (engineName, orgName, clusterName, accessKey, body, options = {}) => {
1206
+ // verify required parameter 'engineName' is not null or undefined
1207
+ (0, common_1.assertParamExists)('updateServiceAccount', 'engineName', engineName);
1208
+ // verify required parameter 'orgName' is not null or undefined
1209
+ (0, common_1.assertParamExists)('updateServiceAccount', 'orgName', orgName);
1210
+ // verify required parameter 'clusterName' is not null or undefined
1211
+ (0, common_1.assertParamExists)('updateServiceAccount', 'clusterName', clusterName);
1212
+ // verify required parameter 'accessKey' is not null or undefined
1213
+ (0, common_1.assertParamExists)('updateServiceAccount', 'accessKey', accessKey);
1214
+ // verify required parameter 'body' is not null or undefined
1215
+ (0, common_1.assertParamExists)('updateServiceAccount', 'body', body);
1216
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
1217
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1218
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1219
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1220
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
1221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1222
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1223
+ let baseOptions;
1224
+ if (configuration) {
1225
+ baseOptions = configuration.baseOptions;
1226
+ }
1227
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1228
+ const localVarHeaderParameter = {};
1229
+ const localVarQueryParameter = {};
1230
+ // authentication BearerToken required
1231
+ // http bearer authentication required
1232
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1233
+ // authentication DigestAuth required
1234
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1235
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1236
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1239
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1240
+ return {
1241
+ url: (0, common_1.toPathString)(localVarUrlObj),
1242
+ options: localVarRequestOptions,
1243
+ };
1244
+ },
1009
1245
  };
1010
1246
  };
1011
1247
  exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
@@ -1065,6 +1301,23 @@ const AccountApiFp = function (configuration) {
1065
1301
  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;
1066
1302
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1067
1303
  },
1304
+ /**
1305
+ * create a MinIO service account access key
1306
+ * @summary Create MinIO access key
1307
+ * @param {string} engineName name of the engine
1308
+ * @param {string} orgName name of the organization
1309
+ * @param {string} clusterName name of the cluster
1310
+ * @param {DmsServiceAccountCreateRequest} body
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ async createServiceAccount(engineName, orgName, clusterName, body, options) {
1315
+ var _a, _b, _c;
1316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceAccount(engineName, orgName, clusterName, body, options);
1317
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1318
+ 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;
1319
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1320
+ },
1068
1321
  /**
1069
1322
  * delete an account in cluster
1070
1323
  * @summary Delete cluster account
@@ -1146,6 +1399,23 @@ const AccountApiFp = function (configuration) {
1146
1399
  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;
1147
1400
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1148
1401
  },
1402
+ /**
1403
+ * delete a MinIO service account access key
1404
+ * @summary Delete MinIO access key
1405
+ * @param {string} engineName name of the engine
1406
+ * @param {string} orgName name of the organization
1407
+ * @param {string} clusterName name of the cluster
1408
+ * @param {string} accessKey MinIO access key
1409
+ * @param {*} [options] Override http request option.
1410
+ * @throws {RequiredError}
1411
+ */
1412
+ async deleteServiceAccount(engineName, orgName, clusterName, accessKey, options) {
1413
+ var _a, _b, _c;
1414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServiceAccount(engineName, orgName, clusterName, accessKey, options);
1415
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1416
+ 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;
1417
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1418
+ },
1149
1419
  /**
1150
1420
  * Get a Milvus native role and its privilege grants.
1151
1421
  * @summary Get Milvus role
@@ -1180,6 +1450,23 @@ const AccountApiFp = function (configuration) {
1180
1450
  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;
1181
1451
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1182
1452
  },
1453
+ /**
1454
+ * get a MinIO service account access key
1455
+ * @summary Get MinIO access key
1456
+ * @param {string} engineName name of the engine
1457
+ * @param {string} orgName name of the organization
1458
+ * @param {string} clusterName name of the cluster
1459
+ * @param {string} accessKey MinIO access key
1460
+ * @param {*} [options] Override http request option.
1461
+ * @throws {RequiredError}
1462
+ */
1463
+ async getServiceAccount(engineName, orgName, clusterName, accessKey, options) {
1464
+ var _a, _b, _c;
1465
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceAccount(engineName, orgName, clusterName, accessKey, options);
1466
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1467
+ 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;
1468
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1469
+ },
1183
1470
  /**
1184
1471
  * list accounts in cluster
1185
1472
  * @summary List cluster accounts
@@ -1241,6 +1528,23 @@ const AccountApiFp = function (configuration) {
1241
1528
  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;
1242
1529
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1243
1530
  },
1531
+ /**
1532
+ * list MinIO service account access keys
1533
+ * @summary List MinIO access keys
1534
+ * @param {string} engineName name of the engine
1535
+ * @param {string} orgName name of the organization
1536
+ * @param {string} clusterName name of the cluster
1537
+ * @param {string} [userName] MinIO user that owns the service accounts
1538
+ * @param {*} [options] Override http request option.
1539
+ * @throws {RequiredError}
1540
+ */
1541
+ async listServiceAccounts(engineName, orgName, clusterName, userName, options) {
1542
+ var _a, _b, _c;
1543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceAccounts(engineName, orgName, clusterName, userName, options);
1544
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1545
+ 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;
1546
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1547
+ },
1244
1548
  /**
1245
1549
  * Create or update a Milvus native role and replace its privilege grants.
1246
1550
  * @summary Put Milvus role
@@ -1378,6 +1682,24 @@ const AccountApiFp = function (configuration) {
1378
1682
  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;
1379
1683
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1380
1684
  },
1685
+ /**
1686
+ * update a MinIO service account access key
1687
+ * @summary Update MinIO access key
1688
+ * @param {string} engineName name of the engine
1689
+ * @param {string} orgName name of the organization
1690
+ * @param {string} clusterName name of the cluster
1691
+ * @param {string} accessKey MinIO access key
1692
+ * @param {DmsServiceAccountUpdateRequest} body
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ */
1696
+ async updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options) {
1697
+ var _a, _b, _c;
1698
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options);
1699
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1700
+ 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;
1701
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1702
+ },
1381
1703
  };
1382
1704
  };
1383
1705
  exports.AccountApiFp = AccountApiFp;
@@ -1418,6 +1740,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1418
1740
  createRabbitAccount(requestParameters, options) {
1419
1741
  return localVarFp.createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(axios, basePath));
1420
1742
  },
1743
+ /**
1744
+ * create a MinIO service account access key
1745
+ * @summary Create MinIO access key
1746
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
1747
+ * @param {*} [options] Override http request option.
1748
+ * @throws {RequiredError}
1749
+ */
1750
+ createServiceAccount(requestParameters, options) {
1751
+ return localVarFp.createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
1752
+ },
1421
1753
  /**
1422
1754
  * delete an account in cluster
1423
1755
  * @summary Delete cluster account
@@ -1468,6 +1800,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1468
1800
  deleteRabbitAccount(requestParameters, options) {
1469
1801
  return localVarFp.deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1470
1802
  },
1803
+ /**
1804
+ * delete a MinIO service account access key
1805
+ * @summary Delete MinIO access key
1806
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
1807
+ * @param {*} [options] Override http request option.
1808
+ * @throws {RequiredError}
1809
+ */
1810
+ deleteServiceAccount(requestParameters, options) {
1811
+ return localVarFp.deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
1812
+ },
1471
1813
  /**
1472
1814
  * Get a Milvus native role and its privilege grants.
1473
1815
  * @summary Get Milvus role
@@ -1488,6 +1830,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1488
1830
  getRootAccountPassword(requestParameters, options) {
1489
1831
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
1490
1832
  },
1833
+ /**
1834
+ * get a MinIO service account access key
1835
+ * @summary Get MinIO access key
1836
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
1837
+ * @param {*} [options] Override http request option.
1838
+ * @throws {RequiredError}
1839
+ */
1840
+ getServiceAccount(requestParameters, options) {
1841
+ return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
1842
+ },
1491
1843
  /**
1492
1844
  * list accounts in cluster
1493
1845
  * @summary List cluster accounts
@@ -1528,6 +1880,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1528
1880
  listRabbitAccounts(requestParameters, options) {
1529
1881
  return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1530
1882
  },
1883
+ /**
1884
+ * list MinIO service account access keys
1885
+ * @summary List MinIO access keys
1886
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
1887
+ * @param {*} [options] Override http request option.
1888
+ * @throws {RequiredError}
1889
+ */
1890
+ listServiceAccounts(requestParameters, options) {
1891
+ return localVarFp.listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(axios, basePath));
1892
+ },
1531
1893
  /**
1532
1894
  * Create or update a Milvus native role and replace its privilege grants.
1533
1895
  * @summary Put Milvus role
@@ -1608,6 +1970,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1608
1970
  updateRabbitAccountPrivileges(requestParameters, options) {
1609
1971
  return localVarFp.updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(axios, basePath));
1610
1972
  },
1973
+ /**
1974
+ * update a MinIO service account access key
1975
+ * @summary Update MinIO access key
1976
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
1977
+ * @param {*} [options] Override http request option.
1978
+ * @throws {RequiredError}
1979
+ */
1980
+ updateServiceAccount(requestParameters, options) {
1981
+ return localVarFp.updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(axios, basePath));
1982
+ },
1611
1983
  };
1612
1984
  };
1613
1985
  exports.AccountApiFactory = AccountApiFactory;
@@ -1651,6 +2023,17 @@ class AccountApi extends base_1.BaseAPI {
1651
2023
  createRabbitAccount(requestParameters, options) {
1652
2024
  return (0, exports.AccountApiFp)(this.configuration).createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(this.axios, this.basePath));
1653
2025
  }
2026
+ /**
2027
+ * create a MinIO service account access key
2028
+ * @summary Create MinIO access key
2029
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
2030
+ * @param {*} [options] Override http request option.
2031
+ * @throws {RequiredError}
2032
+ * @memberof AccountApi
2033
+ */
2034
+ createServiceAccount(requestParameters, options) {
2035
+ return (0, exports.AccountApiFp)(this.configuration).createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2036
+ }
1654
2037
  /**
1655
2038
  * delete an account in cluster
1656
2039
  * @summary Delete cluster account
@@ -1706,6 +2089,17 @@ class AccountApi extends base_1.BaseAPI {
1706
2089
  deleteRabbitAccount(requestParameters, options) {
1707
2090
  return (0, exports.AccountApiFp)(this.configuration).deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1708
2091
  }
2092
+ /**
2093
+ * delete a MinIO service account access key
2094
+ * @summary Delete MinIO access key
2095
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
2096
+ * @param {*} [options] Override http request option.
2097
+ * @throws {RequiredError}
2098
+ * @memberof AccountApi
2099
+ */
2100
+ deleteServiceAccount(requestParameters, options) {
2101
+ return (0, exports.AccountApiFp)(this.configuration).deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
2102
+ }
1709
2103
  /**
1710
2104
  * Get a Milvus native role and its privilege grants.
1711
2105
  * @summary Get Milvus role
@@ -1728,6 +2122,17 @@ class AccountApi extends base_1.BaseAPI {
1728
2122
  getRootAccountPassword(requestParameters, options) {
1729
2123
  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));
1730
2124
  }
2125
+ /**
2126
+ * get a MinIO service account access key
2127
+ * @summary Get MinIO access key
2128
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
2129
+ * @param {*} [options] Override http request option.
2130
+ * @throws {RequiredError}
2131
+ * @memberof AccountApi
2132
+ */
2133
+ getServiceAccount(requestParameters, options) {
2134
+ return (0, exports.AccountApiFp)(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
2135
+ }
1731
2136
  /**
1732
2137
  * list accounts in cluster
1733
2138
  * @summary List cluster accounts
@@ -1772,6 +2177,17 @@ class AccountApi extends base_1.BaseAPI {
1772
2177
  listRabbitAccounts(requestParameters, options) {
1773
2178
  return (0, exports.AccountApiFp)(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1774
2179
  }
2180
+ /**
2181
+ * list MinIO service account access keys
2182
+ * @summary List MinIO access keys
2183
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
2184
+ * @param {*} [options] Override http request option.
2185
+ * @throws {RequiredError}
2186
+ * @memberof AccountApi
2187
+ */
2188
+ listServiceAccounts(requestParameters, options) {
2189
+ return (0, exports.AccountApiFp)(this.configuration).listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(this.axios, this.basePath));
2190
+ }
1775
2191
  /**
1776
2192
  * Create or update a Milvus native role and replace its privilege grants.
1777
2193
  * @summary Put Milvus role
@@ -1860,6 +2276,17 @@ class AccountApi extends base_1.BaseAPI {
1860
2276
  updateRabbitAccountPrivileges(requestParameters, options) {
1861
2277
  return (0, exports.AccountApiFp)(this.configuration).updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(this.axios, this.basePath));
1862
2278
  }
2279
+ /**
2280
+ * update a MinIO service account access key
2281
+ * @summary Update MinIO access key
2282
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
2283
+ * @param {*} [options] Override http request option.
2284
+ * @throws {RequiredError}
2285
+ * @memberof AccountApi
2286
+ */
2287
+ updateServiceAccount(requestParameters, options) {
2288
+ 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));
2289
+ }
1863
2290
  }
1864
2291
  exports.AccountApi = AccountApi;
1865
2292
  //# sourceMappingURL=account-api.js.map