kb-cloud-client-typescript 2.2.125 → 2.2.126

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/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/account-api.d.ts +906 -6
  6. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/account-api.js +981 -0
  8. package/dist/adminapi/apis/account-api.js.map +1 -1
  9. package/dist/adminapi/apis/seaweedfs-api.d.ts +951 -0
  10. package/dist/adminapi/apis/seaweedfs-api.d.ts.map +1 -0
  11. package/dist/adminapi/apis/seaweedfs-api.js +1045 -0
  12. package/dist/adminapi/apis/seaweedfs-api.js.map +1 -0
  13. package/dist/adminapi/apis/shared-api.d.ts +905 -5
  14. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  15. package/dist/adminapi/apis/shared-api.js +992 -11
  16. package/dist/adminapi/apis/shared-api.js.map +1 -1
  17. package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
  18. package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
  19. package/dist/adminapi/models/bind-seaweed-fspolicies-request.js +16 -0
  20. package/dist/adminapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
  21. package/dist/adminapi/models/index.d.ts +3 -0
  22. package/dist/adminapi/models/index.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.js +3 -0
  24. package/dist/adminapi/models/index.js.map +1 -1
  25. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
  26. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
  27. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
  28. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
  29. package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
  30. package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
  31. package/dist/adminapi/models/list-seaweed-fspolicies200-response.js +16 -0
  32. package/dist/adminapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
  33. package/dist/openapi/api.d.ts +1 -0
  34. package/dist/openapi/api.d.ts.map +1 -1
  35. package/dist/openapi/api.js +1 -0
  36. package/dist/openapi/api.js.map +1 -1
  37. package/dist/openapi/apis/account-api.d.ts +906 -6
  38. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  39. package/dist/openapi/apis/account-api.js +981 -0
  40. package/dist/openapi/apis/account-api.js.map +1 -1
  41. package/dist/openapi/apis/seaweedfs-api.d.ts +951 -0
  42. package/dist/openapi/apis/seaweedfs-api.d.ts.map +1 -0
  43. package/dist/openapi/apis/seaweedfs-api.js +1045 -0
  44. package/dist/openapi/apis/seaweedfs-api.js.map +1 -0
  45. package/dist/openapi/apis/shared-api.d.ts +905 -5
  46. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/shared-api.js +992 -11
  48. package/dist/openapi/apis/shared-api.js.map +1 -1
  49. package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
  50. package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
  51. package/dist/openapi/models/bind-seaweed-fspolicies-request.js +16 -0
  52. package/dist/openapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
  53. package/dist/openapi/models/index.d.ts +3 -0
  54. package/dist/openapi/models/index.d.ts.map +1 -1
  55. package/dist/openapi/models/index.js +3 -0
  56. package/dist/openapi/models/index.js.map +1 -1
  57. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
  58. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
  59. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
  60. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
  61. package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
  62. package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
  63. package/dist/openapi/models/list-seaweed-fspolicies200-response.js +16 -0
  64. package/dist/openapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
  65. package/package.json +1 -1
  66. package/src/adminapi/.openapi-generator/FILES +4 -0
  67. package/src/adminapi/api.ts +1 -0
  68. package/src/adminapi/apis/account-api.ts +1674 -106
  69. package/src/adminapi/apis/seaweedfs-api.ts +1644 -0
  70. package/src/adminapi/apis/shared-api.ts +1914 -346
  71. package/src/adminapi/models/bind-seaweed-fspolicies-request.ts +30 -0
  72. package/src/adminapi/models/index.ts +3 -0
  73. package/src/adminapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
  74. package/src/adminapi/models/list-seaweed-fspolicies200-response.ts +33 -0
  75. package/src/adminapi.yaml +562 -0
  76. package/src/openapi/.openapi-generator/FILES +4 -0
  77. package/src/openapi/api.ts +1 -0
  78. package/src/openapi/apis/account-api.ts +1623 -55
  79. package/src/openapi/apis/seaweedfs-api.ts +1644 -0
  80. package/src/openapi/apis/shared-api.ts +1776 -208
  81. package/src/openapi/models/bind-seaweed-fspolicies-request.ts +30 -0
  82. package/src/openapi/models/index.ts +3 -0
  83. package/src/openapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
  84. package/src/openapi/models/list-seaweed-fspolicies200-response.ts +33 -0
  85. package/src/openapi.yaml +562 -0
@@ -396,6 +396,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
396
396
  options: localVarRequestOptions,
397
397
  };
398
398
  },
399
+ /**
400
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
401
+ * @summary bindSeaweedFSPolicies
402
+ * @param {string} orgName
403
+ * @param {string} clusterName
404
+ * @param {string} accountName
405
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ bindSeaweedFSPolicies: async (orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options = {}) => {
410
+ // verify required parameter 'orgName' is not null or undefined
411
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'orgName', orgName);
412
+ // verify required parameter 'clusterName' is not null or undefined
413
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'clusterName', clusterName);
414
+ // verify required parameter 'accountName' is not null or undefined
415
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'accountName', accountName);
416
+ // verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
417
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest);
418
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
419
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
420
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
421
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
422
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
423
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
424
+ let baseOptions;
425
+ if (configuration) {
426
+ baseOptions = configuration.baseOptions;
427
+ }
428
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
429
+ const localVarHeaderParameter = {};
430
+ const localVarQueryParameter = {};
431
+ // authentication BearerToken required
432
+ // http bearer authentication required
433
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
434
+ // authentication DigestAuth required
435
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
436
+ localVarHeaderParameter['Content-Type'] = 'application/json';
437
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
438
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
439
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
440
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration);
441
+ return {
442
+ url: (0, common_1.toPathString)(localVarUrlObj),
443
+ options: localVarRequestOptions,
444
+ };
445
+ },
399
446
  /**
400
447
  *
401
448
  * @summary build backup object with a existing backup directory
@@ -1277,6 +1324,96 @@ const SharedApiAxiosParamCreator = function (configuration) {
1277
1324
  options: localVarRequestOptions,
1278
1325
  };
1279
1326
  },
1327
+ /**
1328
+ * Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
1329
+ * @summary createSeaweedFSAccessKey
1330
+ * @param {string} orgName
1331
+ * @param {string} clusterName
1332
+ * @param {string} accountName
1333
+ * @param {Account} account
1334
+ * @param {*} [options] Override http request option.
1335
+ * @throws {RequiredError}
1336
+ */
1337
+ createSeaweedFSAccessKey: async (orgName, clusterName, accountName, account, options = {}) => {
1338
+ // verify required parameter 'orgName' is not null or undefined
1339
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'orgName', orgName);
1340
+ // verify required parameter 'clusterName' is not null or undefined
1341
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'clusterName', clusterName);
1342
+ // verify required parameter 'accountName' is not null or undefined
1343
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'accountName', accountName);
1344
+ // verify required parameter 'account' is not null or undefined
1345
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'account', account);
1346
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
1347
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1348
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1349
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1350
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1351
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1352
+ let baseOptions;
1353
+ if (configuration) {
1354
+ baseOptions = configuration.baseOptions;
1355
+ }
1356
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1357
+ const localVarHeaderParameter = {};
1358
+ const localVarQueryParameter = {};
1359
+ // authentication BearerToken required
1360
+ // http bearer authentication required
1361
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1362
+ // authentication DigestAuth required
1363
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1364
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1365
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1367
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1368
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(account, localVarRequestOptions, configuration);
1369
+ return {
1370
+ url: (0, common_1.toPathString)(localVarUrlObj),
1371
+ options: localVarRequestOptions,
1372
+ };
1373
+ },
1374
+ /**
1375
+ * Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
1376
+ * @summary createSeaweedFSAccount
1377
+ * @param {string} orgName name of the organization
1378
+ * @param {string} clusterName name of the cluster
1379
+ * @param {Account} body
1380
+ * @param {*} [options] Override http request option.
1381
+ * @throws {RequiredError}
1382
+ */
1383
+ createSeaweedFSAccount: async (orgName, clusterName, body, options = {}) => {
1384
+ // verify required parameter 'orgName' is not null or undefined
1385
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'orgName', orgName);
1386
+ // verify required parameter 'clusterName' is not null or undefined
1387
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'clusterName', clusterName);
1388
+ // verify required parameter 'body' is not null or undefined
1389
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'body', body);
1390
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
1391
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1392
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1393
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1394
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1395
+ let baseOptions;
1396
+ if (configuration) {
1397
+ baseOptions = configuration.baseOptions;
1398
+ }
1399
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1400
+ const localVarHeaderParameter = {};
1401
+ const localVarQueryParameter = {};
1402
+ // authentication BearerToken required
1403
+ // http bearer authentication required
1404
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1405
+ // authentication DigestAuth required
1406
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1407
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1408
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1410
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1411
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1412
+ return {
1413
+ url: (0, common_1.toPathString)(localVarUrlObj),
1414
+ options: localVarRequestOptions,
1415
+ };
1416
+ },
1280
1417
  /**
1281
1418
  * create a MinIO service account access key
1282
1419
  * @summary Create MinIO access key
@@ -2771,6 +2908,136 @@ const SharedApiAxiosParamCreator = function (configuration) {
2771
2908
  options: localVarRequestOptions,
2772
2909
  };
2773
2910
  },
2911
+ /**
2912
+ *
2913
+ * @summary deleteSeaweedFSAccessKey
2914
+ * @param {string} orgName
2915
+ * @param {string} clusterName
2916
+ * @param {string} accountName
2917
+ * @param {string} accessKey
2918
+ * @param {*} [options] Override http request option.
2919
+ * @throws {RequiredError}
2920
+ */
2921
+ deleteSeaweedFSAccessKey: async (orgName, clusterName, accountName, accessKey, options = {}) => {
2922
+ // verify required parameter 'orgName' is not null or undefined
2923
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'orgName', orgName);
2924
+ // verify required parameter 'clusterName' is not null or undefined
2925
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'clusterName', clusterName);
2926
+ // verify required parameter 'accountName' is not null or undefined
2927
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accountName', accountName);
2928
+ // verify required parameter 'accessKey' is not null or undefined
2929
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accessKey', accessKey);
2930
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
2931
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2932
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2933
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
2934
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
2935
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2936
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2937
+ let baseOptions;
2938
+ if (configuration) {
2939
+ baseOptions = configuration.baseOptions;
2940
+ }
2941
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2942
+ const localVarHeaderParameter = {};
2943
+ const localVarQueryParameter = {};
2944
+ // authentication BearerToken required
2945
+ // http bearer authentication required
2946
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2947
+ // authentication DigestAuth required
2948
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2949
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2950
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2951
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2952
+ return {
2953
+ url: (0, common_1.toPathString)(localVarUrlObj),
2954
+ options: localVarRequestOptions,
2955
+ };
2956
+ },
2957
+ /**
2958
+ * delete an account in cluster
2959
+ * @summary deleteSeaweedFSAccount
2960
+ * @param {string} orgName name of the organization
2961
+ * @param {string} clusterName name of the cluster
2962
+ * @param {string} accountName name of the account
2963
+ * @param {*} [options] Override http request option.
2964
+ * @throws {RequiredError}
2965
+ */
2966
+ deleteSeaweedFSAccount: async (orgName, clusterName, accountName, options = {}) => {
2967
+ // verify required parameter 'orgName' is not null or undefined
2968
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'orgName', orgName);
2969
+ // verify required parameter 'clusterName' is not null or undefined
2970
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'clusterName', clusterName);
2971
+ // verify required parameter 'accountName' is not null or undefined
2972
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'accountName', accountName);
2973
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
2974
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2975
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2976
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
2977
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2978
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2979
+ let baseOptions;
2980
+ if (configuration) {
2981
+ baseOptions = configuration.baseOptions;
2982
+ }
2983
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2984
+ const localVarHeaderParameter = {};
2985
+ const localVarQueryParameter = {};
2986
+ // authentication BearerToken required
2987
+ // http bearer authentication required
2988
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2989
+ // authentication DigestAuth required
2990
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2991
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2993
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2994
+ return {
2995
+ url: (0, common_1.toPathString)(localVarUrlObj),
2996
+ options: localVarRequestOptions,
2997
+ };
2998
+ },
2999
+ /**
3000
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
3001
+ * @summary deleteSeaweedFSPolicy
3002
+ * @param {string} orgName
3003
+ * @param {string} clusterName
3004
+ * @param {string} policyName
3005
+ * @param {*} [options] Override http request option.
3006
+ * @throws {RequiredError}
3007
+ */
3008
+ deleteSeaweedFSPolicy: async (orgName, clusterName, policyName, options = {}) => {
3009
+ // verify required parameter 'orgName' is not null or undefined
3010
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'orgName', orgName);
3011
+ // verify required parameter 'clusterName' is not null or undefined
3012
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'clusterName', clusterName);
3013
+ // verify required parameter 'policyName' is not null or undefined
3014
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'policyName', policyName);
3015
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
3016
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3017
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3018
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
3019
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3020
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3021
+ let baseOptions;
3022
+ if (configuration) {
3023
+ baseOptions = configuration.baseOptions;
3024
+ }
3025
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3026
+ const localVarHeaderParameter = {};
3027
+ const localVarQueryParameter = {};
3028
+ // authentication BearerToken required
3029
+ // http bearer authentication required
3030
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3031
+ // authentication DigestAuth required
3032
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3033
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3034
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3035
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3036
+ return {
3037
+ url: (0, common_1.toPathString)(localVarUrlObj),
3038
+ options: localVarRequestOptions,
3039
+ };
3040
+ },
2774
3041
  /**
2775
3042
  * delete a MinIO service account access key
2776
3043
  * @summary Delete MinIO access key
@@ -5287,6 +5554,54 @@ const SharedApiAxiosParamCreator = function (configuration) {
5287
5554
  options: localVarRequestOptions,
5288
5555
  };
5289
5556
  },
5557
+ /**
5558
+ * get root account password
5559
+ * @summary getRootSeaweedFSAccountPassword
5560
+ * @param {string} orgName name of the Org
5561
+ * @param {string} clusterName name of the Cluster
5562
+ * @param {string} accountName name of the account
5563
+ * @param {string} [component] name of the component
5564
+ * @param {*} [options] Override http request option.
5565
+ * @throws {RequiredError}
5566
+ */
5567
+ getRootSeaweedFSAccountPassword: async (orgName, clusterName, accountName, component, options = {}) => {
5568
+ // verify required parameter 'orgName' is not null or undefined
5569
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'orgName', orgName);
5570
+ // verify required parameter 'clusterName' is not null or undefined
5571
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'clusterName', clusterName);
5572
+ // verify required parameter 'accountName' is not null or undefined
5573
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'accountName', accountName);
5574
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
5575
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5576
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5577
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5578
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5579
+ let baseOptions;
5580
+ if (configuration) {
5581
+ baseOptions = configuration.baseOptions;
5582
+ }
5583
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5584
+ const localVarHeaderParameter = {};
5585
+ const localVarQueryParameter = {};
5586
+ // authentication BearerToken required
5587
+ // http bearer authentication required
5588
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5589
+ // authentication DigestAuth required
5590
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
5591
+ if (accountName !== undefined) {
5592
+ localVarQueryParameter['accountName'] = accountName;
5593
+ }
5594
+ if (component !== undefined) {
5595
+ localVarQueryParameter['component'] = component;
5596
+ }
5597
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5598
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5599
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5600
+ return {
5601
+ url: (0, common_1.toPathString)(localVarUrlObj),
5602
+ options: localVarRequestOptions,
5603
+ };
5604
+ },
5290
5605
  /**
5291
5606
  *
5292
5607
  * @summary list all databases or schema of the cluster
@@ -7831,6 +8146,82 @@ const SharedApiAxiosParamCreator = function (configuration) {
7831
8146
  options: localVarRequestOptions,
7832
8147
  };
7833
8148
  },
8149
+ /**
8150
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
8151
+ * @summary listSeaweedFSAccounts
8152
+ * @param {string} orgName name of the organization
8153
+ * @param {string} clusterName name of the cluster
8154
+ * @param {*} [options] Override http request option.
8155
+ * @throws {RequiredError}
8156
+ */
8157
+ listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
8158
+ // verify required parameter 'orgName' is not null or undefined
8159
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
8160
+ // verify required parameter 'clusterName' is not null or undefined
8161
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
8162
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
8163
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
8164
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
8165
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8166
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8167
+ let baseOptions;
8168
+ if (configuration) {
8169
+ baseOptions = configuration.baseOptions;
8170
+ }
8171
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8172
+ const localVarHeaderParameter = {};
8173
+ const localVarQueryParameter = {};
8174
+ // authentication BearerToken required
8175
+ // http bearer authentication required
8176
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8177
+ // authentication DigestAuth required
8178
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8179
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8181
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8182
+ return {
8183
+ url: (0, common_1.toPathString)(localVarUrlObj),
8184
+ options: localVarRequestOptions,
8185
+ };
8186
+ },
8187
+ /**
8188
+ *
8189
+ * @summary listSeaweedFSPolicies
8190
+ * @param {string} orgName
8191
+ * @param {string} clusterName
8192
+ * @param {*} [options] Override http request option.
8193
+ * @throws {RequiredError}
8194
+ */
8195
+ listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
8196
+ // verify required parameter 'orgName' is not null or undefined
8197
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
8198
+ // verify required parameter 'clusterName' is not null or undefined
8199
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
8200
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
8201
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
8202
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
8203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8204
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8205
+ let baseOptions;
8206
+ if (configuration) {
8207
+ baseOptions = configuration.baseOptions;
8208
+ }
8209
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8210
+ const localVarHeaderParameter = {};
8211
+ const localVarQueryParameter = {};
8212
+ // authentication BearerToken required
8213
+ // http bearer authentication required
8214
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8215
+ // authentication DigestAuth required
8216
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8217
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8218
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8219
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8220
+ return {
8221
+ url: (0, common_1.toPathString)(localVarUrlObj),
8222
+ options: localVarRequestOptions,
8223
+ };
8224
+ },
7834
8225
  /**
7835
8226
  * list MinIO service account access keys
7836
8227
  * @summary List MinIO access keys
@@ -8738,6 +9129,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
8738
9129
  options: localVarRequestOptions,
8739
9130
  };
8740
9131
  },
9132
+ /**
9133
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
9134
+ * @summary putSeaweedFSPolicy
9135
+ * @param {string} orgName
9136
+ * @param {string} clusterName
9137
+ * @param {string} policyName
9138
+ * @param {{ [key: string]: any; }} requestBody
9139
+ * @param {*} [options] Override http request option.
9140
+ * @throws {RequiredError}
9141
+ */
9142
+ putSeaweedFSPolicy: async (orgName, clusterName, policyName, requestBody, options = {}) => {
9143
+ // verify required parameter 'orgName' is not null or undefined
9144
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'orgName', orgName);
9145
+ // verify required parameter 'clusterName' is not null or undefined
9146
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'clusterName', clusterName);
9147
+ // verify required parameter 'policyName' is not null or undefined
9148
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'policyName', policyName);
9149
+ // verify required parameter 'requestBody' is not null or undefined
9150
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'requestBody', requestBody);
9151
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
9152
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
9153
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
9154
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
9155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9156
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9157
+ let baseOptions;
9158
+ if (configuration) {
9159
+ baseOptions = configuration.baseOptions;
9160
+ }
9161
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
9162
+ const localVarHeaderParameter = {};
9163
+ const localVarQueryParameter = {};
9164
+ // authentication BearerToken required
9165
+ // http bearer authentication required
9166
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9167
+ // authentication DigestAuth required
9168
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9169
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9170
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9171
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9172
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9173
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
9174
+ return {
9175
+ url: (0, common_1.toPathString)(localVarUrlObj),
9176
+ options: localVarRequestOptions,
9177
+ };
9178
+ },
8741
9179
  /**
8742
9180
  *
8743
9181
  * @summary create a SQL query
@@ -11331,6 +11769,100 @@ const SharedApiAxiosParamCreator = function (configuration) {
11331
11769
  options: localVarRequestOptions,
11332
11770
  };
11333
11771
  },
11772
+ /**
11773
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
11774
+ * @summary updateSeaweedFSAccount
11775
+ * @param {string} orgName name of the organization
11776
+ * @param {string} clusterName name of the cluster
11777
+ * @param {string} accountName name of the account
11778
+ * @param {Account} body
11779
+ * @param {*} [options] Override http request option.
11780
+ * @throws {RequiredError}
11781
+ */
11782
+ updateSeaweedFSAccount: async (orgName, clusterName, accountName, body, options = {}) => {
11783
+ // verify required parameter 'orgName' is not null or undefined
11784
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'orgName', orgName);
11785
+ // verify required parameter 'clusterName' is not null or undefined
11786
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'clusterName', clusterName);
11787
+ // verify required parameter 'accountName' is not null or undefined
11788
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'accountName', accountName);
11789
+ // verify required parameter 'body' is not null or undefined
11790
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'body', body);
11791
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
11792
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
11793
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
11794
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
11795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11796
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11797
+ let baseOptions;
11798
+ if (configuration) {
11799
+ baseOptions = configuration.baseOptions;
11800
+ }
11801
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
11802
+ const localVarHeaderParameter = {};
11803
+ const localVarQueryParameter = {};
11804
+ // authentication BearerToken required
11805
+ // http bearer authentication required
11806
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
11807
+ // authentication DigestAuth required
11808
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
11809
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11810
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11811
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11812
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11813
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
11814
+ return {
11815
+ url: (0, common_1.toPathString)(localVarUrlObj),
11816
+ options: localVarRequestOptions,
11817
+ };
11818
+ },
11819
+ /**
11820
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
11821
+ * @summary updateSeaweedFSAccountPrivileges
11822
+ * @param {string} orgName name of the Org
11823
+ * @param {string} clusterName name of the Cluster
11824
+ * @param {string} accountName name of the account
11825
+ * @param {Array<PrivilegeListItem>} body
11826
+ * @param {*} [options] Override http request option.
11827
+ * @throws {RequiredError}
11828
+ */
11829
+ updateSeaweedFSAccountPrivileges: async (orgName, clusterName, accountName, body, options = {}) => {
11830
+ // verify required parameter 'orgName' is not null or undefined
11831
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'orgName', orgName);
11832
+ // verify required parameter 'clusterName' is not null or undefined
11833
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName);
11834
+ // verify required parameter 'accountName' is not null or undefined
11835
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'accountName', accountName);
11836
+ // verify required parameter 'body' is not null or undefined
11837
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'body', body);
11838
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
11839
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
11840
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
11841
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
11842
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11843
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11844
+ let baseOptions;
11845
+ if (configuration) {
11846
+ baseOptions = configuration.baseOptions;
11847
+ }
11848
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
11849
+ const localVarHeaderParameter = {};
11850
+ const localVarQueryParameter = {};
11851
+ // authentication BearerToken required
11852
+ // http bearer authentication required
11853
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
11854
+ // authentication DigestAuth required
11855
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
11856
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11857
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11858
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11859
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11860
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
11861
+ return {
11862
+ url: (0, common_1.toPathString)(localVarUrlObj),
11863
+ options: localVarRequestOptions,
11864
+ };
11865
+ },
11334
11866
  /**
11335
11867
  * update a MinIO service account access key
11336
11868
  * @summary Update MinIO access key
@@ -11770,6 +12302,23 @@ const SharedApiFp = function (configuration) {
11770
12302
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.batchUpdateOrgParameters']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11771
12303
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11772
12304
  },
12305
+ /**
12306
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
12307
+ * @summary bindSeaweedFSPolicies
12308
+ * @param {string} orgName
12309
+ * @param {string} clusterName
12310
+ * @param {string} accountName
12311
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
12312
+ * @param {*} [options] Override http request option.
12313
+ * @throws {RequiredError}
12314
+ */
12315
+ async bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options) {
12316
+ var _a, _b, _c;
12317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
12318
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12319
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.bindSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12320
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12321
+ },
11773
12322
  /**
11774
12323
  *
11775
12324
  * @summary build backup object with a existing backup directory
@@ -12070,30 +12619,63 @@ const SharedApiFp = function (configuration) {
12070
12619
  * @summary create a relation between the clusters in the organization
12071
12620
  * @param {string} orgName
12072
12621
  * @param {string} clusterName
12073
- * @param {string} target
12622
+ * @param {string} target
12623
+ * @param {*} [options] Override http request option.
12624
+ * @throws {RequiredError}
12625
+ */
12626
+ async createRelation(orgName, clusterName, target, options) {
12627
+ var _a, _b, _c;
12628
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRelation(orgName, clusterName, target, options);
12629
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12630
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createRelation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12631
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12632
+ },
12633
+ /**
12634
+ * Create role
12635
+ * @summary Create role
12636
+ * @param {string} orgName name of the Org
12637
+ * @param {RoleCreate} roleCreate
12638
+ * @param {*} [options] Override http request option.
12639
+ * @throws {RequiredError}
12640
+ */
12641
+ async createRole(orgName, roleCreate, options) {
12642
+ var _a, _b, _c;
12643
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRole(orgName, roleCreate, options);
12644
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12645
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12646
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12647
+ },
12648
+ /**
12649
+ * Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
12650
+ * @summary createSeaweedFSAccessKey
12651
+ * @param {string} orgName
12652
+ * @param {string} clusterName
12653
+ * @param {string} accountName
12654
+ * @param {Account} account
12074
12655
  * @param {*} [options] Override http request option.
12075
12656
  * @throws {RequiredError}
12076
12657
  */
12077
- async createRelation(orgName, clusterName, target, options) {
12658
+ async createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options) {
12078
12659
  var _a, _b, _c;
12079
- const localVarAxiosArgs = await localVarAxiosParamCreator.createRelation(orgName, clusterName, target, options);
12660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
12080
12661
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12081
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createRelation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12662
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createSeaweedFSAccessKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12082
12663
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12083
12664
  },
12084
12665
  /**
12085
- * Create role
12086
- * @summary Create role
12087
- * @param {string} orgName name of the Org
12088
- * @param {RoleCreate} roleCreate
12666
+ * Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
12667
+ * @summary createSeaweedFSAccount
12668
+ * @param {string} orgName name of the organization
12669
+ * @param {string} clusterName name of the cluster
12670
+ * @param {Account} body
12089
12671
  * @param {*} [options] Override http request option.
12090
12672
  * @throws {RequiredError}
12091
12673
  */
12092
- async createRole(orgName, roleCreate, options) {
12674
+ async createSeaweedFSAccount(orgName, clusterName, body, options) {
12093
12675
  var _a, _b, _c;
12094
- const localVarAxiosArgs = await localVarAxiosParamCreator.createRole(orgName, roleCreate, options);
12676
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
12095
12677
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12096
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12678
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12097
12679
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12098
12680
  },
12099
12681
  /**
@@ -12665,6 +13247,55 @@ const SharedApiFp = function (configuration) {
12665
13247
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteRoleByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12666
13248
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12667
13249
  },
13250
+ /**
13251
+ *
13252
+ * @summary deleteSeaweedFSAccessKey
13253
+ * @param {string} orgName
13254
+ * @param {string} clusterName
13255
+ * @param {string} accountName
13256
+ * @param {string} accessKey
13257
+ * @param {*} [options] Override http request option.
13258
+ * @throws {RequiredError}
13259
+ */
13260
+ async deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options) {
13261
+ var _a, _b, _c;
13262
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
13263
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13264
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteSeaweedFSAccessKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13265
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13266
+ },
13267
+ /**
13268
+ * delete an account in cluster
13269
+ * @summary deleteSeaweedFSAccount
13270
+ * @param {string} orgName name of the organization
13271
+ * @param {string} clusterName name of the cluster
13272
+ * @param {string} accountName name of the account
13273
+ * @param {*} [options] Override http request option.
13274
+ * @throws {RequiredError}
13275
+ */
13276
+ async deleteSeaweedFSAccount(orgName, clusterName, accountName, options) {
13277
+ var _a, _b, _c;
13278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
13279
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13280
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13281
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13282
+ },
13283
+ /**
13284
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
13285
+ * @summary deleteSeaweedFSPolicy
13286
+ * @param {string} orgName
13287
+ * @param {string} clusterName
13288
+ * @param {string} policyName
13289
+ * @param {*} [options] Override http request option.
13290
+ * @throws {RequiredError}
13291
+ */
13292
+ async deleteSeaweedFSPolicy(orgName, clusterName, policyName, options) {
13293
+ var _a, _b, _c;
13294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
13295
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13296
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13297
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13298
+ },
12668
13299
  /**
12669
13300
  * delete a MinIO service account access key
12670
13301
  * @summary Delete MinIO access key
@@ -13608,6 +14239,23 @@ const SharedApiFp = function (configuration) {
13608
14239
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getRootAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13609
14240
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13610
14241
  },
14242
+ /**
14243
+ * get root account password
14244
+ * @summary getRootSeaweedFSAccountPassword
14245
+ * @param {string} orgName name of the Org
14246
+ * @param {string} clusterName name of the Cluster
14247
+ * @param {string} accountName name of the account
14248
+ * @param {string} [component] name of the component
14249
+ * @param {*} [options] Override http request option.
14250
+ * @throws {RequiredError}
14251
+ */
14252
+ async getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options) {
14253
+ var _a, _b, _c;
14254
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
14255
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14256
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getRootSeaweedFSAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14257
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14258
+ },
13611
14259
  /**
13612
14260
  *
13613
14261
  * @summary list all databases or schema of the cluster
@@ -14567,6 +15215,36 @@ const SharedApiFp = function (configuration) {
14567
15215
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14568
15216
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14569
15217
  },
15218
+ /**
15219
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
15220
+ * @summary listSeaweedFSAccounts
15221
+ * @param {string} orgName name of the organization
15222
+ * @param {string} clusterName name of the cluster
15223
+ * @param {*} [options] Override http request option.
15224
+ * @throws {RequiredError}
15225
+ */
15226
+ async listSeaweedFSAccounts(orgName, clusterName, options) {
15227
+ var _a, _b, _c;
15228
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
15229
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15230
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSeaweedFSAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15231
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15232
+ },
15233
+ /**
15234
+ *
15235
+ * @summary listSeaweedFSPolicies
15236
+ * @param {string} orgName
15237
+ * @param {string} clusterName
15238
+ * @param {*} [options] Override http request option.
15239
+ * @throws {RequiredError}
15240
+ */
15241
+ async listSeaweedFSPolicies(orgName, clusterName, options) {
15242
+ var _a, _b, _c;
15243
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
15244
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15245
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15246
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15247
+ },
14570
15248
  /**
14571
15249
  * list MinIO service account access keys
14572
15250
  * @summary List MinIO access keys
@@ -14906,6 +15584,23 @@ const SharedApiFp = function (configuration) {
14906
15584
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putMilvusRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14907
15585
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14908
15586
  },
15587
+ /**
15588
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
15589
+ * @summary putSeaweedFSPolicy
15590
+ * @param {string} orgName
15591
+ * @param {string} clusterName
15592
+ * @param {string} policyName
15593
+ * @param {{ [key: string]: any; }} requestBody
15594
+ * @param {*} [options] Override http request option.
15595
+ * @throws {RequiredError}
15596
+ */
15597
+ async putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options) {
15598
+ var _a, _b, _c;
15599
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
15600
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15601
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15602
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15603
+ },
14909
15604
  /**
14910
15605
  *
14911
15606
  * @summary create a SQL query
@@ -15841,6 +16536,40 @@ const SharedApiFp = function (configuration) {
15841
16536
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateRoleByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15842
16537
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15843
16538
  },
16539
+ /**
16540
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
16541
+ * @summary updateSeaweedFSAccount
16542
+ * @param {string} orgName name of the organization
16543
+ * @param {string} clusterName name of the cluster
16544
+ * @param {string} accountName name of the account
16545
+ * @param {Account} body
16546
+ * @param {*} [options] Override http request option.
16547
+ * @throws {RequiredError}
16548
+ */
16549
+ async updateSeaweedFSAccount(orgName, clusterName, accountName, body, options) {
16550
+ var _a, _b, _c;
16551
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
16552
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16553
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16554
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16555
+ },
16556
+ /**
16557
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
16558
+ * @summary updateSeaweedFSAccountPrivileges
16559
+ * @param {string} orgName name of the Org
16560
+ * @param {string} clusterName name of the Cluster
16561
+ * @param {string} accountName name of the account
16562
+ * @param {Array<PrivilegeListItem>} body
16563
+ * @param {*} [options] Override http request option.
16564
+ * @throws {RequiredError}
16565
+ */
16566
+ async updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options) {
16567
+ var _a, _b, _c;
16568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
16569
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16570
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateSeaweedFSAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16571
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16572
+ },
15844
16573
  /**
15845
16574
  * update a MinIO service account access key
15846
16575
  * @summary Update MinIO access key
@@ -16033,6 +16762,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16033
16762
  batchUpdateOrgParameters(requestParameters, options) {
16034
16763
  return localVarFp.batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
16035
16764
  },
16765
+ /**
16766
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
16767
+ * @summary bindSeaweedFSPolicies
16768
+ * @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
16769
+ * @param {*} [options] Override http request option.
16770
+ * @throws {RequiredError}
16771
+ */
16772
+ bindSeaweedFSPolicies(requestParameters, options) {
16773
+ return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
16774
+ },
16036
16775
  /**
16037
16776
  *
16038
16777
  * @summary build backup object with a existing backup directory
@@ -16234,6 +16973,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16234
16973
  createRole(requestParameters, options) {
16235
16974
  return localVarFp.createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(axios, basePath));
16236
16975
  },
16976
+ /**
16977
+ * Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
16978
+ * @summary createSeaweedFSAccessKey
16979
+ * @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
16980
+ * @param {*} [options] Override http request option.
16981
+ * @throws {RequiredError}
16982
+ */
16983
+ createSeaweedFSAccessKey(requestParameters, options) {
16984
+ return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
16985
+ },
16986
+ /**
16987
+ * Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
16988
+ * @summary createSeaweedFSAccount
16989
+ * @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
16990
+ * @param {*} [options] Override http request option.
16991
+ * @throws {RequiredError}
16992
+ */
16993
+ createSeaweedFSAccount(requestParameters, options) {
16994
+ return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
16995
+ },
16237
16996
  /**
16238
16997
  * create a MinIO service account access key
16239
16998
  * @summary Create MinIO access key
@@ -16594,6 +17353,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16594
17353
  deleteRoleByName(requestParameters, options) {
16595
17354
  return localVarFp.deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(axios, basePath));
16596
17355
  },
17356
+ /**
17357
+ *
17358
+ * @summary deleteSeaweedFSAccessKey
17359
+ * @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
17360
+ * @param {*} [options] Override http request option.
17361
+ * @throws {RequiredError}
17362
+ */
17363
+ deleteSeaweedFSAccessKey(requestParameters, options) {
17364
+ return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
17365
+ },
17366
+ /**
17367
+ * delete an account in cluster
17368
+ * @summary deleteSeaweedFSAccount
17369
+ * @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
17370
+ * @param {*} [options] Override http request option.
17371
+ * @throws {RequiredError}
17372
+ */
17373
+ deleteSeaweedFSAccount(requestParameters, options) {
17374
+ return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
17375
+ },
17376
+ /**
17377
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
17378
+ * @summary deleteSeaweedFSPolicy
17379
+ * @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
17380
+ * @param {*} [options] Override http request option.
17381
+ * @throws {RequiredError}
17382
+ */
17383
+ deleteSeaweedFSPolicy(requestParameters, options) {
17384
+ return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
17385
+ },
16597
17386
  /**
16598
17387
  * delete a MinIO service account access key
16599
17388
  * @summary Delete MinIO access key
@@ -17173,6 +17962,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
17173
17962
  getRootAccountPassword(requestParameters, options) {
17174
17963
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
17175
17964
  },
17965
+ /**
17966
+ * get root account password
17967
+ * @summary getRootSeaweedFSAccountPassword
17968
+ * @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
17969
+ * @param {*} [options] Override http request option.
17970
+ * @throws {RequiredError}
17971
+ */
17972
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
17973
+ return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
17974
+ },
17176
17975
  /**
17177
17976
  *
17178
17977
  * @summary list all databases or schema of the cluster
@@ -17771,6 +18570,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
17771
18570
  listRoles(requestParameters, options) {
17772
18571
  return localVarFp.listRoles(requestParameters.orgName, options).then((request) => request(axios, basePath));
17773
18572
  },
18573
+ /**
18574
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
18575
+ * @summary listSeaweedFSAccounts
18576
+ * @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
18577
+ * @param {*} [options] Override http request option.
18578
+ * @throws {RequiredError}
18579
+ */
18580
+ listSeaweedFSAccounts(requestParameters, options) {
18581
+ return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
18582
+ },
18583
+ /**
18584
+ *
18585
+ * @summary listSeaweedFSPolicies
18586
+ * @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
18587
+ * @param {*} [options] Override http request option.
18588
+ * @throws {RequiredError}
18589
+ */
18590
+ listSeaweedFSPolicies(requestParameters, options) {
18591
+ return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
18592
+ },
17774
18593
  /**
17775
18594
  * list MinIO service account access keys
17776
18595
  * @summary List MinIO access keys
@@ -17981,6 +18800,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
17981
18800
  putMilvusRole(requestParameters, options) {
17982
18801
  return localVarFp.putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
17983
18802
  },
18803
+ /**
18804
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
18805
+ * @summary putSeaweedFSPolicy
18806
+ * @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
18807
+ * @param {*} [options] Override http request option.
18808
+ * @throws {RequiredError}
18809
+ */
18810
+ putSeaweedFSPolicy(requestParameters, options) {
18811
+ return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
18812
+ },
17984
18813
  /**
17985
18814
  *
17986
18815
  * @summary create a SQL query
@@ -18530,6 +19359,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
18530
19359
  updateRoleByName(requestParameters, options) {
18531
19360
  return localVarFp.updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(axios, basePath));
18532
19361
  },
19362
+ /**
19363
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
19364
+ * @summary updateSeaweedFSAccount
19365
+ * @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
19366
+ * @param {*} [options] Override http request option.
19367
+ * @throws {RequiredError}
19368
+ */
19369
+ updateSeaweedFSAccount(requestParameters, options) {
19370
+ return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
19371
+ },
19372
+ /**
19373
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
19374
+ * @summary updateSeaweedFSAccountPrivileges
19375
+ * @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
19376
+ * @param {*} [options] Override http request option.
19377
+ * @throws {RequiredError}
19378
+ */
19379
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
19380
+ return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
19381
+ },
18533
19382
  /**
18534
19383
  * update a MinIO service account access key
18535
19384
  * @summary Update MinIO access key
@@ -18686,6 +19535,17 @@ class SharedApi extends base_1.BaseAPI {
18686
19535
  batchUpdateOrgParameters(requestParameters, options) {
18687
19536
  return (0, exports.SharedApiFp)(this.configuration).batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
18688
19537
  }
19538
+ /**
19539
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
19540
+ * @summary bindSeaweedFSPolicies
19541
+ * @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
19542
+ * @param {*} [options] Override http request option.
19543
+ * @throws {RequiredError}
19544
+ * @memberof SharedApi
19545
+ */
19546
+ bindSeaweedFSPolicies(requestParameters, options) {
19547
+ return (0, exports.SharedApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
19548
+ }
18689
19549
  /**
18690
19550
  *
18691
19551
  * @summary build backup object with a existing backup directory
@@ -18907,6 +19767,28 @@ class SharedApi extends base_1.BaseAPI {
18907
19767
  createRole(requestParameters, options) {
18908
19768
  return (0, exports.SharedApiFp)(this.configuration).createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(this.axios, this.basePath));
18909
19769
  }
19770
+ /**
19771
+ * Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
19772
+ * @summary createSeaweedFSAccessKey
19773
+ * @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
19774
+ * @param {*} [options] Override http request option.
19775
+ * @throws {RequiredError}
19776
+ * @memberof SharedApi
19777
+ */
19778
+ createSeaweedFSAccessKey(requestParameters, options) {
19779
+ return (0, exports.SharedApiFp)(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
19780
+ }
19781
+ /**
19782
+ * Creates a BASICUSER identity with named policies from extra.policies. Optional extra.accessKey and password select the credential; empty values are generated. The password is disclosed only in this response.
19783
+ * @summary createSeaweedFSAccount
19784
+ * @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
19785
+ * @param {*} [options] Override http request option.
19786
+ * @throws {RequiredError}
19787
+ * @memberof SharedApi
19788
+ */
19789
+ createSeaweedFSAccount(requestParameters, options) {
19790
+ return (0, exports.SharedApiFp)(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
19791
+ }
18910
19792
  /**
18911
19793
  * create a MinIO service account access key
18912
19794
  * @summary Create MinIO access key
@@ -19303,6 +20185,39 @@ class SharedApi extends base_1.BaseAPI {
19303
20185
  deleteRoleByName(requestParameters, options) {
19304
20186
  return (0, exports.SharedApiFp)(this.configuration).deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
19305
20187
  }
20188
+ /**
20189
+ *
20190
+ * @summary deleteSeaweedFSAccessKey
20191
+ * @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
20192
+ * @param {*} [options] Override http request option.
20193
+ * @throws {RequiredError}
20194
+ * @memberof SharedApi
20195
+ */
20196
+ deleteSeaweedFSAccessKey(requestParameters, options) {
20197
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
20198
+ }
20199
+ /**
20200
+ * delete an account in cluster
20201
+ * @summary deleteSeaweedFSAccount
20202
+ * @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
20203
+ * @param {*} [options] Override http request option.
20204
+ * @throws {RequiredError}
20205
+ * @memberof SharedApi
20206
+ */
20207
+ deleteSeaweedFSAccount(requestParameters, options) {
20208
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
20209
+ }
20210
+ /**
20211
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
20212
+ * @summary deleteSeaweedFSPolicy
20213
+ * @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
20214
+ * @param {*} [options] Override http request option.
20215
+ * @throws {RequiredError}
20216
+ * @memberof SharedApi
20217
+ */
20218
+ deleteSeaweedFSPolicy(requestParameters, options) {
20219
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
20220
+ }
19306
20221
  /**
19307
20222
  * delete a MinIO service account access key
19308
20223
  * @summary Delete MinIO access key
@@ -19940,6 +20855,17 @@ class SharedApi extends base_1.BaseAPI {
19940
20855
  getRootAccountPassword(requestParameters, options) {
19941
20856
  return (0, exports.SharedApiFp)(this.configuration).getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
19942
20857
  }
20858
+ /**
20859
+ * get root account password
20860
+ * @summary getRootSeaweedFSAccountPassword
20861
+ * @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
20862
+ * @param {*} [options] Override http request option.
20863
+ * @throws {RequiredError}
20864
+ * @memberof SharedApi
20865
+ */
20866
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
20867
+ return (0, exports.SharedApiFp)(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
20868
+ }
19943
20869
  /**
19944
20870
  *
19945
20871
  * @summary list all databases or schema of the cluster
@@ -20598,6 +21524,28 @@ class SharedApi extends base_1.BaseAPI {
20598
21524
  listRoles(requestParameters, options) {
20599
21525
  return (0, exports.SharedApiFp)(this.configuration).listRoles(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
20600
21526
  }
21527
+ /**
21528
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
21529
+ * @summary listSeaweedFSAccounts
21530
+ * @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
21531
+ * @param {*} [options] Override http request option.
21532
+ * @throws {RequiredError}
21533
+ * @memberof SharedApi
21534
+ */
21535
+ listSeaweedFSAccounts(requestParameters, options) {
21536
+ return (0, exports.SharedApiFp)(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
21537
+ }
21538
+ /**
21539
+ *
21540
+ * @summary listSeaweedFSPolicies
21541
+ * @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
21542
+ * @param {*} [options] Override http request option.
21543
+ * @throws {RequiredError}
21544
+ * @memberof SharedApi
21545
+ */
21546
+ listSeaweedFSPolicies(requestParameters, options) {
21547
+ return (0, exports.SharedApiFp)(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
21548
+ }
20601
21549
  /**
20602
21550
  * list MinIO service account access keys
20603
21551
  * @summary List MinIO access keys
@@ -20829,6 +21777,17 @@ class SharedApi extends base_1.BaseAPI {
20829
21777
  putMilvusRole(requestParameters, options) {
20830
21778
  return (0, exports.SharedApiFp)(this.configuration).putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
20831
21779
  }
21780
+ /**
21781
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
21782
+ * @summary putSeaweedFSPolicy
21783
+ * @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
21784
+ * @param {*} [options] Override http request option.
21785
+ * @throws {RequiredError}
21786
+ * @memberof SharedApi
21787
+ */
21788
+ putSeaweedFSPolicy(requestParameters, options) {
21789
+ return (0, exports.SharedApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
21790
+ }
20832
21791
  /**
20833
21792
  *
20834
21793
  * @summary create a SQL query
@@ -21433,6 +22392,28 @@ class SharedApi extends base_1.BaseAPI {
21433
22392
  updateRoleByName(requestParameters, options) {
21434
22393
  return (0, exports.SharedApiFp)(this.configuration).updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(this.axios, this.basePath));
21435
22394
  }
22395
+ /**
22396
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
22397
+ * @summary updateSeaweedFSAccount
22398
+ * @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
22399
+ * @param {*} [options] Override http request option.
22400
+ * @throws {RequiredError}
22401
+ * @memberof SharedApi
22402
+ */
22403
+ updateSeaweedFSAccount(requestParameters, options) {
22404
+ return (0, exports.SharedApiFp)(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
22405
+ }
22406
+ /**
22407
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
22408
+ * @summary updateSeaweedFSAccountPrivileges
22409
+ * @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
22410
+ * @param {*} [options] Override http request option.
22411
+ * @throws {RequiredError}
22412
+ * @memberof SharedApi
22413
+ */
22414
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
22415
+ return (0, exports.SharedApiFp)(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
22416
+ }
21436
22417
  /**
21437
22418
  * update a MinIO service account access key
21438
22419
  * @summary Update MinIO access key