kb-cloud-client-typescript 2.4.0-alpha.61 → 2.4.0-alpha.63

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
@@ -481,6 +481,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
481
481
  options: localVarRequestOptions,
482
482
  };
483
483
  },
484
+ /**
485
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
486
+ * @summary bindSeaweedFSPolicies
487
+ * @param {string} orgName
488
+ * @param {string} clusterName
489
+ * @param {string} accountName
490
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ bindSeaweedFSPolicies: async (orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options = {}) => {
495
+ // verify required parameter 'orgName' is not null or undefined
496
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'orgName', orgName);
497
+ // verify required parameter 'clusterName' is not null or undefined
498
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'clusterName', clusterName);
499
+ // verify required parameter 'accountName' is not null or undefined
500
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'accountName', accountName);
501
+ // verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
502
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest);
503
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
504
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
505
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
506
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
507
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
508
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
509
+ let baseOptions;
510
+ if (configuration) {
511
+ baseOptions = configuration.baseOptions;
512
+ }
513
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
514
+ const localVarHeaderParameter = {};
515
+ const localVarQueryParameter = {};
516
+ // authentication BearerToken required
517
+ // http bearer authentication required
518
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
519
+ // authentication DigestAuth required
520
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
521
+ localVarHeaderParameter['Content-Type'] = 'application/json';
522
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
523
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
524
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
525
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration);
526
+ return {
527
+ url: (0, common_1.toPathString)(localVarUrlObj),
528
+ options: localVarRequestOptions,
529
+ };
530
+ },
484
531
  /**
485
532
  *
486
533
  * @summary build backup object with a existing backup directory
@@ -1526,6 +1573,96 @@ const SharedApiAxiosParamCreator = function (configuration) {
1526
1573
  options: localVarRequestOptions,
1527
1574
  };
1528
1575
  },
1576
+ /**
1577
+ * 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.
1578
+ * @summary createSeaweedFSAccessKey
1579
+ * @param {string} orgName
1580
+ * @param {string} clusterName
1581
+ * @param {string} accountName
1582
+ * @param {Account} account
1583
+ * @param {*} [options] Override http request option.
1584
+ * @throws {RequiredError}
1585
+ */
1586
+ createSeaweedFSAccessKey: async (orgName, clusterName, accountName, account, options = {}) => {
1587
+ // verify required parameter 'orgName' is not null or undefined
1588
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'orgName', orgName);
1589
+ // verify required parameter 'clusterName' is not null or undefined
1590
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'clusterName', clusterName);
1591
+ // verify required parameter 'accountName' is not null or undefined
1592
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'accountName', accountName);
1593
+ // verify required parameter 'account' is not null or undefined
1594
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'account', account);
1595
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
1596
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1597
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1598
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1599
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1600
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1601
+ let baseOptions;
1602
+ if (configuration) {
1603
+ baseOptions = configuration.baseOptions;
1604
+ }
1605
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1606
+ const localVarHeaderParameter = {};
1607
+ const localVarQueryParameter = {};
1608
+ // authentication BearerToken required
1609
+ // http bearer authentication required
1610
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1611
+ // authentication DigestAuth required
1612
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1613
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1614
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1615
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1616
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1617
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(account, localVarRequestOptions, configuration);
1618
+ return {
1619
+ url: (0, common_1.toPathString)(localVarUrlObj),
1620
+ options: localVarRequestOptions,
1621
+ };
1622
+ },
1623
+ /**
1624
+ * 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.
1625
+ * @summary createSeaweedFSAccount
1626
+ * @param {string} orgName name of the organization
1627
+ * @param {string} clusterName name of the cluster
1628
+ * @param {Account} body
1629
+ * @param {*} [options] Override http request option.
1630
+ * @throws {RequiredError}
1631
+ */
1632
+ createSeaweedFSAccount: async (orgName, clusterName, body, options = {}) => {
1633
+ // verify required parameter 'orgName' is not null or undefined
1634
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'orgName', orgName);
1635
+ // verify required parameter 'clusterName' is not null or undefined
1636
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'clusterName', clusterName);
1637
+ // verify required parameter 'body' is not null or undefined
1638
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'body', body);
1639
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
1640
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1641
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1643
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1644
+ let baseOptions;
1645
+ if (configuration) {
1646
+ baseOptions = configuration.baseOptions;
1647
+ }
1648
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1649
+ const localVarHeaderParameter = {};
1650
+ const localVarQueryParameter = {};
1651
+ // authentication BearerToken required
1652
+ // http bearer authentication required
1653
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1654
+ // authentication DigestAuth required
1655
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1656
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1657
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1658
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1659
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1660
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1661
+ return {
1662
+ url: (0, common_1.toPathString)(localVarUrlObj),
1663
+ options: localVarRequestOptions,
1664
+ };
1665
+ },
1529
1666
  /**
1530
1667
  * create a MinIO service account access key
1531
1668
  * @summary Create MinIO access key
@@ -2990,6 +3127,136 @@ const SharedApiAxiosParamCreator = function (configuration) {
2990
3127
  options: localVarRequestOptions,
2991
3128
  };
2992
3129
  },
3130
+ /**
3131
+ *
3132
+ * @summary deleteSeaweedFSAccessKey
3133
+ * @param {string} orgName
3134
+ * @param {string} clusterName
3135
+ * @param {string} accountName
3136
+ * @param {string} accessKey
3137
+ * @param {*} [options] Override http request option.
3138
+ * @throws {RequiredError}
3139
+ */
3140
+ deleteSeaweedFSAccessKey: async (orgName, clusterName, accountName, accessKey, options = {}) => {
3141
+ // verify required parameter 'orgName' is not null or undefined
3142
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'orgName', orgName);
3143
+ // verify required parameter 'clusterName' is not null or undefined
3144
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'clusterName', clusterName);
3145
+ // verify required parameter 'accountName' is not null or undefined
3146
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accountName', accountName);
3147
+ // verify required parameter 'accessKey' is not null or undefined
3148
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accessKey', accessKey);
3149
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
3150
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3151
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3152
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
3153
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
3154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3155
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3156
+ let baseOptions;
3157
+ if (configuration) {
3158
+ baseOptions = configuration.baseOptions;
3159
+ }
3160
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3161
+ const localVarHeaderParameter = {};
3162
+ const localVarQueryParameter = {};
3163
+ // authentication BearerToken required
3164
+ // http bearer authentication required
3165
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3166
+ // authentication DigestAuth required
3167
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3168
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3170
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3171
+ return {
3172
+ url: (0, common_1.toPathString)(localVarUrlObj),
3173
+ options: localVarRequestOptions,
3174
+ };
3175
+ },
3176
+ /**
3177
+ * delete an account in cluster
3178
+ * @summary deleteSeaweedFSAccount
3179
+ * @param {string} orgName name of the organization
3180
+ * @param {string} clusterName name of the cluster
3181
+ * @param {string} accountName name of the account
3182
+ * @param {*} [options] Override http request option.
3183
+ * @throws {RequiredError}
3184
+ */
3185
+ deleteSeaweedFSAccount: async (orgName, clusterName, accountName, options = {}) => {
3186
+ // verify required parameter 'orgName' is not null or undefined
3187
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'orgName', orgName);
3188
+ // verify required parameter 'clusterName' is not null or undefined
3189
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'clusterName', clusterName);
3190
+ // verify required parameter 'accountName' is not null or undefined
3191
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'accountName', accountName);
3192
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
3193
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3194
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3195
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
3196
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3197
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3198
+ let baseOptions;
3199
+ if (configuration) {
3200
+ baseOptions = configuration.baseOptions;
3201
+ }
3202
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3203
+ const localVarHeaderParameter = {};
3204
+ const localVarQueryParameter = {};
3205
+ // authentication BearerToken required
3206
+ // http bearer authentication required
3207
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3208
+ // authentication DigestAuth required
3209
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3210
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3211
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3212
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3213
+ return {
3214
+ url: (0, common_1.toPathString)(localVarUrlObj),
3215
+ options: localVarRequestOptions,
3216
+ };
3217
+ },
3218
+ /**
3219
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
3220
+ * @summary deleteSeaweedFSPolicy
3221
+ * @param {string} orgName
3222
+ * @param {string} clusterName
3223
+ * @param {string} policyName
3224
+ * @param {*} [options] Override http request option.
3225
+ * @throws {RequiredError}
3226
+ */
3227
+ deleteSeaweedFSPolicy: async (orgName, clusterName, policyName, options = {}) => {
3228
+ // verify required parameter 'orgName' is not null or undefined
3229
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'orgName', orgName);
3230
+ // verify required parameter 'clusterName' is not null or undefined
3231
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'clusterName', clusterName);
3232
+ // verify required parameter 'policyName' is not null or undefined
3233
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'policyName', policyName);
3234
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
3235
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3236
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3237
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
3238
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3239
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3240
+ let baseOptions;
3241
+ if (configuration) {
3242
+ baseOptions = configuration.baseOptions;
3243
+ }
3244
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3245
+ const localVarHeaderParameter = {};
3246
+ const localVarQueryParameter = {};
3247
+ // authentication BearerToken required
3248
+ // http bearer authentication required
3249
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3250
+ // authentication DigestAuth required
3251
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3252
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3254
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3255
+ return {
3256
+ url: (0, common_1.toPathString)(localVarUrlObj),
3257
+ options: localVarRequestOptions,
3258
+ };
3259
+ },
2993
3260
  /**
2994
3261
  * delete a MinIO service account access key
2995
3262
  * @summary Delete MinIO access key
@@ -5749,6 +6016,54 @@ const SharedApiAxiosParamCreator = function (configuration) {
5749
6016
  options: localVarRequestOptions,
5750
6017
  };
5751
6018
  },
6019
+ /**
6020
+ * get root account password
6021
+ * @summary getRootSeaweedFSAccountPassword
6022
+ * @param {string} orgName name of the Org
6023
+ * @param {string} clusterName name of the Cluster
6024
+ * @param {string} accountName name of the account
6025
+ * @param {string} [component] name of the component
6026
+ * @param {*} [options] Override http request option.
6027
+ * @throws {RequiredError}
6028
+ */
6029
+ getRootSeaweedFSAccountPassword: async (orgName, clusterName, accountName, component, options = {}) => {
6030
+ // verify required parameter 'orgName' is not null or undefined
6031
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'orgName', orgName);
6032
+ // verify required parameter 'clusterName' is not null or undefined
6033
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'clusterName', clusterName);
6034
+ // verify required parameter 'accountName' is not null or undefined
6035
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'accountName', accountName);
6036
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
6037
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6038
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6040
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6041
+ let baseOptions;
6042
+ if (configuration) {
6043
+ baseOptions = configuration.baseOptions;
6044
+ }
6045
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6046
+ const localVarHeaderParameter = {};
6047
+ const localVarQueryParameter = {};
6048
+ // authentication BearerToken required
6049
+ // http bearer authentication required
6050
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6051
+ // authentication DigestAuth required
6052
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
6053
+ if (accountName !== undefined) {
6054
+ localVarQueryParameter['accountName'] = accountName;
6055
+ }
6056
+ if (component !== undefined) {
6057
+ localVarQueryParameter['component'] = component;
6058
+ }
6059
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6061
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6062
+ return {
6063
+ url: (0, common_1.toPathString)(localVarUrlObj),
6064
+ options: localVarRequestOptions,
6065
+ };
6066
+ },
5752
6067
  /**
5753
6068
  *
5754
6069
  * @summary list all databases or schema of the cluster
@@ -9042,6 +9357,82 @@ const SharedApiAxiosParamCreator = function (configuration) {
9042
9357
  options: localVarRequestOptions,
9043
9358
  };
9044
9359
  },
9360
+ /**
9361
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
9362
+ * @summary listSeaweedFSAccounts
9363
+ * @param {string} orgName name of the organization
9364
+ * @param {string} clusterName name of the cluster
9365
+ * @param {*} [options] Override http request option.
9366
+ * @throws {RequiredError}
9367
+ */
9368
+ listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
9369
+ // verify required parameter 'orgName' is not null or undefined
9370
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
9371
+ // verify required parameter 'clusterName' is not null or undefined
9372
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
9373
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
9374
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
9375
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
9376
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9377
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9378
+ let baseOptions;
9379
+ if (configuration) {
9380
+ baseOptions = configuration.baseOptions;
9381
+ }
9382
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9383
+ const localVarHeaderParameter = {};
9384
+ const localVarQueryParameter = {};
9385
+ // authentication BearerToken required
9386
+ // http bearer authentication required
9387
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9388
+ // authentication DigestAuth required
9389
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9390
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9392
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9393
+ return {
9394
+ url: (0, common_1.toPathString)(localVarUrlObj),
9395
+ options: localVarRequestOptions,
9396
+ };
9397
+ },
9398
+ /**
9399
+ *
9400
+ * @summary listSeaweedFSPolicies
9401
+ * @param {string} orgName
9402
+ * @param {string} clusterName
9403
+ * @param {*} [options] Override http request option.
9404
+ * @throws {RequiredError}
9405
+ */
9406
+ listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
9407
+ // verify required parameter 'orgName' is not null or undefined
9408
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
9409
+ // verify required parameter 'clusterName' is not null or undefined
9410
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
9411
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
9412
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
9413
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
9414
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9415
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9416
+ let baseOptions;
9417
+ if (configuration) {
9418
+ baseOptions = configuration.baseOptions;
9419
+ }
9420
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
9421
+ const localVarHeaderParameter = {};
9422
+ const localVarQueryParameter = {};
9423
+ // authentication BearerToken required
9424
+ // http bearer authentication required
9425
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9426
+ // authentication DigestAuth required
9427
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9428
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9430
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9431
+ return {
9432
+ url: (0, common_1.toPathString)(localVarUrlObj),
9433
+ options: localVarRequestOptions,
9434
+ };
9435
+ },
9045
9436
  /**
9046
9437
  * list MinIO service account access keys
9047
9438
  * @summary List MinIO access keys
@@ -9948,6 +10339,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
9948
10339
  options: localVarRequestOptions,
9949
10340
  };
9950
10341
  },
10342
+ /**
10343
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
10344
+ * @summary putSeaweedFSPolicy
10345
+ * @param {string} orgName
10346
+ * @param {string} clusterName
10347
+ * @param {string} policyName
10348
+ * @param {{ [key: string]: any; }} requestBody
10349
+ * @param {*} [options] Override http request option.
10350
+ * @throws {RequiredError}
10351
+ */
10352
+ putSeaweedFSPolicy: async (orgName, clusterName, policyName, requestBody, options = {}) => {
10353
+ // verify required parameter 'orgName' is not null or undefined
10354
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'orgName', orgName);
10355
+ // verify required parameter 'clusterName' is not null or undefined
10356
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'clusterName', clusterName);
10357
+ // verify required parameter 'policyName' is not null or undefined
10358
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'policyName', policyName);
10359
+ // verify required parameter 'requestBody' is not null or undefined
10360
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'requestBody', requestBody);
10361
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
10362
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
10363
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
10364
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
10365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10366
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10367
+ let baseOptions;
10368
+ if (configuration) {
10369
+ baseOptions = configuration.baseOptions;
10370
+ }
10371
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
10372
+ const localVarHeaderParameter = {};
10373
+ const localVarQueryParameter = {};
10374
+ // authentication BearerToken required
10375
+ // http bearer authentication required
10376
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
10377
+ // authentication DigestAuth required
10378
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10379
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10380
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10381
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10382
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10383
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
10384
+ return {
10385
+ url: (0, common_1.toPathString)(localVarUrlObj),
10386
+ options: localVarRequestOptions,
10387
+ };
10388
+ },
9951
10389
  /**
9952
10390
  *
9953
10391
  * @summary create a SQL query
@@ -13365,6 +13803,100 @@ const SharedApiAxiosParamCreator = function (configuration) {
13365
13803
  options: localVarRequestOptions,
13366
13804
  };
13367
13805
  },
13806
+ /**
13807
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
13808
+ * @summary updateSeaweedFSAccount
13809
+ * @param {string} orgName name of the organization
13810
+ * @param {string} clusterName name of the cluster
13811
+ * @param {string} accountName name of the account
13812
+ * @param {Account} body
13813
+ * @param {*} [options] Override http request option.
13814
+ * @throws {RequiredError}
13815
+ */
13816
+ updateSeaweedFSAccount: async (orgName, clusterName, accountName, body, options = {}) => {
13817
+ // verify required parameter 'orgName' is not null or undefined
13818
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'orgName', orgName);
13819
+ // verify required parameter 'clusterName' is not null or undefined
13820
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'clusterName', clusterName);
13821
+ // verify required parameter 'accountName' is not null or undefined
13822
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'accountName', accountName);
13823
+ // verify required parameter 'body' is not null or undefined
13824
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'body', body);
13825
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
13826
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13827
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13828
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
13829
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13830
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13831
+ let baseOptions;
13832
+ if (configuration) {
13833
+ baseOptions = configuration.baseOptions;
13834
+ }
13835
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
13836
+ const localVarHeaderParameter = {};
13837
+ const localVarQueryParameter = {};
13838
+ // authentication BearerToken required
13839
+ // http bearer authentication required
13840
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13841
+ // authentication DigestAuth required
13842
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
13843
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13844
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13845
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13846
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13847
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
13848
+ return {
13849
+ url: (0, common_1.toPathString)(localVarUrlObj),
13850
+ options: localVarRequestOptions,
13851
+ };
13852
+ },
13853
+ /**
13854
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
13855
+ * @summary updateSeaweedFSAccountPrivileges
13856
+ * @param {string} orgName name of the Org
13857
+ * @param {string} clusterName name of the Cluster
13858
+ * @param {string} accountName name of the account
13859
+ * @param {Array<PrivilegeListItem>} body
13860
+ * @param {*} [options] Override http request option.
13861
+ * @throws {RequiredError}
13862
+ */
13863
+ updateSeaweedFSAccountPrivileges: async (orgName, clusterName, accountName, body, options = {}) => {
13864
+ // verify required parameter 'orgName' is not null or undefined
13865
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'orgName', orgName);
13866
+ // verify required parameter 'clusterName' is not null or undefined
13867
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName);
13868
+ // verify required parameter 'accountName' is not null or undefined
13869
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'accountName', accountName);
13870
+ // verify required parameter 'body' is not null or undefined
13871
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'body', body);
13872
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
13873
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
13874
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
13875
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
13876
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13877
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13878
+ let baseOptions;
13879
+ if (configuration) {
13880
+ baseOptions = configuration.baseOptions;
13881
+ }
13882
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
13883
+ const localVarHeaderParameter = {};
13884
+ const localVarQueryParameter = {};
13885
+ // authentication BearerToken required
13886
+ // http bearer authentication required
13887
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13888
+ // authentication DigestAuth required
13889
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
13890
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13891
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13893
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13894
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
13895
+ return {
13896
+ url: (0, common_1.toPathString)(localVarUrlObj),
13897
+ options: localVarRequestOptions,
13898
+ };
13899
+ },
13368
13900
  /**
13369
13901
  * update a MinIO service account access key
13370
13902
  * @summary Update MinIO access key
@@ -13927,6 +14459,23 @@ const SharedApiFp = function (configuration) {
13927
14459
  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;
13928
14460
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13929
14461
  },
14462
+ /**
14463
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
14464
+ * @summary bindSeaweedFSPolicies
14465
+ * @param {string} orgName
14466
+ * @param {string} clusterName
14467
+ * @param {string} accountName
14468
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
14469
+ * @param {*} [options] Override http request option.
14470
+ * @throws {RequiredError}
14471
+ */
14472
+ async bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options) {
14473
+ var _a, _b, _c;
14474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
14475
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14476
+ 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;
14477
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14478
+ },
13930
14479
  /**
13931
14480
  *
13932
14481
  * @summary build backup object with a existing backup directory
@@ -14293,26 +14842,59 @@ const SharedApiFp = function (configuration) {
14293
14842
  * @param {*} [options] Override http request option.
14294
14843
  * @throws {RequiredError}
14295
14844
  */
14296
- async createRelation(orgName, clusterName, target, options) {
14845
+ async createRelation(orgName, clusterName, target, options) {
14846
+ var _a, _b, _c;
14847
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRelation(orgName, clusterName, target, options);
14848
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14849
+ 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;
14850
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14851
+ },
14852
+ /**
14853
+ * Create role
14854
+ * @summary Create role
14855
+ * @param {string} orgName name of the Org
14856
+ * @param {RoleCreate} roleCreate
14857
+ * @param {*} [options] Override http request option.
14858
+ * @throws {RequiredError}
14859
+ */
14860
+ async createRole(orgName, roleCreate, options) {
14861
+ var _a, _b, _c;
14862
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRole(orgName, roleCreate, options);
14863
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14864
+ 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;
14865
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14866
+ },
14867
+ /**
14868
+ * 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.
14869
+ * @summary createSeaweedFSAccessKey
14870
+ * @param {string} orgName
14871
+ * @param {string} clusterName
14872
+ * @param {string} accountName
14873
+ * @param {Account} account
14874
+ * @param {*} [options] Override http request option.
14875
+ * @throws {RequiredError}
14876
+ */
14877
+ async createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options) {
14297
14878
  var _a, _b, _c;
14298
- const localVarAxiosArgs = await localVarAxiosParamCreator.createRelation(orgName, clusterName, target, options);
14879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
14299
14880
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14300
- 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;
14881
+ 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;
14301
14882
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14302
14883
  },
14303
14884
  /**
14304
- * Create role
14305
- * @summary Create role
14306
- * @param {string} orgName name of the Org
14307
- * @param {RoleCreate} roleCreate
14885
+ * 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.
14886
+ * @summary createSeaweedFSAccount
14887
+ * @param {string} orgName name of the organization
14888
+ * @param {string} clusterName name of the cluster
14889
+ * @param {Account} body
14308
14890
  * @param {*} [options] Override http request option.
14309
14891
  * @throws {RequiredError}
14310
14892
  */
14311
- async createRole(orgName, roleCreate, options) {
14893
+ async createSeaweedFSAccount(orgName, clusterName, body, options) {
14312
14894
  var _a, _b, _c;
14313
- const localVarAxiosArgs = await localVarAxiosParamCreator.createRole(orgName, roleCreate, options);
14895
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
14314
14896
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14315
- 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;
14897
+ 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;
14316
14898
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14317
14899
  },
14318
14900
  /**
@@ -14871,6 +15453,55 @@ const SharedApiFp = function (configuration) {
14871
15453
  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;
14872
15454
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14873
15455
  },
15456
+ /**
15457
+ *
15458
+ * @summary deleteSeaweedFSAccessKey
15459
+ * @param {string} orgName
15460
+ * @param {string} clusterName
15461
+ * @param {string} accountName
15462
+ * @param {string} accessKey
15463
+ * @param {*} [options] Override http request option.
15464
+ * @throws {RequiredError}
15465
+ */
15466
+ async deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options) {
15467
+ var _a, _b, _c;
15468
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
15469
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15470
+ 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;
15471
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15472
+ },
15473
+ /**
15474
+ * delete an account in cluster
15475
+ * @summary deleteSeaweedFSAccount
15476
+ * @param {string} orgName name of the organization
15477
+ * @param {string} clusterName name of the cluster
15478
+ * @param {string} accountName name of the account
15479
+ * @param {*} [options] Override http request option.
15480
+ * @throws {RequiredError}
15481
+ */
15482
+ async deleteSeaweedFSAccount(orgName, clusterName, accountName, options) {
15483
+ var _a, _b, _c;
15484
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
15485
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15486
+ 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;
15487
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15488
+ },
15489
+ /**
15490
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
15491
+ * @summary deleteSeaweedFSPolicy
15492
+ * @param {string} orgName
15493
+ * @param {string} clusterName
15494
+ * @param {string} policyName
15495
+ * @param {*} [options] Override http request option.
15496
+ * @throws {RequiredError}
15497
+ */
15498
+ async deleteSeaweedFSPolicy(orgName, clusterName, policyName, options) {
15499
+ var _a, _b, _c;
15500
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
15501
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15502
+ 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;
15503
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15504
+ },
14874
15505
  /**
14875
15506
  * delete a MinIO service account access key
14876
15507
  * @summary Delete MinIO access key
@@ -15889,6 +16520,23 @@ const SharedApiFp = function (configuration) {
15889
16520
  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;
15890
16521
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15891
16522
  },
16523
+ /**
16524
+ * get root account password
16525
+ * @summary getRootSeaweedFSAccountPassword
16526
+ * @param {string} orgName name of the Org
16527
+ * @param {string} clusterName name of the Cluster
16528
+ * @param {string} accountName name of the account
16529
+ * @param {string} [component] name of the component
16530
+ * @param {*} [options] Override http request option.
16531
+ * @throws {RequiredError}
16532
+ */
16533
+ async getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options) {
16534
+ var _a, _b, _c;
16535
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
16536
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16537
+ 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;
16538
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16539
+ },
15892
16540
  /**
15893
16541
  *
15894
16542
  * @summary list all databases or schema of the cluster
@@ -17116,6 +17764,36 @@ const SharedApiFp = function (configuration) {
17116
17764
  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;
17117
17765
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17118
17766
  },
17767
+ /**
17768
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
17769
+ * @summary listSeaweedFSAccounts
17770
+ * @param {string} orgName name of the organization
17771
+ * @param {string} clusterName name of the cluster
17772
+ * @param {*} [options] Override http request option.
17773
+ * @throws {RequiredError}
17774
+ */
17775
+ async listSeaweedFSAccounts(orgName, clusterName, options) {
17776
+ var _a, _b, _c;
17777
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
17778
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17779
+ 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;
17780
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17781
+ },
17782
+ /**
17783
+ *
17784
+ * @summary listSeaweedFSPolicies
17785
+ * @param {string} orgName
17786
+ * @param {string} clusterName
17787
+ * @param {*} [options] Override http request option.
17788
+ * @throws {RequiredError}
17789
+ */
17790
+ async listSeaweedFSPolicies(orgName, clusterName, options) {
17791
+ var _a, _b, _c;
17792
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
17793
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17794
+ 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;
17795
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17796
+ },
17119
17797
  /**
17120
17798
  * list MinIO service account access keys
17121
17799
  * @summary List MinIO access keys
@@ -17455,6 +18133,23 @@ const SharedApiFp = function (configuration) {
17455
18133
  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;
17456
18134
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17457
18135
  },
18136
+ /**
18137
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
18138
+ * @summary putSeaweedFSPolicy
18139
+ * @param {string} orgName
18140
+ * @param {string} clusterName
18141
+ * @param {string} policyName
18142
+ * @param {{ [key: string]: any; }} requestBody
18143
+ * @param {*} [options] Override http request option.
18144
+ * @throws {RequiredError}
18145
+ */
18146
+ async putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options) {
18147
+ var _a, _b, _c;
18148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
18149
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18150
+ 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;
18151
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18152
+ },
17458
18153
  /**
17459
18154
  *
17460
18155
  * @summary create a SQL query
@@ -18638,6 +19333,40 @@ const SharedApiFp = function (configuration) {
18638
19333
  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;
18639
19334
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18640
19335
  },
19336
+ /**
19337
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
19338
+ * @summary updateSeaweedFSAccount
19339
+ * @param {string} orgName name of the organization
19340
+ * @param {string} clusterName name of the cluster
19341
+ * @param {string} accountName name of the account
19342
+ * @param {Account} body
19343
+ * @param {*} [options] Override http request option.
19344
+ * @throws {RequiredError}
19345
+ */
19346
+ async updateSeaweedFSAccount(orgName, clusterName, accountName, body, options) {
19347
+ var _a, _b, _c;
19348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
19349
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19350
+ 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;
19351
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19352
+ },
19353
+ /**
19354
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
19355
+ * @summary updateSeaweedFSAccountPrivileges
19356
+ * @param {string} orgName name of the Org
19357
+ * @param {string} clusterName name of the Cluster
19358
+ * @param {string} accountName name of the account
19359
+ * @param {Array<PrivilegeListItem>} body
19360
+ * @param {*} [options] Override http request option.
19361
+ * @throws {RequiredError}
19362
+ */
19363
+ async updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options) {
19364
+ var _a, _b, _c;
19365
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
19366
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19367
+ 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;
19368
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19369
+ },
18641
19370
  /**
18642
19371
  * update a MinIO service account access key
18643
19372
  * @summary Update MinIO access key
@@ -18882,6 +19611,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
18882
19611
  batchUpdateOrgParameters(requestParameters, options) {
18883
19612
  return localVarFp.batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
18884
19613
  },
19614
+ /**
19615
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
19616
+ * @summary bindSeaweedFSPolicies
19617
+ * @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
19618
+ * @param {*} [options] Override http request option.
19619
+ * @throws {RequiredError}
19620
+ */
19621
+ bindSeaweedFSPolicies(requestParameters, options) {
19622
+ return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
19623
+ },
18885
19624
  /**
18886
19625
  *
18887
19626
  * @summary build backup object with a existing backup directory
@@ -19123,6 +19862,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
19123
19862
  createRole(requestParameters, options) {
19124
19863
  return localVarFp.createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(axios, basePath));
19125
19864
  },
19865
+ /**
19866
+ * 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.
19867
+ * @summary createSeaweedFSAccessKey
19868
+ * @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
19869
+ * @param {*} [options] Override http request option.
19870
+ * @throws {RequiredError}
19871
+ */
19872
+ createSeaweedFSAccessKey(requestParameters, options) {
19873
+ return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
19874
+ },
19875
+ /**
19876
+ * 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.
19877
+ * @summary createSeaweedFSAccount
19878
+ * @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
19879
+ * @param {*} [options] Override http request option.
19880
+ * @throws {RequiredError}
19881
+ */
19882
+ createSeaweedFSAccount(requestParameters, options) {
19883
+ return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
19884
+ },
19126
19885
  /**
19127
19886
  * create a MinIO service account access key
19128
19887
  * @summary Create MinIO access key
@@ -19473,6 +20232,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
19473
20232
  deleteRoleByName(requestParameters, options) {
19474
20233
  return localVarFp.deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(axios, basePath));
19475
20234
  },
20235
+ /**
20236
+ *
20237
+ * @summary deleteSeaweedFSAccessKey
20238
+ * @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
20239
+ * @param {*} [options] Override http request option.
20240
+ * @throws {RequiredError}
20241
+ */
20242
+ deleteSeaweedFSAccessKey(requestParameters, options) {
20243
+ return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
20244
+ },
20245
+ /**
20246
+ * delete an account in cluster
20247
+ * @summary deleteSeaweedFSAccount
20248
+ * @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
20249
+ * @param {*} [options] Override http request option.
20250
+ * @throws {RequiredError}
20251
+ */
20252
+ deleteSeaweedFSAccount(requestParameters, options) {
20253
+ return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
20254
+ },
20255
+ /**
20256
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
20257
+ * @summary deleteSeaweedFSPolicy
20258
+ * @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
20259
+ * @param {*} [options] Override http request option.
20260
+ * @throws {RequiredError}
20261
+ */
20262
+ deleteSeaweedFSPolicy(requestParameters, options) {
20263
+ return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
20264
+ },
19476
20265
  /**
19477
20266
  * delete a MinIO service account access key
19478
20267
  * @summary Delete MinIO access key
@@ -20082,6 +20871,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
20082
20871
  getRootAccountPassword(requestParameters, options) {
20083
20872
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
20084
20873
  },
20874
+ /**
20875
+ * get root account password
20876
+ * @summary getRootSeaweedFSAccountPassword
20877
+ * @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
20878
+ * @param {*} [options] Override http request option.
20879
+ * @throws {RequiredError}
20880
+ */
20881
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
20882
+ return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
20883
+ },
20085
20884
  /**
20086
20885
  *
20087
20886
  * @summary list all databases or schema of the cluster
@@ -20828,6 +21627,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
20828
21627
  listRoles(requestParameters, options) {
20829
21628
  return localVarFp.listRoles(requestParameters.orgName, options).then((request) => request(axios, basePath));
20830
21629
  },
21630
+ /**
21631
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
21632
+ * @summary listSeaweedFSAccounts
21633
+ * @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
21634
+ * @param {*} [options] Override http request option.
21635
+ * @throws {RequiredError}
21636
+ */
21637
+ listSeaweedFSAccounts(requestParameters, options) {
21638
+ return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
21639
+ },
21640
+ /**
21641
+ *
21642
+ * @summary listSeaweedFSPolicies
21643
+ * @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
21644
+ * @param {*} [options] Override http request option.
21645
+ * @throws {RequiredError}
21646
+ */
21647
+ listSeaweedFSPolicies(requestParameters, options) {
21648
+ return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
21649
+ },
20831
21650
  /**
20832
21651
  * list MinIO service account access keys
20833
21652
  * @summary List MinIO access keys
@@ -21038,6 +21857,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
21038
21857
  putElasticsearchSecurityUser(requestParameters, options) {
21039
21858
  return localVarFp.putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
21040
21859
  },
21860
+ /**
21861
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
21862
+ * @summary putSeaweedFSPolicy
21863
+ * @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
21864
+ * @param {*} [options] Override http request option.
21865
+ * @throws {RequiredError}
21866
+ */
21867
+ putSeaweedFSPolicy(requestParameters, options) {
21868
+ return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
21869
+ },
21041
21870
  /**
21042
21871
  *
21043
21872
  * @summary create a SQL query
@@ -21677,6 +22506,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
21677
22506
  updateRoleByName(requestParameters, options) {
21678
22507
  return localVarFp.updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(axios, basePath));
21679
22508
  },
22509
+ /**
22510
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
22511
+ * @summary updateSeaweedFSAccount
22512
+ * @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
22513
+ * @param {*} [options] Override http request option.
22514
+ * @throws {RequiredError}
22515
+ */
22516
+ updateSeaweedFSAccount(requestParameters, options) {
22517
+ return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
22518
+ },
22519
+ /**
22520
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
22521
+ * @summary updateSeaweedFSAccountPrivileges
22522
+ * @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
22523
+ * @param {*} [options] Override http request option.
22524
+ * @throws {RequiredError}
22525
+ */
22526
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
22527
+ return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
22528
+ },
21680
22529
  /**
21681
22530
  * update a MinIO service account access key
21682
22531
  * @summary Update MinIO access key
@@ -21874,6 +22723,17 @@ class SharedApi extends base_1.BaseAPI {
21874
22723
  batchUpdateOrgParameters(requestParameters, options) {
21875
22724
  return (0, exports.SharedApiFp)(this.configuration).batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
21876
22725
  }
22726
+ /**
22727
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
22728
+ * @summary bindSeaweedFSPolicies
22729
+ * @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
22730
+ * @param {*} [options] Override http request option.
22731
+ * @throws {RequiredError}
22732
+ * @memberof SharedApi
22733
+ */
22734
+ bindSeaweedFSPolicies(requestParameters, options) {
22735
+ return (0, exports.SharedApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
22736
+ }
21877
22737
  /**
21878
22738
  *
21879
22739
  * @summary build backup object with a existing backup directory
@@ -22139,6 +22999,28 @@ class SharedApi extends base_1.BaseAPI {
22139
22999
  createRole(requestParameters, options) {
22140
23000
  return (0, exports.SharedApiFp)(this.configuration).createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(this.axios, this.basePath));
22141
23001
  }
23002
+ /**
23003
+ * 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.
23004
+ * @summary createSeaweedFSAccessKey
23005
+ * @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
23006
+ * @param {*} [options] Override http request option.
23007
+ * @throws {RequiredError}
23008
+ * @memberof SharedApi
23009
+ */
23010
+ createSeaweedFSAccessKey(requestParameters, options) {
23011
+ return (0, exports.SharedApiFp)(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
23012
+ }
23013
+ /**
23014
+ * 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.
23015
+ * @summary createSeaweedFSAccount
23016
+ * @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
23017
+ * @param {*} [options] Override http request option.
23018
+ * @throws {RequiredError}
23019
+ * @memberof SharedApi
23020
+ */
23021
+ createSeaweedFSAccount(requestParameters, options) {
23022
+ return (0, exports.SharedApiFp)(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
23023
+ }
22142
23024
  /**
22143
23025
  * create a MinIO service account access key
22144
23026
  * @summary Create MinIO access key
@@ -22524,6 +23406,39 @@ class SharedApi extends base_1.BaseAPI {
22524
23406
  deleteRoleByName(requestParameters, options) {
22525
23407
  return (0, exports.SharedApiFp)(this.configuration).deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
22526
23408
  }
23409
+ /**
23410
+ *
23411
+ * @summary deleteSeaweedFSAccessKey
23412
+ * @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
23413
+ * @param {*} [options] Override http request option.
23414
+ * @throws {RequiredError}
23415
+ * @memberof SharedApi
23416
+ */
23417
+ deleteSeaweedFSAccessKey(requestParameters, options) {
23418
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
23419
+ }
23420
+ /**
23421
+ * delete an account in cluster
23422
+ * @summary deleteSeaweedFSAccount
23423
+ * @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
23424
+ * @param {*} [options] Override http request option.
23425
+ * @throws {RequiredError}
23426
+ * @memberof SharedApi
23427
+ */
23428
+ deleteSeaweedFSAccount(requestParameters, options) {
23429
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
23430
+ }
23431
+ /**
23432
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
23433
+ * @summary deleteSeaweedFSPolicy
23434
+ * @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
23435
+ * @param {*} [options] Override http request option.
23436
+ * @throws {RequiredError}
23437
+ * @memberof SharedApi
23438
+ */
23439
+ deleteSeaweedFSPolicy(requestParameters, options) {
23440
+ return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
23441
+ }
22527
23442
  /**
22528
23443
  * delete a MinIO service account access key
22529
23444
  * @summary Delete MinIO access key
@@ -23194,6 +24109,17 @@ class SharedApi extends base_1.BaseAPI {
23194
24109
  getRootAccountPassword(requestParameters, options) {
23195
24110
  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));
23196
24111
  }
24112
+ /**
24113
+ * get root account password
24114
+ * @summary getRootSeaweedFSAccountPassword
24115
+ * @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
24116
+ * @param {*} [options] Override http request option.
24117
+ * @throws {RequiredError}
24118
+ * @memberof SharedApi
24119
+ */
24120
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
24121
+ return (0, exports.SharedApiFp)(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
24122
+ }
23197
24123
  /**
23198
24124
  *
23199
24125
  * @summary list all databases or schema of the cluster
@@ -24015,6 +24941,28 @@ class SharedApi extends base_1.BaseAPI {
24015
24941
  listRoles(requestParameters, options) {
24016
24942
  return (0, exports.SharedApiFp)(this.configuration).listRoles(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
24017
24943
  }
24944
+ /**
24945
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
24946
+ * @summary listSeaweedFSAccounts
24947
+ * @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
24948
+ * @param {*} [options] Override http request option.
24949
+ * @throws {RequiredError}
24950
+ * @memberof SharedApi
24951
+ */
24952
+ listSeaweedFSAccounts(requestParameters, options) {
24953
+ return (0, exports.SharedApiFp)(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
24954
+ }
24955
+ /**
24956
+ *
24957
+ * @summary listSeaweedFSPolicies
24958
+ * @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
24959
+ * @param {*} [options] Override http request option.
24960
+ * @throws {RequiredError}
24961
+ * @memberof SharedApi
24962
+ */
24963
+ listSeaweedFSPolicies(requestParameters, options) {
24964
+ return (0, exports.SharedApiFp)(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
24965
+ }
24018
24966
  /**
24019
24967
  * list MinIO service account access keys
24020
24968
  * @summary List MinIO access keys
@@ -24246,6 +25194,17 @@ class SharedApi extends base_1.BaseAPI {
24246
25194
  putElasticsearchSecurityUser(requestParameters, options) {
24247
25195
  return (0, exports.SharedApiFp)(this.configuration).putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
24248
25196
  }
25197
+ /**
25198
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
25199
+ * @summary putSeaweedFSPolicy
25200
+ * @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
25201
+ * @param {*} [options] Override http request option.
25202
+ * @throws {RequiredError}
25203
+ * @memberof SharedApi
25204
+ */
25205
+ putSeaweedFSPolicy(requestParameters, options) {
25206
+ return (0, exports.SharedApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
25207
+ }
24249
25208
  /**
24250
25209
  *
24251
25210
  * @summary create a SQL query
@@ -24949,6 +25908,28 @@ class SharedApi extends base_1.BaseAPI {
24949
25908
  updateRoleByName(requestParameters, options) {
24950
25909
  return (0, exports.SharedApiFp)(this.configuration).updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(this.axios, this.basePath));
24951
25910
  }
25911
+ /**
25912
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
25913
+ * @summary updateSeaweedFSAccount
25914
+ * @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
25915
+ * @param {*} [options] Override http request option.
25916
+ * @throws {RequiredError}
25917
+ * @memberof SharedApi
25918
+ */
25919
+ updateSeaweedFSAccount(requestParameters, options) {
25920
+ return (0, exports.SharedApiFp)(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
25921
+ }
25922
+ /**
25923
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
25924
+ * @summary updateSeaweedFSAccountPrivileges
25925
+ * @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
25926
+ * @param {*} [options] Override http request option.
25927
+ * @throws {RequiredError}
25928
+ * @memberof SharedApi
25929
+ */
25930
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
25931
+ return (0, exports.SharedApiFp)(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
25932
+ }
24952
25933
  /**
24953
25934
  * update a MinIO service account access key
24954
25935
  * @summary Update MinIO access key