kb-cloud-client-typescript 2.4.0-alpha.62 → 2.4.0-alpha.64

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 +991 -10
  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 +991 -10
  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 +1623 -55
  69. package/src/adminapi/apis/seaweedfs-api.ts +1644 -0
  70. package/src/adminapi/apis/shared-api.ts +1776 -208
  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
@@ -452,6 +452,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
452
452
  options: localVarRequestOptions,
453
453
  };
454
454
  },
455
+ /**
456
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
457
+ * @summary bindSeaweedFSPolicies
458
+ * @param {string} orgName
459
+ * @param {string} clusterName
460
+ * @param {string} accountName
461
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ bindSeaweedFSPolicies: async (orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options = {}) => {
466
+ // verify required parameter 'orgName' is not null or undefined
467
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'orgName', orgName);
468
+ // verify required parameter 'clusterName' is not null or undefined
469
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'clusterName', clusterName);
470
+ // verify required parameter 'accountName' is not null or undefined
471
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'accountName', accountName);
472
+ // verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
473
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest);
474
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
475
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
476
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
477
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
478
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
479
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
480
+ let baseOptions;
481
+ if (configuration) {
482
+ baseOptions = configuration.baseOptions;
483
+ }
484
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
485
+ const localVarHeaderParameter = {};
486
+ const localVarQueryParameter = {};
487
+ // authentication BearerToken required
488
+ // http bearer authentication required
489
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
490
+ // authentication DigestAuth required
491
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
492
+ localVarHeaderParameter['Content-Type'] = 'application/json';
493
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
495
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
496
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration);
497
+ return {
498
+ url: (0, common_1.toPathString)(localVarUrlObj),
499
+ options: localVarRequestOptions,
500
+ };
501
+ },
455
502
  /**
456
503
  *
457
504
  * @summary build backup object with a existing backup directory
@@ -1462,6 +1509,96 @@ const SharedApiAxiosParamCreator = function (configuration) {
1462
1509
  options: localVarRequestOptions,
1463
1510
  };
1464
1511
  },
1512
+ /**
1513
+ * 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.
1514
+ * @summary createSeaweedFSAccessKey
1515
+ * @param {string} orgName
1516
+ * @param {string} clusterName
1517
+ * @param {string} accountName
1518
+ * @param {Account} account
1519
+ * @param {*} [options] Override http request option.
1520
+ * @throws {RequiredError}
1521
+ */
1522
+ createSeaweedFSAccessKey: async (orgName, clusterName, accountName, account, options = {}) => {
1523
+ // verify required parameter 'orgName' is not null or undefined
1524
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'orgName', orgName);
1525
+ // verify required parameter 'clusterName' is not null or undefined
1526
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'clusterName', clusterName);
1527
+ // verify required parameter 'accountName' is not null or undefined
1528
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'accountName', accountName);
1529
+ // verify required parameter 'account' is not null or undefined
1530
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'account', account);
1531
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
1532
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1533
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1534
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1536
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1537
+ let baseOptions;
1538
+ if (configuration) {
1539
+ baseOptions = configuration.baseOptions;
1540
+ }
1541
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1542
+ const localVarHeaderParameter = {};
1543
+ const localVarQueryParameter = {};
1544
+ // authentication BearerToken required
1545
+ // http bearer authentication required
1546
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1547
+ // authentication DigestAuth required
1548
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1549
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1550
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1551
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1552
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1553
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(account, localVarRequestOptions, configuration);
1554
+ return {
1555
+ url: (0, common_1.toPathString)(localVarUrlObj),
1556
+ options: localVarRequestOptions,
1557
+ };
1558
+ },
1559
+ /**
1560
+ * 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.
1561
+ * @summary createSeaweedFSAccount
1562
+ * @param {string} orgName name of the organization
1563
+ * @param {string} clusterName name of the cluster
1564
+ * @param {Account} body
1565
+ * @param {*} [options] Override http request option.
1566
+ * @throws {RequiredError}
1567
+ */
1568
+ createSeaweedFSAccount: async (orgName, clusterName, body, options = {}) => {
1569
+ // verify required parameter 'orgName' is not null or undefined
1570
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'orgName', orgName);
1571
+ // verify required parameter 'clusterName' is not null or undefined
1572
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'clusterName', clusterName);
1573
+ // verify required parameter 'body' is not null or undefined
1574
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'body', body);
1575
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
1576
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1577
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1579
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1580
+ let baseOptions;
1581
+ if (configuration) {
1582
+ baseOptions = configuration.baseOptions;
1583
+ }
1584
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1585
+ const localVarHeaderParameter = {};
1586
+ const localVarQueryParameter = {};
1587
+ // authentication BearerToken required
1588
+ // http bearer authentication required
1589
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1590
+ // authentication DigestAuth required
1591
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1592
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1593
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1594
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1595
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1596
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1597
+ return {
1598
+ url: (0, common_1.toPathString)(localVarUrlObj),
1599
+ options: localVarRequestOptions,
1600
+ };
1601
+ },
1465
1602
  /**
1466
1603
  * create a MinIO service account access key
1467
1604
  * @summary Create MinIO access key
@@ -3040,6 +3177,136 @@ const SharedApiAxiosParamCreator = function (configuration) {
3040
3177
  options: localVarRequestOptions,
3041
3178
  };
3042
3179
  },
3180
+ /**
3181
+ *
3182
+ * @summary deleteSeaweedFSAccessKey
3183
+ * @param {string} orgName
3184
+ * @param {string} clusterName
3185
+ * @param {string} accountName
3186
+ * @param {string} accessKey
3187
+ * @param {*} [options] Override http request option.
3188
+ * @throws {RequiredError}
3189
+ */
3190
+ deleteSeaweedFSAccessKey: async (orgName, clusterName, accountName, accessKey, options = {}) => {
3191
+ // verify required parameter 'orgName' is not null or undefined
3192
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'orgName', orgName);
3193
+ // verify required parameter 'clusterName' is not null or undefined
3194
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'clusterName', clusterName);
3195
+ // verify required parameter 'accountName' is not null or undefined
3196
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accountName', accountName);
3197
+ // verify required parameter 'accessKey' is not null or undefined
3198
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accessKey', accessKey);
3199
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
3200
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3201
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3202
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
3203
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
3204
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3205
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3206
+ let baseOptions;
3207
+ if (configuration) {
3208
+ baseOptions = configuration.baseOptions;
3209
+ }
3210
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3211
+ const localVarHeaderParameter = {};
3212
+ const localVarQueryParameter = {};
3213
+ // authentication BearerToken required
3214
+ // http bearer authentication required
3215
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3216
+ // authentication DigestAuth required
3217
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3218
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3221
+ return {
3222
+ url: (0, common_1.toPathString)(localVarUrlObj),
3223
+ options: localVarRequestOptions,
3224
+ };
3225
+ },
3226
+ /**
3227
+ * delete an account in cluster
3228
+ * @summary deleteSeaweedFSAccount
3229
+ * @param {string} orgName name of the organization
3230
+ * @param {string} clusterName name of the cluster
3231
+ * @param {string} accountName name of the account
3232
+ * @param {*} [options] Override http request option.
3233
+ * @throws {RequiredError}
3234
+ */
3235
+ deleteSeaweedFSAccount: async (orgName, clusterName, accountName, options = {}) => {
3236
+ // verify required parameter 'orgName' is not null or undefined
3237
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'orgName', orgName);
3238
+ // verify required parameter 'clusterName' is not null or undefined
3239
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'clusterName', clusterName);
3240
+ // verify required parameter 'accountName' is not null or undefined
3241
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'accountName', accountName);
3242
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
3243
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3244
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3245
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
3246
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3247
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3248
+ let baseOptions;
3249
+ if (configuration) {
3250
+ baseOptions = configuration.baseOptions;
3251
+ }
3252
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3253
+ const localVarHeaderParameter = {};
3254
+ const localVarQueryParameter = {};
3255
+ // authentication BearerToken required
3256
+ // http bearer authentication required
3257
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3258
+ // authentication DigestAuth required
3259
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3260
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3261
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3262
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3263
+ return {
3264
+ url: (0, common_1.toPathString)(localVarUrlObj),
3265
+ options: localVarRequestOptions,
3266
+ };
3267
+ },
3268
+ /**
3269
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
3270
+ * @summary deleteSeaweedFSPolicy
3271
+ * @param {string} orgName
3272
+ * @param {string} clusterName
3273
+ * @param {string} policyName
3274
+ * @param {*} [options] Override http request option.
3275
+ * @throws {RequiredError}
3276
+ */
3277
+ deleteSeaweedFSPolicy: async (orgName, clusterName, policyName, options = {}) => {
3278
+ // verify required parameter 'orgName' is not null or undefined
3279
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'orgName', orgName);
3280
+ // verify required parameter 'clusterName' is not null or undefined
3281
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'clusterName', clusterName);
3282
+ // verify required parameter 'policyName' is not null or undefined
3283
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'policyName', policyName);
3284
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
3285
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3286
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3287
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
3288
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3289
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3290
+ let baseOptions;
3291
+ if (configuration) {
3292
+ baseOptions = configuration.baseOptions;
3293
+ }
3294
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3295
+ const localVarHeaderParameter = {};
3296
+ const localVarQueryParameter = {};
3297
+ // authentication BearerToken required
3298
+ // http bearer authentication required
3299
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3300
+ // authentication DigestAuth required
3301
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3302
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3303
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3304
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3305
+ return {
3306
+ url: (0, common_1.toPathString)(localVarUrlObj),
3307
+ options: localVarRequestOptions,
3308
+ };
3309
+ },
3043
3310
  /**
3044
3311
  * delete a MinIO service account access key
3045
3312
  * @summary Delete MinIO access key
@@ -5960,6 +6227,54 @@ const SharedApiAxiosParamCreator = function (configuration) {
5960
6227
  options: localVarRequestOptions,
5961
6228
  };
5962
6229
  },
6230
+ /**
6231
+ * get root account password
6232
+ * @summary getRootSeaweedFSAccountPassword
6233
+ * @param {string} orgName name of the Org
6234
+ * @param {string} clusterName name of the Cluster
6235
+ * @param {string} accountName name of the account
6236
+ * @param {string} [component] name of the component
6237
+ * @param {*} [options] Override http request option.
6238
+ * @throws {RequiredError}
6239
+ */
6240
+ getRootSeaweedFSAccountPassword: async (orgName, clusterName, accountName, component, options = {}) => {
6241
+ // verify required parameter 'orgName' is not null or undefined
6242
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'orgName', orgName);
6243
+ // verify required parameter 'clusterName' is not null or undefined
6244
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'clusterName', clusterName);
6245
+ // verify required parameter 'accountName' is not null or undefined
6246
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'accountName', accountName);
6247
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
6248
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6249
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6251
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6252
+ let baseOptions;
6253
+ if (configuration) {
6254
+ baseOptions = configuration.baseOptions;
6255
+ }
6256
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6257
+ const localVarHeaderParameter = {};
6258
+ const localVarQueryParameter = {};
6259
+ // authentication BearerToken required
6260
+ // http bearer authentication required
6261
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6262
+ // authentication DigestAuth required
6263
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
6264
+ if (accountName !== undefined) {
6265
+ localVarQueryParameter['accountName'] = accountName;
6266
+ }
6267
+ if (component !== undefined) {
6268
+ localVarQueryParameter['component'] = component;
6269
+ }
6270
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6271
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6272
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6273
+ return {
6274
+ url: (0, common_1.toPathString)(localVarUrlObj),
6275
+ options: localVarRequestOptions,
6276
+ };
6277
+ },
5963
6278
  /**
5964
6279
  *
5965
6280
  * @summary list all databases or schema of the cluster
@@ -8995,6 +9310,82 @@ const SharedApiAxiosParamCreator = function (configuration) {
8995
9310
  options: localVarRequestOptions,
8996
9311
  };
8997
9312
  },
9313
+ /**
9314
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
9315
+ * @summary listSeaweedFSAccounts
9316
+ * @param {string} orgName name of the organization
9317
+ * @param {string} clusterName name of the cluster
9318
+ * @param {*} [options] Override http request option.
9319
+ * @throws {RequiredError}
9320
+ */
9321
+ listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
9322
+ // verify required parameter 'orgName' is not null or undefined
9323
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
9324
+ // verify required parameter 'clusterName' is not null or undefined
9325
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
9326
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
9327
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
9328
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
9329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9330
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9331
+ let baseOptions;
9332
+ if (configuration) {
9333
+ baseOptions = configuration.baseOptions;
9334
+ }
9335
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9336
+ const localVarHeaderParameter = {};
9337
+ const localVarQueryParameter = {};
9338
+ // authentication BearerToken required
9339
+ // http bearer authentication required
9340
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9341
+ // authentication DigestAuth required
9342
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9343
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9345
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9346
+ return {
9347
+ url: (0, common_1.toPathString)(localVarUrlObj),
9348
+ options: localVarRequestOptions,
9349
+ };
9350
+ },
9351
+ /**
9352
+ *
9353
+ * @summary listSeaweedFSPolicies
9354
+ * @param {string} orgName
9355
+ * @param {string} clusterName
9356
+ * @param {*} [options] Override http request option.
9357
+ * @throws {RequiredError}
9358
+ */
9359
+ listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
9360
+ // verify required parameter 'orgName' is not null or undefined
9361
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
9362
+ // verify required parameter 'clusterName' is not null or undefined
9363
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
9364
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
9365
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
9366
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
9367
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9368
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9369
+ let baseOptions;
9370
+ if (configuration) {
9371
+ baseOptions = configuration.baseOptions;
9372
+ }
9373
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9374
+ const localVarHeaderParameter = {};
9375
+ const localVarQueryParameter = {};
9376
+ // authentication BearerToken required
9377
+ // http bearer authentication required
9378
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9379
+ // authentication DigestAuth required
9380
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9381
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9382
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9383
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9384
+ return {
9385
+ url: (0, common_1.toPathString)(localVarUrlObj),
9386
+ options: localVarRequestOptions,
9387
+ };
9388
+ },
8998
9389
  /**
8999
9390
  * list MinIO service account access keys
9000
9391
  * @summary List MinIO access keys
@@ -9901,6 +10292,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
9901
10292
  options: localVarRequestOptions,
9902
10293
  };
9903
10294
  },
10295
+ /**
10296
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
10297
+ * @summary putSeaweedFSPolicy
10298
+ * @param {string} orgName
10299
+ * @param {string} clusterName
10300
+ * @param {string} policyName
10301
+ * @param {{ [key: string]: any; }} requestBody
10302
+ * @param {*} [options] Override http request option.
10303
+ * @throws {RequiredError}
10304
+ */
10305
+ putSeaweedFSPolicy: async (orgName, clusterName, policyName, requestBody, options = {}) => {
10306
+ // verify required parameter 'orgName' is not null or undefined
10307
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'orgName', orgName);
10308
+ // verify required parameter 'clusterName' is not null or undefined
10309
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'clusterName', clusterName);
10310
+ // verify required parameter 'policyName' is not null or undefined
10311
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'policyName', policyName);
10312
+ // verify required parameter 'requestBody' is not null or undefined
10313
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'requestBody', requestBody);
10314
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
10315
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10316
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10317
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
10318
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10319
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10320
+ let baseOptions;
10321
+ if (configuration) {
10322
+ baseOptions = configuration.baseOptions;
10323
+ }
10324
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
10325
+ const localVarHeaderParameter = {};
10326
+ const localVarQueryParameter = {};
10327
+ // authentication BearerToken required
10328
+ // http bearer authentication required
10329
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10330
+ // authentication DigestAuth required
10331
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10332
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10333
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10335
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10336
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
10337
+ return {
10338
+ url: (0, common_1.toPathString)(localVarUrlObj),
10339
+ options: localVarRequestOptions,
10340
+ };
10341
+ },
9904
10342
  /**
9905
10343
  *
9906
10344
  * @summary create a SQL query
@@ -13442,6 +13880,100 @@ const SharedApiAxiosParamCreator = function (configuration) {
13442
13880
  options: localVarRequestOptions,
13443
13881
  };
13444
13882
  },
13883
+ /**
13884
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
13885
+ * @summary updateSeaweedFSAccount
13886
+ * @param {string} orgName name of the organization
13887
+ * @param {string} clusterName name of the cluster
13888
+ * @param {string} accountName name of the account
13889
+ * @param {Account} body
13890
+ * @param {*} [options] Override http request option.
13891
+ * @throws {RequiredError}
13892
+ */
13893
+ updateSeaweedFSAccount: async (orgName, clusterName, accountName, body, options = {}) => {
13894
+ // verify required parameter 'orgName' is not null or undefined
13895
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'orgName', orgName);
13896
+ // verify required parameter 'clusterName' is not null or undefined
13897
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'clusterName', clusterName);
13898
+ // verify required parameter 'accountName' is not null or undefined
13899
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'accountName', accountName);
13900
+ // verify required parameter 'body' is not null or undefined
13901
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'body', body);
13902
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
13903
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13904
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13905
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
13906
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13907
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13908
+ let baseOptions;
13909
+ if (configuration) {
13910
+ baseOptions = configuration.baseOptions;
13911
+ }
13912
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
13913
+ const localVarHeaderParameter = {};
13914
+ const localVarQueryParameter = {};
13915
+ // authentication BearerToken required
13916
+ // http bearer authentication required
13917
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13918
+ // authentication DigestAuth required
13919
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
13920
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13921
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13922
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13923
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13924
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
13925
+ return {
13926
+ url: (0, common_1.toPathString)(localVarUrlObj),
13927
+ options: localVarRequestOptions,
13928
+ };
13929
+ },
13930
+ /**
13931
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
13932
+ * @summary updateSeaweedFSAccountPrivileges
13933
+ * @param {string} orgName name of the Org
13934
+ * @param {string} clusterName name of the Cluster
13935
+ * @param {string} accountName name of the account
13936
+ * @param {Array<PrivilegeListItem>} body
13937
+ * @param {*} [options] Override http request option.
13938
+ * @throws {RequiredError}
13939
+ */
13940
+ updateSeaweedFSAccountPrivileges: async (orgName, clusterName, accountName, body, options = {}) => {
13941
+ // verify required parameter 'orgName' is not null or undefined
13942
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'orgName', orgName);
13943
+ // verify required parameter 'clusterName' is not null or undefined
13944
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName);
13945
+ // verify required parameter 'accountName' is not null or undefined
13946
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'accountName', accountName);
13947
+ // verify required parameter 'body' is not null or undefined
13948
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'body', body);
13949
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
13950
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13951
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13952
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
13953
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13954
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13955
+ let baseOptions;
13956
+ if (configuration) {
13957
+ baseOptions = configuration.baseOptions;
13958
+ }
13959
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
13960
+ const localVarHeaderParameter = {};
13961
+ const localVarQueryParameter = {};
13962
+ // authentication BearerToken required
13963
+ // http bearer authentication required
13964
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13965
+ // authentication DigestAuth required
13966
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
13967
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13968
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13969
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13970
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13971
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
13972
+ return {
13973
+ url: (0, common_1.toPathString)(localVarUrlObj),
13974
+ options: localVarRequestOptions,
13975
+ };
13976
+ },
13445
13977
  /**
13446
13978
  * update a MinIO service account access key
13447
13979
  * @summary Update MinIO access key
@@ -13985,6 +14517,23 @@ const SharedApiFp = function (configuration) {
13985
14517
  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;
13986
14518
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13987
14519
  },
14520
+ /**
14521
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
14522
+ * @summary bindSeaweedFSPolicies
14523
+ * @param {string} orgName
14524
+ * @param {string} clusterName
14525
+ * @param {string} accountName
14526
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
14527
+ * @param {*} [options] Override http request option.
14528
+ * @throws {RequiredError}
14529
+ */
14530
+ async bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options) {
14531
+ var _a, _b, _c;
14532
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
14533
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14534
+ 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;
14535
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14536
+ },
13988
14537
  /**
13989
14538
  *
13990
14539
  * @summary build backup object with a existing backup directory
@@ -14337,26 +14886,59 @@ const SharedApiFp = function (configuration) {
14337
14886
  * @param {*} [options] Override http request option.
14338
14887
  * @throws {RequiredError}
14339
14888
  */
14340
- async createRelation(orgName, clusterName, target, options) {
14889
+ async createRelation(orgName, clusterName, target, options) {
14890
+ var _a, _b, _c;
14891
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRelation(orgName, clusterName, target, options);
14892
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14893
+ 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;
14894
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14895
+ },
14896
+ /**
14897
+ * Create role
14898
+ * @summary Create role
14899
+ * @param {string} orgName name of the Org
14900
+ * @param {RoleCreate} roleCreate
14901
+ * @param {*} [options] Override http request option.
14902
+ * @throws {RequiredError}
14903
+ */
14904
+ async createRole(orgName, roleCreate, options) {
14905
+ var _a, _b, _c;
14906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRole(orgName, roleCreate, options);
14907
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14908
+ 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;
14909
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14910
+ },
14911
+ /**
14912
+ * 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.
14913
+ * @summary createSeaweedFSAccessKey
14914
+ * @param {string} orgName
14915
+ * @param {string} clusterName
14916
+ * @param {string} accountName
14917
+ * @param {Account} account
14918
+ * @param {*} [options] Override http request option.
14919
+ * @throws {RequiredError}
14920
+ */
14921
+ async createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options) {
14341
14922
  var _a, _b, _c;
14342
- const localVarAxiosArgs = await localVarAxiosParamCreator.createRelation(orgName, clusterName, target, options);
14923
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
14343
14924
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14344
- 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;
14925
+ 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;
14345
14926
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14346
14927
  },
14347
14928
  /**
14348
- * Create role
14349
- * @summary Create role
14350
- * @param {string} orgName name of the Org
14351
- * @param {RoleCreate} roleCreate
14929
+ * 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.
14930
+ * @summary createSeaweedFSAccount
14931
+ * @param {string} orgName name of the organization
14932
+ * @param {string} clusterName name of the cluster
14933
+ * @param {Account} body
14352
14934
  * @param {*} [options] Override http request option.
14353
14935
  * @throws {RequiredError}
14354
14936
  */
14355
- async createRole(orgName, roleCreate, options) {
14937
+ async createSeaweedFSAccount(orgName, clusterName, body, options) {
14356
14938
  var _a, _b, _c;
14357
- const localVarAxiosArgs = await localVarAxiosParamCreator.createRole(orgName, roleCreate, options);
14939
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
14358
14940
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14359
- 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;
14941
+ 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;
14360
14942
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14361
14943
  },
14362
14944
  /**
@@ -14960,6 +15542,55 @@ const SharedApiFp = function (configuration) {
14960
15542
  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;
14961
15543
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14962
15544
  },
15545
+ /**
15546
+ *
15547
+ * @summary deleteSeaweedFSAccessKey
15548
+ * @param {string} orgName
15549
+ * @param {string} clusterName
15550
+ * @param {string} accountName
15551
+ * @param {string} accessKey
15552
+ * @param {*} [options] Override http request option.
15553
+ * @throws {RequiredError}
15554
+ */
15555
+ async deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options) {
15556
+ var _a, _b, _c;
15557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
15558
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15559
+ 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;
15560
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15561
+ },
15562
+ /**
15563
+ * delete an account in cluster
15564
+ * @summary deleteSeaweedFSAccount
15565
+ * @param {string} orgName name of the organization
15566
+ * @param {string} clusterName name of the cluster
15567
+ * @param {string} accountName name of the account
15568
+ * @param {*} [options] Override http request option.
15569
+ * @throws {RequiredError}
15570
+ */
15571
+ async deleteSeaweedFSAccount(orgName, clusterName, accountName, options) {
15572
+ var _a, _b, _c;
15573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
15574
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15575
+ 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;
15576
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15577
+ },
15578
+ /**
15579
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
15580
+ * @summary deleteSeaweedFSPolicy
15581
+ * @param {string} orgName
15582
+ * @param {string} clusterName
15583
+ * @param {string} policyName
15584
+ * @param {*} [options] Override http request option.
15585
+ * @throws {RequiredError}
15586
+ */
15587
+ async deleteSeaweedFSPolicy(orgName, clusterName, policyName, options) {
15588
+ var _a, _b, _c;
15589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
15590
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15591
+ 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;
15592
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15593
+ },
14963
15594
  /**
14964
15595
  * delete a MinIO service account access key
14965
15596
  * @summary Delete MinIO access key
@@ -16028,6 +16659,23 @@ const SharedApiFp = function (configuration) {
16028
16659
  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;
16029
16660
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16030
16661
  },
16662
+ /**
16663
+ * get root account password
16664
+ * @summary getRootSeaweedFSAccountPassword
16665
+ * @param {string} orgName name of the Org
16666
+ * @param {string} clusterName name of the Cluster
16667
+ * @param {string} accountName name of the account
16668
+ * @param {string} [component] name of the component
16669
+ * @param {*} [options] Override http request option.
16670
+ * @throws {RequiredError}
16671
+ */
16672
+ async getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options) {
16673
+ var _a, _b, _c;
16674
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
16675
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16676
+ 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;
16677
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16678
+ },
16031
16679
  /**
16032
16680
  *
16033
16681
  * @summary list all databases or schema of the cluster
@@ -17152,6 +17800,36 @@ const SharedApiFp = function (configuration) {
17152
17800
  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;
17153
17801
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17154
17802
  },
17803
+ /**
17804
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
17805
+ * @summary listSeaweedFSAccounts
17806
+ * @param {string} orgName name of the organization
17807
+ * @param {string} clusterName name of the cluster
17808
+ * @param {*} [options] Override http request option.
17809
+ * @throws {RequiredError}
17810
+ */
17811
+ async listSeaweedFSAccounts(orgName, clusterName, options) {
17812
+ var _a, _b, _c;
17813
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
17814
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17815
+ 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;
17816
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17817
+ },
17818
+ /**
17819
+ *
17820
+ * @summary listSeaweedFSPolicies
17821
+ * @param {string} orgName
17822
+ * @param {string} clusterName
17823
+ * @param {*} [options] Override http request option.
17824
+ * @throws {RequiredError}
17825
+ */
17826
+ async listSeaweedFSPolicies(orgName, clusterName, options) {
17827
+ var _a, _b, _c;
17828
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
17829
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17830
+ 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;
17831
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17832
+ },
17155
17833
  /**
17156
17834
  * list MinIO service account access keys
17157
17835
  * @summary List MinIO access keys
@@ -17491,6 +18169,23 @@ const SharedApiFp = function (configuration) {
17491
18169
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17492
18170
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17493
18171
  },
18172
+ /**
18173
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
18174
+ * @summary putSeaweedFSPolicy
18175
+ * @param {string} orgName
18176
+ * @param {string} clusterName
18177
+ * @param {string} policyName
18178
+ * @param {{ [key: string]: any; }} requestBody
18179
+ * @param {*} [options] Override http request option.
18180
+ * @throws {RequiredError}
18181
+ */
18182
+ async putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options) {
18183
+ var _a, _b, _c;
18184
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
18185
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18186
+ 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;
18187
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18188
+ },
17494
18189
  /**
17495
18190
  *
17496
18191
  * @summary create a SQL query
@@ -18721,6 +19416,40 @@ const SharedApiFp = function (configuration) {
18721
19416
  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;
18722
19417
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18723
19418
  },
19419
+ /**
19420
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
19421
+ * @summary updateSeaweedFSAccount
19422
+ * @param {string} orgName name of the organization
19423
+ * @param {string} clusterName name of the cluster
19424
+ * @param {string} accountName name of the account
19425
+ * @param {Account} body
19426
+ * @param {*} [options] Override http request option.
19427
+ * @throws {RequiredError}
19428
+ */
19429
+ async updateSeaweedFSAccount(orgName, clusterName, accountName, body, options) {
19430
+ var _a, _b, _c;
19431
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
19432
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19433
+ 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;
19434
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19435
+ },
19436
+ /**
19437
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
19438
+ * @summary updateSeaweedFSAccountPrivileges
19439
+ * @param {string} orgName name of the Org
19440
+ * @param {string} clusterName name of the Cluster
19441
+ * @param {string} accountName name of the account
19442
+ * @param {Array<PrivilegeListItem>} body
19443
+ * @param {*} [options] Override http request option.
19444
+ * @throws {RequiredError}
19445
+ */
19446
+ async updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options) {
19447
+ var _a, _b, _c;
19448
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
19449
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19450
+ 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;
19451
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19452
+ },
18724
19453
  /**
18725
19454
  * update a MinIO service account access key
18726
19455
  * @summary Update MinIO access key
@@ -18946,6 +19675,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
18946
19675
  batchUpdateOrgParameters(requestParameters, options) {
18947
19676
  return localVarFp.batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
18948
19677
  },
19678
+ /**
19679
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
19680
+ * @summary bindSeaweedFSPolicies
19681
+ * @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
19682
+ * @param {*} [options] Override http request option.
19683
+ * @throws {RequiredError}
19684
+ */
19685
+ bindSeaweedFSPolicies(requestParameters, options) {
19686
+ return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
19687
+ },
18949
19688
  /**
18950
19689
  *
18951
19690
  * @summary build backup object with a existing backup directory
@@ -19177,6 +19916,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
19177
19916
  createRole(requestParameters, options) {
19178
19917
  return localVarFp.createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(axios, basePath));
19179
19918
  },
19919
+ /**
19920
+ * 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.
19921
+ * @summary createSeaweedFSAccessKey
19922
+ * @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
19923
+ * @param {*} [options] Override http request option.
19924
+ * @throws {RequiredError}
19925
+ */
19926
+ createSeaweedFSAccessKey(requestParameters, options) {
19927
+ return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
19928
+ },
19929
+ /**
19930
+ * 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.
19931
+ * @summary createSeaweedFSAccount
19932
+ * @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
19933
+ * @param {*} [options] Override http request option.
19934
+ * @throws {RequiredError}
19935
+ */
19936
+ createSeaweedFSAccount(requestParameters, options) {
19937
+ return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
19938
+ },
19180
19939
  /**
19181
19940
  * create a MinIO service account access key
19182
19941
  * @summary Create MinIO access key
@@ -19557,6 +20316,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
19557
20316
  deleteRoleByName(requestParameters, options) {
19558
20317
  return localVarFp.deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(axios, basePath));
19559
20318
  },
20319
+ /**
20320
+ *
20321
+ * @summary deleteSeaweedFSAccessKey
20322
+ * @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
20323
+ * @param {*} [options] Override http request option.
20324
+ * @throws {RequiredError}
20325
+ */
20326
+ deleteSeaweedFSAccessKey(requestParameters, options) {
20327
+ return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
20328
+ },
20329
+ /**
20330
+ * delete an account in cluster
20331
+ * @summary deleteSeaweedFSAccount
20332
+ * @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
20333
+ * @param {*} [options] Override http request option.
20334
+ * @throws {RequiredError}
20335
+ */
20336
+ deleteSeaweedFSAccount(requestParameters, options) {
20337
+ return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
20338
+ },
20339
+ /**
20340
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
20341
+ * @summary deleteSeaweedFSPolicy
20342
+ * @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
20343
+ * @param {*} [options] Override http request option.
20344
+ * @throws {RequiredError}
20345
+ */
20346
+ deleteSeaweedFSPolicy(requestParameters, options) {
20347
+ return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
20348
+ },
19560
20349
  /**
19561
20350
  * delete a MinIO service account access key
19562
20351
  * @summary Delete MinIO access key
@@ -20185,6 +20974,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
20185
20974
  getRootAccountPassword(requestParameters, options) {
20186
20975
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
20187
20976
  },
20977
+ /**
20978
+ * get root account password
20979
+ * @summary getRootSeaweedFSAccountPassword
20980
+ * @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
20981
+ * @param {*} [options] Override http request option.
20982
+ * @throws {RequiredError}
20983
+ */
20984
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
20985
+ return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
20986
+ },
20188
20987
  /**
20189
20988
  *
20190
20989
  * @summary list all databases or schema of the cluster
@@ -20863,6 +21662,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
20863
21662
  listRoles(requestParameters, options) {
20864
21663
  return localVarFp.listRoles(requestParameters.orgName, options).then((request) => request(axios, basePath));
20865
21664
  },
21665
+ /**
21666
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
21667
+ * @summary listSeaweedFSAccounts
21668
+ * @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
21669
+ * @param {*} [options] Override http request option.
21670
+ * @throws {RequiredError}
21671
+ */
21672
+ listSeaweedFSAccounts(requestParameters, options) {
21673
+ return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
21674
+ },
21675
+ /**
21676
+ *
21677
+ * @summary listSeaweedFSPolicies
21678
+ * @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
21679
+ * @param {*} [options] Override http request option.
21680
+ * @throws {RequiredError}
21681
+ */
21682
+ listSeaweedFSPolicies(requestParameters, options) {
21683
+ return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
21684
+ },
20866
21685
  /**
20867
21686
  * list MinIO service account access keys
20868
21687
  * @summary List MinIO access keys
@@ -21073,6 +21892,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
21073
21892
  putElasticsearchSecurityUser(requestParameters, options) {
21074
21893
  return localVarFp.putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
21075
21894
  },
21895
+ /**
21896
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
21897
+ * @summary putSeaweedFSPolicy
21898
+ * @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
21899
+ * @param {*} [options] Override http request option.
21900
+ * @throws {RequiredError}
21901
+ */
21902
+ putSeaweedFSPolicy(requestParameters, options) {
21903
+ return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
21904
+ },
21076
21905
  /**
21077
21906
  *
21078
21907
  * @summary create a SQL query
@@ -21742,6 +22571,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
21742
22571
  updateRoleByName(requestParameters, options) {
21743
22572
  return localVarFp.updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(axios, basePath));
21744
22573
  },
22574
+ /**
22575
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
22576
+ * @summary updateSeaweedFSAccount
22577
+ * @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
22578
+ * @param {*} [options] Override http request option.
22579
+ * @throws {RequiredError}
22580
+ */
22581
+ updateSeaweedFSAccount(requestParameters, options) {
22582
+ return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
22583
+ },
22584
+ /**
22585
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
22586
+ * @summary updateSeaweedFSAccountPrivileges
22587
+ * @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
22588
+ * @param {*} [options] Override http request option.
22589
+ * @throws {RequiredError}
22590
+ */
22591
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
22592
+ return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
22593
+ },
21745
22594
  /**
21746
22595
  * update a MinIO service account access key
21747
22596
  * @summary Update MinIO access key
@@ -21918,6 +22767,17 @@ class SharedApi extends base_1.BaseAPI {
21918
22767
  batchUpdateOrgParameters(requestParameters, options) {
21919
22768
  return (0, exports.SharedApiFp)(this.configuration).batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
21920
22769
  }
22770
+ /**
22771
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
22772
+ * @summary bindSeaweedFSPolicies
22773
+ * @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
22774
+ * @param {*} [options] Override http request option.
22775
+ * @throws {RequiredError}
22776
+ * @memberof SharedApi
22777
+ */
22778
+ bindSeaweedFSPolicies(requestParameters, options) {
22779
+ return (0, exports.SharedApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
22780
+ }
21921
22781
  /**
21922
22782
  *
21923
22783
  * @summary build backup object with a existing backup directory
@@ -22172,6 +23032,28 @@ class SharedApi extends base_1.BaseAPI {
22172
23032
  createRole(requestParameters, options) {
22173
23033
  return (0, exports.SharedApiFp)(this.configuration).createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(this.axios, this.basePath));
22174
23034
  }
23035
+ /**
23036
+ * 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.
23037
+ * @summary createSeaweedFSAccessKey
23038
+ * @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
23039
+ * @param {*} [options] Override http request option.
23040
+ * @throws {RequiredError}
23041
+ * @memberof SharedApi
23042
+ */
23043
+ createSeaweedFSAccessKey(requestParameters, options) {
23044
+ return (0, exports.SharedApiFp)(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
23045
+ }
23046
+ /**
23047
+ * 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.
23048
+ * @summary createSeaweedFSAccount
23049
+ * @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
23050
+ * @param {*} [options] Override http request option.
23051
+ * @throws {RequiredError}
23052
+ * @memberof SharedApi
23053
+ */
23054
+ createSeaweedFSAccount(requestParameters, options) {
23055
+ return (0, exports.SharedApiFp)(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
23056
+ }
22175
23057
  /**
22176
23058
  * create a MinIO service account access key
22177
23059
  * @summary Create MinIO access key
@@ -22590,6 +23472,39 @@ class SharedApi extends base_1.BaseAPI {
22590
23472
  deleteRoleByName(requestParameters, options) {
22591
23473
  return (0, exports.SharedApiFp)(this.configuration).deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
22592
23474
  }
23475
+ /**
23476
+ *
23477
+ * @summary deleteSeaweedFSAccessKey
23478
+ * @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
23479
+ * @param {*} [options] Override http request option.
23480
+ * @throws {RequiredError}
23481
+ * @memberof SharedApi
23482
+ */
23483
+ deleteSeaweedFSAccessKey(requestParameters, options) {
23484
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
23485
+ }
23486
+ /**
23487
+ * delete an account in cluster
23488
+ * @summary deleteSeaweedFSAccount
23489
+ * @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
23490
+ * @param {*} [options] Override http request option.
23491
+ * @throws {RequiredError}
23492
+ * @memberof SharedApi
23493
+ */
23494
+ deleteSeaweedFSAccount(requestParameters, options) {
23495
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
23496
+ }
23497
+ /**
23498
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
23499
+ * @summary deleteSeaweedFSPolicy
23500
+ * @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
23501
+ * @param {*} [options] Override http request option.
23502
+ * @throws {RequiredError}
23503
+ * @memberof SharedApi
23504
+ */
23505
+ deleteSeaweedFSPolicy(requestParameters, options) {
23506
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
23507
+ }
22593
23508
  /**
22594
23509
  * delete a MinIO service account access key
22595
23510
  * @summary Delete MinIO access key
@@ -23281,6 +24196,17 @@ class SharedApi extends base_1.BaseAPI {
23281
24196
  getRootAccountPassword(requestParameters, options) {
23282
24197
  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));
23283
24198
  }
24199
+ /**
24200
+ * get root account password
24201
+ * @summary getRootSeaweedFSAccountPassword
24202
+ * @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
24203
+ * @param {*} [options] Override http request option.
24204
+ * @throws {RequiredError}
24205
+ * @memberof SharedApi
24206
+ */
24207
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
24208
+ return (0, exports.SharedApiFp)(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
24209
+ }
23284
24210
  /**
23285
24211
  *
23286
24212
  * @summary list all databases or schema of the cluster
@@ -24027,6 +24953,28 @@ class SharedApi extends base_1.BaseAPI {
24027
24953
  listRoles(requestParameters, options) {
24028
24954
  return (0, exports.SharedApiFp)(this.configuration).listRoles(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
24029
24955
  }
24956
+ /**
24957
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
24958
+ * @summary listSeaweedFSAccounts
24959
+ * @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
24960
+ * @param {*} [options] Override http request option.
24961
+ * @throws {RequiredError}
24962
+ * @memberof SharedApi
24963
+ */
24964
+ listSeaweedFSAccounts(requestParameters, options) {
24965
+ return (0, exports.SharedApiFp)(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
24966
+ }
24967
+ /**
24968
+ *
24969
+ * @summary listSeaweedFSPolicies
24970
+ * @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
24971
+ * @param {*} [options] Override http request option.
24972
+ * @throws {RequiredError}
24973
+ * @memberof SharedApi
24974
+ */
24975
+ listSeaweedFSPolicies(requestParameters, options) {
24976
+ return (0, exports.SharedApiFp)(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
24977
+ }
24030
24978
  /**
24031
24979
  * list MinIO service account access keys
24032
24980
  * @summary List MinIO access keys
@@ -24258,6 +25206,17 @@ class SharedApi extends base_1.BaseAPI {
24258
25206
  putElasticsearchSecurityUser(requestParameters, options) {
24259
25207
  return (0, exports.SharedApiFp)(this.configuration).putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
24260
25208
  }
25209
+ /**
25210
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
25211
+ * @summary putSeaweedFSPolicy
25212
+ * @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
25213
+ * @param {*} [options] Override http request option.
25214
+ * @throws {RequiredError}
25215
+ * @memberof SharedApi
25216
+ */
25217
+ putSeaweedFSPolicy(requestParameters, options) {
25218
+ return (0, exports.SharedApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
25219
+ }
24261
25220
  /**
24262
25221
  *
24263
25222
  * @summary create a SQL query
@@ -24994,6 +25953,28 @@ class SharedApi extends base_1.BaseAPI {
24994
25953
  updateRoleByName(requestParameters, options) {
24995
25954
  return (0, exports.SharedApiFp)(this.configuration).updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(this.axios, this.basePath));
24996
25955
  }
25956
+ /**
25957
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
25958
+ * @summary updateSeaweedFSAccount
25959
+ * @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
25960
+ * @param {*} [options] Override http request option.
25961
+ * @throws {RequiredError}
25962
+ * @memberof SharedApi
25963
+ */
25964
+ updateSeaweedFSAccount(requestParameters, options) {
25965
+ return (0, exports.SharedApiFp)(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
25966
+ }
25967
+ /**
25968
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
25969
+ * @summary updateSeaweedFSAccountPrivileges
25970
+ * @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
25971
+ * @param {*} [options] Override http request option.
25972
+ * @throws {RequiredError}
25973
+ * @memberof SharedApi
25974
+ */
25975
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
25976
+ return (0, exports.SharedApiFp)(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
25977
+ }
24997
25978
  /**
24998
25979
  * update a MinIO service account access key
24999
25980
  * @summary Update MinIO access key