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.
- package/dist/adminapi/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/account-api.d.ts +906 -6
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +981 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/seaweedfs-api.d.ts +951 -0
- package/dist/adminapi/apis/seaweedfs-api.d.ts.map +1 -0
- package/dist/adminapi/apis/seaweedfs-api.js +1045 -0
- package/dist/adminapi/apis/seaweedfs-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +905 -5
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +991 -10
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.js +16 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +3 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +3 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.js +16 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/account-api.d.ts +906 -6
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +981 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/seaweedfs-api.d.ts +951 -0
- package/dist/openapi/apis/seaweedfs-api.d.ts.map +1 -0
- package/dist/openapi/apis/seaweedfs-api.js +1045 -0
- package/dist/openapi/apis/seaweedfs-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +905 -5
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +991 -10
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.js +16 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
- package/dist/openapi/models/index.d.ts +3 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +3 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.js +16 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +4 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/account-api.ts +1623 -55
- package/src/adminapi/apis/seaweedfs-api.ts +1644 -0
- package/src/adminapi/apis/shared-api.ts +1776 -208
- package/src/adminapi/models/bind-seaweed-fspolicies-request.ts +30 -0
- package/src/adminapi/models/index.ts +3 -0
- package/src/adminapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
- package/src/adminapi/models/list-seaweed-fspolicies200-response.ts +33 -0
- package/src/adminapi.yaml +562 -0
- package/src/openapi/.openapi-generator/FILES +4 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/account-api.ts +1623 -55
- package/src/openapi/apis/seaweedfs-api.ts +1644 -0
- package/src/openapi/apis/shared-api.ts +1776 -208
- package/src/openapi/models/bind-seaweed-fspolicies-request.ts +30 -0
- package/src/openapi/models/index.ts +3 -0
- package/src/openapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
- package/src/openapi/models/list-seaweed-fspolicies200-response.ts +33 -0
- package/src/openapi.yaml +562 -0
|
@@ -29,6 +29,53 @@ const base_1 = require("../base");
|
|
|
29
29
|
*/
|
|
30
30
|
const AccountApiAxiosParamCreator = function (configuration) {
|
|
31
31
|
return {
|
|
32
|
+
/**
|
|
33
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
34
|
+
* @summary bindSeaweedFSPolicies
|
|
35
|
+
* @param {string} orgName
|
|
36
|
+
* @param {string} clusterName
|
|
37
|
+
* @param {string} accountName
|
|
38
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
bindSeaweedFSPolicies: async (orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options = {}) => {
|
|
43
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
44
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'orgName', orgName);
|
|
45
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'clusterName', clusterName);
|
|
47
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'accountName', accountName);
|
|
49
|
+
// verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest);
|
|
51
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
|
|
52
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
53
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
54
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
// authentication BearerToken required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
67
|
+
// authentication DigestAuth required
|
|
68
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
69
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
70
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
73
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration);
|
|
74
|
+
return {
|
|
75
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
76
|
+
options: localVarRequestOptions,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
32
79
|
/**
|
|
33
80
|
* create an account in cluster
|
|
34
81
|
* @summary Create cluster account
|
|
@@ -291,6 +338,96 @@ const AccountApiAxiosParamCreator = function (configuration) {
|
|
|
291
338
|
options: localVarRequestOptions,
|
|
292
339
|
};
|
|
293
340
|
},
|
|
341
|
+
/**
|
|
342
|
+
* 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.
|
|
343
|
+
* @summary createSeaweedFSAccessKey
|
|
344
|
+
* @param {string} orgName
|
|
345
|
+
* @param {string} clusterName
|
|
346
|
+
* @param {string} accountName
|
|
347
|
+
* @param {Account} account
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
createSeaweedFSAccessKey: async (orgName, clusterName, accountName, account, options = {}) => {
|
|
352
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
353
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'orgName', orgName);
|
|
354
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
355
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'clusterName', clusterName);
|
|
356
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
357
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'accountName', accountName);
|
|
358
|
+
// verify required parameter 'account' is not null or undefined
|
|
359
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'account', account);
|
|
360
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
|
|
361
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
362
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
363
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
364
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
365
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
366
|
+
let baseOptions;
|
|
367
|
+
if (configuration) {
|
|
368
|
+
baseOptions = configuration.baseOptions;
|
|
369
|
+
}
|
|
370
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
371
|
+
const localVarHeaderParameter = {};
|
|
372
|
+
const localVarQueryParameter = {};
|
|
373
|
+
// authentication BearerToken required
|
|
374
|
+
// http bearer authentication required
|
|
375
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
376
|
+
// authentication DigestAuth required
|
|
377
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
378
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
379
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
380
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
381
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
382
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(account, localVarRequestOptions, configuration);
|
|
383
|
+
return {
|
|
384
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
385
|
+
options: localVarRequestOptions,
|
|
386
|
+
};
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
* 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.
|
|
390
|
+
* @summary createSeaweedFSAccount
|
|
391
|
+
* @param {string} orgName name of the organization
|
|
392
|
+
* @param {string} clusterName name of the cluster
|
|
393
|
+
* @param {Account} body
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
createSeaweedFSAccount: async (orgName, clusterName, body, options = {}) => {
|
|
398
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
399
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'orgName', orgName);
|
|
400
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
401
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'clusterName', clusterName);
|
|
402
|
+
// verify required parameter 'body' is not null or undefined
|
|
403
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'body', body);
|
|
404
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
405
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
406
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
407
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
408
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
409
|
+
let baseOptions;
|
|
410
|
+
if (configuration) {
|
|
411
|
+
baseOptions = configuration.baseOptions;
|
|
412
|
+
}
|
|
413
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
414
|
+
const localVarHeaderParameter = {};
|
|
415
|
+
const localVarQueryParameter = {};
|
|
416
|
+
// authentication BearerToken required
|
|
417
|
+
// http bearer authentication required
|
|
418
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
419
|
+
// authentication DigestAuth required
|
|
420
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
421
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
422
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
423
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
424
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
425
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
426
|
+
return {
|
|
427
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
428
|
+
options: localVarRequestOptions,
|
|
429
|
+
};
|
|
430
|
+
},
|
|
294
431
|
/**
|
|
295
432
|
* create a MinIO service account access key
|
|
296
433
|
* @summary Create MinIO access key
|
|
@@ -638,6 +775,136 @@ const AccountApiAxiosParamCreator = function (configuration) {
|
|
|
638
775
|
options: localVarRequestOptions,
|
|
639
776
|
};
|
|
640
777
|
},
|
|
778
|
+
/**
|
|
779
|
+
*
|
|
780
|
+
* @summary deleteSeaweedFSAccessKey
|
|
781
|
+
* @param {string} orgName
|
|
782
|
+
* @param {string} clusterName
|
|
783
|
+
* @param {string} accountName
|
|
784
|
+
* @param {string} accessKey
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
deleteSeaweedFSAccessKey: async (orgName, clusterName, accountName, accessKey, options = {}) => {
|
|
789
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
790
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'orgName', orgName);
|
|
791
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
792
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'clusterName', clusterName);
|
|
793
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
794
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accountName', accountName);
|
|
795
|
+
// verify required parameter 'accessKey' is not null or undefined
|
|
796
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accessKey', accessKey);
|
|
797
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
|
|
798
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
799
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
800
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
|
|
801
|
+
.replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
|
|
802
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
803
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
804
|
+
let baseOptions;
|
|
805
|
+
if (configuration) {
|
|
806
|
+
baseOptions = configuration.baseOptions;
|
|
807
|
+
}
|
|
808
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
809
|
+
const localVarHeaderParameter = {};
|
|
810
|
+
const localVarQueryParameter = {};
|
|
811
|
+
// authentication BearerToken required
|
|
812
|
+
// http bearer authentication required
|
|
813
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
814
|
+
// authentication DigestAuth required
|
|
815
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
816
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
818
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
819
|
+
return {
|
|
820
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
821
|
+
options: localVarRequestOptions,
|
|
822
|
+
};
|
|
823
|
+
},
|
|
824
|
+
/**
|
|
825
|
+
* delete an account in cluster
|
|
826
|
+
* @summary deleteSeaweedFSAccount
|
|
827
|
+
* @param {string} orgName name of the organization
|
|
828
|
+
* @param {string} clusterName name of the cluster
|
|
829
|
+
* @param {string} accountName name of the account
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
deleteSeaweedFSAccount: async (orgName, clusterName, accountName, options = {}) => {
|
|
834
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
835
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'orgName', orgName);
|
|
836
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
837
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'clusterName', clusterName);
|
|
838
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
839
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'accountName', accountName);
|
|
840
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
841
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
842
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
843
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
845
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
846
|
+
let baseOptions;
|
|
847
|
+
if (configuration) {
|
|
848
|
+
baseOptions = configuration.baseOptions;
|
|
849
|
+
}
|
|
850
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
851
|
+
const localVarHeaderParameter = {};
|
|
852
|
+
const localVarQueryParameter = {};
|
|
853
|
+
// authentication BearerToken required
|
|
854
|
+
// http bearer authentication required
|
|
855
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
856
|
+
// authentication DigestAuth required
|
|
857
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
858
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
859
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
860
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
861
|
+
return {
|
|
862
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
863
|
+
options: localVarRequestOptions,
|
|
864
|
+
};
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
868
|
+
* @summary deleteSeaweedFSPolicy
|
|
869
|
+
* @param {string} orgName
|
|
870
|
+
* @param {string} clusterName
|
|
871
|
+
* @param {string} policyName
|
|
872
|
+
* @param {*} [options] Override http request option.
|
|
873
|
+
* @throws {RequiredError}
|
|
874
|
+
*/
|
|
875
|
+
deleteSeaweedFSPolicy: async (orgName, clusterName, policyName, options = {}) => {
|
|
876
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
877
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'orgName', orgName);
|
|
878
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
879
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'clusterName', clusterName);
|
|
880
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
881
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'policyName', policyName);
|
|
882
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
883
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
884
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
885
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
887
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
888
|
+
let baseOptions;
|
|
889
|
+
if (configuration) {
|
|
890
|
+
baseOptions = configuration.baseOptions;
|
|
891
|
+
}
|
|
892
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
893
|
+
const localVarHeaderParameter = {};
|
|
894
|
+
const localVarQueryParameter = {};
|
|
895
|
+
// authentication BearerToken required
|
|
896
|
+
// http bearer authentication required
|
|
897
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
898
|
+
// authentication DigestAuth required
|
|
899
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
902
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
903
|
+
return {
|
|
904
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
905
|
+
options: localVarRequestOptions,
|
|
906
|
+
};
|
|
907
|
+
},
|
|
641
908
|
/**
|
|
642
909
|
* delete a MinIO service account access key
|
|
643
910
|
* @summary Delete MinIO access key
|
|
@@ -816,6 +1083,54 @@ const AccountApiAxiosParamCreator = function (configuration) {
|
|
|
816
1083
|
options: localVarRequestOptions,
|
|
817
1084
|
};
|
|
818
1085
|
},
|
|
1086
|
+
/**
|
|
1087
|
+
* get root account password
|
|
1088
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
1089
|
+
* @param {string} orgName name of the Org
|
|
1090
|
+
* @param {string} clusterName name of the Cluster
|
|
1091
|
+
* @param {string} accountName name of the account
|
|
1092
|
+
* @param {string} [component] name of the component
|
|
1093
|
+
* @param {*} [options] Override http request option.
|
|
1094
|
+
* @throws {RequiredError}
|
|
1095
|
+
*/
|
|
1096
|
+
getRootSeaweedFSAccountPassword: async (orgName, clusterName, accountName, component, options = {}) => {
|
|
1097
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1098
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'orgName', orgName);
|
|
1099
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1100
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'clusterName', clusterName);
|
|
1101
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1102
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'accountName', accountName);
|
|
1103
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
|
|
1104
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1105
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1106
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1107
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1108
|
+
let baseOptions;
|
|
1109
|
+
if (configuration) {
|
|
1110
|
+
baseOptions = configuration.baseOptions;
|
|
1111
|
+
}
|
|
1112
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1113
|
+
const localVarHeaderParameter = {};
|
|
1114
|
+
const localVarQueryParameter = {};
|
|
1115
|
+
// authentication BearerToken required
|
|
1116
|
+
// http bearer authentication required
|
|
1117
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1118
|
+
// authentication DigestAuth required
|
|
1119
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1120
|
+
if (accountName !== undefined) {
|
|
1121
|
+
localVarQueryParameter['accountName'] = accountName;
|
|
1122
|
+
}
|
|
1123
|
+
if (component !== undefined) {
|
|
1124
|
+
localVarQueryParameter['component'] = component;
|
|
1125
|
+
}
|
|
1126
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1128
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1129
|
+
return {
|
|
1130
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1131
|
+
options: localVarRequestOptions,
|
|
1132
|
+
};
|
|
1133
|
+
},
|
|
819
1134
|
/**
|
|
820
1135
|
* get a MinIO service account access key
|
|
821
1136
|
* @summary Get MinIO access key
|
|
@@ -1056,6 +1371,82 @@ const AccountApiAxiosParamCreator = function (configuration) {
|
|
|
1056
1371
|
options: localVarRequestOptions,
|
|
1057
1372
|
};
|
|
1058
1373
|
},
|
|
1374
|
+
/**
|
|
1375
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
1376
|
+
* @summary listSeaweedFSAccounts
|
|
1377
|
+
* @param {string} orgName name of the organization
|
|
1378
|
+
* @param {string} clusterName name of the cluster
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
*/
|
|
1382
|
+
listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
|
|
1383
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1384
|
+
(0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
|
|
1385
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1386
|
+
(0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
|
|
1387
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1388
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1389
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1390
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1391
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1392
|
+
let baseOptions;
|
|
1393
|
+
if (configuration) {
|
|
1394
|
+
baseOptions = configuration.baseOptions;
|
|
1395
|
+
}
|
|
1396
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1397
|
+
const localVarHeaderParameter = {};
|
|
1398
|
+
const localVarQueryParameter = {};
|
|
1399
|
+
// authentication BearerToken required
|
|
1400
|
+
// http bearer authentication required
|
|
1401
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1402
|
+
// authentication DigestAuth required
|
|
1403
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1404
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1405
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1406
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1407
|
+
return {
|
|
1408
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1409
|
+
options: localVarRequestOptions,
|
|
1410
|
+
};
|
|
1411
|
+
},
|
|
1412
|
+
/**
|
|
1413
|
+
*
|
|
1414
|
+
* @summary listSeaweedFSPolicies
|
|
1415
|
+
* @param {string} orgName
|
|
1416
|
+
* @param {string} clusterName
|
|
1417
|
+
* @param {*} [options] Override http request option.
|
|
1418
|
+
* @throws {RequiredError}
|
|
1419
|
+
*/
|
|
1420
|
+
listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
|
|
1421
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1422
|
+
(0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
|
|
1423
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1424
|
+
(0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
|
|
1425
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
|
|
1426
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1427
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1428
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1429
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1430
|
+
let baseOptions;
|
|
1431
|
+
if (configuration) {
|
|
1432
|
+
baseOptions = configuration.baseOptions;
|
|
1433
|
+
}
|
|
1434
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1435
|
+
const localVarHeaderParameter = {};
|
|
1436
|
+
const localVarQueryParameter = {};
|
|
1437
|
+
// authentication BearerToken required
|
|
1438
|
+
// http bearer authentication required
|
|
1439
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1440
|
+
// authentication DigestAuth required
|
|
1441
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1442
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1444
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1445
|
+
return {
|
|
1446
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1447
|
+
options: localVarRequestOptions,
|
|
1448
|
+
};
|
|
1449
|
+
},
|
|
1059
1450
|
/**
|
|
1060
1451
|
* list MinIO service account access keys
|
|
1061
1452
|
* @summary List MinIO access keys
|
|
@@ -1148,6 +1539,53 @@ const AccountApiAxiosParamCreator = function (configuration) {
|
|
|
1148
1539
|
options: localVarRequestOptions,
|
|
1149
1540
|
};
|
|
1150
1541
|
},
|
|
1542
|
+
/**
|
|
1543
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
1544
|
+
* @summary putSeaweedFSPolicy
|
|
1545
|
+
* @param {string} orgName
|
|
1546
|
+
* @param {string} clusterName
|
|
1547
|
+
* @param {string} policyName
|
|
1548
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1549
|
+
* @param {*} [options] Override http request option.
|
|
1550
|
+
* @throws {RequiredError}
|
|
1551
|
+
*/
|
|
1552
|
+
putSeaweedFSPolicy: async (orgName, clusterName, policyName, requestBody, options = {}) => {
|
|
1553
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1554
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'orgName', orgName);
|
|
1555
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1556
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'clusterName', clusterName);
|
|
1557
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
1558
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'policyName', policyName);
|
|
1559
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
1560
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'requestBody', requestBody);
|
|
1561
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
1562
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1563
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1564
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
1565
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1566
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1567
|
+
let baseOptions;
|
|
1568
|
+
if (configuration) {
|
|
1569
|
+
baseOptions = configuration.baseOptions;
|
|
1570
|
+
}
|
|
1571
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1572
|
+
const localVarHeaderParameter = {};
|
|
1573
|
+
const localVarQueryParameter = {};
|
|
1574
|
+
// authentication BearerToken required
|
|
1575
|
+
// http bearer authentication required
|
|
1576
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1577
|
+
// authentication DigestAuth required
|
|
1578
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1579
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1580
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1582
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1583
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
1584
|
+
return {
|
|
1585
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1586
|
+
options: localVarRequestOptions,
|
|
1587
|
+
};
|
|
1588
|
+
},
|
|
1151
1589
|
/**
|
|
1152
1590
|
* unlock an account in cluster
|
|
1153
1591
|
* @summary Unlock cluster account
|
|
@@ -1666,6 +2104,100 @@ const AccountApiAxiosParamCreator = function (configuration) {
|
|
|
1666
2104
|
options: localVarRequestOptions,
|
|
1667
2105
|
};
|
|
1668
2106
|
},
|
|
2107
|
+
/**
|
|
2108
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
2109
|
+
* @summary updateSeaweedFSAccount
|
|
2110
|
+
* @param {string} orgName name of the organization
|
|
2111
|
+
* @param {string} clusterName name of the cluster
|
|
2112
|
+
* @param {string} accountName name of the account
|
|
2113
|
+
* @param {Account} body
|
|
2114
|
+
* @param {*} [options] Override http request option.
|
|
2115
|
+
* @throws {RequiredError}
|
|
2116
|
+
*/
|
|
2117
|
+
updateSeaweedFSAccount: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
2118
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2119
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'orgName', orgName);
|
|
2120
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2121
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'clusterName', clusterName);
|
|
2122
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2123
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'accountName', accountName);
|
|
2124
|
+
// verify required parameter 'body' is not null or undefined
|
|
2125
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'body', body);
|
|
2126
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
2127
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2128
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2129
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2131
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2132
|
+
let baseOptions;
|
|
2133
|
+
if (configuration) {
|
|
2134
|
+
baseOptions = configuration.baseOptions;
|
|
2135
|
+
}
|
|
2136
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2137
|
+
const localVarHeaderParameter = {};
|
|
2138
|
+
const localVarQueryParameter = {};
|
|
2139
|
+
// authentication BearerToken required
|
|
2140
|
+
// http bearer authentication required
|
|
2141
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2142
|
+
// authentication DigestAuth required
|
|
2143
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2144
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2145
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2147
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2148
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2149
|
+
return {
|
|
2150
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2151
|
+
options: localVarRequestOptions,
|
|
2152
|
+
};
|
|
2153
|
+
},
|
|
2154
|
+
/**
|
|
2155
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
2156
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
2157
|
+
* @param {string} orgName name of the Org
|
|
2158
|
+
* @param {string} clusterName name of the Cluster
|
|
2159
|
+
* @param {string} accountName name of the account
|
|
2160
|
+
* @param {Array<PrivilegeListItem>} body
|
|
2161
|
+
* @param {*} [options] Override http request option.
|
|
2162
|
+
* @throws {RequiredError}
|
|
2163
|
+
*/
|
|
2164
|
+
updateSeaweedFSAccountPrivileges: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
2165
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2166
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'orgName', orgName);
|
|
2167
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2168
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName);
|
|
2169
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2170
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'accountName', accountName);
|
|
2171
|
+
// verify required parameter 'body' is not null or undefined
|
|
2172
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'body', body);
|
|
2173
|
+
const localVarPath = `/api/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
|
|
2174
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2175
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2176
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2177
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2178
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2179
|
+
let baseOptions;
|
|
2180
|
+
if (configuration) {
|
|
2181
|
+
baseOptions = configuration.baseOptions;
|
|
2182
|
+
}
|
|
2183
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2184
|
+
const localVarHeaderParameter = {};
|
|
2185
|
+
const localVarQueryParameter = {};
|
|
2186
|
+
// authentication BearerToken required
|
|
2187
|
+
// http bearer authentication required
|
|
2188
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2189
|
+
// authentication DigestAuth required
|
|
2190
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2191
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2192
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2193
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2194
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2195
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2196
|
+
return {
|
|
2197
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2198
|
+
options: localVarRequestOptions,
|
|
2199
|
+
};
|
|
2200
|
+
},
|
|
1669
2201
|
/**
|
|
1670
2202
|
* update a MinIO service account access key
|
|
1671
2203
|
* @summary Update MinIO access key
|
|
@@ -1727,6 +2259,23 @@ exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
|
|
|
1727
2259
|
const AccountApiFp = function (configuration) {
|
|
1728
2260
|
const localVarAxiosParamCreator = (0, exports.AccountApiAxiosParamCreator)(configuration);
|
|
1729
2261
|
return {
|
|
2262
|
+
/**
|
|
2263
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
2264
|
+
* @summary bindSeaweedFSPolicies
|
|
2265
|
+
* @param {string} orgName
|
|
2266
|
+
* @param {string} clusterName
|
|
2267
|
+
* @param {string} accountName
|
|
2268
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
2269
|
+
* @param {*} [options] Override http request option.
|
|
2270
|
+
* @throws {RequiredError}
|
|
2271
|
+
*/
|
|
2272
|
+
async bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options) {
|
|
2273
|
+
var _a, _b, _c;
|
|
2274
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
|
|
2275
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2276
|
+
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;
|
|
2277
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2278
|
+
},
|
|
1730
2279
|
/**
|
|
1731
2280
|
* create an account in cluster
|
|
1732
2281
|
* @summary Create cluster account
|
|
@@ -1824,6 +2373,39 @@ const AccountApiFp = function (configuration) {
|
|
|
1824
2373
|
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;
|
|
1825
2374
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1826
2375
|
},
|
|
2376
|
+
/**
|
|
2377
|
+
* 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.
|
|
2378
|
+
* @summary createSeaweedFSAccessKey
|
|
2379
|
+
* @param {string} orgName
|
|
2380
|
+
* @param {string} clusterName
|
|
2381
|
+
* @param {string} accountName
|
|
2382
|
+
* @param {Account} account
|
|
2383
|
+
* @param {*} [options] Override http request option.
|
|
2384
|
+
* @throws {RequiredError}
|
|
2385
|
+
*/
|
|
2386
|
+
async createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options) {
|
|
2387
|
+
var _a, _b, _c;
|
|
2388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
|
|
2389
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2390
|
+
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;
|
|
2391
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2392
|
+
},
|
|
2393
|
+
/**
|
|
2394
|
+
* 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.
|
|
2395
|
+
* @summary createSeaweedFSAccount
|
|
2396
|
+
* @param {string} orgName name of the organization
|
|
2397
|
+
* @param {string} clusterName name of the cluster
|
|
2398
|
+
* @param {Account} body
|
|
2399
|
+
* @param {*} [options] Override http request option.
|
|
2400
|
+
* @throws {RequiredError}
|
|
2401
|
+
*/
|
|
2402
|
+
async createSeaweedFSAccount(orgName, clusterName, body, options) {
|
|
2403
|
+
var _a, _b, _c;
|
|
2404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
|
|
2405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2406
|
+
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;
|
|
2407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2408
|
+
},
|
|
1827
2409
|
/**
|
|
1828
2410
|
* create a MinIO service account access key
|
|
1829
2411
|
* @summary Create MinIO access key
|
|
@@ -1954,6 +2536,55 @@ const AccountApiFp = function (configuration) {
|
|
|
1954
2536
|
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;
|
|
1955
2537
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1956
2538
|
},
|
|
2539
|
+
/**
|
|
2540
|
+
*
|
|
2541
|
+
* @summary deleteSeaweedFSAccessKey
|
|
2542
|
+
* @param {string} orgName
|
|
2543
|
+
* @param {string} clusterName
|
|
2544
|
+
* @param {string} accountName
|
|
2545
|
+
* @param {string} accessKey
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
*/
|
|
2549
|
+
async deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options) {
|
|
2550
|
+
var _a, _b, _c;
|
|
2551
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
|
|
2552
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2553
|
+
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;
|
|
2554
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2555
|
+
},
|
|
2556
|
+
/**
|
|
2557
|
+
* delete an account in cluster
|
|
2558
|
+
* @summary deleteSeaweedFSAccount
|
|
2559
|
+
* @param {string} orgName name of the organization
|
|
2560
|
+
* @param {string} clusterName name of the cluster
|
|
2561
|
+
* @param {string} accountName name of the account
|
|
2562
|
+
* @param {*} [options] Override http request option.
|
|
2563
|
+
* @throws {RequiredError}
|
|
2564
|
+
*/
|
|
2565
|
+
async deleteSeaweedFSAccount(orgName, clusterName, accountName, options) {
|
|
2566
|
+
var _a, _b, _c;
|
|
2567
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
|
|
2568
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2569
|
+
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;
|
|
2570
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2571
|
+
},
|
|
2572
|
+
/**
|
|
2573
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
2574
|
+
* @summary deleteSeaweedFSPolicy
|
|
2575
|
+
* @param {string} orgName
|
|
2576
|
+
* @param {string} clusterName
|
|
2577
|
+
* @param {string} policyName
|
|
2578
|
+
* @param {*} [options] Override http request option.
|
|
2579
|
+
* @throws {RequiredError}
|
|
2580
|
+
*/
|
|
2581
|
+
async deleteSeaweedFSPolicy(orgName, clusterName, policyName, options) {
|
|
2582
|
+
var _a, _b, _c;
|
|
2583
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
|
|
2584
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2585
|
+
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;
|
|
2586
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2587
|
+
},
|
|
1957
2588
|
/**
|
|
1958
2589
|
* delete a MinIO service account access key
|
|
1959
2590
|
* @summary Delete MinIO access key
|
|
@@ -2020,6 +2651,23 @@ const AccountApiFp = function (configuration) {
|
|
|
2020
2651
|
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;
|
|
2021
2652
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2022
2653
|
},
|
|
2654
|
+
/**
|
|
2655
|
+
* get root account password
|
|
2656
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
2657
|
+
* @param {string} orgName name of the Org
|
|
2658
|
+
* @param {string} clusterName name of the Cluster
|
|
2659
|
+
* @param {string} accountName name of the account
|
|
2660
|
+
* @param {string} [component] name of the component
|
|
2661
|
+
* @param {*} [options] Override http request option.
|
|
2662
|
+
* @throws {RequiredError}
|
|
2663
|
+
*/
|
|
2664
|
+
async getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options) {
|
|
2665
|
+
var _a, _b, _c;
|
|
2666
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
|
|
2667
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2668
|
+
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;
|
|
2669
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2670
|
+
},
|
|
2023
2671
|
/**
|
|
2024
2672
|
* get a MinIO service account access key
|
|
2025
2673
|
* @summary Get MinIO access key
|
|
@@ -2113,6 +2761,36 @@ const AccountApiFp = function (configuration) {
|
|
|
2113
2761
|
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;
|
|
2114
2762
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2115
2763
|
},
|
|
2764
|
+
/**
|
|
2765
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
2766
|
+
* @summary listSeaweedFSAccounts
|
|
2767
|
+
* @param {string} orgName name of the organization
|
|
2768
|
+
* @param {string} clusterName name of the cluster
|
|
2769
|
+
* @param {*} [options] Override http request option.
|
|
2770
|
+
* @throws {RequiredError}
|
|
2771
|
+
*/
|
|
2772
|
+
async listSeaweedFSAccounts(orgName, clusterName, options) {
|
|
2773
|
+
var _a, _b, _c;
|
|
2774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
|
|
2775
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2776
|
+
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;
|
|
2777
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2778
|
+
},
|
|
2779
|
+
/**
|
|
2780
|
+
*
|
|
2781
|
+
* @summary listSeaweedFSPolicies
|
|
2782
|
+
* @param {string} orgName
|
|
2783
|
+
* @param {string} clusterName
|
|
2784
|
+
* @param {*} [options] Override http request option.
|
|
2785
|
+
* @throws {RequiredError}
|
|
2786
|
+
*/
|
|
2787
|
+
async listSeaweedFSPolicies(orgName, clusterName, options) {
|
|
2788
|
+
var _a, _b, _c;
|
|
2789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
|
|
2790
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2791
|
+
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;
|
|
2792
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2793
|
+
},
|
|
2116
2794
|
/**
|
|
2117
2795
|
* list MinIO service account access keys
|
|
2118
2796
|
* @summary List MinIO access keys
|
|
@@ -2147,6 +2825,23 @@ const AccountApiFp = function (configuration) {
|
|
|
2147
2825
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2148
2826
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2149
2827
|
},
|
|
2828
|
+
/**
|
|
2829
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
2830
|
+
* @summary putSeaweedFSPolicy
|
|
2831
|
+
* @param {string} orgName
|
|
2832
|
+
* @param {string} clusterName
|
|
2833
|
+
* @param {string} policyName
|
|
2834
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
2835
|
+
* @param {*} [options] Override http request option.
|
|
2836
|
+
* @throws {RequiredError}
|
|
2837
|
+
*/
|
|
2838
|
+
async putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options) {
|
|
2839
|
+
var _a, _b, _c;
|
|
2840
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
|
|
2841
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2842
|
+
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;
|
|
2843
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2844
|
+
},
|
|
2150
2845
|
/**
|
|
2151
2846
|
* unlock an account in cluster
|
|
2152
2847
|
* @summary Unlock cluster account
|
|
@@ -2335,6 +3030,40 @@ const AccountApiFp = function (configuration) {
|
|
|
2335
3030
|
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;
|
|
2336
3031
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2337
3032
|
},
|
|
3033
|
+
/**
|
|
3034
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
3035
|
+
* @summary updateSeaweedFSAccount
|
|
3036
|
+
* @param {string} orgName name of the organization
|
|
3037
|
+
* @param {string} clusterName name of the cluster
|
|
3038
|
+
* @param {string} accountName name of the account
|
|
3039
|
+
* @param {Account} body
|
|
3040
|
+
* @param {*} [options] Override http request option.
|
|
3041
|
+
* @throws {RequiredError}
|
|
3042
|
+
*/
|
|
3043
|
+
async updateSeaweedFSAccount(orgName, clusterName, accountName, body, options) {
|
|
3044
|
+
var _a, _b, _c;
|
|
3045
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
|
|
3046
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3047
|
+
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;
|
|
3048
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3049
|
+
},
|
|
3050
|
+
/**
|
|
3051
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
3052
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
3053
|
+
* @param {string} orgName name of the Org
|
|
3054
|
+
* @param {string} clusterName name of the Cluster
|
|
3055
|
+
* @param {string} accountName name of the account
|
|
3056
|
+
* @param {Array<PrivilegeListItem>} body
|
|
3057
|
+
* @param {*} [options] Override http request option.
|
|
3058
|
+
* @throws {RequiredError}
|
|
3059
|
+
*/
|
|
3060
|
+
async updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options) {
|
|
3061
|
+
var _a, _b, _c;
|
|
3062
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
|
|
3063
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3064
|
+
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;
|
|
3065
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3066
|
+
},
|
|
2338
3067
|
/**
|
|
2339
3068
|
* update a MinIO service account access key
|
|
2340
3069
|
* @summary Update MinIO access key
|
|
@@ -2363,6 +3092,16 @@ exports.AccountApiFp = AccountApiFp;
|
|
|
2363
3092
|
const AccountApiFactory = function (configuration, basePath, axios) {
|
|
2364
3093
|
const localVarFp = (0, exports.AccountApiFp)(configuration);
|
|
2365
3094
|
return {
|
|
3095
|
+
/**
|
|
3096
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
3097
|
+
* @summary bindSeaweedFSPolicies
|
|
3098
|
+
* @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
3099
|
+
* @param {*} [options] Override http request option.
|
|
3100
|
+
* @throws {RequiredError}
|
|
3101
|
+
*/
|
|
3102
|
+
bindSeaweedFSPolicies(requestParameters, options) {
|
|
3103
|
+
return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
|
|
3104
|
+
},
|
|
2366
3105
|
/**
|
|
2367
3106
|
* create an account in cluster
|
|
2368
3107
|
* @summary Create cluster account
|
|
@@ -2423,6 +3162,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
|
|
|
2423
3162
|
createRabbitAccount(requestParameters, options) {
|
|
2424
3163
|
return localVarFp.createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(axios, basePath));
|
|
2425
3164
|
},
|
|
3165
|
+
/**
|
|
3166
|
+
* 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.
|
|
3167
|
+
* @summary createSeaweedFSAccessKey
|
|
3168
|
+
* @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
3169
|
+
* @param {*} [options] Override http request option.
|
|
3170
|
+
* @throws {RequiredError}
|
|
3171
|
+
*/
|
|
3172
|
+
createSeaweedFSAccessKey(requestParameters, options) {
|
|
3173
|
+
return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
|
|
3174
|
+
},
|
|
3175
|
+
/**
|
|
3176
|
+
* 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.
|
|
3177
|
+
* @summary createSeaweedFSAccount
|
|
3178
|
+
* @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
3179
|
+
* @param {*} [options] Override http request option.
|
|
3180
|
+
* @throws {RequiredError}
|
|
3181
|
+
*/
|
|
3182
|
+
createSeaweedFSAccount(requestParameters, options) {
|
|
3183
|
+
return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
3184
|
+
},
|
|
2426
3185
|
/**
|
|
2427
3186
|
* create a MinIO service account access key
|
|
2428
3187
|
* @summary Create MinIO access key
|
|
@@ -2503,6 +3262,36 @@ const AccountApiFactory = function (configuration, basePath, axios) {
|
|
|
2503
3262
|
deleteRabbitAccount(requestParameters, options) {
|
|
2504
3263
|
return localVarFp.deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
2505
3264
|
},
|
|
3265
|
+
/**
|
|
3266
|
+
*
|
|
3267
|
+
* @summary deleteSeaweedFSAccessKey
|
|
3268
|
+
* @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
3269
|
+
* @param {*} [options] Override http request option.
|
|
3270
|
+
* @throws {RequiredError}
|
|
3271
|
+
*/
|
|
3272
|
+
deleteSeaweedFSAccessKey(requestParameters, options) {
|
|
3273
|
+
return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
|
|
3274
|
+
},
|
|
3275
|
+
/**
|
|
3276
|
+
* delete an account in cluster
|
|
3277
|
+
* @summary deleteSeaweedFSAccount
|
|
3278
|
+
* @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
3279
|
+
* @param {*} [options] Override http request option.
|
|
3280
|
+
* @throws {RequiredError}
|
|
3281
|
+
*/
|
|
3282
|
+
deleteSeaweedFSAccount(requestParameters, options) {
|
|
3283
|
+
return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
3284
|
+
},
|
|
3285
|
+
/**
|
|
3286
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
3287
|
+
* @summary deleteSeaweedFSPolicy
|
|
3288
|
+
* @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
3289
|
+
* @param {*} [options] Override http request option.
|
|
3290
|
+
* @throws {RequiredError}
|
|
3291
|
+
*/
|
|
3292
|
+
deleteSeaweedFSPolicy(requestParameters, options) {
|
|
3293
|
+
return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
|
|
3294
|
+
},
|
|
2506
3295
|
/**
|
|
2507
3296
|
* delete a MinIO service account access key
|
|
2508
3297
|
* @summary Delete MinIO access key
|
|
@@ -2543,6 +3332,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
|
|
|
2543
3332
|
getRootAccountPassword(requestParameters, options) {
|
|
2544
3333
|
return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
2545
3334
|
},
|
|
3335
|
+
/**
|
|
3336
|
+
* get root account password
|
|
3337
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
3338
|
+
* @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
3339
|
+
* @param {*} [options] Override http request option.
|
|
3340
|
+
* @throws {RequiredError}
|
|
3341
|
+
*/
|
|
3342
|
+
getRootSeaweedFSAccountPassword(requestParameters, options) {
|
|
3343
|
+
return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
3344
|
+
},
|
|
2546
3345
|
/**
|
|
2547
3346
|
* get a MinIO service account access key
|
|
2548
3347
|
* @summary Get MinIO access key
|
|
@@ -2603,6 +3402,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
|
|
|
2603
3402
|
listRabbitAccounts(requestParameters, options) {
|
|
2604
3403
|
return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
2605
3404
|
},
|
|
3405
|
+
/**
|
|
3406
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
3407
|
+
* @summary listSeaweedFSAccounts
|
|
3408
|
+
* @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
3409
|
+
* @param {*} [options] Override http request option.
|
|
3410
|
+
* @throws {RequiredError}
|
|
3411
|
+
*/
|
|
3412
|
+
listSeaweedFSAccounts(requestParameters, options) {
|
|
3413
|
+
return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
3414
|
+
},
|
|
3415
|
+
/**
|
|
3416
|
+
*
|
|
3417
|
+
* @summary listSeaweedFSPolicies
|
|
3418
|
+
* @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
3419
|
+
* @param {*} [options] Override http request option.
|
|
3420
|
+
* @throws {RequiredError}
|
|
3421
|
+
*/
|
|
3422
|
+
listSeaweedFSPolicies(requestParameters, options) {
|
|
3423
|
+
return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
3424
|
+
},
|
|
2606
3425
|
/**
|
|
2607
3426
|
* list MinIO service account access keys
|
|
2608
3427
|
* @summary List MinIO access keys
|
|
@@ -2623,6 +3442,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
|
|
|
2623
3442
|
lockAccount(requestParameters, options) {
|
|
2624
3443
|
return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
2625
3444
|
},
|
|
3445
|
+
/**
|
|
3446
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
3447
|
+
* @summary putSeaweedFSPolicy
|
|
3448
|
+
* @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
3449
|
+
* @param {*} [options] Override http request option.
|
|
3450
|
+
* @throws {RequiredError}
|
|
3451
|
+
*/
|
|
3452
|
+
putSeaweedFSPolicy(requestParameters, options) {
|
|
3453
|
+
return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
3454
|
+
},
|
|
2626
3455
|
/**
|
|
2627
3456
|
* unlock an account in cluster
|
|
2628
3457
|
* @summary Unlock cluster account
|
|
@@ -2733,6 +3562,26 @@ const AccountApiFactory = function (configuration, basePath, axios) {
|
|
|
2733
3562
|
updateRabbitAccountPrivileges(requestParameters, options) {
|
|
2734
3563
|
return localVarFp.updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(axios, basePath));
|
|
2735
3564
|
},
|
|
3565
|
+
/**
|
|
3566
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
3567
|
+
* @summary updateSeaweedFSAccount
|
|
3568
|
+
* @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
3569
|
+
* @param {*} [options] Override http request option.
|
|
3570
|
+
* @throws {RequiredError}
|
|
3571
|
+
*/
|
|
3572
|
+
updateSeaweedFSAccount(requestParameters, options) {
|
|
3573
|
+
return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
3574
|
+
},
|
|
3575
|
+
/**
|
|
3576
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
3577
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
3578
|
+
* @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
3579
|
+
* @param {*} [options] Override http request option.
|
|
3580
|
+
* @throws {RequiredError}
|
|
3581
|
+
*/
|
|
3582
|
+
updateSeaweedFSAccountPrivileges(requestParameters, options) {
|
|
3583
|
+
return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
3584
|
+
},
|
|
2736
3585
|
/**
|
|
2737
3586
|
* update a MinIO service account access key
|
|
2738
3587
|
* @summary Update MinIO access key
|
|
@@ -2753,6 +3602,17 @@ exports.AccountApiFactory = AccountApiFactory;
|
|
|
2753
3602
|
* @extends {BaseAPI}
|
|
2754
3603
|
*/
|
|
2755
3604
|
class AccountApi extends base_1.BaseAPI {
|
|
3605
|
+
/**
|
|
3606
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
3607
|
+
* @summary bindSeaweedFSPolicies
|
|
3608
|
+
* @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
3609
|
+
* @param {*} [options] Override http request option.
|
|
3610
|
+
* @throws {RequiredError}
|
|
3611
|
+
* @memberof AccountApi
|
|
3612
|
+
*/
|
|
3613
|
+
bindSeaweedFSPolicies(requestParameters, options) {
|
|
3614
|
+
return (0, exports.AccountApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3615
|
+
}
|
|
2756
3616
|
/**
|
|
2757
3617
|
* create an account in cluster
|
|
2758
3618
|
* @summary Create cluster account
|
|
@@ -2819,6 +3679,28 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
2819
3679
|
createRabbitAccount(requestParameters, options) {
|
|
2820
3680
|
return (0, exports.AccountApiFp)(this.configuration).createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2821
3681
|
}
|
|
3682
|
+
/**
|
|
3683
|
+
* 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.
|
|
3684
|
+
* @summary createSeaweedFSAccessKey
|
|
3685
|
+
* @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
3686
|
+
* @param {*} [options] Override http request option.
|
|
3687
|
+
* @throws {RequiredError}
|
|
3688
|
+
* @memberof AccountApi
|
|
3689
|
+
*/
|
|
3690
|
+
createSeaweedFSAccessKey(requestParameters, options) {
|
|
3691
|
+
return (0, exports.AccountApiFp)(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
|
|
3692
|
+
}
|
|
3693
|
+
/**
|
|
3694
|
+
* 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.
|
|
3695
|
+
* @summary createSeaweedFSAccount
|
|
3696
|
+
* @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
3697
|
+
* @param {*} [options] Override http request option.
|
|
3698
|
+
* @throws {RequiredError}
|
|
3699
|
+
* @memberof AccountApi
|
|
3700
|
+
*/
|
|
3701
|
+
createSeaweedFSAccount(requestParameters, options) {
|
|
3702
|
+
return (0, exports.AccountApiFp)(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
3703
|
+
}
|
|
2822
3704
|
/**
|
|
2823
3705
|
* create a MinIO service account access key
|
|
2824
3706
|
* @summary Create MinIO access key
|
|
@@ -2907,6 +3789,39 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
2907
3789
|
deleteRabbitAccount(requestParameters, options) {
|
|
2908
3790
|
return (0, exports.AccountApiFp)(this.configuration).deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
2909
3791
|
}
|
|
3792
|
+
/**
|
|
3793
|
+
*
|
|
3794
|
+
* @summary deleteSeaweedFSAccessKey
|
|
3795
|
+
* @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
3796
|
+
* @param {*} [options] Override http request option.
|
|
3797
|
+
* @throws {RequiredError}
|
|
3798
|
+
* @memberof AccountApi
|
|
3799
|
+
*/
|
|
3800
|
+
deleteSeaweedFSAccessKey(requestParameters, options) {
|
|
3801
|
+
return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
|
|
3802
|
+
}
|
|
3803
|
+
/**
|
|
3804
|
+
* delete an account in cluster
|
|
3805
|
+
* @summary deleteSeaweedFSAccount
|
|
3806
|
+
* @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
3807
|
+
* @param {*} [options] Override http request option.
|
|
3808
|
+
* @throws {RequiredError}
|
|
3809
|
+
* @memberof AccountApi
|
|
3810
|
+
*/
|
|
3811
|
+
deleteSeaweedFSAccount(requestParameters, options) {
|
|
3812
|
+
return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
3813
|
+
}
|
|
3814
|
+
/**
|
|
3815
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
3816
|
+
* @summary deleteSeaweedFSPolicy
|
|
3817
|
+
* @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
3818
|
+
* @param {*} [options] Override http request option.
|
|
3819
|
+
* @throws {RequiredError}
|
|
3820
|
+
* @memberof AccountApi
|
|
3821
|
+
*/
|
|
3822
|
+
deleteSeaweedFSPolicy(requestParameters, options) {
|
|
3823
|
+
return (0, exports.AccountApiFp)(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
|
|
3824
|
+
}
|
|
2910
3825
|
/**
|
|
2911
3826
|
* delete a MinIO service account access key
|
|
2912
3827
|
* @summary Delete MinIO access key
|
|
@@ -2951,6 +3866,17 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
2951
3866
|
getRootAccountPassword(requestParameters, options) {
|
|
2952
3867
|
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));
|
|
2953
3868
|
}
|
|
3869
|
+
/**
|
|
3870
|
+
* get root account password
|
|
3871
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
3872
|
+
* @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
3873
|
+
* @param {*} [options] Override http request option.
|
|
3874
|
+
* @throws {RequiredError}
|
|
3875
|
+
* @memberof AccountApi
|
|
3876
|
+
*/
|
|
3877
|
+
getRootSeaweedFSAccountPassword(requestParameters, options) {
|
|
3878
|
+
return (0, exports.AccountApiFp)(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
3879
|
+
}
|
|
2954
3880
|
/**
|
|
2955
3881
|
* get a MinIO service account access key
|
|
2956
3882
|
* @summary Get MinIO access key
|
|
@@ -3017,6 +3943,28 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
3017
3943
|
listRabbitAccounts(requestParameters, options) {
|
|
3018
3944
|
return (0, exports.AccountApiFp)(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
3019
3945
|
}
|
|
3946
|
+
/**
|
|
3947
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
3948
|
+
* @summary listSeaweedFSAccounts
|
|
3949
|
+
* @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
3950
|
+
* @param {*} [options] Override http request option.
|
|
3951
|
+
* @throws {RequiredError}
|
|
3952
|
+
* @memberof AccountApi
|
|
3953
|
+
*/
|
|
3954
|
+
listSeaweedFSAccounts(requestParameters, options) {
|
|
3955
|
+
return (0, exports.AccountApiFp)(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
3956
|
+
}
|
|
3957
|
+
/**
|
|
3958
|
+
*
|
|
3959
|
+
* @summary listSeaweedFSPolicies
|
|
3960
|
+
* @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
3961
|
+
* @param {*} [options] Override http request option.
|
|
3962
|
+
* @throws {RequiredError}
|
|
3963
|
+
* @memberof AccountApi
|
|
3964
|
+
*/
|
|
3965
|
+
listSeaweedFSPolicies(requestParameters, options) {
|
|
3966
|
+
return (0, exports.AccountApiFp)(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
3967
|
+
}
|
|
3020
3968
|
/**
|
|
3021
3969
|
* list MinIO service account access keys
|
|
3022
3970
|
* @summary List MinIO access keys
|
|
@@ -3039,6 +3987,17 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
3039
3987
|
lockAccount(requestParameters, options) {
|
|
3040
3988
|
return (0, exports.AccountApiFp)(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
3041
3989
|
}
|
|
3990
|
+
/**
|
|
3991
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
3992
|
+
* @summary putSeaweedFSPolicy
|
|
3993
|
+
* @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
3994
|
+
* @param {*} [options] Override http request option.
|
|
3995
|
+
* @throws {RequiredError}
|
|
3996
|
+
* @memberof AccountApi
|
|
3997
|
+
*/
|
|
3998
|
+
putSeaweedFSPolicy(requestParameters, options) {
|
|
3999
|
+
return (0, exports.AccountApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4000
|
+
}
|
|
3042
4001
|
/**
|
|
3043
4002
|
* unlock an account in cluster
|
|
3044
4003
|
* @summary Unlock cluster account
|
|
@@ -3160,6 +4119,28 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
3160
4119
|
updateRabbitAccountPrivileges(requestParameters, options) {
|
|
3161
4120
|
return (0, exports.AccountApiFp)(this.configuration).updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(this.axios, this.basePath));
|
|
3162
4121
|
}
|
|
4122
|
+
/**
|
|
4123
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
4124
|
+
* @summary updateSeaweedFSAccount
|
|
4125
|
+
* @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
4126
|
+
* @param {*} [options] Override http request option.
|
|
4127
|
+
* @throws {RequiredError}
|
|
4128
|
+
* @memberof AccountApi
|
|
4129
|
+
*/
|
|
4130
|
+
updateSeaweedFSAccount(requestParameters, options) {
|
|
4131
|
+
return (0, exports.AccountApiFp)(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
4132
|
+
}
|
|
4133
|
+
/**
|
|
4134
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
4135
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
4136
|
+
* @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
4137
|
+
* @param {*} [options] Override http request option.
|
|
4138
|
+
* @throws {RequiredError}
|
|
4139
|
+
* @memberof AccountApi
|
|
4140
|
+
*/
|
|
4141
|
+
updateSeaweedFSAccountPrivileges(requestParameters, options) {
|
|
4142
|
+
return (0, exports.AccountApiFp)(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
4143
|
+
}
|
|
3163
4144
|
/**
|
|
3164
4145
|
* update a MinIO service account access key
|
|
3165
4146
|
* @summary Update MinIO access key
|