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 = `/admin/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
@@ -162,6 +209,96 @@ const AccountApiAxiosParamCreator = function (configuration) {
162
209
  options: localVarRequestOptions,
163
210
  };
164
211
  },
212
+ /**
213
+ * 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.
214
+ * @summary createSeaweedFSAccessKey
215
+ * @param {string} orgName
216
+ * @param {string} clusterName
217
+ * @param {string} accountName
218
+ * @param {Account} account
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ createSeaweedFSAccessKey: async (orgName, clusterName, accountName, account, options = {}) => {
223
+ // verify required parameter 'orgName' is not null or undefined
224
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'orgName', orgName);
225
+ // verify required parameter 'clusterName' is not null or undefined
226
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'clusterName', clusterName);
227
+ // verify required parameter 'accountName' is not null or undefined
228
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'accountName', accountName);
229
+ // verify required parameter 'account' is not null or undefined
230
+ (0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'account', account);
231
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
232
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
233
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
234
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
236
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
237
+ let baseOptions;
238
+ if (configuration) {
239
+ baseOptions = configuration.baseOptions;
240
+ }
241
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
242
+ const localVarHeaderParameter = {};
243
+ const localVarQueryParameter = {};
244
+ // authentication BearerToken required
245
+ // http bearer authentication required
246
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
247
+ // authentication DigestAuth required
248
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
249
+ localVarHeaderParameter['Content-Type'] = 'application/json';
250
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
251
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
253
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(account, localVarRequestOptions, configuration);
254
+ return {
255
+ url: (0, common_1.toPathString)(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ };
258
+ },
259
+ /**
260
+ * 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.
261
+ * @summary createSeaweedFSAccount
262
+ * @param {string} orgName name of the organization
263
+ * @param {string} clusterName name of the cluster
264
+ * @param {Account} body
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ createSeaweedFSAccount: async (orgName, clusterName, body, options = {}) => {
269
+ // verify required parameter 'orgName' is not null or undefined
270
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'orgName', orgName);
271
+ // verify required parameter 'clusterName' is not null or undefined
272
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'clusterName', clusterName);
273
+ // verify required parameter 'body' is not null or undefined
274
+ (0, common_1.assertParamExists)('createSeaweedFSAccount', 'body', body);
275
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
276
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
277
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
280
+ let baseOptions;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ }
284
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
285
+ const localVarHeaderParameter = {};
286
+ const localVarQueryParameter = {};
287
+ // authentication BearerToken required
288
+ // http bearer authentication required
289
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
290
+ // authentication DigestAuth required
291
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
292
+ localVarHeaderParameter['Content-Type'] = 'application/json';
293
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
297
+ return {
298
+ url: (0, common_1.toPathString)(localVarUrlObj),
299
+ options: localVarRequestOptions,
300
+ };
301
+ },
165
302
  /**
166
303
  * create a MinIO service account access key
167
304
  * @summary Create MinIO access key
@@ -425,6 +562,136 @@ const AccountApiAxiosParamCreator = function (configuration) {
425
562
  options: localVarRequestOptions,
426
563
  };
427
564
  },
565
+ /**
566
+ *
567
+ * @summary deleteSeaweedFSAccessKey
568
+ * @param {string} orgName
569
+ * @param {string} clusterName
570
+ * @param {string} accountName
571
+ * @param {string} accessKey
572
+ * @param {*} [options] Override http request option.
573
+ * @throws {RequiredError}
574
+ */
575
+ deleteSeaweedFSAccessKey: async (orgName, clusterName, accountName, accessKey, options = {}) => {
576
+ // verify required parameter 'orgName' is not null or undefined
577
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'orgName', orgName);
578
+ // verify required parameter 'clusterName' is not null or undefined
579
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'clusterName', clusterName);
580
+ // verify required parameter 'accountName' is not null or undefined
581
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accountName', accountName);
582
+ // verify required parameter 'accessKey' is not null or undefined
583
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accessKey', accessKey);
584
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
585
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
586
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
587
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
588
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
589
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
590
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
591
+ let baseOptions;
592
+ if (configuration) {
593
+ baseOptions = configuration.baseOptions;
594
+ }
595
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
596
+ const localVarHeaderParameter = {};
597
+ const localVarQueryParameter = {};
598
+ // authentication BearerToken required
599
+ // http bearer authentication required
600
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
601
+ // authentication DigestAuth required
602
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
603
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
604
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
605
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
606
+ return {
607
+ url: (0, common_1.toPathString)(localVarUrlObj),
608
+ options: localVarRequestOptions,
609
+ };
610
+ },
611
+ /**
612
+ * delete an account in cluster
613
+ * @summary deleteSeaweedFSAccount
614
+ * @param {string} orgName name of the organization
615
+ * @param {string} clusterName name of the cluster
616
+ * @param {string} accountName name of the account
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ deleteSeaweedFSAccount: async (orgName, clusterName, accountName, options = {}) => {
621
+ // verify required parameter 'orgName' is not null or undefined
622
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'orgName', orgName);
623
+ // verify required parameter 'clusterName' is not null or undefined
624
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'clusterName', clusterName);
625
+ // verify required parameter 'accountName' is not null or undefined
626
+ (0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'accountName', accountName);
627
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
628
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
629
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
630
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
631
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
632
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
633
+ let baseOptions;
634
+ if (configuration) {
635
+ baseOptions = configuration.baseOptions;
636
+ }
637
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
638
+ const localVarHeaderParameter = {};
639
+ const localVarQueryParameter = {};
640
+ // authentication BearerToken required
641
+ // http bearer authentication required
642
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
643
+ // authentication DigestAuth required
644
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
645
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
647
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
648
+ return {
649
+ url: (0, common_1.toPathString)(localVarUrlObj),
650
+ options: localVarRequestOptions,
651
+ };
652
+ },
653
+ /**
654
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
655
+ * @summary deleteSeaweedFSPolicy
656
+ * @param {string} orgName
657
+ * @param {string} clusterName
658
+ * @param {string} policyName
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ deleteSeaweedFSPolicy: async (orgName, clusterName, policyName, options = {}) => {
663
+ // verify required parameter 'orgName' is not null or undefined
664
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'orgName', orgName);
665
+ // verify required parameter 'clusterName' is not null or undefined
666
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'clusterName', clusterName);
667
+ // verify required parameter 'policyName' is not null or undefined
668
+ (0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'policyName', policyName);
669
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
670
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
671
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
672
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
673
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
674
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
675
+ let baseOptions;
676
+ if (configuration) {
677
+ baseOptions = configuration.baseOptions;
678
+ }
679
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
680
+ const localVarHeaderParameter = {};
681
+ const localVarQueryParameter = {};
682
+ // authentication BearerToken required
683
+ // http bearer authentication required
684
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
685
+ // authentication DigestAuth required
686
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
687
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
688
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
689
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
690
+ return {
691
+ url: (0, common_1.toPathString)(localVarUrlObj),
692
+ options: localVarRequestOptions,
693
+ };
694
+ },
428
695
  /**
429
696
  * delete a MinIO service account access key
430
697
  * @summary Delete MinIO access key
@@ -565,6 +832,54 @@ const AccountApiAxiosParamCreator = function (configuration) {
565
832
  options: localVarRequestOptions,
566
833
  };
567
834
  },
835
+ /**
836
+ * get root account password
837
+ * @summary getRootSeaweedFSAccountPassword
838
+ * @param {string} orgName name of the Org
839
+ * @param {string} clusterName name of the Cluster
840
+ * @param {string} accountName name of the account
841
+ * @param {string} [component] name of the component
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ getRootSeaweedFSAccountPassword: async (orgName, clusterName, accountName, component, options = {}) => {
846
+ // verify required parameter 'orgName' is not null or undefined
847
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'orgName', orgName);
848
+ // verify required parameter 'clusterName' is not null or undefined
849
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'clusterName', clusterName);
850
+ // verify required parameter 'accountName' is not null or undefined
851
+ (0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'accountName', accountName);
852
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
853
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
854
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
855
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
856
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
857
+ let baseOptions;
858
+ if (configuration) {
859
+ baseOptions = configuration.baseOptions;
860
+ }
861
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
862
+ const localVarHeaderParameter = {};
863
+ const localVarQueryParameter = {};
864
+ // authentication BearerToken required
865
+ // http bearer authentication required
866
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
867
+ // authentication DigestAuth required
868
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
869
+ if (accountName !== undefined) {
870
+ localVarQueryParameter['accountName'] = accountName;
871
+ }
872
+ if (component !== undefined) {
873
+ localVarQueryParameter['component'] = component;
874
+ }
875
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
876
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
877
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
878
+ return {
879
+ url: (0, common_1.toPathString)(localVarUrlObj),
880
+ options: localVarRequestOptions,
881
+ };
882
+ },
568
883
  /**
569
884
  * get a MinIO service account access key
570
885
  * @summary Get MinIO access key
@@ -767,6 +1082,82 @@ const AccountApiAxiosParamCreator = function (configuration) {
767
1082
  options: localVarRequestOptions,
768
1083
  };
769
1084
  },
1085
+ /**
1086
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
1087
+ * @summary listSeaweedFSAccounts
1088
+ * @param {string} orgName name of the organization
1089
+ * @param {string} clusterName name of the cluster
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
1094
+ // verify required parameter 'orgName' is not null or undefined
1095
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
1096
+ // verify required parameter 'clusterName' is not null or undefined
1097
+ (0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
1098
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
1099
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1100
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1102
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1103
+ let baseOptions;
1104
+ if (configuration) {
1105
+ baseOptions = configuration.baseOptions;
1106
+ }
1107
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1108
+ const localVarHeaderParameter = {};
1109
+ const localVarQueryParameter = {};
1110
+ // authentication BearerToken required
1111
+ // http bearer authentication required
1112
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1113
+ // authentication DigestAuth required
1114
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1115
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1117
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1118
+ return {
1119
+ url: (0, common_1.toPathString)(localVarUrlObj),
1120
+ options: localVarRequestOptions,
1121
+ };
1122
+ },
1123
+ /**
1124
+ *
1125
+ * @summary listSeaweedFSPolicies
1126
+ * @param {string} orgName
1127
+ * @param {string} clusterName
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ */
1131
+ listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
1132
+ // verify required parameter 'orgName' is not null or undefined
1133
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
1134
+ // verify required parameter 'clusterName' is not null or undefined
1135
+ (0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
1136
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
1137
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1138
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1139
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1140
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1141
+ let baseOptions;
1142
+ if (configuration) {
1143
+ baseOptions = configuration.baseOptions;
1144
+ }
1145
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1146
+ const localVarHeaderParameter = {};
1147
+ const localVarQueryParameter = {};
1148
+ // authentication BearerToken required
1149
+ // http bearer authentication required
1150
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1151
+ // authentication DigestAuth required
1152
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1153
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1155
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1156
+ return {
1157
+ url: (0, common_1.toPathString)(localVarUrlObj),
1158
+ options: localVarRequestOptions,
1159
+ };
1160
+ },
770
1161
  /**
771
1162
  * list MinIO service account access keys
772
1163
  * @summary List MinIO access keys
@@ -860,6 +1251,53 @@ const AccountApiAxiosParamCreator = function (configuration) {
860
1251
  options: localVarRequestOptions,
861
1252
  };
862
1253
  },
1254
+ /**
1255
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
1256
+ * @summary putSeaweedFSPolicy
1257
+ * @param {string} orgName
1258
+ * @param {string} clusterName
1259
+ * @param {string} policyName
1260
+ * @param {{ [key: string]: any; }} requestBody
1261
+ * @param {*} [options] Override http request option.
1262
+ * @throws {RequiredError}
1263
+ */
1264
+ putSeaweedFSPolicy: async (orgName, clusterName, policyName, requestBody, options = {}) => {
1265
+ // verify required parameter 'orgName' is not null or undefined
1266
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'orgName', orgName);
1267
+ // verify required parameter 'clusterName' is not null or undefined
1268
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'clusterName', clusterName);
1269
+ // verify required parameter 'policyName' is not null or undefined
1270
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'policyName', policyName);
1271
+ // verify required parameter 'requestBody' is not null or undefined
1272
+ (0, common_1.assertParamExists)('putSeaweedFSPolicy', 'requestBody', requestBody);
1273
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
1274
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1275
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1276
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
1277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1278
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1279
+ let baseOptions;
1280
+ if (configuration) {
1281
+ baseOptions = configuration.baseOptions;
1282
+ }
1283
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1284
+ const localVarHeaderParameter = {};
1285
+ const localVarQueryParameter = {};
1286
+ // authentication BearerToken required
1287
+ // http bearer authentication required
1288
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1289
+ // authentication DigestAuth required
1290
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1291
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1292
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1294
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1295
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
1296
+ return {
1297
+ url: (0, common_1.toPathString)(localVarUrlObj),
1298
+ options: localVarRequestOptions,
1299
+ };
1300
+ },
863
1301
  /**
864
1302
  * update an account in cluster
865
1303
  * @summary update cluster account
@@ -1191,6 +1629,100 @@ const AccountApiAxiosParamCreator = function (configuration) {
1191
1629
  options: localVarRequestOptions,
1192
1630
  };
1193
1631
  },
1632
+ /**
1633
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
1634
+ * @summary updateSeaweedFSAccount
1635
+ * @param {string} orgName name of the organization
1636
+ * @param {string} clusterName name of the cluster
1637
+ * @param {string} accountName name of the account
1638
+ * @param {Account} body
1639
+ * @param {*} [options] Override http request option.
1640
+ * @throws {RequiredError}
1641
+ */
1642
+ updateSeaweedFSAccount: async (orgName, clusterName, accountName, body, options = {}) => {
1643
+ // verify required parameter 'orgName' is not null or undefined
1644
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'orgName', orgName);
1645
+ // verify required parameter 'clusterName' is not null or undefined
1646
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'clusterName', clusterName);
1647
+ // verify required parameter 'accountName' is not null or undefined
1648
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'accountName', accountName);
1649
+ // verify required parameter 'body' is not null or undefined
1650
+ (0, common_1.assertParamExists)('updateSeaweedFSAccount', 'body', body);
1651
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
1652
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1653
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1654
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1656
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1657
+ let baseOptions;
1658
+ if (configuration) {
1659
+ baseOptions = configuration.baseOptions;
1660
+ }
1661
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1662
+ const localVarHeaderParameter = {};
1663
+ const localVarQueryParameter = {};
1664
+ // authentication BearerToken required
1665
+ // http bearer authentication required
1666
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1667
+ // authentication DigestAuth required
1668
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1669
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1670
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1671
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1672
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1673
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1674
+ return {
1675
+ url: (0, common_1.toPathString)(localVarUrlObj),
1676
+ options: localVarRequestOptions,
1677
+ };
1678
+ },
1679
+ /**
1680
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
1681
+ * @summary updateSeaweedFSAccountPrivileges
1682
+ * @param {string} orgName name of the Org
1683
+ * @param {string} clusterName name of the Cluster
1684
+ * @param {string} accountName name of the account
1685
+ * @param {Array<PrivilegeListItem>} body
1686
+ * @param {*} [options] Override http request option.
1687
+ * @throws {RequiredError}
1688
+ */
1689
+ updateSeaweedFSAccountPrivileges: async (orgName, clusterName, accountName, body, options = {}) => {
1690
+ // verify required parameter 'orgName' is not null or undefined
1691
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'orgName', orgName);
1692
+ // verify required parameter 'clusterName' is not null or undefined
1693
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName);
1694
+ // verify required parameter 'accountName' is not null or undefined
1695
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'accountName', accountName);
1696
+ // verify required parameter 'body' is not null or undefined
1697
+ (0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'body', body);
1698
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
1699
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1700
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1701
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
1702
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1703
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1704
+ let baseOptions;
1705
+ if (configuration) {
1706
+ baseOptions = configuration.baseOptions;
1707
+ }
1708
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1709
+ const localVarHeaderParameter = {};
1710
+ const localVarQueryParameter = {};
1711
+ // authentication BearerToken required
1712
+ // http bearer authentication required
1713
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1714
+ // authentication DigestAuth required
1715
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1716
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1717
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1718
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1719
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1720
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1721
+ return {
1722
+ url: (0, common_1.toPathString)(localVarUrlObj),
1723
+ options: localVarRequestOptions,
1724
+ };
1725
+ },
1194
1726
  /**
1195
1727
  * update a MinIO service account access key
1196
1728
  * @summary Update MinIO access key
@@ -1252,6 +1784,23 @@ exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
1252
1784
  const AccountApiFp = function (configuration) {
1253
1785
  const localVarAxiosParamCreator = (0, exports.AccountApiAxiosParamCreator)(configuration);
1254
1786
  return {
1787
+ /**
1788
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
1789
+ * @summary bindSeaweedFSPolicies
1790
+ * @param {string} orgName
1791
+ * @param {string} clusterName
1792
+ * @param {string} accountName
1793
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
1794
+ * @param {*} [options] Override http request option.
1795
+ * @throws {RequiredError}
1796
+ */
1797
+ async bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options) {
1798
+ var _a, _b, _c;
1799
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
1800
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1801
+ 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;
1802
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1803
+ },
1255
1804
  /**
1256
1805
  * create an account in cluster
1257
1806
  * @summary Create cluster account
@@ -1301,6 +1850,39 @@ const AccountApiFp = function (configuration) {
1301
1850
  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;
1302
1851
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1303
1852
  },
1853
+ /**
1854
+ * 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.
1855
+ * @summary createSeaweedFSAccessKey
1856
+ * @param {string} orgName
1857
+ * @param {string} clusterName
1858
+ * @param {string} accountName
1859
+ * @param {Account} account
1860
+ * @param {*} [options] Override http request option.
1861
+ * @throws {RequiredError}
1862
+ */
1863
+ async createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options) {
1864
+ var _a, _b, _c;
1865
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
1866
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1867
+ 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;
1868
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1869
+ },
1870
+ /**
1871
+ * 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.
1872
+ * @summary createSeaweedFSAccount
1873
+ * @param {string} orgName name of the organization
1874
+ * @param {string} clusterName name of the cluster
1875
+ * @param {Account} body
1876
+ * @param {*} [options] Override http request option.
1877
+ * @throws {RequiredError}
1878
+ */
1879
+ async createSeaweedFSAccount(orgName, clusterName, body, options) {
1880
+ var _a, _b, _c;
1881
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
1882
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1883
+ 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;
1884
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1885
+ },
1304
1886
  /**
1305
1887
  * create a MinIO service account access key
1306
1888
  * @summary Create MinIO access key
@@ -1399,6 +1981,55 @@ const AccountApiFp = function (configuration) {
1399
1981
  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;
1400
1982
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1401
1983
  },
1984
+ /**
1985
+ *
1986
+ * @summary deleteSeaweedFSAccessKey
1987
+ * @param {string} orgName
1988
+ * @param {string} clusterName
1989
+ * @param {string} accountName
1990
+ * @param {string} accessKey
1991
+ * @param {*} [options] Override http request option.
1992
+ * @throws {RequiredError}
1993
+ */
1994
+ async deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options) {
1995
+ var _a, _b, _c;
1996
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
1997
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1998
+ 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;
1999
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2000
+ },
2001
+ /**
2002
+ * delete an account in cluster
2003
+ * @summary deleteSeaweedFSAccount
2004
+ * @param {string} orgName name of the organization
2005
+ * @param {string} clusterName name of the cluster
2006
+ * @param {string} accountName name of the account
2007
+ * @param {*} [options] Override http request option.
2008
+ * @throws {RequiredError}
2009
+ */
2010
+ async deleteSeaweedFSAccount(orgName, clusterName, accountName, options) {
2011
+ var _a, _b, _c;
2012
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
2013
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2014
+ 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;
2015
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2016
+ },
2017
+ /**
2018
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
2019
+ * @summary deleteSeaweedFSPolicy
2020
+ * @param {string} orgName
2021
+ * @param {string} clusterName
2022
+ * @param {string} policyName
2023
+ * @param {*} [options] Override http request option.
2024
+ * @throws {RequiredError}
2025
+ */
2026
+ async deleteSeaweedFSPolicy(orgName, clusterName, policyName, options) {
2027
+ var _a, _b, _c;
2028
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
2029
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2030
+ 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;
2031
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2032
+ },
1402
2033
  /**
1403
2034
  * delete a MinIO service account access key
1404
2035
  * @summary Delete MinIO access key
@@ -1450,6 +2081,23 @@ const AccountApiFp = function (configuration) {
1450
2081
  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;
1451
2082
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1452
2083
  },
2084
+ /**
2085
+ * get root account password
2086
+ * @summary getRootSeaweedFSAccountPassword
2087
+ * @param {string} orgName name of the Org
2088
+ * @param {string} clusterName name of the Cluster
2089
+ * @param {string} accountName name of the account
2090
+ * @param {string} [component] name of the component
2091
+ * @param {*} [options] Override http request option.
2092
+ * @throws {RequiredError}
2093
+ */
2094
+ async getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options) {
2095
+ var _a, _b, _c;
2096
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
2097
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2098
+ 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;
2099
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2100
+ },
1453
2101
  /**
1454
2102
  * get a MinIO service account access key
1455
2103
  * @summary Get MinIO access key
@@ -1528,6 +2176,36 @@ const AccountApiFp = function (configuration) {
1528
2176
  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;
1529
2177
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1530
2178
  },
2179
+ /**
2180
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
2181
+ * @summary listSeaweedFSAccounts
2182
+ * @param {string} orgName name of the organization
2183
+ * @param {string} clusterName name of the cluster
2184
+ * @param {*} [options] Override http request option.
2185
+ * @throws {RequiredError}
2186
+ */
2187
+ async listSeaweedFSAccounts(orgName, clusterName, options) {
2188
+ var _a, _b, _c;
2189
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
2190
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2191
+ 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;
2192
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2193
+ },
2194
+ /**
2195
+ *
2196
+ * @summary listSeaweedFSPolicies
2197
+ * @param {string} orgName
2198
+ * @param {string} clusterName
2199
+ * @param {*} [options] Override http request option.
2200
+ * @throws {RequiredError}
2201
+ */
2202
+ async listSeaweedFSPolicies(orgName, clusterName, options) {
2203
+ var _a, _b, _c;
2204
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
2205
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2206
+ 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;
2207
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2208
+ },
1531
2209
  /**
1532
2210
  * list MinIO service account access keys
1533
2211
  * @summary List MinIO access keys
@@ -1562,6 +2240,23 @@ const AccountApiFp = function (configuration) {
1562
2240
  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;
1563
2241
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1564
2242
  },
2243
+ /**
2244
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
2245
+ * @summary putSeaweedFSPolicy
2246
+ * @param {string} orgName
2247
+ * @param {string} clusterName
2248
+ * @param {string} policyName
2249
+ * @param {{ [key: string]: any; }} requestBody
2250
+ * @param {*} [options] Override http request option.
2251
+ * @throws {RequiredError}
2252
+ */
2253
+ async putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options) {
2254
+ var _a, _b, _c;
2255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
2256
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2257
+ 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;
2258
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2259
+ },
1565
2260
  /**
1566
2261
  * update an account in cluster
1567
2262
  * @summary update cluster account
@@ -1682,6 +2377,40 @@ const AccountApiFp = function (configuration) {
1682
2377
  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;
1683
2378
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1684
2379
  },
2380
+ /**
2381
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
2382
+ * @summary updateSeaweedFSAccount
2383
+ * @param {string} orgName name of the organization
2384
+ * @param {string} clusterName name of the cluster
2385
+ * @param {string} accountName name of the account
2386
+ * @param {Account} body
2387
+ * @param {*} [options] Override http request option.
2388
+ * @throws {RequiredError}
2389
+ */
2390
+ async updateSeaweedFSAccount(orgName, clusterName, accountName, body, options) {
2391
+ var _a, _b, _c;
2392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
2393
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2394
+ 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;
2395
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2396
+ },
2397
+ /**
2398
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
2399
+ * @summary updateSeaweedFSAccountPrivileges
2400
+ * @param {string} orgName name of the Org
2401
+ * @param {string} clusterName name of the Cluster
2402
+ * @param {string} accountName name of the account
2403
+ * @param {Array<PrivilegeListItem>} body
2404
+ * @param {*} [options] Override http request option.
2405
+ * @throws {RequiredError}
2406
+ */
2407
+ async updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options) {
2408
+ var _a, _b, _c;
2409
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
2410
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2411
+ 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;
2412
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2413
+ },
1685
2414
  /**
1686
2415
  * update a MinIO service account access key
1687
2416
  * @summary Update MinIO access key
@@ -1710,6 +2439,16 @@ exports.AccountApiFp = AccountApiFp;
1710
2439
  const AccountApiFactory = function (configuration, basePath, axios) {
1711
2440
  const localVarFp = (0, exports.AccountApiFp)(configuration);
1712
2441
  return {
2442
+ /**
2443
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
2444
+ * @summary bindSeaweedFSPolicies
2445
+ * @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
2446
+ * @param {*} [options] Override http request option.
2447
+ * @throws {RequiredError}
2448
+ */
2449
+ bindSeaweedFSPolicies(requestParameters, options) {
2450
+ return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
2451
+ },
1713
2452
  /**
1714
2453
  * create an account in cluster
1715
2454
  * @summary Create cluster account
@@ -1740,6 +2479,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1740
2479
  createRabbitAccount(requestParameters, options) {
1741
2480
  return localVarFp.createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(axios, basePath));
1742
2481
  },
2482
+ /**
2483
+ * 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.
2484
+ * @summary createSeaweedFSAccessKey
2485
+ * @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
2486
+ * @param {*} [options] Override http request option.
2487
+ * @throws {RequiredError}
2488
+ */
2489
+ createSeaweedFSAccessKey(requestParameters, options) {
2490
+ return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
2491
+ },
2492
+ /**
2493
+ * 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.
2494
+ * @summary createSeaweedFSAccount
2495
+ * @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
2496
+ * @param {*} [options] Override http request option.
2497
+ * @throws {RequiredError}
2498
+ */
2499
+ createSeaweedFSAccount(requestParameters, options) {
2500
+ return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
2501
+ },
1743
2502
  /**
1744
2503
  * create a MinIO service account access key
1745
2504
  * @summary Create MinIO access key
@@ -1800,6 +2559,36 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1800
2559
  deleteRabbitAccount(requestParameters, options) {
1801
2560
  return localVarFp.deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1802
2561
  },
2562
+ /**
2563
+ *
2564
+ * @summary deleteSeaweedFSAccessKey
2565
+ * @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
2566
+ * @param {*} [options] Override http request option.
2567
+ * @throws {RequiredError}
2568
+ */
2569
+ deleteSeaweedFSAccessKey(requestParameters, options) {
2570
+ return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
2571
+ },
2572
+ /**
2573
+ * delete an account in cluster
2574
+ * @summary deleteSeaweedFSAccount
2575
+ * @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
2576
+ * @param {*} [options] Override http request option.
2577
+ * @throws {RequiredError}
2578
+ */
2579
+ deleteSeaweedFSAccount(requestParameters, options) {
2580
+ return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
2581
+ },
2582
+ /**
2583
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
2584
+ * @summary deleteSeaweedFSPolicy
2585
+ * @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
2586
+ * @param {*} [options] Override http request option.
2587
+ * @throws {RequiredError}
2588
+ */
2589
+ deleteSeaweedFSPolicy(requestParameters, options) {
2590
+ return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
2591
+ },
1803
2592
  /**
1804
2593
  * delete a MinIO service account access key
1805
2594
  * @summary Delete MinIO access key
@@ -1830,6 +2619,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1830
2619
  getRootAccountPassword(requestParameters, options) {
1831
2620
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
1832
2621
  },
2622
+ /**
2623
+ * get root account password
2624
+ * @summary getRootSeaweedFSAccountPassword
2625
+ * @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
2626
+ * @param {*} [options] Override http request option.
2627
+ * @throws {RequiredError}
2628
+ */
2629
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
2630
+ return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
2631
+ },
1833
2632
  /**
1834
2633
  * get a MinIO service account access key
1835
2634
  * @summary Get MinIO access key
@@ -1880,6 +2679,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1880
2679
  listRabbitAccounts(requestParameters, options) {
1881
2680
  return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1882
2681
  },
2682
+ /**
2683
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
2684
+ * @summary listSeaweedFSAccounts
2685
+ * @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
2686
+ * @param {*} [options] Override http request option.
2687
+ * @throws {RequiredError}
2688
+ */
2689
+ listSeaweedFSAccounts(requestParameters, options) {
2690
+ return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
2691
+ },
2692
+ /**
2693
+ *
2694
+ * @summary listSeaweedFSPolicies
2695
+ * @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
2696
+ * @param {*} [options] Override http request option.
2697
+ * @throws {RequiredError}
2698
+ */
2699
+ listSeaweedFSPolicies(requestParameters, options) {
2700
+ return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
2701
+ },
1883
2702
  /**
1884
2703
  * list MinIO service account access keys
1885
2704
  * @summary List MinIO access keys
@@ -1900,6 +2719,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1900
2719
  putMilvusRole(requestParameters, options) {
1901
2720
  return localVarFp.putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
1902
2721
  },
2722
+ /**
2723
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
2724
+ * @summary putSeaweedFSPolicy
2725
+ * @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
2726
+ * @param {*} [options] Override http request option.
2727
+ * @throws {RequiredError}
2728
+ */
2729
+ putSeaweedFSPolicy(requestParameters, options) {
2730
+ return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
2731
+ },
1903
2732
  /**
1904
2733
  * update an account in cluster
1905
2734
  * @summary update cluster account
@@ -1970,6 +2799,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
1970
2799
  updateRabbitAccountPrivileges(requestParameters, options) {
1971
2800
  return localVarFp.updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(axios, basePath));
1972
2801
  },
2802
+ /**
2803
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
2804
+ * @summary updateSeaweedFSAccount
2805
+ * @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
2806
+ * @param {*} [options] Override http request option.
2807
+ * @throws {RequiredError}
2808
+ */
2809
+ updateSeaweedFSAccount(requestParameters, options) {
2810
+ return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
2811
+ },
2812
+ /**
2813
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
2814
+ * @summary updateSeaweedFSAccountPrivileges
2815
+ * @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
2816
+ * @param {*} [options] Override http request option.
2817
+ * @throws {RequiredError}
2818
+ */
2819
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
2820
+ return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
2821
+ },
1973
2822
  /**
1974
2823
  * update a MinIO service account access key
1975
2824
  * @summary Update MinIO access key
@@ -1990,6 +2839,17 @@ exports.AccountApiFactory = AccountApiFactory;
1990
2839
  * @extends {BaseAPI}
1991
2840
  */
1992
2841
  class AccountApi extends base_1.BaseAPI {
2842
+ /**
2843
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
2844
+ * @summary bindSeaweedFSPolicies
2845
+ * @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
2846
+ * @param {*} [options] Override http request option.
2847
+ * @throws {RequiredError}
2848
+ * @memberof AccountApi
2849
+ */
2850
+ bindSeaweedFSPolicies(requestParameters, options) {
2851
+ return (0, exports.AccountApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
2852
+ }
1993
2853
  /**
1994
2854
  * create an account in cluster
1995
2855
  * @summary Create cluster account
@@ -2023,6 +2883,28 @@ class AccountApi extends base_1.BaseAPI {
2023
2883
  createRabbitAccount(requestParameters, options) {
2024
2884
  return (0, exports.AccountApiFp)(this.configuration).createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(this.axios, this.basePath));
2025
2885
  }
2886
+ /**
2887
+ * 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.
2888
+ * @summary createSeaweedFSAccessKey
2889
+ * @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
2890
+ * @param {*} [options] Override http request option.
2891
+ * @throws {RequiredError}
2892
+ * @memberof AccountApi
2893
+ */
2894
+ createSeaweedFSAccessKey(requestParameters, options) {
2895
+ return (0, exports.AccountApiFp)(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
2896
+ }
2897
+ /**
2898
+ * 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.
2899
+ * @summary createSeaweedFSAccount
2900
+ * @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ * @memberof AccountApi
2904
+ */
2905
+ createSeaweedFSAccount(requestParameters, options) {
2906
+ return (0, exports.AccountApiFp)(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2907
+ }
2026
2908
  /**
2027
2909
  * create a MinIO service account access key
2028
2910
  * @summary Create MinIO access key
@@ -2089,6 +2971,39 @@ class AccountApi extends base_1.BaseAPI {
2089
2971
  deleteRabbitAccount(requestParameters, options) {
2090
2972
  return (0, exports.AccountApiFp)(this.configuration).deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2091
2973
  }
2974
+ /**
2975
+ *
2976
+ * @summary deleteSeaweedFSAccessKey
2977
+ * @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
2978
+ * @param {*} [options] Override http request option.
2979
+ * @throws {RequiredError}
2980
+ * @memberof AccountApi
2981
+ */
2982
+ deleteSeaweedFSAccessKey(requestParameters, options) {
2983
+ return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
2984
+ }
2985
+ /**
2986
+ * delete an account in cluster
2987
+ * @summary deleteSeaweedFSAccount
2988
+ * @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
2989
+ * @param {*} [options] Override http request option.
2990
+ * @throws {RequiredError}
2991
+ * @memberof AccountApi
2992
+ */
2993
+ deleteSeaweedFSAccount(requestParameters, options) {
2994
+ return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2995
+ }
2996
+ /**
2997
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
2998
+ * @summary deleteSeaweedFSPolicy
2999
+ * @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
3000
+ * @param {*} [options] Override http request option.
3001
+ * @throws {RequiredError}
3002
+ * @memberof AccountApi
3003
+ */
3004
+ deleteSeaweedFSPolicy(requestParameters, options) {
3005
+ return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
3006
+ }
2092
3007
  /**
2093
3008
  * delete a MinIO service account access key
2094
3009
  * @summary Delete MinIO access key
@@ -2122,6 +3037,17 @@ class AccountApi extends base_1.BaseAPI {
2122
3037
  getRootAccountPassword(requestParameters, options) {
2123
3038
  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));
2124
3039
  }
3040
+ /**
3041
+ * get root account password
3042
+ * @summary getRootSeaweedFSAccountPassword
3043
+ * @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
3044
+ * @param {*} [options] Override http request option.
3045
+ * @throws {RequiredError}
3046
+ * @memberof AccountApi
3047
+ */
3048
+ getRootSeaweedFSAccountPassword(requestParameters, options) {
3049
+ return (0, exports.AccountApiFp)(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
3050
+ }
2125
3051
  /**
2126
3052
  * get a MinIO service account access key
2127
3053
  * @summary Get MinIO access key
@@ -2177,6 +3103,28 @@ class AccountApi extends base_1.BaseAPI {
2177
3103
  listRabbitAccounts(requestParameters, options) {
2178
3104
  return (0, exports.AccountApiFp)(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
2179
3105
  }
3106
+ /**
3107
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
3108
+ * @summary listSeaweedFSAccounts
3109
+ * @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
3110
+ * @param {*} [options] Override http request option.
3111
+ * @throws {RequiredError}
3112
+ * @memberof AccountApi
3113
+ */
3114
+ listSeaweedFSAccounts(requestParameters, options) {
3115
+ return (0, exports.AccountApiFp)(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
3116
+ }
3117
+ /**
3118
+ *
3119
+ * @summary listSeaweedFSPolicies
3120
+ * @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
3121
+ * @param {*} [options] Override http request option.
3122
+ * @throws {RequiredError}
3123
+ * @memberof AccountApi
3124
+ */
3125
+ listSeaweedFSPolicies(requestParameters, options) {
3126
+ return (0, exports.AccountApiFp)(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
3127
+ }
2180
3128
  /**
2181
3129
  * list MinIO service account access keys
2182
3130
  * @summary List MinIO access keys
@@ -2199,6 +3147,17 @@ class AccountApi extends base_1.BaseAPI {
2199
3147
  putMilvusRole(requestParameters, options) {
2200
3148
  return (0, exports.AccountApiFp)(this.configuration).putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2201
3149
  }
3150
+ /**
3151
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
3152
+ * @summary putSeaweedFSPolicy
3153
+ * @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
3154
+ * @param {*} [options] Override http request option.
3155
+ * @throws {RequiredError}
3156
+ * @memberof AccountApi
3157
+ */
3158
+ putSeaweedFSPolicy(requestParameters, options) {
3159
+ return (0, exports.AccountApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
3160
+ }
2202
3161
  /**
2203
3162
  * update an account in cluster
2204
3163
  * @summary update cluster account
@@ -2276,6 +3235,28 @@ class AccountApi extends base_1.BaseAPI {
2276
3235
  updateRabbitAccountPrivileges(requestParameters, options) {
2277
3236
  return (0, exports.AccountApiFp)(this.configuration).updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(this.axios, this.basePath));
2278
3237
  }
3238
+ /**
3239
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
3240
+ * @summary updateSeaweedFSAccount
3241
+ * @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
3242
+ * @param {*} [options] Override http request option.
3243
+ * @throws {RequiredError}
3244
+ * @memberof AccountApi
3245
+ */
3246
+ updateSeaweedFSAccount(requestParameters, options) {
3247
+ return (0, exports.AccountApiFp)(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3248
+ }
3249
+ /**
3250
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
3251
+ * @summary updateSeaweedFSAccountPrivileges
3252
+ * @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
3253
+ * @param {*} [options] Override http request option.
3254
+ * @throws {RequiredError}
3255
+ * @memberof AccountApi
3256
+ */
3257
+ updateSeaweedFSAccountPrivileges(requestParameters, options) {
3258
+ return (0, exports.AccountApiFp)(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3259
+ }
2279
3260
  /**
2280
3261
  * update a MinIO service account access key
2281
3262
  * @summary Update MinIO access key