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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/account-api.d.ts +906 -6
  6. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/account-api.js +981 -0
  8. package/dist/adminapi/apis/account-api.js.map +1 -1
  9. package/dist/adminapi/apis/seaweedfs-api.d.ts +951 -0
  10. package/dist/adminapi/apis/seaweedfs-api.d.ts.map +1 -0
  11. package/dist/adminapi/apis/seaweedfs-api.js +1045 -0
  12. package/dist/adminapi/apis/seaweedfs-api.js.map +1 -0
  13. package/dist/adminapi/apis/shared-api.d.ts +905 -5
  14. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  15. package/dist/adminapi/apis/shared-api.js +991 -10
  16. package/dist/adminapi/apis/shared-api.js.map +1 -1
  17. package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
  18. package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
  19. package/dist/adminapi/models/bind-seaweed-fspolicies-request.js +16 -0
  20. package/dist/adminapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
  21. package/dist/adminapi/models/index.d.ts +3 -0
  22. package/dist/adminapi/models/index.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.js +3 -0
  24. package/dist/adminapi/models/index.js.map +1 -1
  25. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
  26. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
  27. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
  28. package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
  29. package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
  30. package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
  31. package/dist/adminapi/models/list-seaweed-fspolicies200-response.js +16 -0
  32. package/dist/adminapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
  33. package/dist/openapi/api.d.ts +1 -0
  34. package/dist/openapi/api.d.ts.map +1 -1
  35. package/dist/openapi/api.js +1 -0
  36. package/dist/openapi/api.js.map +1 -1
  37. package/dist/openapi/apis/account-api.d.ts +906 -6
  38. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  39. package/dist/openapi/apis/account-api.js +981 -0
  40. package/dist/openapi/apis/account-api.js.map +1 -1
  41. package/dist/openapi/apis/seaweedfs-api.d.ts +951 -0
  42. package/dist/openapi/apis/seaweedfs-api.d.ts.map +1 -0
  43. package/dist/openapi/apis/seaweedfs-api.js +1045 -0
  44. package/dist/openapi/apis/seaweedfs-api.js.map +1 -0
  45. package/dist/openapi/apis/shared-api.d.ts +905 -5
  46. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/shared-api.js +991 -10
  48. package/dist/openapi/apis/shared-api.js.map +1 -1
  49. package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
  50. package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
  51. package/dist/openapi/models/bind-seaweed-fspolicies-request.js +16 -0
  52. package/dist/openapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
  53. package/dist/openapi/models/index.d.ts +3 -0
  54. package/dist/openapi/models/index.d.ts.map +1 -1
  55. package/dist/openapi/models/index.js +3 -0
  56. package/dist/openapi/models/index.js.map +1 -1
  57. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
  58. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
  59. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
  60. package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
  61. package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
  62. package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
  63. package/dist/openapi/models/list-seaweed-fspolicies200-response.js +16 -0
  64. package/dist/openapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
  65. package/package.json +1 -1
  66. package/src/adminapi/.openapi-generator/FILES +4 -0
  67. package/src/adminapi/api.ts +1 -0
  68. package/src/adminapi/apis/account-api.ts +1623 -55
  69. package/src/adminapi/apis/seaweedfs-api.ts +1644 -0
  70. package/src/adminapi/apis/shared-api.ts +1776 -208
  71. package/src/adminapi/models/bind-seaweed-fspolicies-request.ts +30 -0
  72. package/src/adminapi/models/index.ts +3 -0
  73. package/src/adminapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
  74. package/src/adminapi/models/list-seaweed-fspolicies200-response.ts +33 -0
  75. package/src/adminapi.yaml +562 -0
  76. package/src/openapi/.openapi-generator/FILES +4 -0
  77. package/src/openapi/api.ts +1 -0
  78. package/src/openapi/apis/account-api.ts +1623 -55
  79. package/src/openapi/apis/seaweedfs-api.ts +1644 -0
  80. package/src/openapi/apis/shared-api.ts +1776 -208
  81. package/src/openapi/models/bind-seaweed-fspolicies-request.ts +30 -0
  82. package/src/openapi/models/index.ts +3 -0
  83. package/src/openapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
  84. package/src/openapi/models/list-seaweed-fspolicies200-response.ts +33 -0
  85. package/src/openapi.yaml +562 -0
@@ -0,0 +1,1644 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { APIErrorResponse } from '../models';
26
+ // @ts-ignore
27
+ import type { Account } from '../models';
28
+ // @ts-ignore
29
+ import type { AccountListItem } from '../models';
30
+ // @ts-ignore
31
+ import type { BindSeaweedFSPoliciesRequest } from '../models';
32
+ // @ts-ignore
33
+ import type { ListSeaweedFSPolicies200Response } from '../models';
34
+ // @ts-ignore
35
+ import type { PrivilegeListItem } from '../models';
36
+ /**
37
+ * SeaweedfsApi - axios parameter creator
38
+ * @export
39
+ */
40
+ export const SeaweedfsApiAxiosParamCreator = function (configuration?: Configuration) {
41
+ return {
42
+ /**
43
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
44
+ * @summary bindSeaweedFSPolicies
45
+ * @param {string} orgName
46
+ * @param {string} clusterName
47
+ * @param {string} accountName
48
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ bindSeaweedFSPolicies: async (orgName: string, clusterName: string, accountName: string, bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
53
+ // verify required parameter 'orgName' is not null or undefined
54
+ assertParamExists('bindSeaweedFSPolicies', 'orgName', orgName)
55
+ // verify required parameter 'clusterName' is not null or undefined
56
+ assertParamExists('bindSeaweedFSPolicies', 'clusterName', clusterName)
57
+ // verify required parameter 'accountName' is not null or undefined
58
+ assertParamExists('bindSeaweedFSPolicies', 'accountName', accountName)
59
+ // verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
60
+ assertParamExists('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest)
61
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
62
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
63
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
64
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
65
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
66
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
67
+ let baseOptions;
68
+ if (configuration) {
69
+ baseOptions = configuration.baseOptions;
70
+ }
71
+
72
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
73
+ const localVarHeaderParameter = {} as any;
74
+ const localVarQueryParameter = {} as any;
75
+
76
+ // authentication BearerToken required
77
+ // http bearer authentication required
78
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
79
+
80
+ // authentication DigestAuth required
81
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
82
+
83
+
84
+
85
+ localVarHeaderParameter['Content-Type'] = 'application/json';
86
+
87
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
88
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
89
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
90
+ localVarRequestOptions.data = serializeDataIfNeeded(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration)
91
+
92
+ return {
93
+ url: toPathString(localVarUrlObj),
94
+ options: localVarRequestOptions,
95
+ };
96
+ },
97
+ /**
98
+ * 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.
99
+ * @summary createSeaweedFSAccessKey
100
+ * @param {string} orgName
101
+ * @param {string} clusterName
102
+ * @param {string} accountName
103
+ * @param {Account} account
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createSeaweedFSAccessKey: async (orgName: string, clusterName: string, accountName: string, account: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
108
+ // verify required parameter 'orgName' is not null or undefined
109
+ assertParamExists('createSeaweedFSAccessKey', 'orgName', orgName)
110
+ // verify required parameter 'clusterName' is not null or undefined
111
+ assertParamExists('createSeaweedFSAccessKey', 'clusterName', clusterName)
112
+ // verify required parameter 'accountName' is not null or undefined
113
+ assertParamExists('createSeaweedFSAccessKey', 'accountName', accountName)
114
+ // verify required parameter 'account' is not null or undefined
115
+ assertParamExists('createSeaweedFSAccessKey', 'account', account)
116
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
117
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
118
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
119
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
122
+ let baseOptions;
123
+ if (configuration) {
124
+ baseOptions = configuration.baseOptions;
125
+ }
126
+
127
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
128
+ const localVarHeaderParameter = {} as any;
129
+ const localVarQueryParameter = {} as any;
130
+
131
+ // authentication BearerToken required
132
+ // http bearer authentication required
133
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
134
+
135
+ // authentication DigestAuth required
136
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
137
+
138
+
139
+
140
+ localVarHeaderParameter['Content-Type'] = 'application/json';
141
+
142
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
143
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
144
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
145
+ localVarRequestOptions.data = serializeDataIfNeeded(account, localVarRequestOptions, configuration)
146
+
147
+ return {
148
+ url: toPathString(localVarUrlObj),
149
+ options: localVarRequestOptions,
150
+ };
151
+ },
152
+ /**
153
+ * 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.
154
+ * @summary createSeaweedFSAccount
155
+ * @param {string} orgName name of the organization
156
+ * @param {string} clusterName name of the cluster
157
+ * @param {Account} body
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ createSeaweedFSAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
162
+ // verify required parameter 'orgName' is not null or undefined
163
+ assertParamExists('createSeaweedFSAccount', 'orgName', orgName)
164
+ // verify required parameter 'clusterName' is not null or undefined
165
+ assertParamExists('createSeaweedFSAccount', 'clusterName', clusterName)
166
+ // verify required parameter 'body' is not null or undefined
167
+ assertParamExists('createSeaweedFSAccount', 'body', body)
168
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
169
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
170
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
173
+ let baseOptions;
174
+ if (configuration) {
175
+ baseOptions = configuration.baseOptions;
176
+ }
177
+
178
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
179
+ const localVarHeaderParameter = {} as any;
180
+ const localVarQueryParameter = {} as any;
181
+
182
+ // authentication BearerToken required
183
+ // http bearer authentication required
184
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
185
+
186
+ // authentication DigestAuth required
187
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
188
+
189
+
190
+
191
+ localVarHeaderParameter['Content-Type'] = 'application/json';
192
+
193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
196
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
197
+
198
+ return {
199
+ url: toPathString(localVarUrlObj),
200
+ options: localVarRequestOptions,
201
+ };
202
+ },
203
+ /**
204
+ *
205
+ * @summary deleteSeaweedFSAccessKey
206
+ * @param {string} orgName
207
+ * @param {string} clusterName
208
+ * @param {string} accountName
209
+ * @param {string} accessKey
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ deleteSeaweedFSAccessKey: async (orgName: string, clusterName: string, accountName: string, accessKey: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
214
+ // verify required parameter 'orgName' is not null or undefined
215
+ assertParamExists('deleteSeaweedFSAccessKey', 'orgName', orgName)
216
+ // verify required parameter 'clusterName' is not null or undefined
217
+ assertParamExists('deleteSeaweedFSAccessKey', 'clusterName', clusterName)
218
+ // verify required parameter 'accountName' is not null or undefined
219
+ assertParamExists('deleteSeaweedFSAccessKey', 'accountName', accountName)
220
+ // verify required parameter 'accessKey' is not null or undefined
221
+ assertParamExists('deleteSeaweedFSAccessKey', 'accessKey', accessKey)
222
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
223
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
224
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
225
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
226
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
228
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
229
+ let baseOptions;
230
+ if (configuration) {
231
+ baseOptions = configuration.baseOptions;
232
+ }
233
+
234
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
235
+ const localVarHeaderParameter = {} as any;
236
+ const localVarQueryParameter = {} as any;
237
+
238
+ // authentication BearerToken required
239
+ // http bearer authentication required
240
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
241
+
242
+ // authentication DigestAuth required
243
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
244
+
245
+
246
+
247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
250
+
251
+ return {
252
+ url: toPathString(localVarUrlObj),
253
+ options: localVarRequestOptions,
254
+ };
255
+ },
256
+ /**
257
+ * delete an account in cluster
258
+ * @summary deleteSeaweedFSAccount
259
+ * @param {string} orgName name of the organization
260
+ * @param {string} clusterName name of the cluster
261
+ * @param {string} accountName name of the account
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ deleteSeaweedFSAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
266
+ // verify required parameter 'orgName' is not null or undefined
267
+ assertParamExists('deleteSeaweedFSAccount', 'orgName', orgName)
268
+ // verify required parameter 'clusterName' is not null or undefined
269
+ assertParamExists('deleteSeaweedFSAccount', 'clusterName', clusterName)
270
+ // verify required parameter 'accountName' is not null or undefined
271
+ assertParamExists('deleteSeaweedFSAccount', 'accountName', accountName)
272
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
273
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
274
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
275
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
276
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
277
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
278
+ let baseOptions;
279
+ if (configuration) {
280
+ baseOptions = configuration.baseOptions;
281
+ }
282
+
283
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
284
+ const localVarHeaderParameter = {} as any;
285
+ const localVarQueryParameter = {} as any;
286
+
287
+ // authentication BearerToken required
288
+ // http bearer authentication required
289
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
290
+
291
+ // authentication DigestAuth required
292
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
293
+
294
+
295
+
296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
299
+
300
+ return {
301
+ url: toPathString(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ },
305
+ /**
306
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
307
+ * @summary deleteSeaweedFSPolicy
308
+ * @param {string} orgName
309
+ * @param {string} clusterName
310
+ * @param {string} policyName
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ deleteSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
315
+ // verify required parameter 'orgName' is not null or undefined
316
+ assertParamExists('deleteSeaweedFSPolicy', 'orgName', orgName)
317
+ // verify required parameter 'clusterName' is not null or undefined
318
+ assertParamExists('deleteSeaweedFSPolicy', 'clusterName', clusterName)
319
+ // verify required parameter 'policyName' is not null or undefined
320
+ assertParamExists('deleteSeaweedFSPolicy', 'policyName', policyName)
321
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
322
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
323
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
324
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
325
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
326
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
327
+ let baseOptions;
328
+ if (configuration) {
329
+ baseOptions = configuration.baseOptions;
330
+ }
331
+
332
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
333
+ const localVarHeaderParameter = {} as any;
334
+ const localVarQueryParameter = {} as any;
335
+
336
+ // authentication BearerToken required
337
+ // http bearer authentication required
338
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
339
+
340
+ // authentication DigestAuth required
341
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
342
+
343
+
344
+
345
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
346
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
347
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
348
+
349
+ return {
350
+ url: toPathString(localVarUrlObj),
351
+ options: localVarRequestOptions,
352
+ };
353
+ },
354
+ /**
355
+ * get root account password
356
+ * @summary getRootSeaweedFSAccountPassword
357
+ * @param {string} orgName name of the Org
358
+ * @param {string} clusterName name of the Cluster
359
+ * @param {string} accountName name of the account
360
+ * @param {string} [component] name of the component
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ getRootSeaweedFSAccountPassword: async (orgName: string, clusterName: string, accountName: string, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
365
+ // verify required parameter 'orgName' is not null or undefined
366
+ assertParamExists('getRootSeaweedFSAccountPassword', 'orgName', orgName)
367
+ // verify required parameter 'clusterName' is not null or undefined
368
+ assertParamExists('getRootSeaweedFSAccountPassword', 'clusterName', clusterName)
369
+ // verify required parameter 'accountName' is not null or undefined
370
+ assertParamExists('getRootSeaweedFSAccountPassword', 'accountName', accountName)
371
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
372
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
373
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
374
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
375
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
376
+ let baseOptions;
377
+ if (configuration) {
378
+ baseOptions = configuration.baseOptions;
379
+ }
380
+
381
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
382
+ const localVarHeaderParameter = {} as any;
383
+ const localVarQueryParameter = {} as any;
384
+
385
+ // authentication BearerToken required
386
+ // http bearer authentication required
387
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
388
+
389
+ // authentication DigestAuth required
390
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
391
+
392
+ if (accountName !== undefined) {
393
+ localVarQueryParameter['accountName'] = accountName;
394
+ }
395
+
396
+ if (component !== undefined) {
397
+ localVarQueryParameter['component'] = component;
398
+ }
399
+
400
+
401
+
402
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
403
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
404
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
405
+
406
+ return {
407
+ url: toPathString(localVarUrlObj),
408
+ options: localVarRequestOptions,
409
+ };
410
+ },
411
+ /**
412
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
413
+ * @summary listSeaweedFSAccounts
414
+ * @param {string} orgName name of the organization
415
+ * @param {string} clusterName name of the cluster
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ listSeaweedFSAccounts: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
420
+ // verify required parameter 'orgName' is not null or undefined
421
+ assertParamExists('listSeaweedFSAccounts', 'orgName', orgName)
422
+ // verify required parameter 'clusterName' is not null or undefined
423
+ assertParamExists('listSeaweedFSAccounts', 'clusterName', clusterName)
424
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
425
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
426
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
427
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
428
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
429
+ let baseOptions;
430
+ if (configuration) {
431
+ baseOptions = configuration.baseOptions;
432
+ }
433
+
434
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
435
+ const localVarHeaderParameter = {} as any;
436
+ const localVarQueryParameter = {} as any;
437
+
438
+ // authentication BearerToken required
439
+ // http bearer authentication required
440
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
441
+
442
+ // authentication DigestAuth required
443
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
444
+
445
+
446
+
447
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
448
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
449
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
450
+
451
+ return {
452
+ url: toPathString(localVarUrlObj),
453
+ options: localVarRequestOptions,
454
+ };
455
+ },
456
+ /**
457
+ *
458
+ * @summary listSeaweedFSPolicies
459
+ * @param {string} orgName
460
+ * @param {string} clusterName
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ listSeaweedFSPolicies: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
465
+ // verify required parameter 'orgName' is not null or undefined
466
+ assertParamExists('listSeaweedFSPolicies', 'orgName', orgName)
467
+ // verify required parameter 'clusterName' is not null or undefined
468
+ assertParamExists('listSeaweedFSPolicies', 'clusterName', clusterName)
469
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
470
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
471
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
472
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
473
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
474
+ let baseOptions;
475
+ if (configuration) {
476
+ baseOptions = configuration.baseOptions;
477
+ }
478
+
479
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
480
+ const localVarHeaderParameter = {} as any;
481
+ const localVarQueryParameter = {} as any;
482
+
483
+ // authentication BearerToken required
484
+ // http bearer authentication required
485
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
486
+
487
+ // authentication DigestAuth required
488
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
489
+
490
+
491
+
492
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
493
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
494
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
495
+
496
+ return {
497
+ url: toPathString(localVarUrlObj),
498
+ options: localVarRequestOptions,
499
+ };
500
+ },
501
+ /**
502
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
503
+ * @summary putSeaweedFSPolicy
504
+ * @param {string} orgName
505
+ * @param {string} clusterName
506
+ * @param {string} policyName
507
+ * @param {{ [key: string]: any; }} requestBody
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ putSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
512
+ // verify required parameter 'orgName' is not null or undefined
513
+ assertParamExists('putSeaweedFSPolicy', 'orgName', orgName)
514
+ // verify required parameter 'clusterName' is not null or undefined
515
+ assertParamExists('putSeaweedFSPolicy', 'clusterName', clusterName)
516
+ // verify required parameter 'policyName' is not null or undefined
517
+ assertParamExists('putSeaweedFSPolicy', 'policyName', policyName)
518
+ // verify required parameter 'requestBody' is not null or undefined
519
+ assertParamExists('putSeaweedFSPolicy', 'requestBody', requestBody)
520
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
521
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
522
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
523
+ .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
524
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
525
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
526
+ let baseOptions;
527
+ if (configuration) {
528
+ baseOptions = configuration.baseOptions;
529
+ }
530
+
531
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
532
+ const localVarHeaderParameter = {} as any;
533
+ const localVarQueryParameter = {} as any;
534
+
535
+ // authentication BearerToken required
536
+ // http bearer authentication required
537
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
538
+
539
+ // authentication DigestAuth required
540
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
541
+
542
+
543
+
544
+ localVarHeaderParameter['Content-Type'] = 'application/json';
545
+
546
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
547
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
548
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
549
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
550
+
551
+ return {
552
+ url: toPathString(localVarUrlObj),
553
+ options: localVarRequestOptions,
554
+ };
555
+ },
556
+ /**
557
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
558
+ * @summary updateSeaweedFSAccount
559
+ * @param {string} orgName name of the organization
560
+ * @param {string} clusterName name of the cluster
561
+ * @param {string} accountName name of the account
562
+ * @param {Account} body
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ updateSeaweedFSAccount: async (orgName: string, clusterName: string, accountName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
567
+ // verify required parameter 'orgName' is not null or undefined
568
+ assertParamExists('updateSeaweedFSAccount', 'orgName', orgName)
569
+ // verify required parameter 'clusterName' is not null or undefined
570
+ assertParamExists('updateSeaweedFSAccount', 'clusterName', clusterName)
571
+ // verify required parameter 'accountName' is not null or undefined
572
+ assertParamExists('updateSeaweedFSAccount', 'accountName', accountName)
573
+ // verify required parameter 'body' is not null or undefined
574
+ assertParamExists('updateSeaweedFSAccount', 'body', body)
575
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
576
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
577
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
578
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
581
+ let baseOptions;
582
+ if (configuration) {
583
+ baseOptions = configuration.baseOptions;
584
+ }
585
+
586
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
587
+ const localVarHeaderParameter = {} as any;
588
+ const localVarQueryParameter = {} as any;
589
+
590
+ // authentication BearerToken required
591
+ // http bearer authentication required
592
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
593
+
594
+ // authentication DigestAuth required
595
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
596
+
597
+
598
+
599
+ localVarHeaderParameter['Content-Type'] = 'application/json';
600
+
601
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
602
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
603
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
604
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
605
+
606
+ return {
607
+ url: toPathString(localVarUrlObj),
608
+ options: localVarRequestOptions,
609
+ };
610
+ },
611
+ /**
612
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
613
+ * @summary updateSeaweedFSAccountPrivileges
614
+ * @param {string} orgName name of the Org
615
+ * @param {string} clusterName name of the Cluster
616
+ * @param {string} accountName name of the account
617
+ * @param {Array<PrivilegeListItem>} body
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ updateSeaweedFSAccountPrivileges: async (orgName: string, clusterName: string, accountName: string, body: Array<PrivilegeListItem>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
622
+ // verify required parameter 'orgName' is not null or undefined
623
+ assertParamExists('updateSeaweedFSAccountPrivileges', 'orgName', orgName)
624
+ // verify required parameter 'clusterName' is not null or undefined
625
+ assertParamExists('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName)
626
+ // verify required parameter 'accountName' is not null or undefined
627
+ assertParamExists('updateSeaweedFSAccountPrivileges', 'accountName', accountName)
628
+ // verify required parameter 'body' is not null or undefined
629
+ assertParamExists('updateSeaweedFSAccountPrivileges', 'body', body)
630
+ const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
631
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
632
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
633
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
634
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
635
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
636
+ let baseOptions;
637
+ if (configuration) {
638
+ baseOptions = configuration.baseOptions;
639
+ }
640
+
641
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
642
+ const localVarHeaderParameter = {} as any;
643
+ const localVarQueryParameter = {} as any;
644
+
645
+ // authentication BearerToken required
646
+ // http bearer authentication required
647
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
648
+
649
+ // authentication DigestAuth required
650
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
651
+
652
+
653
+
654
+ localVarHeaderParameter['Content-Type'] = 'application/json';
655
+
656
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
657
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
658
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
659
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
660
+
661
+ return {
662
+ url: toPathString(localVarUrlObj),
663
+ options: localVarRequestOptions,
664
+ };
665
+ },
666
+ }
667
+ };
668
+
669
+ /**
670
+ * SeaweedfsApi - functional programming interface
671
+ * @export
672
+ */
673
+ export const SeaweedfsApiFp = function(configuration?: Configuration) {
674
+ const localVarAxiosParamCreator = SeaweedfsApiAxiosParamCreator(configuration)
675
+ return {
676
+ /**
677
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
678
+ * @summary bindSeaweedFSPolicies
679
+ * @param {string} orgName
680
+ * @param {string} clusterName
681
+ * @param {string} accountName
682
+ * @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ async bindSeaweedFSPolicies(orgName: string, clusterName: string, accountName: string, bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
689
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.bindSeaweedFSPolicies']?.[localVarOperationServerIndex]?.url;
690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
691
+ },
692
+ /**
693
+ * 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.
694
+ * @summary createSeaweedFSAccessKey
695
+ * @param {string} orgName
696
+ * @param {string} clusterName
697
+ * @param {string} accountName
698
+ * @param {Account} account
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ */
702
+ async createSeaweedFSAccessKey(orgName: string, clusterName: string, accountName: string, account: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
703
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
704
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
705
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.createSeaweedFSAccessKey']?.[localVarOperationServerIndex]?.url;
706
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
707
+ },
708
+ /**
709
+ * 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.
710
+ * @summary createSeaweedFSAccount
711
+ * @param {string} orgName name of the organization
712
+ * @param {string} clusterName name of the cluster
713
+ * @param {Account} body
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ async createSeaweedFSAccount(orgName: string, clusterName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
719
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
720
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.createSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
722
+ },
723
+ /**
724
+ *
725
+ * @summary deleteSeaweedFSAccessKey
726
+ * @param {string} orgName
727
+ * @param {string} clusterName
728
+ * @param {string} accountName
729
+ * @param {string} accessKey
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ async deleteSeaweedFSAccessKey(orgName: string, clusterName: string, accountName: string, accessKey: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
734
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
735
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
736
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.deleteSeaweedFSAccessKey']?.[localVarOperationServerIndex]?.url;
737
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
738
+ },
739
+ /**
740
+ * delete an account in cluster
741
+ * @summary deleteSeaweedFSAccount
742
+ * @param {string} orgName name of the organization
743
+ * @param {string} clusterName name of the cluster
744
+ * @param {string} accountName name of the account
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ async deleteSeaweedFSAccount(orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
750
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
751
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.deleteSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
752
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
753
+ },
754
+ /**
755
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
756
+ * @summary deleteSeaweedFSPolicy
757
+ * @param {string} orgName
758
+ * @param {string} clusterName
759
+ * @param {string} policyName
760
+ * @param {*} [options] Override http request option.
761
+ * @throws {RequiredError}
762
+ */
763
+ async deleteSeaweedFSPolicy(orgName: string, clusterName: string, policyName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
764
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
765
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
766
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.deleteSeaweedFSPolicy']?.[localVarOperationServerIndex]?.url;
767
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
768
+ },
769
+ /**
770
+ * get root account password
771
+ * @summary getRootSeaweedFSAccountPassword
772
+ * @param {string} orgName name of the Org
773
+ * @param {string} clusterName name of the Cluster
774
+ * @param {string} accountName name of the account
775
+ * @param {string} [component] name of the component
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ async getRootSeaweedFSAccountPassword(orgName: string, clusterName: string, accountName: string, component?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
780
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
781
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
782
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.getRootSeaweedFSAccountPassword']?.[localVarOperationServerIndex]?.url;
783
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
784
+ },
785
+ /**
786
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
787
+ * @summary listSeaweedFSAccounts
788
+ * @param {string} orgName name of the organization
789
+ * @param {string} clusterName name of the cluster
790
+ * @param {*} [options] Override http request option.
791
+ * @throws {RequiredError}
792
+ */
793
+ async listSeaweedFSAccounts(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountListItem>>> {
794
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
795
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
796
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.listSeaweedFSAccounts']?.[localVarOperationServerIndex]?.url;
797
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
798
+ },
799
+ /**
800
+ *
801
+ * @summary listSeaweedFSPolicies
802
+ * @param {string} orgName
803
+ * @param {string} clusterName
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ async listSeaweedFSPolicies(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSeaweedFSPolicies200Response>> {
808
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
809
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
810
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.listSeaweedFSPolicies']?.[localVarOperationServerIndex]?.url;
811
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
812
+ },
813
+ /**
814
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
815
+ * @summary putSeaweedFSPolicy
816
+ * @param {string} orgName
817
+ * @param {string} clusterName
818
+ * @param {string} policyName
819
+ * @param {{ [key: string]: any; }} requestBody
820
+ * @param {*} [options] Override http request option.
821
+ * @throws {RequiredError}
822
+ */
823
+ async putSeaweedFSPolicy(orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
824
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
825
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
826
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.putSeaweedFSPolicy']?.[localVarOperationServerIndex]?.url;
827
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
828
+ },
829
+ /**
830
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
831
+ * @summary updateSeaweedFSAccount
832
+ * @param {string} orgName name of the organization
833
+ * @param {string} clusterName name of the cluster
834
+ * @param {string} accountName name of the account
835
+ * @param {Account} body
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ async updateSeaweedFSAccount(orgName: string, clusterName: string, accountName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
840
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
841
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
842
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.updateSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
843
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
844
+ },
845
+ /**
846
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
847
+ * @summary updateSeaweedFSAccountPrivileges
848
+ * @param {string} orgName name of the Org
849
+ * @param {string} clusterName name of the Cluster
850
+ * @param {string} accountName name of the account
851
+ * @param {Array<PrivilegeListItem>} body
852
+ * @param {*} [options] Override http request option.
853
+ * @throws {RequiredError}
854
+ */
855
+ async updateSeaweedFSAccountPrivileges(orgName: string, clusterName: string, accountName: string, body: Array<PrivilegeListItem>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
856
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
857
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
858
+ const localVarOperationServerBasePath = operationServerMap['SeaweedfsApi.updateSeaweedFSAccountPrivileges']?.[localVarOperationServerIndex]?.url;
859
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
860
+ },
861
+ }
862
+ };
863
+
864
+ /**
865
+ * SeaweedfsApi - factory interface
866
+ * @export
867
+ */
868
+ export const SeaweedfsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
869
+ const localVarFp = SeaweedfsApiFp(configuration)
870
+ return {
871
+ /**
872
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
873
+ * @summary bindSeaweedFSPolicies
874
+ * @param {SeaweedfsApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ */
878
+ bindSeaweedFSPolicies(requestParameters: SeaweedfsApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
879
+ return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
880
+ },
881
+ /**
882
+ * 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.
883
+ * @summary createSeaweedFSAccessKey
884
+ * @param {SeaweedfsApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ */
888
+ createSeaweedFSAccessKey(requestParameters: SeaweedfsApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
889
+ return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
890
+ },
891
+ /**
892
+ * 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.
893
+ * @summary createSeaweedFSAccount
894
+ * @param {SeaweedfsApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
895
+ * @param {*} [options] Override http request option.
896
+ * @throws {RequiredError}
897
+ */
898
+ createSeaweedFSAccount(requestParameters: SeaweedfsApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
899
+ return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
900
+ },
901
+ /**
902
+ *
903
+ * @summary deleteSeaweedFSAccessKey
904
+ * @param {SeaweedfsApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
905
+ * @param {*} [options] Override http request option.
906
+ * @throws {RequiredError}
907
+ */
908
+ deleteSeaweedFSAccessKey(requestParameters: SeaweedfsApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
909
+ return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
910
+ },
911
+ /**
912
+ * delete an account in cluster
913
+ * @summary deleteSeaweedFSAccount
914
+ * @param {SeaweedfsApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
915
+ * @param {*} [options] Override http request option.
916
+ * @throws {RequiredError}
917
+ */
918
+ deleteSeaweedFSAccount(requestParameters: SeaweedfsApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
919
+ return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
920
+ },
921
+ /**
922
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
923
+ * @summary deleteSeaweedFSPolicy
924
+ * @param {SeaweedfsApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ */
928
+ deleteSeaweedFSPolicy(requestParameters: SeaweedfsApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
929
+ return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
930
+ },
931
+ /**
932
+ * get root account password
933
+ * @summary getRootSeaweedFSAccountPassword
934
+ * @param {SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ getRootSeaweedFSAccountPassword(requestParameters: SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
939
+ return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
940
+ },
941
+ /**
942
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
943
+ * @summary listSeaweedFSAccounts
944
+ * @param {SeaweedfsApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ listSeaweedFSAccounts(requestParameters: SeaweedfsApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountListItem>> {
949
+ return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
950
+ },
951
+ /**
952
+ *
953
+ * @summary listSeaweedFSPolicies
954
+ * @param {SeaweedfsApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
955
+ * @param {*} [options] Override http request option.
956
+ * @throws {RequiredError}
957
+ */
958
+ listSeaweedFSPolicies(requestParameters: SeaweedfsApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSeaweedFSPolicies200Response> {
959
+ return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
960
+ },
961
+ /**
962
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
963
+ * @summary putSeaweedFSPolicy
964
+ * @param {SeaweedfsApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ putSeaweedFSPolicy(requestParameters: SeaweedfsApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
969
+ return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
970
+ },
971
+ /**
972
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
973
+ * @summary updateSeaweedFSAccount
974
+ * @param {SeaweedfsApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
975
+ * @param {*} [options] Override http request option.
976
+ * @throws {RequiredError}
977
+ */
978
+ updateSeaweedFSAccount(requestParameters: SeaweedfsApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
979
+ return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
980
+ },
981
+ /**
982
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
983
+ * @summary updateSeaweedFSAccountPrivileges
984
+ * @param {SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
985
+ * @param {*} [options] Override http request option.
986
+ * @throws {RequiredError}
987
+ */
988
+ updateSeaweedFSAccountPrivileges(requestParameters: SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
989
+ return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
990
+ },
991
+ };
992
+ };
993
+
994
+ /**
995
+ * SeaweedfsApi - interface
996
+ * @export
997
+ * @interface SeaweedfsApi
998
+ */
999
+ export interface SeaweedfsApiInterface {
1000
+ /**
1001
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
1002
+ * @summary bindSeaweedFSPolicies
1003
+ * @param {SeaweedfsApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
1004
+ * @param {*} [options] Override http request option.
1005
+ * @throws {RequiredError}
1006
+ * @memberof SeaweedfsApiInterface
1007
+ */
1008
+ bindSeaweedFSPolicies(requestParameters: SeaweedfsApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1009
+
1010
+ /**
1011
+ * 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.
1012
+ * @summary createSeaweedFSAccessKey
1013
+ * @param {SeaweedfsApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
1014
+ * @param {*} [options] Override http request option.
1015
+ * @throws {RequiredError}
1016
+ * @memberof SeaweedfsApiInterface
1017
+ */
1018
+ createSeaweedFSAccessKey(requestParameters: SeaweedfsApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
1019
+
1020
+ /**
1021
+ * 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.
1022
+ * @summary createSeaweedFSAccount
1023
+ * @param {SeaweedfsApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
1024
+ * @param {*} [options] Override http request option.
1025
+ * @throws {RequiredError}
1026
+ * @memberof SeaweedfsApiInterface
1027
+ */
1028
+ createSeaweedFSAccount(requestParameters: SeaweedfsApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
1029
+
1030
+ /**
1031
+ *
1032
+ * @summary deleteSeaweedFSAccessKey
1033
+ * @param {SeaweedfsApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
1034
+ * @param {*} [options] Override http request option.
1035
+ * @throws {RequiredError}
1036
+ * @memberof SeaweedfsApiInterface
1037
+ */
1038
+ deleteSeaweedFSAccessKey(requestParameters: SeaweedfsApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1039
+
1040
+ /**
1041
+ * delete an account in cluster
1042
+ * @summary deleteSeaweedFSAccount
1043
+ * @param {SeaweedfsApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
1044
+ * @param {*} [options] Override http request option.
1045
+ * @throws {RequiredError}
1046
+ * @memberof SeaweedfsApiInterface
1047
+ */
1048
+ deleteSeaweedFSAccount(requestParameters: SeaweedfsApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1049
+
1050
+ /**
1051
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
1052
+ * @summary deleteSeaweedFSPolicy
1053
+ * @param {SeaweedfsApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
1054
+ * @param {*} [options] Override http request option.
1055
+ * @throws {RequiredError}
1056
+ * @memberof SeaweedfsApiInterface
1057
+ */
1058
+ deleteSeaweedFSPolicy(requestParameters: SeaweedfsApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1059
+
1060
+ /**
1061
+ * get root account password
1062
+ * @summary getRootSeaweedFSAccountPassword
1063
+ * @param {SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
1064
+ * @param {*} [options] Override http request option.
1065
+ * @throws {RequiredError}
1066
+ * @memberof SeaweedfsApiInterface
1067
+ */
1068
+ getRootSeaweedFSAccountPassword(requestParameters: SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
1069
+
1070
+ /**
1071
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
1072
+ * @summary listSeaweedFSAccounts
1073
+ * @param {SeaweedfsApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
1074
+ * @param {*} [options] Override http request option.
1075
+ * @throws {RequiredError}
1076
+ * @memberof SeaweedfsApiInterface
1077
+ */
1078
+ listSeaweedFSAccounts(requestParameters: SeaweedfsApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountListItem>>;
1079
+
1080
+ /**
1081
+ *
1082
+ * @summary listSeaweedFSPolicies
1083
+ * @param {SeaweedfsApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ * @memberof SeaweedfsApiInterface
1087
+ */
1088
+ listSeaweedFSPolicies(requestParameters: SeaweedfsApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSeaweedFSPolicies200Response>;
1089
+
1090
+ /**
1091
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
1092
+ * @summary putSeaweedFSPolicy
1093
+ * @param {SeaweedfsApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ * @memberof SeaweedfsApiInterface
1097
+ */
1098
+ putSeaweedFSPolicy(requestParameters: SeaweedfsApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1099
+
1100
+ /**
1101
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
1102
+ * @summary updateSeaweedFSAccount
1103
+ * @param {SeaweedfsApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ * @memberof SeaweedfsApiInterface
1107
+ */
1108
+ updateSeaweedFSAccount(requestParameters: SeaweedfsApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
1109
+
1110
+ /**
1111
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
1112
+ * @summary updateSeaweedFSAccountPrivileges
1113
+ * @param {SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
1114
+ * @param {*} [options] Override http request option.
1115
+ * @throws {RequiredError}
1116
+ * @memberof SeaweedfsApiInterface
1117
+ */
1118
+ updateSeaweedFSAccountPrivileges(requestParameters: SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1119
+
1120
+ }
1121
+
1122
+ /**
1123
+ * Request parameters for bindSeaweedFSPolicies operation in SeaweedfsApi.
1124
+ * @export
1125
+ * @interface SeaweedfsApiBindSeaweedFSPoliciesRequest
1126
+ */
1127
+ export interface SeaweedfsApiBindSeaweedFSPoliciesRequest {
1128
+ /**
1129
+ *
1130
+ * @type {string}
1131
+ * @memberof SeaweedfsApiBindSeaweedFSPolicies
1132
+ */
1133
+ readonly orgName: string
1134
+
1135
+ /**
1136
+ *
1137
+ * @type {string}
1138
+ * @memberof SeaweedfsApiBindSeaweedFSPolicies
1139
+ */
1140
+ readonly clusterName: string
1141
+
1142
+ /**
1143
+ *
1144
+ * @type {string}
1145
+ * @memberof SeaweedfsApiBindSeaweedFSPolicies
1146
+ */
1147
+ readonly accountName: string
1148
+
1149
+ /**
1150
+ *
1151
+ * @type {BindSeaweedFSPoliciesRequest}
1152
+ * @memberof SeaweedfsApiBindSeaweedFSPolicies
1153
+ */
1154
+ readonly bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest
1155
+ }
1156
+
1157
+ /**
1158
+ * Request parameters for createSeaweedFSAccessKey operation in SeaweedfsApi.
1159
+ * @export
1160
+ * @interface SeaweedfsApiCreateSeaweedFSAccessKeyRequest
1161
+ */
1162
+ export interface SeaweedfsApiCreateSeaweedFSAccessKeyRequest {
1163
+ /**
1164
+ *
1165
+ * @type {string}
1166
+ * @memberof SeaweedfsApiCreateSeaweedFSAccessKey
1167
+ */
1168
+ readonly orgName: string
1169
+
1170
+ /**
1171
+ *
1172
+ * @type {string}
1173
+ * @memberof SeaweedfsApiCreateSeaweedFSAccessKey
1174
+ */
1175
+ readonly clusterName: string
1176
+
1177
+ /**
1178
+ *
1179
+ * @type {string}
1180
+ * @memberof SeaweedfsApiCreateSeaweedFSAccessKey
1181
+ */
1182
+ readonly accountName: string
1183
+
1184
+ /**
1185
+ *
1186
+ * @type {Account}
1187
+ * @memberof SeaweedfsApiCreateSeaweedFSAccessKey
1188
+ */
1189
+ readonly account: Account
1190
+ }
1191
+
1192
+ /**
1193
+ * Request parameters for createSeaweedFSAccount operation in SeaweedfsApi.
1194
+ * @export
1195
+ * @interface SeaweedfsApiCreateSeaweedFSAccountRequest
1196
+ */
1197
+ export interface SeaweedfsApiCreateSeaweedFSAccountRequest {
1198
+ /**
1199
+ * name of the organization
1200
+ * @type {string}
1201
+ * @memberof SeaweedfsApiCreateSeaweedFSAccount
1202
+ */
1203
+ readonly orgName: string
1204
+
1205
+ /**
1206
+ * name of the cluster
1207
+ * @type {string}
1208
+ * @memberof SeaweedfsApiCreateSeaweedFSAccount
1209
+ */
1210
+ readonly clusterName: string
1211
+
1212
+ /**
1213
+ *
1214
+ * @type {Account}
1215
+ * @memberof SeaweedfsApiCreateSeaweedFSAccount
1216
+ */
1217
+ readonly body: Account
1218
+ }
1219
+
1220
+ /**
1221
+ * Request parameters for deleteSeaweedFSAccessKey operation in SeaweedfsApi.
1222
+ * @export
1223
+ * @interface SeaweedfsApiDeleteSeaweedFSAccessKeyRequest
1224
+ */
1225
+ export interface SeaweedfsApiDeleteSeaweedFSAccessKeyRequest {
1226
+ /**
1227
+ *
1228
+ * @type {string}
1229
+ * @memberof SeaweedfsApiDeleteSeaweedFSAccessKey
1230
+ */
1231
+ readonly orgName: string
1232
+
1233
+ /**
1234
+ *
1235
+ * @type {string}
1236
+ * @memberof SeaweedfsApiDeleteSeaweedFSAccessKey
1237
+ */
1238
+ readonly clusterName: string
1239
+
1240
+ /**
1241
+ *
1242
+ * @type {string}
1243
+ * @memberof SeaweedfsApiDeleteSeaweedFSAccessKey
1244
+ */
1245
+ readonly accountName: string
1246
+
1247
+ /**
1248
+ *
1249
+ * @type {string}
1250
+ * @memberof SeaweedfsApiDeleteSeaweedFSAccessKey
1251
+ */
1252
+ readonly accessKey: string
1253
+ }
1254
+
1255
+ /**
1256
+ * Request parameters for deleteSeaweedFSAccount operation in SeaweedfsApi.
1257
+ * @export
1258
+ * @interface SeaweedfsApiDeleteSeaweedFSAccountRequest
1259
+ */
1260
+ export interface SeaweedfsApiDeleteSeaweedFSAccountRequest {
1261
+ /**
1262
+ * name of the organization
1263
+ * @type {string}
1264
+ * @memberof SeaweedfsApiDeleteSeaweedFSAccount
1265
+ */
1266
+ readonly orgName: string
1267
+
1268
+ /**
1269
+ * name of the cluster
1270
+ * @type {string}
1271
+ * @memberof SeaweedfsApiDeleteSeaweedFSAccount
1272
+ */
1273
+ readonly clusterName: string
1274
+
1275
+ /**
1276
+ * name of the account
1277
+ * @type {string}
1278
+ * @memberof SeaweedfsApiDeleteSeaweedFSAccount
1279
+ */
1280
+ readonly accountName: string
1281
+ }
1282
+
1283
+ /**
1284
+ * Request parameters for deleteSeaweedFSPolicy operation in SeaweedfsApi.
1285
+ * @export
1286
+ * @interface SeaweedfsApiDeleteSeaweedFSPolicyRequest
1287
+ */
1288
+ export interface SeaweedfsApiDeleteSeaweedFSPolicyRequest {
1289
+ /**
1290
+ *
1291
+ * @type {string}
1292
+ * @memberof SeaweedfsApiDeleteSeaweedFSPolicy
1293
+ */
1294
+ readonly orgName: string
1295
+
1296
+ /**
1297
+ *
1298
+ * @type {string}
1299
+ * @memberof SeaweedfsApiDeleteSeaweedFSPolicy
1300
+ */
1301
+ readonly clusterName: string
1302
+
1303
+ /**
1304
+ *
1305
+ * @type {string}
1306
+ * @memberof SeaweedfsApiDeleteSeaweedFSPolicy
1307
+ */
1308
+ readonly policyName: string
1309
+ }
1310
+
1311
+ /**
1312
+ * Request parameters for getRootSeaweedFSAccountPassword operation in SeaweedfsApi.
1313
+ * @export
1314
+ * @interface SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest
1315
+ */
1316
+ export interface SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest {
1317
+ /**
1318
+ * name of the Org
1319
+ * @type {string}
1320
+ * @memberof SeaweedfsApiGetRootSeaweedFSAccountPassword
1321
+ */
1322
+ readonly orgName: string
1323
+
1324
+ /**
1325
+ * name of the Cluster
1326
+ * @type {string}
1327
+ * @memberof SeaweedfsApiGetRootSeaweedFSAccountPassword
1328
+ */
1329
+ readonly clusterName: string
1330
+
1331
+ /**
1332
+ * name of the account
1333
+ * @type {string}
1334
+ * @memberof SeaweedfsApiGetRootSeaweedFSAccountPassword
1335
+ */
1336
+ readonly accountName: string
1337
+
1338
+ /**
1339
+ * name of the component
1340
+ * @type {string}
1341
+ * @memberof SeaweedfsApiGetRootSeaweedFSAccountPassword
1342
+ */
1343
+ readonly component?: string
1344
+ }
1345
+
1346
+ /**
1347
+ * Request parameters for listSeaweedFSAccounts operation in SeaweedfsApi.
1348
+ * @export
1349
+ * @interface SeaweedfsApiListSeaweedFSAccountsRequest
1350
+ */
1351
+ export interface SeaweedfsApiListSeaweedFSAccountsRequest {
1352
+ /**
1353
+ * name of the organization
1354
+ * @type {string}
1355
+ * @memberof SeaweedfsApiListSeaweedFSAccounts
1356
+ */
1357
+ readonly orgName: string
1358
+
1359
+ /**
1360
+ * name of the cluster
1361
+ * @type {string}
1362
+ * @memberof SeaweedfsApiListSeaweedFSAccounts
1363
+ */
1364
+ readonly clusterName: string
1365
+ }
1366
+
1367
+ /**
1368
+ * Request parameters for listSeaweedFSPolicies operation in SeaweedfsApi.
1369
+ * @export
1370
+ * @interface SeaweedfsApiListSeaweedFSPoliciesRequest
1371
+ */
1372
+ export interface SeaweedfsApiListSeaweedFSPoliciesRequest {
1373
+ /**
1374
+ *
1375
+ * @type {string}
1376
+ * @memberof SeaweedfsApiListSeaweedFSPolicies
1377
+ */
1378
+ readonly orgName: string
1379
+
1380
+ /**
1381
+ *
1382
+ * @type {string}
1383
+ * @memberof SeaweedfsApiListSeaweedFSPolicies
1384
+ */
1385
+ readonly clusterName: string
1386
+ }
1387
+
1388
+ /**
1389
+ * Request parameters for putSeaweedFSPolicy operation in SeaweedfsApi.
1390
+ * @export
1391
+ * @interface SeaweedfsApiPutSeaweedFSPolicyRequest
1392
+ */
1393
+ export interface SeaweedfsApiPutSeaweedFSPolicyRequest {
1394
+ /**
1395
+ *
1396
+ * @type {string}
1397
+ * @memberof SeaweedfsApiPutSeaweedFSPolicy
1398
+ */
1399
+ readonly orgName: string
1400
+
1401
+ /**
1402
+ *
1403
+ * @type {string}
1404
+ * @memberof SeaweedfsApiPutSeaweedFSPolicy
1405
+ */
1406
+ readonly clusterName: string
1407
+
1408
+ /**
1409
+ *
1410
+ * @type {string}
1411
+ * @memberof SeaweedfsApiPutSeaweedFSPolicy
1412
+ */
1413
+ readonly policyName: string
1414
+
1415
+ /**
1416
+ *
1417
+ * @type {{ [key: string]: any; }}
1418
+ * @memberof SeaweedfsApiPutSeaweedFSPolicy
1419
+ */
1420
+ readonly requestBody: { [key: string]: any; }
1421
+ }
1422
+
1423
+ /**
1424
+ * Request parameters for updateSeaweedFSAccount operation in SeaweedfsApi.
1425
+ * @export
1426
+ * @interface SeaweedfsApiUpdateSeaweedFSAccountRequest
1427
+ */
1428
+ export interface SeaweedfsApiUpdateSeaweedFSAccountRequest {
1429
+ /**
1430
+ * name of the organization
1431
+ * @type {string}
1432
+ * @memberof SeaweedfsApiUpdateSeaweedFSAccount
1433
+ */
1434
+ readonly orgName: string
1435
+
1436
+ /**
1437
+ * name of the cluster
1438
+ * @type {string}
1439
+ * @memberof SeaweedfsApiUpdateSeaweedFSAccount
1440
+ */
1441
+ readonly clusterName: string
1442
+
1443
+ /**
1444
+ * name of the account
1445
+ * @type {string}
1446
+ * @memberof SeaweedfsApiUpdateSeaweedFSAccount
1447
+ */
1448
+ readonly accountName: string
1449
+
1450
+ /**
1451
+ *
1452
+ * @type {Account}
1453
+ * @memberof SeaweedfsApiUpdateSeaweedFSAccount
1454
+ */
1455
+ readonly body: Account
1456
+ }
1457
+
1458
+ /**
1459
+ * Request parameters for updateSeaweedFSAccountPrivileges operation in SeaweedfsApi.
1460
+ * @export
1461
+ * @interface SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest
1462
+ */
1463
+ export interface SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest {
1464
+ /**
1465
+ * name of the Org
1466
+ * @type {string}
1467
+ * @memberof SeaweedfsApiUpdateSeaweedFSAccountPrivileges
1468
+ */
1469
+ readonly orgName: string
1470
+
1471
+ /**
1472
+ * name of the Cluster
1473
+ * @type {string}
1474
+ * @memberof SeaweedfsApiUpdateSeaweedFSAccountPrivileges
1475
+ */
1476
+ readonly clusterName: string
1477
+
1478
+ /**
1479
+ * name of the account
1480
+ * @type {string}
1481
+ * @memberof SeaweedfsApiUpdateSeaweedFSAccountPrivileges
1482
+ */
1483
+ readonly accountName: string
1484
+
1485
+ /**
1486
+ *
1487
+ * @type {Array<PrivilegeListItem>}
1488
+ * @memberof SeaweedfsApiUpdateSeaweedFSAccountPrivileges
1489
+ */
1490
+ readonly body: Array<PrivilegeListItem>
1491
+ }
1492
+
1493
+ /**
1494
+ * SeaweedfsApi - object-oriented interface
1495
+ * @export
1496
+ * @class SeaweedfsApi
1497
+ * @extends {BaseAPI}
1498
+ */
1499
+ export class SeaweedfsApi extends BaseAPI implements SeaweedfsApiInterface {
1500
+ /**
1501
+ * Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
1502
+ * @summary bindSeaweedFSPolicies
1503
+ * @param {SeaweedfsApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
1504
+ * @param {*} [options] Override http request option.
1505
+ * @throws {RequiredError}
1506
+ * @memberof SeaweedfsApi
1507
+ */
1508
+ public bindSeaweedFSPolicies(requestParameters: SeaweedfsApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig) {
1509
+ return SeaweedfsApiFp(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
1510
+ }
1511
+
1512
+ /**
1513
+ * Creates a credential on the identity. Account.name must match accountName, role must be BASICUSER. Optional extra.accessKey and password select the access key and secret key; omitted or empty values are generated. The returned password is disclosed only in this response.
1514
+ * @summary createSeaweedFSAccessKey
1515
+ * @param {SeaweedfsApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
1516
+ * @param {*} [options] Override http request option.
1517
+ * @throws {RequiredError}
1518
+ * @memberof SeaweedfsApi
1519
+ */
1520
+ public createSeaweedFSAccessKey(requestParameters: SeaweedfsApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig) {
1521
+ return SeaweedfsApiFp(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
1522
+ }
1523
+
1524
+ /**
1525
+ * 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.
1526
+ * @summary createSeaweedFSAccount
1527
+ * @param {SeaweedfsApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
1528
+ * @param {*} [options] Override http request option.
1529
+ * @throws {RequiredError}
1530
+ * @memberof SeaweedfsApi
1531
+ */
1532
+ public createSeaweedFSAccount(requestParameters: SeaweedfsApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
1533
+ return SeaweedfsApiFp(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1534
+ }
1535
+
1536
+ /**
1537
+ *
1538
+ * @summary deleteSeaweedFSAccessKey
1539
+ * @param {SeaweedfsApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ * @memberof SeaweedfsApi
1543
+ */
1544
+ public deleteSeaweedFSAccessKey(requestParameters: SeaweedfsApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig) {
1545
+ return SeaweedfsApiFp(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
1546
+ }
1547
+
1548
+ /**
1549
+ * delete an account in cluster
1550
+ * @summary deleteSeaweedFSAccount
1551
+ * @param {SeaweedfsApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
1552
+ * @param {*} [options] Override http request option.
1553
+ * @throws {RequiredError}
1554
+ * @memberof SeaweedfsApi
1555
+ */
1556
+ public deleteSeaweedFSAccount(requestParameters: SeaweedfsApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
1557
+ return SeaweedfsApiFp(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
1558
+ }
1559
+
1560
+ /**
1561
+ * Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
1562
+ * @summary deleteSeaweedFSPolicy
1563
+ * @param {SeaweedfsApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
1564
+ * @param {*} [options] Override http request option.
1565
+ * @throws {RequiredError}
1566
+ * @memberof SeaweedfsApi
1567
+ */
1568
+ public deleteSeaweedFSPolicy(requestParameters: SeaweedfsApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig) {
1569
+ return SeaweedfsApiFp(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
1570
+ }
1571
+
1572
+ /**
1573
+ * get root account password
1574
+ * @summary getRootSeaweedFSAccountPassword
1575
+ * @param {SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
1576
+ * @param {*} [options] Override http request option.
1577
+ * @throws {RequiredError}
1578
+ * @memberof SeaweedfsApi
1579
+ */
1580
+ public getRootSeaweedFSAccountPassword(requestParameters: SeaweedfsApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig) {
1581
+ return SeaweedfsApiFp(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
1582
+ }
1583
+
1584
+ /**
1585
+ * Lists SeaweedFS identities and access-key metadata without secret keys.
1586
+ * @summary listSeaweedFSAccounts
1587
+ * @param {SeaweedfsApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ * @memberof SeaweedfsApi
1591
+ */
1592
+ public listSeaweedFSAccounts(requestParameters: SeaweedfsApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig) {
1593
+ return SeaweedfsApiFp(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1594
+ }
1595
+
1596
+ /**
1597
+ *
1598
+ * @summary listSeaweedFSPolicies
1599
+ * @param {SeaweedfsApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
1600
+ * @param {*} [options] Override http request option.
1601
+ * @throws {RequiredError}
1602
+ * @memberof SeaweedfsApi
1603
+ */
1604
+ public listSeaweedFSPolicies(requestParameters: SeaweedfsApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig) {
1605
+ return SeaweedfsApiFp(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1606
+ }
1607
+
1608
+ /**
1609
+ * Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
1610
+ * @summary putSeaweedFSPolicy
1611
+ * @param {SeaweedfsApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
1612
+ * @param {*} [options] Override http request option.
1613
+ * @throws {RequiredError}
1614
+ * @memberof SeaweedfsApi
1615
+ */
1616
+ public putSeaweedFSPolicy(requestParameters: SeaweedfsApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig) {
1617
+ return SeaweedfsApiFp(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
1618
+ }
1619
+
1620
+ /**
1621
+ * Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
1622
+ * @summary updateSeaweedFSAccount
1623
+ * @param {SeaweedfsApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
1624
+ * @param {*} [options] Override http request option.
1625
+ * @throws {RequiredError}
1626
+ * @memberof SeaweedfsApi
1627
+ */
1628
+ public updateSeaweedFSAccount(requestParameters: SeaweedfsApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
1629
+ return SeaweedfsApiFp(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1630
+ }
1631
+
1632
+ /**
1633
+ * Unsupported for SeaweedFS. Use the named policy binding API instead.
1634
+ * @summary updateSeaweedFSAccountPrivileges
1635
+ * @param {SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
1636
+ * @param {*} [options] Override http request option.
1637
+ * @throws {RequiredError}
1638
+ * @memberof SeaweedfsApi
1639
+ */
1640
+ public updateSeaweedFSAccountPrivileges(requestParameters: SeaweedfsApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
1641
+ return SeaweedfsApiFp(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1642
+ }
1643
+ }
1644
+