kb-cloud-client-typescript 2.2.124 → 2.2.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) 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/engine-license-api.d.ts +3 -3
  10. package/dist/adminapi/apis/engine-license-api.js +2 -2
  11. package/dist/adminapi/apis/seaweedfs-api.d.ts +951 -0
  12. package/dist/adminapi/apis/seaweedfs-api.d.ts.map +1 -0
  13. package/dist/adminapi/apis/seaweedfs-api.js +1045 -0
  14. package/dist/adminapi/apis/seaweedfs-api.js.map +1 -0
  15. package/dist/adminapi/apis/shared-api.d.ts +905 -5
  16. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  17. package/dist/adminapi/apis/shared-api.js +992 -11
  18. package/dist/adminapi/apis/shared-api.js.map +1 -1
  19. package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
  20. package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
  21. package/dist/adminapi/models/bind-seaweed-fspolicies-request.js +16 -0
  22. package/dist/adminapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
  23. package/dist/adminapi/models/engine-option-license-file.d.ts +38 -0
  24. package/dist/adminapi/models/engine-option-license-file.d.ts.map +1 -0
  25. package/dist/adminapi/models/engine-option-license-file.js +16 -0
  26. package/dist/adminapi/models/engine-option-license-file.js.map +1 -0
  27. package/dist/adminapi/models/engine-option-license.d.ts +8 -1
  28. package/dist/adminapi/models/engine-option-license.d.ts.map +1 -1
  29. package/dist/adminapi/models/index.d.ts +4 -0
  30. package/dist/adminapi/models/index.d.ts.map +1 -1
  31. package/dist/adminapi/models/index.js +4 -0
  32. package/dist/adminapi/models/index.js.map +1 -1
  33. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
  34. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
  35. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
  36. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
  37. package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
  38. package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
  39. package/dist/adminapi/models/list-seaweed-fspolicies200-response.js +16 -0
  40. package/dist/adminapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
  41. package/dist/openapi/api.d.ts +1 -0
  42. package/dist/openapi/api.d.ts.map +1 -1
  43. package/dist/openapi/api.js +1 -0
  44. package/dist/openapi/api.js.map +1 -1
  45. package/dist/openapi/apis/account-api.d.ts +906 -6
  46. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/account-api.js +981 -0
  48. package/dist/openapi/apis/account-api.js.map +1 -1
  49. package/dist/openapi/apis/seaweedfs-api.d.ts +951 -0
  50. package/dist/openapi/apis/seaweedfs-api.d.ts.map +1 -0
  51. package/dist/openapi/apis/seaweedfs-api.js +1045 -0
  52. package/dist/openapi/apis/seaweedfs-api.js.map +1 -0
  53. package/dist/openapi/apis/shared-api.d.ts +905 -5
  54. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  55. package/dist/openapi/apis/shared-api.js +992 -11
  56. package/dist/openapi/apis/shared-api.js.map +1 -1
  57. package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
  58. package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
  59. package/dist/openapi/models/bind-seaweed-fspolicies-request.js +16 -0
  60. package/dist/openapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
  61. package/dist/openapi/models/engine-option-license-file.d.ts +38 -0
  62. package/dist/openapi/models/engine-option-license-file.d.ts.map +1 -0
  63. package/dist/openapi/models/engine-option-license-file.js +16 -0
  64. package/dist/openapi/models/engine-option-license-file.js.map +1 -0
  65. package/dist/openapi/models/engine-option-license.d.ts +8 -1
  66. package/dist/openapi/models/engine-option-license.d.ts.map +1 -1
  67. package/dist/openapi/models/index.d.ts +4 -0
  68. package/dist/openapi/models/index.d.ts.map +1 -1
  69. package/dist/openapi/models/index.js +4 -0
  70. package/dist/openapi/models/index.js.map +1 -1
  71. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
  72. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
  73. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
  74. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
  75. package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
  76. package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
  77. package/dist/openapi/models/list-seaweed-fspolicies200-response.js +16 -0
  78. package/dist/openapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
  79. package/package.json +1 -1
  80. package/src/adminapi/.openapi-generator/FILES +5 -0
  81. package/src/adminapi/api.ts +1 -0
  82. package/src/adminapi/apis/account-api.ts +1674 -106
  83. package/src/adminapi/apis/engine-license-api.ts +3 -3
  84. package/src/adminapi/apis/seaweedfs-api.ts +1644 -0
  85. package/src/adminapi/apis/shared-api.ts +1914 -346
  86. package/src/adminapi/models/bind-seaweed-fspolicies-request.ts +30 -0
  87. package/src/adminapi/models/engine-option-license-file.ts +45 -0
  88. package/src/adminapi/models/engine-option-license.ts +10 -1
  89. package/src/adminapi/models/index.ts +4 -0
  90. package/src/adminapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
  91. package/src/adminapi/models/list-seaweed-fspolicies200-response.ts +33 -0
  92. package/src/adminapi.yaml +581 -2
  93. package/src/openapi/.openapi-generator/FILES +5 -0
  94. package/src/openapi/api.ts +1 -0
  95. package/src/openapi/apis/account-api.ts +1623 -55
  96. package/src/openapi/apis/seaweedfs-api.ts +1644 -0
  97. package/src/openapi/apis/shared-api.ts +1776 -208
  98. package/src/openapi/models/bind-seaweed-fspolicies-request.ts +30 -0
  99. package/src/openapi/models/engine-option-license-file.ts +45 -0
  100. package/src/openapi/models/engine-option-license.ts +10 -1
  101. package/src/openapi/models/index.ts +4 -0
  102. package/src/openapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
  103. package/src/openapi/models/list-seaweed-fspolicies200-response.ts +33 -0
  104. package/src/openapi.yaml +580 -1
@@ -29,6 +29,53 @@ const base_1 = require("../base");
29
29
  */
30
30
  const AccountApiAxiosParamCreator = function (configuration) {
31
31
  return {
32
+ /**
33
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
34
+ * @summary bindSeaweedFSPolicies
35
+ * @param {string} orgName
36
+ * @param {string} clusterName
37
+ * @param {string} accountName
38
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ bindSeaweedFSPolicies: async (orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options = {}) => {
43
+ // verify required parameter 'orgName' is not null or undefined
44
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'orgName', orgName);
45
+ // verify required parameter 'clusterName' is not null or undefined
46
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'clusterName', clusterName);
47
+ // verify required parameter 'accountName' is not null or undefined
48
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'accountName', accountName);
49
+ // verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
50
+ (0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest);
51
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
52
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
53
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
54
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
55
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
57
+ let baseOptions;
58
+ if (configuration) {
59
+ baseOptions = configuration.baseOptions;
60
+ }
61
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
62
+ const localVarHeaderParameter = {};
63
+ const localVarQueryParameter = {};
64
+ // authentication BearerToken required
65
+ // http bearer authentication required
66
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
67
+ // authentication DigestAuth required
68
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
69
+ localVarHeaderParameter['Content-Type'] = 'application/json';
70
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
73
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration);
74
+ return {
75
+ url: (0, common_1.toPathString)(localVarUrlObj),
76
+ options: localVarRequestOptions,
77
+ };
78
+ },
32
79
  /**
33
80
  * create an account in cluster
34
81
  * @summary Create cluster account
@@ -248,6 +295,96 @@ const AccountApiAxiosParamCreator = function (configuration) {
248
295
  options: localVarRequestOptions,
249
296
  };
250
297
  },
298
+ /**
299
+ * 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.
300
+ * @summary createSeaweedFSAccessKey
301
+ * @param {string} orgName
302
+ * @param {string} clusterName
303
+ * @param {string} accountName
304
+ * @param {Account} account
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ createSeaweedFSAccessKey: async (orgName, clusterName, accountName, account, options = {}) => {
309
+ // verify required parameter 'orgName' is not null or undefined
310
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'orgName', orgName);
311
+ // verify required parameter 'clusterName' is not null or undefined
312
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'clusterName', clusterName);
313
+ // verify required parameter 'accountName' is not null or undefined
314
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'accountName', accountName);
315
+ // verify required parameter 'account' is not null or undefined
316
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'account', account);
317
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
318
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
319
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
320
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
322
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
323
+ let baseOptions;
324
+ if (configuration) {
325
+ baseOptions = configuration.baseOptions;
326
+ }
327
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
328
+ const localVarHeaderParameter = {};
329
+ const localVarQueryParameter = {};
330
+ // authentication BearerToken required
331
+ // http bearer authentication required
332
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
333
+ // authentication DigestAuth required
334
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
335
+ localVarHeaderParameter['Content-Type'] = 'application/json';
336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(account, localVarRequestOptions, configuration);
340
+ return {
341
+ url: (0, common_1.toPathString)(localVarUrlObj),
342
+ options: localVarRequestOptions,
343
+ };
344
+ },
345
+ /**
346
+ * 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.
347
+ * @summary createSeaweedFSAccount
348
+ * @param {string} orgName name of the organization
349
+ * @param {string} clusterName name of the cluster
350
+ * @param {Account} body
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ createSeaweedFSAccount: async (orgName, clusterName, body, options = {}) => {
355
+ // verify required parameter 'orgName' is not null or undefined
356
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'orgName', orgName);
357
+ // verify required parameter 'clusterName' is not null or undefined
358
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'clusterName', clusterName);
359
+ // verify required parameter 'body' is not null or undefined
360
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'body', body);
361
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
362
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
363
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
364
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
365
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
366
+ let baseOptions;
367
+ if (configuration) {
368
+ baseOptions = configuration.baseOptions;
369
+ }
370
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
371
+ const localVarHeaderParameter = {};
372
+ const localVarQueryParameter = {};
373
+ // authentication BearerToken required
374
+ // http bearer authentication required
375
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
376
+ // authentication DigestAuth required
377
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
378
+ localVarHeaderParameter['Content-Type'] = 'application/json';
379
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
382
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
383
+ return {
384
+ url: (0, common_1.toPathString)(localVarUrlObj),
385
+ options: localVarRequestOptions,
386
+ };
387
+ },
251
388
  /**
252
389
  * create a MinIO service account access key
253
390
  * @summary Create MinIO access key
@@ -595,6 +732,136 @@ const AccountApiAxiosParamCreator = function (configuration) {
595
732
  options: localVarRequestOptions,
596
733
  };
597
734
  },
735
+ /**
736
+ *
737
+ * @summary deleteSeaweedFSAccessKey
738
+ * @param {string} orgName
739
+ * @param {string} clusterName
740
+ * @param {string} accountName
741
+ * @param {string} accessKey
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ deleteSeaweedFSAccessKey: async (orgName, clusterName, accountName, accessKey, options = {}) => {
746
+ // verify required parameter 'orgName' is not null or undefined
747
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'orgName', orgName);
748
+ // verify required parameter 'clusterName' is not null or undefined
749
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'clusterName', clusterName);
750
+ // verify required parameter 'accountName' is not null or undefined
751
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accountName', accountName);
752
+ // verify required parameter 'accessKey' is not null or undefined
753
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accessKey', accessKey);
754
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
755
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
756
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
757
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
758
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
759
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
760
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
761
+ let baseOptions;
762
+ if (configuration) {
763
+ baseOptions = configuration.baseOptions;
764
+ }
765
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
766
+ const localVarHeaderParameter = {};
767
+ const localVarQueryParameter = {};
768
+ // authentication BearerToken required
769
+ // http bearer authentication required
770
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
771
+ // authentication DigestAuth required
772
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
773
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
774
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
775
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
776
+ return {
777
+ url: (0, common_1.toPathString)(localVarUrlObj),
778
+ options: localVarRequestOptions,
779
+ };
780
+ },
781
+ /**
782
+ * delete an account in cluster
783
+ * @summary deleteSeaweedFSAccount
784
+ * @param {string} orgName name of the organization
785
+ * @param {string} clusterName name of the cluster
786
+ * @param {string} accountName name of the account
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ */
790
+ deleteSeaweedFSAccount: async (orgName, clusterName, accountName, options = {}) => {
791
+ // verify required parameter 'orgName' is not null or undefined
792
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'orgName', orgName);
793
+ // verify required parameter 'clusterName' is not null or undefined
794
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'clusterName', clusterName);
795
+ // verify required parameter 'accountName' is not null or undefined
796
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'accountName', accountName);
797
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
798
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
799
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
800
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
801
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
802
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
803
+ let baseOptions;
804
+ if (configuration) {
805
+ baseOptions = configuration.baseOptions;
806
+ }
807
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
808
+ const localVarHeaderParameter = {};
809
+ const localVarQueryParameter = {};
810
+ // authentication BearerToken required
811
+ // http bearer authentication required
812
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
813
+ // authentication DigestAuth required
814
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
815
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
816
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
817
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
818
+ return {
819
+ url: (0, common_1.toPathString)(localVarUrlObj),
820
+ options: localVarRequestOptions,
821
+ };
822
+ },
823
+ /**
824
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
825
+ * @summary deleteSeaweedFSPolicy
826
+ * @param {string} orgName
827
+ * @param {string} clusterName
828
+ * @param {string} policyName
829
+ * @param {*} [options] Override http request option.
830
+ * @throws {RequiredError}
831
+ */
832
+ deleteSeaweedFSPolicy: async (orgName, clusterName, policyName, options = {}) => {
833
+ // verify required parameter 'orgName' is not null or undefined
834
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'orgName', orgName);
835
+ // verify required parameter 'clusterName' is not null or undefined
836
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'clusterName', clusterName);
837
+ // verify required parameter 'policyName' is not null or undefined
838
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'policyName', policyName);
839
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
840
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
841
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
842
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
843
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
844
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
845
+ let baseOptions;
846
+ if (configuration) {
847
+ baseOptions = configuration.baseOptions;
848
+ }
849
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
850
+ const localVarHeaderParameter = {};
851
+ const localVarQueryParameter = {};
852
+ // authentication BearerToken required
853
+ // http bearer authentication required
854
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
855
+ // authentication DigestAuth required
856
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
857
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
858
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
859
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
860
+ return {
861
+ url: (0, common_1.toPathString)(localVarUrlObj),
862
+ options: localVarRequestOptions,
863
+ };
864
+ },
598
865
  /**
599
866
  * delete a MinIO service account access key
600
867
  * @summary Delete MinIO access key
@@ -773,6 +1040,54 @@ const AccountApiAxiosParamCreator = function (configuration) {
773
1040
  options: localVarRequestOptions,
774
1041
  };
775
1042
  },
1043
+ /**
1044
+ * get root account password
1045
+ * @summary getRootSeaweedFSAccountPassword
1046
+ * @param {string} orgName name of the Org
1047
+ * @param {string} clusterName name of the Cluster
1048
+ * @param {string} accountName name of the account
1049
+ * @param {string} [component] name of the component
1050
+ * @param {*} [options] Override http request option.
1051
+ * @throws {RequiredError}
1052
+ */
1053
+ getRootSeaweedFSAccountPassword: async (orgName, clusterName, accountName, component, options = {}) => {
1054
+ // verify required parameter 'orgName' is not null or undefined
1055
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'orgName', orgName);
1056
+ // verify required parameter 'clusterName' is not null or undefined
1057
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'clusterName', clusterName);
1058
+ // verify required parameter 'accountName' is not null or undefined
1059
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'accountName', accountName);
1060
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
1061
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1062
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1063
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1064
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1065
+ let baseOptions;
1066
+ if (configuration) {
1067
+ baseOptions = configuration.baseOptions;
1068
+ }
1069
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1070
+ const localVarHeaderParameter = {};
1071
+ const localVarQueryParameter = {};
1072
+ // authentication BearerToken required
1073
+ // http bearer authentication required
1074
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1075
+ // authentication DigestAuth required
1076
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1077
+ if (accountName !== undefined) {
1078
+ localVarQueryParameter['accountName'] = accountName;
1079
+ }
1080
+ if (component !== undefined) {
1081
+ localVarQueryParameter['component'] = component;
1082
+ }
1083
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1084
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1085
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1086
+ return {
1087
+ url: (0, common_1.toPathString)(localVarUrlObj),
1088
+ options: localVarRequestOptions,
1089
+ };
1090
+ },
776
1091
  /**
777
1092
  * get a MinIO service account access key
778
1093
  * @summary Get MinIO access key
@@ -1013,6 +1328,82 @@ const AccountApiAxiosParamCreator = function (configuration) {
1013
1328
  options: localVarRequestOptions,
1014
1329
  };
1015
1330
  },
1331
+ /**
1332
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
1333
+ * @summary listSeaweedFSAccounts
1334
+ * @param {string} orgName name of the organization
1335
+ * @param {string} clusterName name of the cluster
1336
+ * @param {*} [options] Override http request option.
1337
+ * @throws {RequiredError}
1338
+ */
1339
+ listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
1340
+ // verify required parameter 'orgName' is not null or undefined
1341
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
1342
+ // verify required parameter 'clusterName' is not null or undefined
1343
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
1344
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
1345
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1346
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1347
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1348
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1349
+ let baseOptions;
1350
+ if (configuration) {
1351
+ baseOptions = configuration.baseOptions;
1352
+ }
1353
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1354
+ const localVarHeaderParameter = {};
1355
+ const localVarQueryParameter = {};
1356
+ // authentication BearerToken required
1357
+ // http bearer authentication required
1358
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1359
+ // authentication DigestAuth required
1360
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1361
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1362
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1363
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1364
+ return {
1365
+ url: (0, common_1.toPathString)(localVarUrlObj),
1366
+ options: localVarRequestOptions,
1367
+ };
1368
+ },
1369
+ /**
1370
+ *
1371
+ * @summary listSeaweedFSPolicies
1372
+ * @param {string} orgName
1373
+ * @param {string} clusterName
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ */
1377
+ listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
1378
+ // verify required parameter 'orgName' is not null or undefined
1379
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
1380
+ // verify required parameter 'clusterName' is not null or undefined
1381
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
1382
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
1383
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1384
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1386
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1387
+ let baseOptions;
1388
+ if (configuration) {
1389
+ baseOptions = configuration.baseOptions;
1390
+ }
1391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1392
+ const localVarHeaderParameter = {};
1393
+ const localVarQueryParameter = {};
1394
+ // authentication BearerToken required
1395
+ // http bearer authentication required
1396
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1397
+ // authentication DigestAuth required
1398
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1399
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1400
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1401
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1402
+ return {
1403
+ url: (0, common_1.toPathString)(localVarUrlObj),
1404
+ options: localVarRequestOptions,
1405
+ };
1406
+ },
1016
1407
  /**
1017
1408
  * list MinIO service account access keys
1018
1409
  * @summary List MinIO access keys
@@ -1106,6 +1497,53 @@ const AccountApiAxiosParamCreator = function (configuration) {
1106
1497
  options: localVarRequestOptions,
1107
1498
  };
1108
1499
  },
1500
+ /**
1501
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
1502
+ * @summary putSeaweedFSPolicy
1503
+ * @param {string} orgName
1504
+ * @param {string} clusterName
1505
+ * @param {string} policyName
1506
+ * @param {{ [key: string]: any; }} requestBody
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ */
1510
+ putSeaweedFSPolicy: async (orgName, clusterName, policyName, requestBody, options = {}) => {
1511
+ // verify required parameter 'orgName' is not null or undefined
1512
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'orgName', orgName);
1513
+ // verify required parameter 'clusterName' is not null or undefined
1514
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'clusterName', clusterName);
1515
+ // verify required parameter 'policyName' is not null or undefined
1516
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'policyName', policyName);
1517
+ // verify required parameter 'requestBody' is not null or undefined
1518
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'requestBody', requestBody);
1519
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
1520
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1521
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1522
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
1523
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1524
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1525
+ let baseOptions;
1526
+ if (configuration) {
1527
+ baseOptions = configuration.baseOptions;
1528
+ }
1529
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1530
+ const localVarHeaderParameter = {};
1531
+ const localVarQueryParameter = {};
1532
+ // authentication BearerToken required
1533
+ // http bearer authentication required
1534
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1535
+ // authentication DigestAuth required
1536
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1537
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1538
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1539
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1540
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1541
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
1542
+ return {
1543
+ url: (0, common_1.toPathString)(localVarUrlObj),
1544
+ options: localVarRequestOptions,
1545
+ };
1546
+ },
1109
1547
  /**
1110
1548
  * update an account in cluster
1111
1549
  * @summary update cluster account
@@ -1531,6 +1969,100 @@ const AccountApiAxiosParamCreator = function (configuration) {
1531
1969
  options: localVarRequestOptions,
1532
1970
  };
1533
1971
  },
1972
+ /**
1973
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
1974
+ * @summary updateSeaweedFSAccount
1975
+ * @param {string} orgName name of the organization
1976
+ * @param {string} clusterName name of the cluster
1977
+ * @param {string} accountName name of the account
1978
+ * @param {Account} body
1979
+ * @param {*} [options] Override http request option.
1980
+ * @throws {RequiredError}
1981
+ */
1982
+ updateSeaweedFSAccount: async (orgName, clusterName, accountName, body, options = {}) => {
1983
+ // verify required parameter 'orgName' is not null or undefined
1984
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'orgName', orgName);
1985
+ // verify required parameter 'clusterName' is not null or undefined
1986
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'clusterName', clusterName);
1987
+ // verify required parameter 'accountName' is not null or undefined
1988
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'accountName', accountName);
1989
+ // verify required parameter 'body' is not null or undefined
1990
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'body', body);
1991
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
1992
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1993
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1994
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1995
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1996
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1997
+ let baseOptions;
1998
+ if (configuration) {
1999
+ baseOptions = configuration.baseOptions;
2000
+ }
2001
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2002
+ const localVarHeaderParameter = {};
2003
+ const localVarQueryParameter = {};
2004
+ // authentication BearerToken required
2005
+ // http bearer authentication required
2006
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2007
+ // authentication DigestAuth required
2008
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2009
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2010
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2011
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2012
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2013
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
2014
+ return {
2015
+ url: (0, common_1.toPathString)(localVarUrlObj),
2016
+ options: localVarRequestOptions,
2017
+ };
2018
+ },
2019
+ /**
2020
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
2021
+ * @summary updateSeaweedFSAccountPrivileges
2022
+ * @param {string} orgName name of the Org
2023
+ * @param {string} clusterName name of the Cluster
2024
+ * @param {string} accountName name of the account
2025
+ * @param {Array<PrivilegeListItem>} body
2026
+ * @param {*} [options] Override http request option.
2027
+ * @throws {RequiredError}
2028
+ */
2029
+ updateSeaweedFSAccountPrivileges: async (orgName, clusterName, accountName, body, options = {}) => {
2030
+ // verify required parameter 'orgName' is not null or undefined
2031
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'orgName', orgName);
2032
+ // verify required parameter 'clusterName' is not null or undefined
2033
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName);
2034
+ // verify required parameter 'accountName' is not null or undefined
2035
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'accountName', accountName);
2036
+ // verify required parameter 'body' is not null or undefined
2037
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'body', body);
2038
+ const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
2039
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2040
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2041
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
2042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2043
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2044
+ let baseOptions;
2045
+ if (configuration) {
2046
+ baseOptions = configuration.baseOptions;
2047
+ }
2048
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2049
+ const localVarHeaderParameter = {};
2050
+ const localVarQueryParameter = {};
2051
+ // authentication BearerToken required
2052
+ // http bearer authentication required
2053
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2054
+ // authentication DigestAuth required
2055
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2056
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2057
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2058
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2059
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2060
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
2061
+ return {
2062
+ url: (0, common_1.toPathString)(localVarUrlObj),
2063
+ options: localVarRequestOptions,
2064
+ };
2065
+ },
1534
2066
  /**
1535
2067
  * update a MinIO service account access key
1536
2068
  * @summary Update MinIO access key
@@ -1592,6 +2124,23 @@ exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
1592
2124
  const AccountApiFp = function (configuration) {
1593
2125
  const localVarAxiosParamCreator = (0, exports.AccountApiAxiosParamCreator)(configuration);
1594
2126
  return {
2127
+ /**
2128
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
2129
+ * @summary bindSeaweedFSPolicies
2130
+ * @param {string} orgName
2131
+ * @param {string} clusterName
2132
+ * @param {string} accountName
2133
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
2134
+ * @param {*} [options] Override http request option.
2135
+ * @throws {RequiredError}
2136
+ */
2137
+ async bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options) {
2138
+ var _a, _b, _c;
2139
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
2140
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2141
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.bindSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2142
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2143
+ },
1595
2144
  /**
1596
2145
  * create an account in cluster
1597
2146
  * @summary Create cluster account
@@ -1673,6 +2222,39 @@ const AccountApiFp = function (configuration) {
1673
2222
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.createRabbitAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1674
2223
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1675
2224
  },
2225
+ /**
2226
+ * 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.
2227
+ * @summary createSeaweedFSAccessKey
2228
+ * @param {string} orgName
2229
+ * @param {string} clusterName
2230
+ * @param {string} accountName
2231
+ * @param {Account} account
2232
+ * @param {*} [options] Override http request option.
2233
+ * @throws {RequiredError}
2234
+ */
2235
+ async createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options) {
2236
+ var _a, _b, _c;
2237
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
2238
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2239
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.createSeaweedFSAccessKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2240
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2241
+ },
2242
+ /**
2243
+ * 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.
2244
+ * @summary createSeaweedFSAccount
2245
+ * @param {string} orgName name of the organization
2246
+ * @param {string} clusterName name of the cluster
2247
+ * @param {Account} body
2248
+ * @param {*} [options] Override http request option.
2249
+ * @throws {RequiredError}
2250
+ */
2251
+ async createSeaweedFSAccount(orgName, clusterName, body, options) {
2252
+ var _a, _b, _c;
2253
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
2254
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2255
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.createSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2256
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2257
+ },
1676
2258
  /**
1677
2259
  * create a MinIO service account access key
1678
2260
  * @summary Create MinIO access key
@@ -1803,6 +2385,55 @@ const AccountApiFp = function (configuration) {
1803
2385
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.deleteRabbitAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1804
2386
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1805
2387
  },
2388
+ /**
2389
+ *
2390
+ * @summary deleteSeaweedFSAccessKey
2391
+ * @param {string} orgName
2392
+ * @param {string} clusterName
2393
+ * @param {string} accountName
2394
+ * @param {string} accessKey
2395
+ * @param {*} [options] Override http request option.
2396
+ * @throws {RequiredError}
2397
+ */
2398
+ async deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options) {
2399
+ var _a, _b, _c;
2400
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
2401
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2402
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.deleteSeaweedFSAccessKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2403
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2404
+ },
2405
+ /**
2406
+ * delete an account in cluster
2407
+ * @summary deleteSeaweedFSAccount
2408
+ * @param {string} orgName name of the organization
2409
+ * @param {string} clusterName name of the cluster
2410
+ * @param {string} accountName name of the account
2411
+ * @param {*} [options] Override http request option.
2412
+ * @throws {RequiredError}
2413
+ */
2414
+ async deleteSeaweedFSAccount(orgName, clusterName, accountName, options) {
2415
+ var _a, _b, _c;
2416
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
2417
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2418
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.deleteSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2419
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2420
+ },
2421
+ /**
2422
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
2423
+ * @summary deleteSeaweedFSPolicy
2424
+ * @param {string} orgName
2425
+ * @param {string} clusterName
2426
+ * @param {string} policyName
2427
+ * @param {*} [options] Override http request option.
2428
+ * @throws {RequiredError}
2429
+ */
2430
+ async deleteSeaweedFSPolicy(orgName, clusterName, policyName, options) {
2431
+ var _a, _b, _c;
2432
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
2433
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2434
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.deleteSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2435
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2436
+ },
1806
2437
  /**
1807
2438
  * delete a MinIO service account access key
1808
2439
  * @summary Delete MinIO access key
@@ -1869,6 +2500,23 @@ const AccountApiFp = function (configuration) {
1869
2500
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.getRootAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1870
2501
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1871
2502
  },
2503
+ /**
2504
+ * get root account password
2505
+ * @summary getRootSeaweedFSAccountPassword
2506
+ * @param {string} orgName name of the Org
2507
+ * @param {string} clusterName name of the Cluster
2508
+ * @param {string} accountName name of the account
2509
+ * @param {string} [component] name of the component
2510
+ * @param {*} [options] Override http request option.
2511
+ * @throws {RequiredError}
2512
+ */
2513
+ async getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options) {
2514
+ var _a, _b, _c;
2515
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
2516
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2517
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.getRootSeaweedFSAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2518
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2519
+ },
1872
2520
  /**
1873
2521
  * get a MinIO service account access key
1874
2522
  * @summary Get MinIO access key
@@ -1962,6 +2610,36 @@ const AccountApiFp = function (configuration) {
1962
2610
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listRabbitAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1963
2611
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1964
2612
  },
2613
+ /**
2614
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
2615
+ * @summary listSeaweedFSAccounts
2616
+ * @param {string} orgName name of the organization
2617
+ * @param {string} clusterName name of the cluster
2618
+ * @param {*} [options] Override http request option.
2619
+ * @throws {RequiredError}
2620
+ */
2621
+ async listSeaweedFSAccounts(orgName, clusterName, options) {
2622
+ var _a, _b, _c;
2623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
2624
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2625
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listSeaweedFSAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2626
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2627
+ },
2628
+ /**
2629
+ *
2630
+ * @summary listSeaweedFSPolicies
2631
+ * @param {string} orgName
2632
+ * @param {string} clusterName
2633
+ * @param {*} [options] Override http request option.
2634
+ * @throws {RequiredError}
2635
+ */
2636
+ async listSeaweedFSPolicies(orgName, clusterName, options) {
2637
+ var _a, _b, _c;
2638
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
2639
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2640
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.listSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2641
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2642
+ },
1965
2643
  /**
1966
2644
  * list MinIO service account access keys
1967
2645
  * @summary List MinIO access keys
@@ -1996,6 +2674,23 @@ const AccountApiFp = function (configuration) {
1996
2674
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.putMilvusRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1997
2675
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1998
2676
  },
2677
+ /**
2678
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
2679
+ * @summary putSeaweedFSPolicy
2680
+ * @param {string} orgName
2681
+ * @param {string} clusterName
2682
+ * @param {string} policyName
2683
+ * @param {{ [key: string]: any; }} requestBody
2684
+ * @param {*} [options] Override http request option.
2685
+ * @throws {RequiredError}
2686
+ */
2687
+ async putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options) {
2688
+ var _a, _b, _c;
2689
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
2690
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2691
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.putSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2692
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2693
+ },
1999
2694
  /**
2000
2695
  * update an account in cluster
2001
2696
  * @summary update cluster account
@@ -2150,6 +2845,40 @@ const AccountApiFp = function (configuration) {
2150
2845
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.updateRabbitAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2151
2846
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2152
2847
  },
2848
+ /**
2849
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
2850
+ * @summary updateSeaweedFSAccount
2851
+ * @param {string} orgName name of the organization
2852
+ * @param {string} clusterName name of the cluster
2853
+ * @param {string} accountName name of the account
2854
+ * @param {Account} body
2855
+ * @param {*} [options] Override http request option.
2856
+ * @throws {RequiredError}
2857
+ */
2858
+ async updateSeaweedFSAccount(orgName, clusterName, accountName, body, options) {
2859
+ var _a, _b, _c;
2860
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
2861
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2862
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.updateSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2863
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2864
+ },
2865
+ /**
2866
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
2867
+ * @summary updateSeaweedFSAccountPrivileges
2868
+ * @param {string} orgName name of the Org
2869
+ * @param {string} clusterName name of the Cluster
2870
+ * @param {string} accountName name of the account
2871
+ * @param {Array<PrivilegeListItem>} body
2872
+ * @param {*} [options] Override http request option.
2873
+ * @throws {RequiredError}
2874
+ */
2875
+ async updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options) {
2876
+ var _a, _b, _c;
2877
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
2878
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2879
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.updateSeaweedFSAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2880
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2881
+ },
2153
2882
  /**
2154
2883
  * update a MinIO service account access key
2155
2884
  * @summary Update MinIO access key
@@ -2178,6 +2907,16 @@ exports.AccountApiFp = AccountApiFp;
2178
2907
  const AccountApiFactory = function (configuration, basePath, axios) {
2179
2908
  const localVarFp = (0, exports.AccountApiFp)(configuration);
2180
2909
  return {
2910
+ /**
2911
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
2912
+ * @summary bindSeaweedFSPolicies
2913
+ * @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
2914
+ * @param {*} [options] Override http request option.
2915
+ * @throws {RequiredError}
2916
+ */
2917
+ bindSeaweedFSPolicies(requestParameters, options) {
2918
+ return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
2919
+ },
2181
2920
  /**
2182
2921
  * create an account in cluster
2183
2922
  * @summary Create cluster account
@@ -2228,6 +2967,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2228
2967
  createRabbitAccount(requestParameters, options) {
2229
2968
  return localVarFp.createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(axios, basePath));
2230
2969
  },
2970
+ /**
2971
+ * 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.
2972
+ * @summary createSeaweedFSAccessKey
2973
+ * @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
2974
+ * @param {*} [options] Override http request option.
2975
+ * @throws {RequiredError}
2976
+ */
2977
+ createSeaweedFSAccessKey(requestParameters, options) {
2978
+ return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
2979
+ },
2980
+ /**
2981
+ * 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.
2982
+ * @summary createSeaweedFSAccount
2983
+ * @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
2984
+ * @param {*} [options] Override http request option.
2985
+ * @throws {RequiredError}
2986
+ */
2987
+ createSeaweedFSAccount(requestParameters, options) {
2988
+ return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
2989
+ },
2231
2990
  /**
2232
2991
  * create a MinIO service account access key
2233
2992
  * @summary Create MinIO access key
@@ -2308,6 +3067,36 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2308
3067
  deleteRabbitAccount(requestParameters, options) {
2309
3068
  return localVarFp.deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
2310
3069
  },
3070
+ /**
3071
+ *
3072
+ * @summary deleteSeaweedFSAccessKey
3073
+ * @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
3074
+ * @param {*} [options] Override http request option.
3075
+ * @throws {RequiredError}
3076
+ */
3077
+ deleteSeaweedFSAccessKey(requestParameters, options) {
3078
+ return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
3079
+ },
3080
+ /**
3081
+ * delete an account in cluster
3082
+ * @summary deleteSeaweedFSAccount
3083
+ * @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
3084
+ * @param {*} [options] Override http request option.
3085
+ * @throws {RequiredError}
3086
+ */
3087
+ deleteSeaweedFSAccount(requestParameters, options) {
3088
+ return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
3089
+ },
3090
+ /**
3091
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
3092
+ * @summary deleteSeaweedFSPolicy
3093
+ * @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
3094
+ * @param {*} [options] Override http request option.
3095
+ * @throws {RequiredError}
3096
+ */
3097
+ deleteSeaweedFSPolicy(requestParameters, options) {
3098
+ return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
3099
+ },
2311
3100
  /**
2312
3101
  * delete a MinIO service account access key
2313
3102
  * @summary Delete MinIO access key
@@ -2348,6 +3137,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2348
3137
  getRootAccountPassword(requestParameters, options) {
2349
3138
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
2350
3139
  },
3140
+ /**
3141
+ * get root account password
3142
+ * @summary getRootSeaweedFSAccountPassword
3143
+ * @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
3144
+ * @param {*} [options] Override http request option.
3145
+ * @throws {RequiredError}
3146
+ */
3147
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
3148
+ return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
3149
+ },
2351
3150
  /**
2352
3151
  * get a MinIO service account access key
2353
3152
  * @summary Get MinIO access key
@@ -2408,6 +3207,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2408
3207
  listRabbitAccounts(requestParameters, options) {
2409
3208
  return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
2410
3209
  },
3210
+ /**
3211
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
3212
+ * @summary listSeaweedFSAccounts
3213
+ * @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
3214
+ * @param {*} [options] Override http request option.
3215
+ * @throws {RequiredError}
3216
+ */
3217
+ listSeaweedFSAccounts(requestParameters, options) {
3218
+ return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
3219
+ },
3220
+ /**
3221
+ *
3222
+ * @summary listSeaweedFSPolicies
3223
+ * @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
3224
+ * @param {*} [options] Override http request option.
3225
+ * @throws {RequiredError}
3226
+ */
3227
+ listSeaweedFSPolicies(requestParameters, options) {
3228
+ return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
3229
+ },
2411
3230
  /**
2412
3231
  * list MinIO service account access keys
2413
3232
  * @summary List MinIO access keys
@@ -2428,6 +3247,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2428
3247
  putMilvusRole(requestParameters, options) {
2429
3248
  return localVarFp.putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
2430
3249
  },
3250
+ /**
3251
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
3252
+ * @summary putSeaweedFSPolicy
3253
+ * @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
3254
+ * @param {*} [options] Override http request option.
3255
+ * @throws {RequiredError}
3256
+ */
3257
+ putSeaweedFSPolicy(requestParameters, options) {
3258
+ return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
3259
+ },
2431
3260
  /**
2432
3261
  * update an account in cluster
2433
3262
  * @summary update cluster account
@@ -2518,6 +3347,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2518
3347
  updateRabbitAccountPrivileges(requestParameters, options) {
2519
3348
  return localVarFp.updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(axios, basePath));
2520
3349
  },
3350
+ /**
3351
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
3352
+ * @summary updateSeaweedFSAccount
3353
+ * @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
3354
+ * @param {*} [options] Override http request option.
3355
+ * @throws {RequiredError}
3356
+ */
3357
+ updateSeaweedFSAccount(requestParameters, options) {
3358
+ return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
3359
+ },
3360
+ /**
3361
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
3362
+ * @summary updateSeaweedFSAccountPrivileges
3363
+ * @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
3364
+ * @param {*} [options] Override http request option.
3365
+ * @throws {RequiredError}
3366
+ */
3367
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
3368
+ return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
3369
+ },
2521
3370
  /**
2522
3371
  * update a MinIO service account access key
2523
3372
  * @summary Update MinIO access key
@@ -2538,6 +3387,17 @@ exports.AccountApiFactory = AccountApiFactory;
2538
3387
  * @extends {BaseAPI}
2539
3388
  */
2540
3389
  class AccountApi extends base_1.BaseAPI {
3390
+ /**
3391
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
3392
+ * @summary bindSeaweedFSPolicies
3393
+ * @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
3394
+ * @param {*} [options] Override http request option.
3395
+ * @throws {RequiredError}
3396
+ * @memberof AccountApi
3397
+ */
3398
+ bindSeaweedFSPolicies(requestParameters, options) {
3399
+ return (0, exports.AccountApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
3400
+ }
2541
3401
  /**
2542
3402
  * create an account in cluster
2543
3403
  * @summary Create cluster account
@@ -2593,6 +3453,28 @@ class AccountApi extends base_1.BaseAPI {
2593
3453
  createRabbitAccount(requestParameters, options) {
2594
3454
  return (0, exports.AccountApiFp)(this.configuration).createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(this.axios, this.basePath));
2595
3455
  }
3456
+ /**
3457
+ * 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.
3458
+ * @summary createSeaweedFSAccessKey
3459
+ * @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
3460
+ * @param {*} [options] Override http request option.
3461
+ * @throws {RequiredError}
3462
+ * @memberof AccountApi
3463
+ */
3464
+ createSeaweedFSAccessKey(requestParameters, options) {
3465
+ return (0, exports.AccountApiFp)(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
3466
+ }
3467
+ /**
3468
+ * 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.
3469
+ * @summary createSeaweedFSAccount
3470
+ * @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
3471
+ * @param {*} [options] Override http request option.
3472
+ * @throws {RequiredError}
3473
+ * @memberof AccountApi
3474
+ */
3475
+ createSeaweedFSAccount(requestParameters, options) {
3476
+ return (0, exports.AccountApiFp)(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3477
+ }
2596
3478
  /**
2597
3479
  * create a MinIO service account access key
2598
3480
  * @summary Create MinIO access key
@@ -2681,6 +3563,39 @@ class AccountApi extends base_1.BaseAPI {
2681
3563
  deleteRabbitAccount(requestParameters, options) {
2682
3564
  return (0, exports.AccountApiFp)(this.configuration).deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2683
3565
  }
3566
+ /**
3567
+ *
3568
+ * @summary deleteSeaweedFSAccessKey
3569
+ * @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
3570
+ * @param {*} [options] Override http request option.
3571
+ * @throws {RequiredError}
3572
+ * @memberof AccountApi
3573
+ */
3574
+ deleteSeaweedFSAccessKey(requestParameters, options) {
3575
+ return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
3576
+ }
3577
+ /**
3578
+ * delete an account in cluster
3579
+ * @summary deleteSeaweedFSAccount
3580
+ * @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
3581
+ * @param {*} [options] Override http request option.
3582
+ * @throws {RequiredError}
3583
+ * @memberof AccountApi
3584
+ */
3585
+ deleteSeaweedFSAccount(requestParameters, options) {
3586
+ return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
3587
+ }
3588
+ /**
3589
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
3590
+ * @summary deleteSeaweedFSPolicy
3591
+ * @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
3592
+ * @param {*} [options] Override http request option.
3593
+ * @throws {RequiredError}
3594
+ * @memberof AccountApi
3595
+ */
3596
+ deleteSeaweedFSPolicy(requestParameters, options) {
3597
+ return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
3598
+ }
2684
3599
  /**
2685
3600
  * delete a MinIO service account access key
2686
3601
  * @summary Delete MinIO access key
@@ -2725,6 +3640,17 @@ class AccountApi extends base_1.BaseAPI {
2725
3640
  getRootAccountPassword(requestParameters, options) {
2726
3641
  return (0, exports.AccountApiFp)(this.configuration).getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
2727
3642
  }
3643
+ /**
3644
+ * get root account password
3645
+ * @summary getRootSeaweedFSAccountPassword
3646
+ * @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
3647
+ * @param {*} [options] Override http request option.
3648
+ * @throws {RequiredError}
3649
+ * @memberof AccountApi
3650
+ */
3651
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
3652
+ return (0, exports.AccountApiFp)(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
3653
+ }
2728
3654
  /**
2729
3655
  * get a MinIO service account access key
2730
3656
  * @summary Get MinIO access key
@@ -2791,6 +3717,28 @@ class AccountApi extends base_1.BaseAPI {
2791
3717
  listRabbitAccounts(requestParameters, options) {
2792
3718
  return (0, exports.AccountApiFp)(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
2793
3719
  }
3720
+ /**
3721
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
3722
+ * @summary listSeaweedFSAccounts
3723
+ * @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
3724
+ * @param {*} [options] Override http request option.
3725
+ * @throws {RequiredError}
3726
+ * @memberof AccountApi
3727
+ */
3728
+ listSeaweedFSAccounts(requestParameters, options) {
3729
+ return (0, exports.AccountApiFp)(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
3730
+ }
3731
+ /**
3732
+ *
3733
+ * @summary listSeaweedFSPolicies
3734
+ * @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
3735
+ * @param {*} [options] Override http request option.
3736
+ * @throws {RequiredError}
3737
+ * @memberof AccountApi
3738
+ */
3739
+ listSeaweedFSPolicies(requestParameters, options) {
3740
+ return (0, exports.AccountApiFp)(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
3741
+ }
2794
3742
  /**
2795
3743
  * list MinIO service account access keys
2796
3744
  * @summary List MinIO access keys
@@ -2813,6 +3761,17 @@ class AccountApi extends base_1.BaseAPI {
2813
3761
  putMilvusRole(requestParameters, options) {
2814
3762
  return (0, exports.AccountApiFp)(this.configuration).putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2815
3763
  }
3764
+ /**
3765
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
3766
+ * @summary putSeaweedFSPolicy
3767
+ * @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
3768
+ * @param {*} [options] Override http request option.
3769
+ * @throws {RequiredError}
3770
+ * @memberof AccountApi
3771
+ */
3772
+ putSeaweedFSPolicy(requestParameters, options) {
3773
+ return (0, exports.AccountApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
3774
+ }
2816
3775
  /**
2817
3776
  * update an account in cluster
2818
3777
  * @summary update cluster account
@@ -2912,6 +3871,28 @@ class AccountApi extends base_1.BaseAPI {
2912
3871
  updateRabbitAccountPrivileges(requestParameters, options) {
2913
3872
  return (0, exports.AccountApiFp)(this.configuration).updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(this.axios, this.basePath));
2914
3873
  }
3874
+ /**
3875
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
3876
+ * @summary updateSeaweedFSAccount
3877
+ * @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
3878
+ * @param {*} [options] Override http request option.
3879
+ * @throws {RequiredError}
3880
+ * @memberof AccountApi
3881
+ */
3882
+ updateSeaweedFSAccount(requestParameters, options) {
3883
+ return (0, exports.AccountApiFp)(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3884
+ }
3885
+ /**
3886
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
3887
+ * @summary updateSeaweedFSAccountPrivileges
3888
+ * @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
3889
+ * @param {*} [options] Override http request option.
3890
+ * @throws {RequiredError}
3891
+ * @memberof AccountApi
3892
+ */
3893
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
3894
+ return (0, exports.AccountApiFp)(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3895
+ }
2915
3896
  /**
2916
3897
  * update a MinIO service account access key
2917
3898
  * @summary Update MinIO access key