kb-cloud-client-typescript 2.4.0-alpha.62 → 2.4.0-alpha.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -28,12 +28,16 @@ import type { Account } from '../models';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import type { AccountListItem } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
|
+
import type { BindSeaweedFSPoliciesRequest } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
31
33
|
import type { DmsServiceAccount } from '../models';
|
|
32
34
|
// @ts-ignore
|
|
33
35
|
import type { DmsServiceAccountCreateRequest } from '../models';
|
|
34
36
|
// @ts-ignore
|
|
35
37
|
import type { DmsServiceAccountUpdateRequest } from '../models';
|
|
36
38
|
// @ts-ignore
|
|
39
|
+
import type { ListSeaweedFSPolicies200Response } from '../models';
|
|
40
|
+
// @ts-ignore
|
|
37
41
|
import type { MilvusAccountPassword } from '../models';
|
|
38
42
|
// @ts-ignore
|
|
39
43
|
import type { MilvusAccountRoles } from '../models';
|
|
@@ -61,6 +65,61 @@ import type { RbmqPermission } from '../models';
|
|
|
61
65
|
*/
|
|
62
66
|
export const AccountApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
63
67
|
return {
|
|
68
|
+
/**
|
|
69
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
70
|
+
* @summary bindSeaweedFSPolicies
|
|
71
|
+
* @param {string} orgName
|
|
72
|
+
* @param {string} clusterName
|
|
73
|
+
* @param {string} accountName
|
|
74
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
bindSeaweedFSPolicies: async (orgName: string, clusterName: string, accountName: string, bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
79
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
80
|
+
assertParamExists('bindSeaweedFSPolicies', 'orgName', orgName)
|
|
81
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
82
|
+
assertParamExists('bindSeaweedFSPolicies', 'clusterName', clusterName)
|
|
83
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
84
|
+
assertParamExists('bindSeaweedFSPolicies', 'accountName', accountName)
|
|
85
|
+
// verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
|
|
86
|
+
assertParamExists('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest)
|
|
87
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
|
|
88
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
89
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
90
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
91
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
92
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
93
|
+
let baseOptions;
|
|
94
|
+
if (configuration) {
|
|
95
|
+
baseOptions = configuration.baseOptions;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
99
|
+
const localVarHeaderParameter = {} as any;
|
|
100
|
+
const localVarQueryParameter = {} as any;
|
|
101
|
+
|
|
102
|
+
// authentication BearerToken required
|
|
103
|
+
// http bearer authentication required
|
|
104
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
105
|
+
|
|
106
|
+
// authentication DigestAuth required
|
|
107
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
112
|
+
|
|
113
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
116
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration)
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
url: toPathString(localVarUrlObj),
|
|
120
|
+
options: localVarRequestOptions,
|
|
121
|
+
};
|
|
122
|
+
},
|
|
64
123
|
/**
|
|
65
124
|
* create an account in cluster
|
|
66
125
|
* @summary Create cluster account
|
|
@@ -371,6 +430,112 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
371
430
|
options: localVarRequestOptions,
|
|
372
431
|
};
|
|
373
432
|
},
|
|
433
|
+
/**
|
|
434
|
+
* 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.
|
|
435
|
+
* @summary createSeaweedFSAccessKey
|
|
436
|
+
* @param {string} orgName
|
|
437
|
+
* @param {string} clusterName
|
|
438
|
+
* @param {string} accountName
|
|
439
|
+
* @param {Account} account
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
*/
|
|
443
|
+
createSeaweedFSAccessKey: async (orgName: string, clusterName: string, accountName: string, account: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
444
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
445
|
+
assertParamExists('createSeaweedFSAccessKey', 'orgName', orgName)
|
|
446
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
447
|
+
assertParamExists('createSeaweedFSAccessKey', 'clusterName', clusterName)
|
|
448
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
449
|
+
assertParamExists('createSeaweedFSAccessKey', 'accountName', accountName)
|
|
450
|
+
// verify required parameter 'account' is not null or undefined
|
|
451
|
+
assertParamExists('createSeaweedFSAccessKey', 'account', account)
|
|
452
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
|
|
453
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
454
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
455
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
458
|
+
let baseOptions;
|
|
459
|
+
if (configuration) {
|
|
460
|
+
baseOptions = configuration.baseOptions;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
464
|
+
const localVarHeaderParameter = {} as any;
|
|
465
|
+
const localVarQueryParameter = {} as any;
|
|
466
|
+
|
|
467
|
+
// authentication BearerToken required
|
|
468
|
+
// http bearer authentication required
|
|
469
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
470
|
+
|
|
471
|
+
// authentication DigestAuth required
|
|
472
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
477
|
+
|
|
478
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
479
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
480
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
481
|
+
localVarRequestOptions.data = serializeDataIfNeeded(account, localVarRequestOptions, configuration)
|
|
482
|
+
|
|
483
|
+
return {
|
|
484
|
+
url: toPathString(localVarUrlObj),
|
|
485
|
+
options: localVarRequestOptions,
|
|
486
|
+
};
|
|
487
|
+
},
|
|
488
|
+
/**
|
|
489
|
+
* 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.
|
|
490
|
+
* @summary createSeaweedFSAccount
|
|
491
|
+
* @param {string} orgName name of the organization
|
|
492
|
+
* @param {string} clusterName name of the cluster
|
|
493
|
+
* @param {Account} body
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
createSeaweedFSAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
498
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
499
|
+
assertParamExists('createSeaweedFSAccount', 'orgName', orgName)
|
|
500
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
501
|
+
assertParamExists('createSeaweedFSAccount', 'clusterName', clusterName)
|
|
502
|
+
// verify required parameter 'body' is not null or undefined
|
|
503
|
+
assertParamExists('createSeaweedFSAccount', 'body', body)
|
|
504
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
505
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
506
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
507
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
508
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
509
|
+
let baseOptions;
|
|
510
|
+
if (configuration) {
|
|
511
|
+
baseOptions = configuration.baseOptions;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
515
|
+
const localVarHeaderParameter = {} as any;
|
|
516
|
+
const localVarQueryParameter = {} as any;
|
|
517
|
+
|
|
518
|
+
// authentication BearerToken required
|
|
519
|
+
// http bearer authentication required
|
|
520
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
521
|
+
|
|
522
|
+
// authentication DigestAuth required
|
|
523
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
528
|
+
|
|
529
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
530
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
531
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
532
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
533
|
+
|
|
534
|
+
return {
|
|
535
|
+
url: toPathString(localVarUrlObj),
|
|
536
|
+
options: localVarRequestOptions,
|
|
537
|
+
};
|
|
538
|
+
},
|
|
374
539
|
/**
|
|
375
540
|
* create a MinIO service account access key
|
|
376
541
|
* @summary Create MinIO access key
|
|
@@ -767,6 +932,157 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
767
932
|
|
|
768
933
|
|
|
769
934
|
|
|
935
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
936
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
937
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
938
|
+
|
|
939
|
+
return {
|
|
940
|
+
url: toPathString(localVarUrlObj),
|
|
941
|
+
options: localVarRequestOptions,
|
|
942
|
+
};
|
|
943
|
+
},
|
|
944
|
+
/**
|
|
945
|
+
*
|
|
946
|
+
* @summary deleteSeaweedFSAccessKey
|
|
947
|
+
* @param {string} orgName
|
|
948
|
+
* @param {string} clusterName
|
|
949
|
+
* @param {string} accountName
|
|
950
|
+
* @param {string} accessKey
|
|
951
|
+
* @param {*} [options] Override http request option.
|
|
952
|
+
* @throws {RequiredError}
|
|
953
|
+
*/
|
|
954
|
+
deleteSeaweedFSAccessKey: async (orgName: string, clusterName: string, accountName: string, accessKey: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
955
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
956
|
+
assertParamExists('deleteSeaweedFSAccessKey', 'orgName', orgName)
|
|
957
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
958
|
+
assertParamExists('deleteSeaweedFSAccessKey', 'clusterName', clusterName)
|
|
959
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
960
|
+
assertParamExists('deleteSeaweedFSAccessKey', 'accountName', accountName)
|
|
961
|
+
// verify required parameter 'accessKey' is not null or undefined
|
|
962
|
+
assertParamExists('deleteSeaweedFSAccessKey', 'accessKey', accessKey)
|
|
963
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
|
|
964
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
965
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
966
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
|
|
967
|
+
.replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
|
|
968
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
969
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
970
|
+
let baseOptions;
|
|
971
|
+
if (configuration) {
|
|
972
|
+
baseOptions = configuration.baseOptions;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
976
|
+
const localVarHeaderParameter = {} as any;
|
|
977
|
+
const localVarQueryParameter = {} as any;
|
|
978
|
+
|
|
979
|
+
// authentication BearerToken required
|
|
980
|
+
// http bearer authentication required
|
|
981
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
982
|
+
|
|
983
|
+
// authentication DigestAuth required
|
|
984
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
985
|
+
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
989
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
990
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
991
|
+
|
|
992
|
+
return {
|
|
993
|
+
url: toPathString(localVarUrlObj),
|
|
994
|
+
options: localVarRequestOptions,
|
|
995
|
+
};
|
|
996
|
+
},
|
|
997
|
+
/**
|
|
998
|
+
* delete an account in cluster
|
|
999
|
+
* @summary deleteSeaweedFSAccount
|
|
1000
|
+
* @param {string} orgName name of the organization
|
|
1001
|
+
* @param {string} clusterName name of the cluster
|
|
1002
|
+
* @param {string} accountName name of the account
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
deleteSeaweedFSAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1007
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1008
|
+
assertParamExists('deleteSeaweedFSAccount', 'orgName', orgName)
|
|
1009
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1010
|
+
assertParamExists('deleteSeaweedFSAccount', 'clusterName', clusterName)
|
|
1011
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1012
|
+
assertParamExists('deleteSeaweedFSAccount', 'accountName', accountName)
|
|
1013
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
1014
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1015
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1016
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1017
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1018
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1019
|
+
let baseOptions;
|
|
1020
|
+
if (configuration) {
|
|
1021
|
+
baseOptions = configuration.baseOptions;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1025
|
+
const localVarHeaderParameter = {} as any;
|
|
1026
|
+
const localVarQueryParameter = {} as any;
|
|
1027
|
+
|
|
1028
|
+
// authentication BearerToken required
|
|
1029
|
+
// http bearer authentication required
|
|
1030
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1031
|
+
|
|
1032
|
+
// authentication DigestAuth required
|
|
1033
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1038
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1039
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1040
|
+
|
|
1041
|
+
return {
|
|
1042
|
+
url: toPathString(localVarUrlObj),
|
|
1043
|
+
options: localVarRequestOptions,
|
|
1044
|
+
};
|
|
1045
|
+
},
|
|
1046
|
+
/**
|
|
1047
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
1048
|
+
* @summary deleteSeaweedFSPolicy
|
|
1049
|
+
* @param {string} orgName
|
|
1050
|
+
* @param {string} clusterName
|
|
1051
|
+
* @param {string} policyName
|
|
1052
|
+
* @param {*} [options] Override http request option.
|
|
1053
|
+
* @throws {RequiredError}
|
|
1054
|
+
*/
|
|
1055
|
+
deleteSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1056
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1057
|
+
assertParamExists('deleteSeaweedFSPolicy', 'orgName', orgName)
|
|
1058
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1059
|
+
assertParamExists('deleteSeaweedFSPolicy', 'clusterName', clusterName)
|
|
1060
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
1061
|
+
assertParamExists('deleteSeaweedFSPolicy', 'policyName', policyName)
|
|
1062
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
1063
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1064
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1065
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
1066
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1067
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1068
|
+
let baseOptions;
|
|
1069
|
+
if (configuration) {
|
|
1070
|
+
baseOptions = configuration.baseOptions;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1074
|
+
const localVarHeaderParameter = {} as any;
|
|
1075
|
+
const localVarQueryParameter = {} as any;
|
|
1076
|
+
|
|
1077
|
+
// authentication BearerToken required
|
|
1078
|
+
// http bearer authentication required
|
|
1079
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1080
|
+
|
|
1081
|
+
// authentication DigestAuth required
|
|
1082
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
|
|
770
1086
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
771
1087
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
772
1088
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -985,11 +1301,68 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
985
1301
|
};
|
|
986
1302
|
},
|
|
987
1303
|
/**
|
|
988
|
-
* get
|
|
989
|
-
* @summary
|
|
990
|
-
* @param {string}
|
|
991
|
-
* @param {string}
|
|
992
|
-
* @param {string}
|
|
1304
|
+
* get root account password
|
|
1305
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
1306
|
+
* @param {string} orgName name of the Org
|
|
1307
|
+
* @param {string} clusterName name of the Cluster
|
|
1308
|
+
* @param {string} accountName name of the account
|
|
1309
|
+
* @param {string} [component] name of the component
|
|
1310
|
+
* @param {*} [options] Override http request option.
|
|
1311
|
+
* @throws {RequiredError}
|
|
1312
|
+
*/
|
|
1313
|
+
getRootSeaweedFSAccountPassword: async (orgName: string, clusterName: string, accountName: string, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1314
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1315
|
+
assertParamExists('getRootSeaweedFSAccountPassword', 'orgName', orgName)
|
|
1316
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1317
|
+
assertParamExists('getRootSeaweedFSAccountPassword', 'clusterName', clusterName)
|
|
1318
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1319
|
+
assertParamExists('getRootSeaweedFSAccountPassword', 'accountName', accountName)
|
|
1320
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
|
|
1321
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1322
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1324
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1325
|
+
let baseOptions;
|
|
1326
|
+
if (configuration) {
|
|
1327
|
+
baseOptions = configuration.baseOptions;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1331
|
+
const localVarHeaderParameter = {} as any;
|
|
1332
|
+
const localVarQueryParameter = {} as any;
|
|
1333
|
+
|
|
1334
|
+
// authentication BearerToken required
|
|
1335
|
+
// http bearer authentication required
|
|
1336
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1337
|
+
|
|
1338
|
+
// authentication DigestAuth required
|
|
1339
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1340
|
+
|
|
1341
|
+
if (accountName !== undefined) {
|
|
1342
|
+
localVarQueryParameter['accountName'] = accountName;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
if (component !== undefined) {
|
|
1346
|
+
localVarQueryParameter['component'] = component;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1352
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1353
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1354
|
+
|
|
1355
|
+
return {
|
|
1356
|
+
url: toPathString(localVarUrlObj),
|
|
1357
|
+
options: localVarRequestOptions,
|
|
1358
|
+
};
|
|
1359
|
+
},
|
|
1360
|
+
/**
|
|
1361
|
+
* get a MinIO service account access key
|
|
1362
|
+
* @summary Get MinIO access key
|
|
1363
|
+
* @param {string} engineName name of the engine
|
|
1364
|
+
* @param {string} orgName name of the organization
|
|
1365
|
+
* @param {string} clusterName name of the cluster
|
|
993
1366
|
* @param {string} accessKey MinIO access key
|
|
994
1367
|
* @param {*} [options] Override http request option.
|
|
995
1368
|
* @throws {RequiredError}
|
|
@@ -1257,6 +1630,96 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1257
1630
|
|
|
1258
1631
|
|
|
1259
1632
|
|
|
1633
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1634
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1635
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1636
|
+
|
|
1637
|
+
return {
|
|
1638
|
+
url: toPathString(localVarUrlObj),
|
|
1639
|
+
options: localVarRequestOptions,
|
|
1640
|
+
};
|
|
1641
|
+
},
|
|
1642
|
+
/**
|
|
1643
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
1644
|
+
* @summary listSeaweedFSAccounts
|
|
1645
|
+
* @param {string} orgName name of the organization
|
|
1646
|
+
* @param {string} clusterName name of the cluster
|
|
1647
|
+
* @param {*} [options] Override http request option.
|
|
1648
|
+
* @throws {RequiredError}
|
|
1649
|
+
*/
|
|
1650
|
+
listSeaweedFSAccounts: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1651
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1652
|
+
assertParamExists('listSeaweedFSAccounts', 'orgName', orgName)
|
|
1653
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1654
|
+
assertParamExists('listSeaweedFSAccounts', 'clusterName', clusterName)
|
|
1655
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1656
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1657
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1658
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1659
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1660
|
+
let baseOptions;
|
|
1661
|
+
if (configuration) {
|
|
1662
|
+
baseOptions = configuration.baseOptions;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1666
|
+
const localVarHeaderParameter = {} as any;
|
|
1667
|
+
const localVarQueryParameter = {} as any;
|
|
1668
|
+
|
|
1669
|
+
// authentication BearerToken required
|
|
1670
|
+
// http bearer authentication required
|
|
1671
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1672
|
+
|
|
1673
|
+
// authentication DigestAuth required
|
|
1674
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1680
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1681
|
+
|
|
1682
|
+
return {
|
|
1683
|
+
url: toPathString(localVarUrlObj),
|
|
1684
|
+
options: localVarRequestOptions,
|
|
1685
|
+
};
|
|
1686
|
+
},
|
|
1687
|
+
/**
|
|
1688
|
+
*
|
|
1689
|
+
* @summary listSeaweedFSPolicies
|
|
1690
|
+
* @param {string} orgName
|
|
1691
|
+
* @param {string} clusterName
|
|
1692
|
+
* @param {*} [options] Override http request option.
|
|
1693
|
+
* @throws {RequiredError}
|
|
1694
|
+
*/
|
|
1695
|
+
listSeaweedFSPolicies: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1696
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1697
|
+
assertParamExists('listSeaweedFSPolicies', 'orgName', orgName)
|
|
1698
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1699
|
+
assertParamExists('listSeaweedFSPolicies', 'clusterName', clusterName)
|
|
1700
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
|
|
1701
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1702
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1703
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1704
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1705
|
+
let baseOptions;
|
|
1706
|
+
if (configuration) {
|
|
1707
|
+
baseOptions = configuration.baseOptions;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1711
|
+
const localVarHeaderParameter = {} as any;
|
|
1712
|
+
const localVarQueryParameter = {} as any;
|
|
1713
|
+
|
|
1714
|
+
// authentication BearerToken required
|
|
1715
|
+
// http bearer authentication required
|
|
1716
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1717
|
+
|
|
1718
|
+
// authentication DigestAuth required
|
|
1719
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
|
|
1260
1723
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1261
1724
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1262
1725
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1373,6 +1836,61 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1373
1836
|
options: localVarRequestOptions,
|
|
1374
1837
|
};
|
|
1375
1838
|
},
|
|
1839
|
+
/**
|
|
1840
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
1841
|
+
* @summary putSeaweedFSPolicy
|
|
1842
|
+
* @param {string} orgName
|
|
1843
|
+
* @param {string} clusterName
|
|
1844
|
+
* @param {string} policyName
|
|
1845
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1846
|
+
* @param {*} [options] Override http request option.
|
|
1847
|
+
* @throws {RequiredError}
|
|
1848
|
+
*/
|
|
1849
|
+
putSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1850
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1851
|
+
assertParamExists('putSeaweedFSPolicy', 'orgName', orgName)
|
|
1852
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1853
|
+
assertParamExists('putSeaweedFSPolicy', 'clusterName', clusterName)
|
|
1854
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
1855
|
+
assertParamExists('putSeaweedFSPolicy', 'policyName', policyName)
|
|
1856
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
1857
|
+
assertParamExists('putSeaweedFSPolicy', 'requestBody', requestBody)
|
|
1858
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
1859
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1860
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1861
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
1862
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1863
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1864
|
+
let baseOptions;
|
|
1865
|
+
if (configuration) {
|
|
1866
|
+
baseOptions = configuration.baseOptions;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1870
|
+
const localVarHeaderParameter = {} as any;
|
|
1871
|
+
const localVarQueryParameter = {} as any;
|
|
1872
|
+
|
|
1873
|
+
// authentication BearerToken required
|
|
1874
|
+
// http bearer authentication required
|
|
1875
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1876
|
+
|
|
1877
|
+
// authentication DigestAuth required
|
|
1878
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1879
|
+
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1883
|
+
|
|
1884
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1886
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1887
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
1888
|
+
|
|
1889
|
+
return {
|
|
1890
|
+
url: toPathString(localVarUrlObj),
|
|
1891
|
+
options: localVarRequestOptions,
|
|
1892
|
+
};
|
|
1893
|
+
},
|
|
1376
1894
|
/**
|
|
1377
1895
|
* unlock an account in cluster
|
|
1378
1896
|
* @summary Unlock cluster account
|
|
@@ -1979,32 +2497,28 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1979
2497
|
};
|
|
1980
2498
|
},
|
|
1981
2499
|
/**
|
|
1982
|
-
*
|
|
1983
|
-
* @summary
|
|
1984
|
-
* @param {string} engineName name of the engine
|
|
2500
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
2501
|
+
* @summary updateSeaweedFSAccount
|
|
1985
2502
|
* @param {string} orgName name of the organization
|
|
1986
2503
|
* @param {string} clusterName name of the cluster
|
|
1987
|
-
* @param {string}
|
|
1988
|
-
* @param {
|
|
2504
|
+
* @param {string} accountName name of the account
|
|
2505
|
+
* @param {Account} body
|
|
1989
2506
|
* @param {*} [options] Override http request option.
|
|
1990
2507
|
* @throws {RequiredError}
|
|
1991
2508
|
*/
|
|
1992
|
-
|
|
1993
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
1994
|
-
assertParamExists('updateServiceAccount', 'engineName', engineName)
|
|
2509
|
+
updateSeaweedFSAccount: async (orgName: string, clusterName: string, accountName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1995
2510
|
// verify required parameter 'orgName' is not null or undefined
|
|
1996
|
-
assertParamExists('
|
|
2511
|
+
assertParamExists('updateSeaweedFSAccount', 'orgName', orgName)
|
|
1997
2512
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1998
|
-
assertParamExists('
|
|
1999
|
-
// verify required parameter '
|
|
2000
|
-
assertParamExists('
|
|
2513
|
+
assertParamExists('updateSeaweedFSAccount', 'clusterName', clusterName)
|
|
2514
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2515
|
+
assertParamExists('updateSeaweedFSAccount', 'accountName', accountName)
|
|
2001
2516
|
// verify required parameter 'body' is not null or undefined
|
|
2002
|
-
assertParamExists('
|
|
2003
|
-
const localVarPath = `/admin/v1/data/
|
|
2004
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2517
|
+
assertParamExists('updateSeaweedFSAccount', 'body', body)
|
|
2518
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
2005
2519
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2006
2520
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2007
|
-
.replace(`{${"
|
|
2521
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2008
2522
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2009
2523
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2010
2524
|
let baseOptions;
|
|
@@ -2037,28 +2551,158 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2037
2551
|
options: localVarRequestOptions,
|
|
2038
2552
|
};
|
|
2039
2553
|
},
|
|
2040
|
-
|
|
2041
|
-
|
|
2554
|
+
/**
|
|
2555
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
2556
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
2557
|
+
* @param {string} orgName name of the Org
|
|
2558
|
+
* @param {string} clusterName name of the Cluster
|
|
2559
|
+
* @param {string} accountName name of the account
|
|
2560
|
+
* @param {Array<PrivilegeListItem>} body
|
|
2561
|
+
* @param {*} [options] Override http request option.
|
|
2562
|
+
* @throws {RequiredError}
|
|
2563
|
+
*/
|
|
2564
|
+
updateSeaweedFSAccountPrivileges: async (orgName: string, clusterName: string, accountName: string, body: Array<PrivilegeListItem>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2565
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2566
|
+
assertParamExists('updateSeaweedFSAccountPrivileges', 'orgName', orgName)
|
|
2567
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2568
|
+
assertParamExists('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName)
|
|
2569
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2570
|
+
assertParamExists('updateSeaweedFSAccountPrivileges', 'accountName', accountName)
|
|
2571
|
+
// verify required parameter 'body' is not null or undefined
|
|
2572
|
+
assertParamExists('updateSeaweedFSAccountPrivileges', 'body', body)
|
|
2573
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
|
|
2574
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2575
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2576
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2577
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2578
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2579
|
+
let baseOptions;
|
|
2580
|
+
if (configuration) {
|
|
2581
|
+
baseOptions = configuration.baseOptions;
|
|
2582
|
+
}
|
|
2042
2583
|
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2584
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2585
|
+
const localVarHeaderParameter = {} as any;
|
|
2586
|
+
const localVarQueryParameter = {} as any;
|
|
2587
|
+
|
|
2588
|
+
// authentication BearerToken required
|
|
2589
|
+
// http bearer authentication required
|
|
2590
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2591
|
+
|
|
2592
|
+
// authentication DigestAuth required
|
|
2593
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2594
|
+
|
|
2595
|
+
|
|
2596
|
+
|
|
2597
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2598
|
+
|
|
2599
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2600
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2601
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2602
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2603
|
+
|
|
2604
|
+
return {
|
|
2605
|
+
url: toPathString(localVarUrlObj),
|
|
2606
|
+
options: localVarRequestOptions,
|
|
2607
|
+
};
|
|
2608
|
+
},
|
|
2050
2609
|
/**
|
|
2051
|
-
*
|
|
2052
|
-
* @summary
|
|
2610
|
+
* update a MinIO service account access key
|
|
2611
|
+
* @summary Update MinIO access key
|
|
2053
2612
|
* @param {string} engineName name of the engine
|
|
2054
2613
|
* @param {string} orgName name of the organization
|
|
2055
2614
|
* @param {string} clusterName name of the cluster
|
|
2056
|
-
* @param {
|
|
2615
|
+
* @param {string} accessKey MinIO access key
|
|
2616
|
+
* @param {DmsServiceAccountUpdateRequest} body
|
|
2057
2617
|
* @param {*} [options] Override http request option.
|
|
2058
2618
|
* @throws {RequiredError}
|
|
2059
2619
|
*/
|
|
2060
|
-
async
|
|
2061
|
-
|
|
2620
|
+
updateServiceAccount: async (engineName: string, orgName: string, clusterName: string, accessKey: string, body: DmsServiceAccountUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2621
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
2622
|
+
assertParamExists('updateServiceAccount', 'engineName', engineName)
|
|
2623
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2624
|
+
assertParamExists('updateServiceAccount', 'orgName', orgName)
|
|
2625
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2626
|
+
assertParamExists('updateServiceAccount', 'clusterName', clusterName)
|
|
2627
|
+
// verify required parameter 'accessKey' is not null or undefined
|
|
2628
|
+
assertParamExists('updateServiceAccount', 'accessKey', accessKey)
|
|
2629
|
+
// verify required parameter 'body' is not null or undefined
|
|
2630
|
+
assertParamExists('updateServiceAccount', 'body', body)
|
|
2631
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
|
|
2632
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2633
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2634
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2635
|
+
.replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
|
|
2636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2637
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2638
|
+
let baseOptions;
|
|
2639
|
+
if (configuration) {
|
|
2640
|
+
baseOptions = configuration.baseOptions;
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
2644
|
+
const localVarHeaderParameter = {} as any;
|
|
2645
|
+
const localVarQueryParameter = {} as any;
|
|
2646
|
+
|
|
2647
|
+
// authentication BearerToken required
|
|
2648
|
+
// http bearer authentication required
|
|
2649
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2650
|
+
|
|
2651
|
+
// authentication DigestAuth required
|
|
2652
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
|
|
2656
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2657
|
+
|
|
2658
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2659
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2660
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2661
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2662
|
+
|
|
2663
|
+
return {
|
|
2664
|
+
url: toPathString(localVarUrlObj),
|
|
2665
|
+
options: localVarRequestOptions,
|
|
2666
|
+
};
|
|
2667
|
+
},
|
|
2668
|
+
}
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* AccountApi - functional programming interface
|
|
2673
|
+
* @export
|
|
2674
|
+
*/
|
|
2675
|
+
export const AccountApiFp = function(configuration?: Configuration) {
|
|
2676
|
+
const localVarAxiosParamCreator = AccountApiAxiosParamCreator(configuration)
|
|
2677
|
+
return {
|
|
2678
|
+
/**
|
|
2679
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
2680
|
+
* @summary bindSeaweedFSPolicies
|
|
2681
|
+
* @param {string} orgName
|
|
2682
|
+
* @param {string} clusterName
|
|
2683
|
+
* @param {string} accountName
|
|
2684
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
2685
|
+
* @param {*} [options] Override http request option.
|
|
2686
|
+
* @throws {RequiredError}
|
|
2687
|
+
*/
|
|
2688
|
+
async bindSeaweedFSPolicies(orgName: string, clusterName: string, accountName: string, bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
|
|
2690
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2691
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.bindSeaweedFSPolicies']?.[localVarOperationServerIndex]?.url;
|
|
2692
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2693
|
+
},
|
|
2694
|
+
/**
|
|
2695
|
+
* create an account in cluster
|
|
2696
|
+
* @summary Create cluster account
|
|
2697
|
+
* @param {string} engineName name of the engine
|
|
2698
|
+
* @param {string} orgName name of the organization
|
|
2699
|
+
* @param {string} clusterName name of the cluster
|
|
2700
|
+
* @param {Account} body
|
|
2701
|
+
* @param {*} [options] Override http request option.
|
|
2702
|
+
* @throws {RequiredError}
|
|
2703
|
+
*/
|
|
2704
|
+
async createAccount(engineName: string, orgName: string, clusterName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
|
|
2705
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAccount(engineName, orgName, clusterName, body, options);
|
|
2062
2706
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2063
2707
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.createAccount']?.[localVarOperationServerIndex]?.url;
|
|
2064
2708
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2138,6 +2782,37 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2138
2782
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.createRabbitAccount']?.[localVarOperationServerIndex]?.url;
|
|
2139
2783
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2140
2784
|
},
|
|
2785
|
+
/**
|
|
2786
|
+
* 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.
|
|
2787
|
+
* @summary createSeaweedFSAccessKey
|
|
2788
|
+
* @param {string} orgName
|
|
2789
|
+
* @param {string} clusterName
|
|
2790
|
+
* @param {string} accountName
|
|
2791
|
+
* @param {Account} account
|
|
2792
|
+
* @param {*} [options] Override http request option.
|
|
2793
|
+
* @throws {RequiredError}
|
|
2794
|
+
*/
|
|
2795
|
+
async createSeaweedFSAccessKey(orgName: string, clusterName: string, accountName: string, account: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
|
|
2796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
|
|
2797
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2798
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.createSeaweedFSAccessKey']?.[localVarOperationServerIndex]?.url;
|
|
2799
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2800
|
+
},
|
|
2801
|
+
/**
|
|
2802
|
+
* 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.
|
|
2803
|
+
* @summary createSeaweedFSAccount
|
|
2804
|
+
* @param {string} orgName name of the organization
|
|
2805
|
+
* @param {string} clusterName name of the cluster
|
|
2806
|
+
* @param {Account} body
|
|
2807
|
+
* @param {*} [options] Override http request option.
|
|
2808
|
+
* @throws {RequiredError}
|
|
2809
|
+
*/
|
|
2810
|
+
async createSeaweedFSAccount(orgName: string, clusterName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
|
|
2811
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
|
|
2812
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2813
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.createSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
|
|
2814
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2815
|
+
},
|
|
2141
2816
|
/**
|
|
2142
2817
|
* create a MinIO service account access key
|
|
2143
2818
|
* @summary Create MinIO access key
|
|
@@ -2260,6 +2935,52 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2260
2935
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.deleteRabbitAccount']?.[localVarOperationServerIndex]?.url;
|
|
2261
2936
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2262
2937
|
},
|
|
2938
|
+
/**
|
|
2939
|
+
*
|
|
2940
|
+
* @summary deleteSeaweedFSAccessKey
|
|
2941
|
+
* @param {string} orgName
|
|
2942
|
+
* @param {string} clusterName
|
|
2943
|
+
* @param {string} accountName
|
|
2944
|
+
* @param {string} accessKey
|
|
2945
|
+
* @param {*} [options] Override http request option.
|
|
2946
|
+
* @throws {RequiredError}
|
|
2947
|
+
*/
|
|
2948
|
+
async deleteSeaweedFSAccessKey(orgName: string, clusterName: string, accountName: string, accessKey: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2949
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
|
|
2950
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2951
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.deleteSeaweedFSAccessKey']?.[localVarOperationServerIndex]?.url;
|
|
2952
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2953
|
+
},
|
|
2954
|
+
/**
|
|
2955
|
+
* delete an account in cluster
|
|
2956
|
+
* @summary deleteSeaweedFSAccount
|
|
2957
|
+
* @param {string} orgName name of the organization
|
|
2958
|
+
* @param {string} clusterName name of the cluster
|
|
2959
|
+
* @param {string} accountName name of the account
|
|
2960
|
+
* @param {*} [options] Override http request option.
|
|
2961
|
+
* @throws {RequiredError}
|
|
2962
|
+
*/
|
|
2963
|
+
async deleteSeaweedFSAccount(orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2964
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
|
|
2965
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2966
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.deleteSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
|
|
2967
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2968
|
+
},
|
|
2969
|
+
/**
|
|
2970
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
2971
|
+
* @summary deleteSeaweedFSPolicy
|
|
2972
|
+
* @param {string} orgName
|
|
2973
|
+
* @param {string} clusterName
|
|
2974
|
+
* @param {string} policyName
|
|
2975
|
+
* @param {*} [options] Override http request option.
|
|
2976
|
+
* @throws {RequiredError}
|
|
2977
|
+
*/
|
|
2978
|
+
async deleteSeaweedFSPolicy(orgName: string, clusterName: string, policyName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2979
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
|
|
2980
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2981
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.deleteSeaweedFSPolicy']?.[localVarOperationServerIndex]?.url;
|
|
2982
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2983
|
+
},
|
|
2263
2984
|
/**
|
|
2264
2985
|
* delete a MinIO service account access key
|
|
2265
2986
|
* @summary Delete MinIO access key
|
|
@@ -2322,6 +3043,22 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2322
3043
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.getRootAccountPassword']?.[localVarOperationServerIndex]?.url;
|
|
2323
3044
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2324
3045
|
},
|
|
3046
|
+
/**
|
|
3047
|
+
* get root account password
|
|
3048
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
3049
|
+
* @param {string} orgName name of the Org
|
|
3050
|
+
* @param {string} clusterName name of the Cluster
|
|
3051
|
+
* @param {string} accountName name of the account
|
|
3052
|
+
* @param {string} [component] name of the component
|
|
3053
|
+
* @param {*} [options] Override http request option.
|
|
3054
|
+
* @throws {RequiredError}
|
|
3055
|
+
*/
|
|
3056
|
+
async getRootSeaweedFSAccountPassword(orgName: string, clusterName: string, accountName: string, component?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
3057
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
|
|
3058
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3059
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.getRootSeaweedFSAccountPassword']?.[localVarOperationServerIndex]?.url;
|
|
3060
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3061
|
+
},
|
|
2325
3062
|
/**
|
|
2326
3063
|
* get a MinIO service account access key
|
|
2327
3064
|
* @summary Get MinIO access key
|
|
@@ -2409,6 +3146,34 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2409
3146
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.listRabbitAccounts']?.[localVarOperationServerIndex]?.url;
|
|
2410
3147
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2411
3148
|
},
|
|
3149
|
+
/**
|
|
3150
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
3151
|
+
* @summary listSeaweedFSAccounts
|
|
3152
|
+
* @param {string} orgName name of the organization
|
|
3153
|
+
* @param {string} clusterName name of the cluster
|
|
3154
|
+
* @param {*} [options] Override http request option.
|
|
3155
|
+
* @throws {RequiredError}
|
|
3156
|
+
*/
|
|
3157
|
+
async listSeaweedFSAccounts(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountListItem>>> {
|
|
3158
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
|
|
3159
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3160
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.listSeaweedFSAccounts']?.[localVarOperationServerIndex]?.url;
|
|
3161
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3162
|
+
},
|
|
3163
|
+
/**
|
|
3164
|
+
*
|
|
3165
|
+
* @summary listSeaweedFSPolicies
|
|
3166
|
+
* @param {string} orgName
|
|
3167
|
+
* @param {string} clusterName
|
|
3168
|
+
* @param {*} [options] Override http request option.
|
|
3169
|
+
* @throws {RequiredError}
|
|
3170
|
+
*/
|
|
3171
|
+
async listSeaweedFSPolicies(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSeaweedFSPolicies200Response>> {
|
|
3172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
|
|
3173
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3174
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.listSeaweedFSPolicies']?.[localVarOperationServerIndex]?.url;
|
|
3175
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3176
|
+
},
|
|
2412
3177
|
/**
|
|
2413
3178
|
* list MinIO service account access keys
|
|
2414
3179
|
* @summary List MinIO access keys
|
|
@@ -2441,6 +3206,22 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2441
3206
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.lockAccount']?.[localVarOperationServerIndex]?.url;
|
|
2442
3207
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2443
3208
|
},
|
|
3209
|
+
/**
|
|
3210
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
3211
|
+
* @summary putSeaweedFSPolicy
|
|
3212
|
+
* @param {string} orgName
|
|
3213
|
+
* @param {string} clusterName
|
|
3214
|
+
* @param {string} policyName
|
|
3215
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3216
|
+
* @param {*} [options] Override http request option.
|
|
3217
|
+
* @throws {RequiredError}
|
|
3218
|
+
*/
|
|
3219
|
+
async putSeaweedFSPolicy(orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
|
|
3221
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3222
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.putSeaweedFSPolicy']?.[localVarOperationServerIndex]?.url;
|
|
3223
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3224
|
+
},
|
|
2444
3225
|
/**
|
|
2445
3226
|
* unlock an account in cluster
|
|
2446
3227
|
* @summary Unlock cluster account
|
|
@@ -2618,6 +3399,38 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2618
3399
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.updateRabbitAccountPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
2619
3400
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2620
3401
|
},
|
|
3402
|
+
/**
|
|
3403
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
3404
|
+
* @summary updateSeaweedFSAccount
|
|
3405
|
+
* @param {string} orgName name of the organization
|
|
3406
|
+
* @param {string} clusterName name of the cluster
|
|
3407
|
+
* @param {string} accountName name of the account
|
|
3408
|
+
* @param {Account} body
|
|
3409
|
+
* @param {*} [options] Override http request option.
|
|
3410
|
+
* @throws {RequiredError}
|
|
3411
|
+
*/
|
|
3412
|
+
async updateSeaweedFSAccount(orgName: string, clusterName: string, accountName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
|
|
3413
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
|
|
3414
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3415
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.updateSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
|
|
3416
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3417
|
+
},
|
|
3418
|
+
/**
|
|
3419
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
3420
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
3421
|
+
* @param {string} orgName name of the Org
|
|
3422
|
+
* @param {string} clusterName name of the Cluster
|
|
3423
|
+
* @param {string} accountName name of the account
|
|
3424
|
+
* @param {Array<PrivilegeListItem>} body
|
|
3425
|
+
* @param {*} [options] Override http request option.
|
|
3426
|
+
* @throws {RequiredError}
|
|
3427
|
+
*/
|
|
3428
|
+
async updateSeaweedFSAccountPrivileges(orgName: string, clusterName: string, accountName: string, body: Array<PrivilegeListItem>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
|
|
3430
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3431
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.updateSeaweedFSAccountPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
3432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3433
|
+
},
|
|
2621
3434
|
/**
|
|
2622
3435
|
* update a MinIO service account access key
|
|
2623
3436
|
* @summary Update MinIO access key
|
|
@@ -2645,6 +3458,16 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2645
3458
|
export const AccountApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2646
3459
|
const localVarFp = AccountApiFp(configuration)
|
|
2647
3460
|
return {
|
|
3461
|
+
/**
|
|
3462
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
3463
|
+
* @summary bindSeaweedFSPolicies
|
|
3464
|
+
* @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
3465
|
+
* @param {*} [options] Override http request option.
|
|
3466
|
+
* @throws {RequiredError}
|
|
3467
|
+
*/
|
|
3468
|
+
bindSeaweedFSPolicies(requestParameters: AccountApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3469
|
+
return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
|
|
3470
|
+
},
|
|
2648
3471
|
/**
|
|
2649
3472
|
* create an account in cluster
|
|
2650
3473
|
* @summary Create cluster account
|
|
@@ -2705,6 +3528,26 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
2705
3528
|
createRabbitAccount(requestParameters: AccountApiCreateRabbitAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2706
3529
|
return localVarFp.createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(axios, basePath));
|
|
2707
3530
|
},
|
|
3531
|
+
/**
|
|
3532
|
+
* 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.
|
|
3533
|
+
* @summary createSeaweedFSAccessKey
|
|
3534
|
+
* @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
3535
|
+
* @param {*} [options] Override http request option.
|
|
3536
|
+
* @throws {RequiredError}
|
|
3537
|
+
*/
|
|
3538
|
+
createSeaweedFSAccessKey(requestParameters: AccountApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
|
|
3539
|
+
return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
|
|
3540
|
+
},
|
|
3541
|
+
/**
|
|
3542
|
+
* 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.
|
|
3543
|
+
* @summary createSeaweedFSAccount
|
|
3544
|
+
* @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
3545
|
+
* @param {*} [options] Override http request option.
|
|
3546
|
+
* @throws {RequiredError}
|
|
3547
|
+
*/
|
|
3548
|
+
createSeaweedFSAccount(requestParameters: AccountApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
|
|
3549
|
+
return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
3550
|
+
},
|
|
2708
3551
|
/**
|
|
2709
3552
|
* create a MinIO service account access key
|
|
2710
3553
|
* @summary Create MinIO access key
|
|
@@ -2785,6 +3628,36 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
2785
3628
|
deleteRabbitAccount(requestParameters: AccountApiDeleteRabbitAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2786
3629
|
return localVarFp.deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
2787
3630
|
},
|
|
3631
|
+
/**
|
|
3632
|
+
*
|
|
3633
|
+
* @summary deleteSeaweedFSAccessKey
|
|
3634
|
+
* @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
3635
|
+
* @param {*} [options] Override http request option.
|
|
3636
|
+
* @throws {RequiredError}
|
|
3637
|
+
*/
|
|
3638
|
+
deleteSeaweedFSAccessKey(requestParameters: AccountApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3639
|
+
return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
|
|
3640
|
+
},
|
|
3641
|
+
/**
|
|
3642
|
+
* delete an account in cluster
|
|
3643
|
+
* @summary deleteSeaweedFSAccount
|
|
3644
|
+
* @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
3645
|
+
* @param {*} [options] Override http request option.
|
|
3646
|
+
* @throws {RequiredError}
|
|
3647
|
+
*/
|
|
3648
|
+
deleteSeaweedFSAccount(requestParameters: AccountApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3649
|
+
return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
3650
|
+
},
|
|
3651
|
+
/**
|
|
3652
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
3653
|
+
* @summary deleteSeaweedFSPolicy
|
|
3654
|
+
* @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
3655
|
+
* @param {*} [options] Override http request option.
|
|
3656
|
+
* @throws {RequiredError}
|
|
3657
|
+
*/
|
|
3658
|
+
deleteSeaweedFSPolicy(requestParameters: AccountApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3659
|
+
return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
|
|
3660
|
+
},
|
|
2788
3661
|
/**
|
|
2789
3662
|
* delete a MinIO service account access key
|
|
2790
3663
|
* @summary Delete MinIO access key
|
|
@@ -2825,6 +3698,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
2825
3698
|
getRootAccountPassword(requestParameters: AccountApiGetRootAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
2826
3699
|
return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
2827
3700
|
},
|
|
3701
|
+
/**
|
|
3702
|
+
* get root account password
|
|
3703
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
3704
|
+
* @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
3705
|
+
* @param {*} [options] Override http request option.
|
|
3706
|
+
* @throws {RequiredError}
|
|
3707
|
+
*/
|
|
3708
|
+
getRootSeaweedFSAccountPassword(requestParameters: AccountApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
3709
|
+
return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
3710
|
+
},
|
|
2828
3711
|
/**
|
|
2829
3712
|
* get a MinIO service account access key
|
|
2830
3713
|
* @summary Get MinIO access key
|
|
@@ -2885,6 +3768,26 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
2885
3768
|
listRabbitAccounts(requestParameters: AccountApiListRabbitAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<RbmqAccountsList> {
|
|
2886
3769
|
return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
2887
3770
|
},
|
|
3771
|
+
/**
|
|
3772
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
3773
|
+
* @summary listSeaweedFSAccounts
|
|
3774
|
+
* @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
3775
|
+
* @param {*} [options] Override http request option.
|
|
3776
|
+
* @throws {RequiredError}
|
|
3777
|
+
*/
|
|
3778
|
+
listSeaweedFSAccounts(requestParameters: AccountApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountListItem>> {
|
|
3779
|
+
return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
3780
|
+
},
|
|
3781
|
+
/**
|
|
3782
|
+
*
|
|
3783
|
+
* @summary listSeaweedFSPolicies
|
|
3784
|
+
* @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
3785
|
+
* @param {*} [options] Override http request option.
|
|
3786
|
+
* @throws {RequiredError}
|
|
3787
|
+
*/
|
|
3788
|
+
listSeaweedFSPolicies(requestParameters: AccountApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSeaweedFSPolicies200Response> {
|
|
3789
|
+
return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
3790
|
+
},
|
|
2888
3791
|
/**
|
|
2889
3792
|
* list MinIO service account access keys
|
|
2890
3793
|
* @summary List MinIO access keys
|
|
@@ -2905,6 +3808,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
2905
3808
|
lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2906
3809
|
return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
2907
3810
|
},
|
|
3811
|
+
/**
|
|
3812
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
3813
|
+
* @summary putSeaweedFSPolicy
|
|
3814
|
+
* @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
3815
|
+
* @param {*} [options] Override http request option.
|
|
3816
|
+
* @throws {RequiredError}
|
|
3817
|
+
*/
|
|
3818
|
+
putSeaweedFSPolicy(requestParameters: AccountApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3819
|
+
return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
3820
|
+
},
|
|
2908
3821
|
/**
|
|
2909
3822
|
* unlock an account in cluster
|
|
2910
3823
|
* @summary Unlock cluster account
|
|
@@ -3015,6 +3928,26 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
3015
3928
|
updateRabbitAccountPrivileges(requestParameters: AccountApiUpdateRabbitAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3016
3929
|
return localVarFp.updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(axios, basePath));
|
|
3017
3930
|
},
|
|
3931
|
+
/**
|
|
3932
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
3933
|
+
* @summary updateSeaweedFSAccount
|
|
3934
|
+
* @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
3935
|
+
* @param {*} [options] Override http request option.
|
|
3936
|
+
* @throws {RequiredError}
|
|
3937
|
+
*/
|
|
3938
|
+
updateSeaweedFSAccount(requestParameters: AccountApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
|
|
3939
|
+
return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
3940
|
+
},
|
|
3941
|
+
/**
|
|
3942
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
3943
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
3944
|
+
* @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
3945
|
+
* @param {*} [options] Override http request option.
|
|
3946
|
+
* @throws {RequiredError}
|
|
3947
|
+
*/
|
|
3948
|
+
updateSeaweedFSAccountPrivileges(requestParameters: AccountApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3949
|
+
return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
3950
|
+
},
|
|
3018
3951
|
/**
|
|
3019
3952
|
* update a MinIO service account access key
|
|
3020
3953
|
* @summary Update MinIO access key
|
|
@@ -3034,6 +3967,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
3034
3967
|
* @interface AccountApi
|
|
3035
3968
|
*/
|
|
3036
3969
|
export interface AccountApiInterface {
|
|
3970
|
+
/**
|
|
3971
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
3972
|
+
* @summary bindSeaweedFSPolicies
|
|
3973
|
+
* @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
3974
|
+
* @param {*} [options] Override http request option.
|
|
3975
|
+
* @throws {RequiredError}
|
|
3976
|
+
* @memberof AccountApiInterface
|
|
3977
|
+
*/
|
|
3978
|
+
bindSeaweedFSPolicies(requestParameters: AccountApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3979
|
+
|
|
3037
3980
|
/**
|
|
3038
3981
|
* create an account in cluster
|
|
3039
3982
|
* @summary Create cluster account
|
|
@@ -3094,6 +4037,26 @@ export interface AccountApiInterface {
|
|
|
3094
4037
|
*/
|
|
3095
4038
|
createRabbitAccount(requestParameters: AccountApiCreateRabbitAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3096
4039
|
|
|
4040
|
+
/**
|
|
4041
|
+
* 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.
|
|
4042
|
+
* @summary createSeaweedFSAccessKey
|
|
4043
|
+
* @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
4044
|
+
* @param {*} [options] Override http request option.
|
|
4045
|
+
* @throws {RequiredError}
|
|
4046
|
+
* @memberof AccountApiInterface
|
|
4047
|
+
*/
|
|
4048
|
+
createSeaweedFSAccessKey(requestParameters: AccountApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
|
|
4049
|
+
|
|
4050
|
+
/**
|
|
4051
|
+
* 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.
|
|
4052
|
+
* @summary createSeaweedFSAccount
|
|
4053
|
+
* @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
4054
|
+
* @param {*} [options] Override http request option.
|
|
4055
|
+
* @throws {RequiredError}
|
|
4056
|
+
* @memberof AccountApiInterface
|
|
4057
|
+
*/
|
|
4058
|
+
createSeaweedFSAccount(requestParameters: AccountApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
|
|
4059
|
+
|
|
3097
4060
|
/**
|
|
3098
4061
|
* create a MinIO service account access key
|
|
3099
4062
|
* @summary Create MinIO access key
|
|
@@ -3174,6 +4137,36 @@ export interface AccountApiInterface {
|
|
|
3174
4137
|
*/
|
|
3175
4138
|
deleteRabbitAccount(requestParameters: AccountApiDeleteRabbitAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3176
4139
|
|
|
4140
|
+
/**
|
|
4141
|
+
*
|
|
4142
|
+
* @summary deleteSeaweedFSAccessKey
|
|
4143
|
+
* @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
4144
|
+
* @param {*} [options] Override http request option.
|
|
4145
|
+
* @throws {RequiredError}
|
|
4146
|
+
* @memberof AccountApiInterface
|
|
4147
|
+
*/
|
|
4148
|
+
deleteSeaweedFSAccessKey(requestParameters: AccountApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4149
|
+
|
|
4150
|
+
/**
|
|
4151
|
+
* delete an account in cluster
|
|
4152
|
+
* @summary deleteSeaweedFSAccount
|
|
4153
|
+
* @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
4154
|
+
* @param {*} [options] Override http request option.
|
|
4155
|
+
* @throws {RequiredError}
|
|
4156
|
+
* @memberof AccountApiInterface
|
|
4157
|
+
*/
|
|
4158
|
+
deleteSeaweedFSAccount(requestParameters: AccountApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4159
|
+
|
|
4160
|
+
/**
|
|
4161
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
4162
|
+
* @summary deleteSeaweedFSPolicy
|
|
4163
|
+
* @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
4164
|
+
* @param {*} [options] Override http request option.
|
|
4165
|
+
* @throws {RequiredError}
|
|
4166
|
+
* @memberof AccountApiInterface
|
|
4167
|
+
*/
|
|
4168
|
+
deleteSeaweedFSPolicy(requestParameters: AccountApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4169
|
+
|
|
3177
4170
|
/**
|
|
3178
4171
|
* delete a MinIO service account access key
|
|
3179
4172
|
* @summary Delete MinIO access key
|
|
@@ -3214,6 +4207,16 @@ export interface AccountApiInterface {
|
|
|
3214
4207
|
*/
|
|
3215
4208
|
getRootAccountPassword(requestParameters: AccountApiGetRootAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
3216
4209
|
|
|
4210
|
+
/**
|
|
4211
|
+
* get root account password
|
|
4212
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
4213
|
+
* @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
4214
|
+
* @param {*} [options] Override http request option.
|
|
4215
|
+
* @throws {RequiredError}
|
|
4216
|
+
* @memberof AccountApiInterface
|
|
4217
|
+
*/
|
|
4218
|
+
getRootSeaweedFSAccountPassword(requestParameters: AccountApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
4219
|
+
|
|
3217
4220
|
/**
|
|
3218
4221
|
* get a MinIO service account access key
|
|
3219
4222
|
* @summary Get MinIO access key
|
|
@@ -3274,6 +4277,26 @@ export interface AccountApiInterface {
|
|
|
3274
4277
|
*/
|
|
3275
4278
|
listRabbitAccounts(requestParameters: AccountApiListRabbitAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<RbmqAccountsList>;
|
|
3276
4279
|
|
|
4280
|
+
/**
|
|
4281
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
4282
|
+
* @summary listSeaweedFSAccounts
|
|
4283
|
+
* @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
4284
|
+
* @param {*} [options] Override http request option.
|
|
4285
|
+
* @throws {RequiredError}
|
|
4286
|
+
* @memberof AccountApiInterface
|
|
4287
|
+
*/
|
|
4288
|
+
listSeaweedFSAccounts(requestParameters: AccountApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountListItem>>;
|
|
4289
|
+
|
|
4290
|
+
/**
|
|
4291
|
+
*
|
|
4292
|
+
* @summary listSeaweedFSPolicies
|
|
4293
|
+
* @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
4294
|
+
* @param {*} [options] Override http request option.
|
|
4295
|
+
* @throws {RequiredError}
|
|
4296
|
+
* @memberof AccountApiInterface
|
|
4297
|
+
*/
|
|
4298
|
+
listSeaweedFSPolicies(requestParameters: AccountApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSeaweedFSPolicies200Response>;
|
|
4299
|
+
|
|
3277
4300
|
/**
|
|
3278
4301
|
* list MinIO service account access keys
|
|
3279
4302
|
* @summary List MinIO access keys
|
|
@@ -3294,6 +4317,16 @@ export interface AccountApiInterface {
|
|
|
3294
4317
|
*/
|
|
3295
4318
|
lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3296
4319
|
|
|
4320
|
+
/**
|
|
4321
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
4322
|
+
* @summary putSeaweedFSPolicy
|
|
4323
|
+
* @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
4324
|
+
* @param {*} [options] Override http request option.
|
|
4325
|
+
* @throws {RequiredError}
|
|
4326
|
+
* @memberof AccountApiInterface
|
|
4327
|
+
*/
|
|
4328
|
+
putSeaweedFSPolicy(requestParameters: AccountApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4329
|
+
|
|
3297
4330
|
/**
|
|
3298
4331
|
* unlock an account in cluster
|
|
3299
4332
|
* @summary Unlock cluster account
|
|
@@ -3404,6 +4437,26 @@ export interface AccountApiInterface {
|
|
|
3404
4437
|
*/
|
|
3405
4438
|
updateRabbitAccountPrivileges(requestParameters: AccountApiUpdateRabbitAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3406
4439
|
|
|
4440
|
+
/**
|
|
4441
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
4442
|
+
* @summary updateSeaweedFSAccount
|
|
4443
|
+
* @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
4444
|
+
* @param {*} [options] Override http request option.
|
|
4445
|
+
* @throws {RequiredError}
|
|
4446
|
+
* @memberof AccountApiInterface
|
|
4447
|
+
*/
|
|
4448
|
+
updateSeaweedFSAccount(requestParameters: AccountApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
|
|
4449
|
+
|
|
4450
|
+
/**
|
|
4451
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
4452
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
4453
|
+
* @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
4454
|
+
* @param {*} [options] Override http request option.
|
|
4455
|
+
* @throws {RequiredError}
|
|
4456
|
+
* @memberof AccountApiInterface
|
|
4457
|
+
*/
|
|
4458
|
+
updateSeaweedFSAccountPrivileges(requestParameters: AccountApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4459
|
+
|
|
3407
4460
|
/**
|
|
3408
4461
|
* update a MinIO service account access key
|
|
3409
4462
|
* @summary Update MinIO access key
|
|
@@ -3416,6 +4469,41 @@ export interface AccountApiInterface {
|
|
|
3416
4469
|
|
|
3417
4470
|
}
|
|
3418
4471
|
|
|
4472
|
+
/**
|
|
4473
|
+
* Request parameters for bindSeaweedFSPolicies operation in AccountApi.
|
|
4474
|
+
* @export
|
|
4475
|
+
* @interface AccountApiBindSeaweedFSPoliciesRequest
|
|
4476
|
+
*/
|
|
4477
|
+
export interface AccountApiBindSeaweedFSPoliciesRequest {
|
|
4478
|
+
/**
|
|
4479
|
+
*
|
|
4480
|
+
* @type {string}
|
|
4481
|
+
* @memberof AccountApiBindSeaweedFSPolicies
|
|
4482
|
+
*/
|
|
4483
|
+
readonly orgName: string
|
|
4484
|
+
|
|
4485
|
+
/**
|
|
4486
|
+
*
|
|
4487
|
+
* @type {string}
|
|
4488
|
+
* @memberof AccountApiBindSeaweedFSPolicies
|
|
4489
|
+
*/
|
|
4490
|
+
readonly clusterName: string
|
|
4491
|
+
|
|
4492
|
+
/**
|
|
4493
|
+
*
|
|
4494
|
+
* @type {string}
|
|
4495
|
+
* @memberof AccountApiBindSeaweedFSPolicies
|
|
4496
|
+
*/
|
|
4497
|
+
readonly accountName: string
|
|
4498
|
+
|
|
4499
|
+
/**
|
|
4500
|
+
*
|
|
4501
|
+
* @type {BindSeaweedFSPoliciesRequest}
|
|
4502
|
+
* @memberof AccountApiBindSeaweedFSPolicies
|
|
4503
|
+
*/
|
|
4504
|
+
readonly bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest
|
|
4505
|
+
}
|
|
4506
|
+
|
|
3419
4507
|
/**
|
|
3420
4508
|
* Request parameters for createAccount operation in AccountApi.
|
|
3421
4509
|
* @export
|
|
@@ -3591,6 +4679,69 @@ export interface AccountApiCreateRabbitAccountRequest {
|
|
|
3591
4679
|
readonly rbmqAccountRequest: RbmqAccountRequest
|
|
3592
4680
|
}
|
|
3593
4681
|
|
|
4682
|
+
/**
|
|
4683
|
+
* Request parameters for createSeaweedFSAccessKey operation in AccountApi.
|
|
4684
|
+
* @export
|
|
4685
|
+
* @interface AccountApiCreateSeaweedFSAccessKeyRequest
|
|
4686
|
+
*/
|
|
4687
|
+
export interface AccountApiCreateSeaweedFSAccessKeyRequest {
|
|
4688
|
+
/**
|
|
4689
|
+
*
|
|
4690
|
+
* @type {string}
|
|
4691
|
+
* @memberof AccountApiCreateSeaweedFSAccessKey
|
|
4692
|
+
*/
|
|
4693
|
+
readonly orgName: string
|
|
4694
|
+
|
|
4695
|
+
/**
|
|
4696
|
+
*
|
|
4697
|
+
* @type {string}
|
|
4698
|
+
* @memberof AccountApiCreateSeaweedFSAccessKey
|
|
4699
|
+
*/
|
|
4700
|
+
readonly clusterName: string
|
|
4701
|
+
|
|
4702
|
+
/**
|
|
4703
|
+
*
|
|
4704
|
+
* @type {string}
|
|
4705
|
+
* @memberof AccountApiCreateSeaweedFSAccessKey
|
|
4706
|
+
*/
|
|
4707
|
+
readonly accountName: string
|
|
4708
|
+
|
|
4709
|
+
/**
|
|
4710
|
+
*
|
|
4711
|
+
* @type {Account}
|
|
4712
|
+
* @memberof AccountApiCreateSeaweedFSAccessKey
|
|
4713
|
+
*/
|
|
4714
|
+
readonly account: Account
|
|
4715
|
+
}
|
|
4716
|
+
|
|
4717
|
+
/**
|
|
4718
|
+
* Request parameters for createSeaweedFSAccount operation in AccountApi.
|
|
4719
|
+
* @export
|
|
4720
|
+
* @interface AccountApiCreateSeaweedFSAccountRequest
|
|
4721
|
+
*/
|
|
4722
|
+
export interface AccountApiCreateSeaweedFSAccountRequest {
|
|
4723
|
+
/**
|
|
4724
|
+
* name of the organization
|
|
4725
|
+
* @type {string}
|
|
4726
|
+
* @memberof AccountApiCreateSeaweedFSAccount
|
|
4727
|
+
*/
|
|
4728
|
+
readonly orgName: string
|
|
4729
|
+
|
|
4730
|
+
/**
|
|
4731
|
+
* name of the cluster
|
|
4732
|
+
* @type {string}
|
|
4733
|
+
* @memberof AccountApiCreateSeaweedFSAccount
|
|
4734
|
+
*/
|
|
4735
|
+
readonly clusterName: string
|
|
4736
|
+
|
|
4737
|
+
/**
|
|
4738
|
+
*
|
|
4739
|
+
* @type {Account}
|
|
4740
|
+
* @memberof AccountApiCreateSeaweedFSAccount
|
|
4741
|
+
*/
|
|
4742
|
+
readonly body: Account
|
|
4743
|
+
}
|
|
4744
|
+
|
|
3594
4745
|
/**
|
|
3595
4746
|
* Request parameters for createServiceAccount operation in AccountApi.
|
|
3596
4747
|
* @export
|
|
@@ -3766,67 +4917,158 @@ export interface AccountApiDeleteMongoDBAccountRequest {
|
|
|
3766
4917
|
readonly clusterName: string
|
|
3767
4918
|
|
|
3768
4919
|
/**
|
|
3769
|
-
* name of the Cluster
|
|
4920
|
+
* name of the Cluster
|
|
4921
|
+
* @type {string}
|
|
4922
|
+
* @memberof AccountApiDeleteMongoDBAccount
|
|
4923
|
+
*/
|
|
4924
|
+
readonly accountName: string
|
|
4925
|
+
}
|
|
4926
|
+
|
|
4927
|
+
/**
|
|
4928
|
+
* Request parameters for deleteMssqlAccount operation in AccountApi.
|
|
4929
|
+
* @export
|
|
4930
|
+
* @interface AccountApiDeleteMssqlAccountRequest
|
|
4931
|
+
*/
|
|
4932
|
+
export interface AccountApiDeleteMssqlAccountRequest {
|
|
4933
|
+
/**
|
|
4934
|
+
* name of the organization
|
|
4935
|
+
* @type {string}
|
|
4936
|
+
* @memberof AccountApiDeleteMssqlAccount
|
|
4937
|
+
*/
|
|
4938
|
+
readonly orgName: string
|
|
4939
|
+
|
|
4940
|
+
/**
|
|
4941
|
+
* name of the cluster
|
|
4942
|
+
* @type {string}
|
|
4943
|
+
* @memberof AccountApiDeleteMssqlAccount
|
|
4944
|
+
*/
|
|
4945
|
+
readonly clusterName: string
|
|
4946
|
+
|
|
4947
|
+
/**
|
|
4948
|
+
* name of the account
|
|
4949
|
+
* @type {string}
|
|
4950
|
+
* @memberof AccountApiDeleteMssqlAccount
|
|
4951
|
+
*/
|
|
4952
|
+
readonly account: string
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
/**
|
|
4956
|
+
* Request parameters for deleteRabbitAccount operation in AccountApi.
|
|
4957
|
+
* @export
|
|
4958
|
+
* @interface AccountApiDeleteRabbitAccountRequest
|
|
4959
|
+
*/
|
|
4960
|
+
export interface AccountApiDeleteRabbitAccountRequest {
|
|
4961
|
+
/**
|
|
4962
|
+
* name of the Org
|
|
4963
|
+
* @type {string}
|
|
4964
|
+
* @memberof AccountApiDeleteRabbitAccount
|
|
4965
|
+
*/
|
|
4966
|
+
readonly orgName: string
|
|
4967
|
+
|
|
4968
|
+
/**
|
|
4969
|
+
* name of the Cluster
|
|
4970
|
+
* @type {string}
|
|
4971
|
+
* @memberof AccountApiDeleteRabbitAccount
|
|
4972
|
+
*/
|
|
4973
|
+
readonly clusterName: string
|
|
4974
|
+
|
|
4975
|
+
/**
|
|
4976
|
+
* name of the Account
|
|
4977
|
+
* @type {string}
|
|
4978
|
+
* @memberof AccountApiDeleteRabbitAccount
|
|
4979
|
+
*/
|
|
4980
|
+
readonly accountName: string
|
|
4981
|
+
}
|
|
4982
|
+
|
|
4983
|
+
/**
|
|
4984
|
+
* Request parameters for deleteSeaweedFSAccessKey operation in AccountApi.
|
|
4985
|
+
* @export
|
|
4986
|
+
* @interface AccountApiDeleteSeaweedFSAccessKeyRequest
|
|
4987
|
+
*/
|
|
4988
|
+
export interface AccountApiDeleteSeaweedFSAccessKeyRequest {
|
|
4989
|
+
/**
|
|
4990
|
+
*
|
|
4991
|
+
* @type {string}
|
|
4992
|
+
* @memberof AccountApiDeleteSeaweedFSAccessKey
|
|
4993
|
+
*/
|
|
4994
|
+
readonly orgName: string
|
|
4995
|
+
|
|
4996
|
+
/**
|
|
4997
|
+
*
|
|
4998
|
+
* @type {string}
|
|
4999
|
+
* @memberof AccountApiDeleteSeaweedFSAccessKey
|
|
5000
|
+
*/
|
|
5001
|
+
readonly clusterName: string
|
|
5002
|
+
|
|
5003
|
+
/**
|
|
5004
|
+
*
|
|
5005
|
+
* @type {string}
|
|
5006
|
+
* @memberof AccountApiDeleteSeaweedFSAccessKey
|
|
5007
|
+
*/
|
|
5008
|
+
readonly accountName: string
|
|
5009
|
+
|
|
5010
|
+
/**
|
|
5011
|
+
*
|
|
3770
5012
|
* @type {string}
|
|
3771
|
-
* @memberof
|
|
5013
|
+
* @memberof AccountApiDeleteSeaweedFSAccessKey
|
|
3772
5014
|
*/
|
|
3773
|
-
readonly
|
|
5015
|
+
readonly accessKey: string
|
|
3774
5016
|
}
|
|
3775
5017
|
|
|
3776
5018
|
/**
|
|
3777
|
-
* Request parameters for
|
|
5019
|
+
* Request parameters for deleteSeaweedFSAccount operation in AccountApi.
|
|
3778
5020
|
* @export
|
|
3779
|
-
* @interface
|
|
5021
|
+
* @interface AccountApiDeleteSeaweedFSAccountRequest
|
|
3780
5022
|
*/
|
|
3781
|
-
export interface
|
|
5023
|
+
export interface AccountApiDeleteSeaweedFSAccountRequest {
|
|
3782
5024
|
/**
|
|
3783
5025
|
* name of the organization
|
|
3784
5026
|
* @type {string}
|
|
3785
|
-
* @memberof
|
|
5027
|
+
* @memberof AccountApiDeleteSeaweedFSAccount
|
|
3786
5028
|
*/
|
|
3787
5029
|
readonly orgName: string
|
|
3788
5030
|
|
|
3789
5031
|
/**
|
|
3790
5032
|
* name of the cluster
|
|
3791
5033
|
* @type {string}
|
|
3792
|
-
* @memberof
|
|
5034
|
+
* @memberof AccountApiDeleteSeaweedFSAccount
|
|
3793
5035
|
*/
|
|
3794
5036
|
readonly clusterName: string
|
|
3795
5037
|
|
|
3796
5038
|
/**
|
|
3797
5039
|
* name of the account
|
|
3798
5040
|
* @type {string}
|
|
3799
|
-
* @memberof
|
|
5041
|
+
* @memberof AccountApiDeleteSeaweedFSAccount
|
|
3800
5042
|
*/
|
|
3801
|
-
readonly
|
|
5043
|
+
readonly accountName: string
|
|
3802
5044
|
}
|
|
3803
5045
|
|
|
3804
5046
|
/**
|
|
3805
|
-
* Request parameters for
|
|
5047
|
+
* Request parameters for deleteSeaweedFSPolicy operation in AccountApi.
|
|
3806
5048
|
* @export
|
|
3807
|
-
* @interface
|
|
5049
|
+
* @interface AccountApiDeleteSeaweedFSPolicyRequest
|
|
3808
5050
|
*/
|
|
3809
|
-
export interface
|
|
5051
|
+
export interface AccountApiDeleteSeaweedFSPolicyRequest {
|
|
3810
5052
|
/**
|
|
3811
|
-
*
|
|
5053
|
+
*
|
|
3812
5054
|
* @type {string}
|
|
3813
|
-
* @memberof
|
|
5055
|
+
* @memberof AccountApiDeleteSeaweedFSPolicy
|
|
3814
5056
|
*/
|
|
3815
5057
|
readonly orgName: string
|
|
3816
5058
|
|
|
3817
5059
|
/**
|
|
3818
|
-
*
|
|
5060
|
+
*
|
|
3819
5061
|
* @type {string}
|
|
3820
|
-
* @memberof
|
|
5062
|
+
* @memberof AccountApiDeleteSeaweedFSPolicy
|
|
3821
5063
|
*/
|
|
3822
5064
|
readonly clusterName: string
|
|
3823
5065
|
|
|
3824
5066
|
/**
|
|
3825
|
-
*
|
|
5067
|
+
*
|
|
3826
5068
|
* @type {string}
|
|
3827
|
-
* @memberof
|
|
5069
|
+
* @memberof AccountApiDeleteSeaweedFSPolicy
|
|
3828
5070
|
*/
|
|
3829
|
-
readonly
|
|
5071
|
+
readonly policyName: string
|
|
3830
5072
|
}
|
|
3831
5073
|
|
|
3832
5074
|
/**
|
|
@@ -3955,6 +5197,41 @@ export interface AccountApiGetRootAccountPasswordRequest {
|
|
|
3955
5197
|
readonly component?: string
|
|
3956
5198
|
}
|
|
3957
5199
|
|
|
5200
|
+
/**
|
|
5201
|
+
* Request parameters for getRootSeaweedFSAccountPassword operation in AccountApi.
|
|
5202
|
+
* @export
|
|
5203
|
+
* @interface AccountApiGetRootSeaweedFSAccountPasswordRequest
|
|
5204
|
+
*/
|
|
5205
|
+
export interface AccountApiGetRootSeaweedFSAccountPasswordRequest {
|
|
5206
|
+
/**
|
|
5207
|
+
* name of the Org
|
|
5208
|
+
* @type {string}
|
|
5209
|
+
* @memberof AccountApiGetRootSeaweedFSAccountPassword
|
|
5210
|
+
*/
|
|
5211
|
+
readonly orgName: string
|
|
5212
|
+
|
|
5213
|
+
/**
|
|
5214
|
+
* name of the Cluster
|
|
5215
|
+
* @type {string}
|
|
5216
|
+
* @memberof AccountApiGetRootSeaweedFSAccountPassword
|
|
5217
|
+
*/
|
|
5218
|
+
readonly clusterName: string
|
|
5219
|
+
|
|
5220
|
+
/**
|
|
5221
|
+
* name of the account
|
|
5222
|
+
* @type {string}
|
|
5223
|
+
* @memberof AccountApiGetRootSeaweedFSAccountPassword
|
|
5224
|
+
*/
|
|
5225
|
+
readonly accountName: string
|
|
5226
|
+
|
|
5227
|
+
/**
|
|
5228
|
+
* name of the component
|
|
5229
|
+
* @type {string}
|
|
5230
|
+
* @memberof AccountApiGetRootSeaweedFSAccountPassword
|
|
5231
|
+
*/
|
|
5232
|
+
readonly component?: string
|
|
5233
|
+
}
|
|
5234
|
+
|
|
3958
5235
|
/**
|
|
3959
5236
|
* Request parameters for getServiceAccount operation in AccountApi.
|
|
3960
5237
|
* @export
|
|
@@ -4102,6 +5379,48 @@ export interface AccountApiListRabbitAccountsRequest {
|
|
|
4102
5379
|
readonly clusterName: string
|
|
4103
5380
|
}
|
|
4104
5381
|
|
|
5382
|
+
/**
|
|
5383
|
+
* Request parameters for listSeaweedFSAccounts operation in AccountApi.
|
|
5384
|
+
* @export
|
|
5385
|
+
* @interface AccountApiListSeaweedFSAccountsRequest
|
|
5386
|
+
*/
|
|
5387
|
+
export interface AccountApiListSeaweedFSAccountsRequest {
|
|
5388
|
+
/**
|
|
5389
|
+
* name of the organization
|
|
5390
|
+
* @type {string}
|
|
5391
|
+
* @memberof AccountApiListSeaweedFSAccounts
|
|
5392
|
+
*/
|
|
5393
|
+
readonly orgName: string
|
|
5394
|
+
|
|
5395
|
+
/**
|
|
5396
|
+
* name of the cluster
|
|
5397
|
+
* @type {string}
|
|
5398
|
+
* @memberof AccountApiListSeaweedFSAccounts
|
|
5399
|
+
*/
|
|
5400
|
+
readonly clusterName: string
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5403
|
+
/**
|
|
5404
|
+
* Request parameters for listSeaweedFSPolicies operation in AccountApi.
|
|
5405
|
+
* @export
|
|
5406
|
+
* @interface AccountApiListSeaweedFSPoliciesRequest
|
|
5407
|
+
*/
|
|
5408
|
+
export interface AccountApiListSeaweedFSPoliciesRequest {
|
|
5409
|
+
/**
|
|
5410
|
+
*
|
|
5411
|
+
* @type {string}
|
|
5412
|
+
* @memberof AccountApiListSeaweedFSPolicies
|
|
5413
|
+
*/
|
|
5414
|
+
readonly orgName: string
|
|
5415
|
+
|
|
5416
|
+
/**
|
|
5417
|
+
*
|
|
5418
|
+
* @type {string}
|
|
5419
|
+
* @memberof AccountApiListSeaweedFSPolicies
|
|
5420
|
+
*/
|
|
5421
|
+
readonly clusterName: string
|
|
5422
|
+
}
|
|
5423
|
+
|
|
4105
5424
|
/**
|
|
4106
5425
|
* Request parameters for listServiceAccounts operation in AccountApi.
|
|
4107
5426
|
* @export
|
|
@@ -4172,6 +5491,41 @@ export interface AccountApiLockAccountRequest {
|
|
|
4172
5491
|
readonly accountName: string
|
|
4173
5492
|
}
|
|
4174
5493
|
|
|
5494
|
+
/**
|
|
5495
|
+
* Request parameters for putSeaweedFSPolicy operation in AccountApi.
|
|
5496
|
+
* @export
|
|
5497
|
+
* @interface AccountApiPutSeaweedFSPolicyRequest
|
|
5498
|
+
*/
|
|
5499
|
+
export interface AccountApiPutSeaweedFSPolicyRequest {
|
|
5500
|
+
/**
|
|
5501
|
+
*
|
|
5502
|
+
* @type {string}
|
|
5503
|
+
* @memberof AccountApiPutSeaweedFSPolicy
|
|
5504
|
+
*/
|
|
5505
|
+
readonly orgName: string
|
|
5506
|
+
|
|
5507
|
+
/**
|
|
5508
|
+
*
|
|
5509
|
+
* @type {string}
|
|
5510
|
+
* @memberof AccountApiPutSeaweedFSPolicy
|
|
5511
|
+
*/
|
|
5512
|
+
readonly clusterName: string
|
|
5513
|
+
|
|
5514
|
+
/**
|
|
5515
|
+
*
|
|
5516
|
+
* @type {string}
|
|
5517
|
+
* @memberof AccountApiPutSeaweedFSPolicy
|
|
5518
|
+
*/
|
|
5519
|
+
readonly policyName: string
|
|
5520
|
+
|
|
5521
|
+
/**
|
|
5522
|
+
*
|
|
5523
|
+
* @type {{ [key: string]: any; }}
|
|
5524
|
+
* @memberof AccountApiPutSeaweedFSPolicy
|
|
5525
|
+
*/
|
|
5526
|
+
readonly requestBody: { [key: string]: any; }
|
|
5527
|
+
}
|
|
5528
|
+
|
|
4175
5529
|
/**
|
|
4176
5530
|
* Request parameters for unlockAccount operation in AccountApi.
|
|
4177
5531
|
* @export
|
|
@@ -4564,6 +5918,76 @@ export interface AccountApiUpdateRabbitAccountPrivilegesRequest {
|
|
|
4564
5918
|
readonly rbmqPermission: RbmqPermission
|
|
4565
5919
|
}
|
|
4566
5920
|
|
|
5921
|
+
/**
|
|
5922
|
+
* Request parameters for updateSeaweedFSAccount operation in AccountApi.
|
|
5923
|
+
* @export
|
|
5924
|
+
* @interface AccountApiUpdateSeaweedFSAccountRequest
|
|
5925
|
+
*/
|
|
5926
|
+
export interface AccountApiUpdateSeaweedFSAccountRequest {
|
|
5927
|
+
/**
|
|
5928
|
+
* name of the organization
|
|
5929
|
+
* @type {string}
|
|
5930
|
+
* @memberof AccountApiUpdateSeaweedFSAccount
|
|
5931
|
+
*/
|
|
5932
|
+
readonly orgName: string
|
|
5933
|
+
|
|
5934
|
+
/**
|
|
5935
|
+
* name of the cluster
|
|
5936
|
+
* @type {string}
|
|
5937
|
+
* @memberof AccountApiUpdateSeaweedFSAccount
|
|
5938
|
+
*/
|
|
5939
|
+
readonly clusterName: string
|
|
5940
|
+
|
|
5941
|
+
/**
|
|
5942
|
+
* name of the account
|
|
5943
|
+
* @type {string}
|
|
5944
|
+
* @memberof AccountApiUpdateSeaweedFSAccount
|
|
5945
|
+
*/
|
|
5946
|
+
readonly accountName: string
|
|
5947
|
+
|
|
5948
|
+
/**
|
|
5949
|
+
*
|
|
5950
|
+
* @type {Account}
|
|
5951
|
+
* @memberof AccountApiUpdateSeaweedFSAccount
|
|
5952
|
+
*/
|
|
5953
|
+
readonly body: Account
|
|
5954
|
+
}
|
|
5955
|
+
|
|
5956
|
+
/**
|
|
5957
|
+
* Request parameters for updateSeaweedFSAccountPrivileges operation in AccountApi.
|
|
5958
|
+
* @export
|
|
5959
|
+
* @interface AccountApiUpdateSeaweedFSAccountPrivilegesRequest
|
|
5960
|
+
*/
|
|
5961
|
+
export interface AccountApiUpdateSeaweedFSAccountPrivilegesRequest {
|
|
5962
|
+
/**
|
|
5963
|
+
* name of the Org
|
|
5964
|
+
* @type {string}
|
|
5965
|
+
* @memberof AccountApiUpdateSeaweedFSAccountPrivileges
|
|
5966
|
+
*/
|
|
5967
|
+
readonly orgName: string
|
|
5968
|
+
|
|
5969
|
+
/**
|
|
5970
|
+
* name of the Cluster
|
|
5971
|
+
* @type {string}
|
|
5972
|
+
* @memberof AccountApiUpdateSeaweedFSAccountPrivileges
|
|
5973
|
+
*/
|
|
5974
|
+
readonly clusterName: string
|
|
5975
|
+
|
|
5976
|
+
/**
|
|
5977
|
+
* name of the account
|
|
5978
|
+
* @type {string}
|
|
5979
|
+
* @memberof AccountApiUpdateSeaweedFSAccountPrivileges
|
|
5980
|
+
*/
|
|
5981
|
+
readonly accountName: string
|
|
5982
|
+
|
|
5983
|
+
/**
|
|
5984
|
+
*
|
|
5985
|
+
* @type {Array<PrivilegeListItem>}
|
|
5986
|
+
* @memberof AccountApiUpdateSeaweedFSAccountPrivileges
|
|
5987
|
+
*/
|
|
5988
|
+
readonly body: Array<PrivilegeListItem>
|
|
5989
|
+
}
|
|
5990
|
+
|
|
4567
5991
|
/**
|
|
4568
5992
|
* Request parameters for updateServiceAccount operation in AccountApi.
|
|
4569
5993
|
* @export
|
|
@@ -4613,6 +6037,18 @@ export interface AccountApiUpdateServiceAccountRequest {
|
|
|
4613
6037
|
* @extends {BaseAPI}
|
|
4614
6038
|
*/
|
|
4615
6039
|
export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
6040
|
+
/**
|
|
6041
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
6042
|
+
* @summary bindSeaweedFSPolicies
|
|
6043
|
+
* @param {AccountApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
6044
|
+
* @param {*} [options] Override http request option.
|
|
6045
|
+
* @throws {RequiredError}
|
|
6046
|
+
* @memberof AccountApi
|
|
6047
|
+
*/
|
|
6048
|
+
public bindSeaweedFSPolicies(requestParameters: AccountApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig) {
|
|
6049
|
+
return AccountApiFp(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6050
|
+
}
|
|
6051
|
+
|
|
4616
6052
|
/**
|
|
4617
6053
|
* create an account in cluster
|
|
4618
6054
|
* @summary Create cluster account
|
|
@@ -4685,6 +6121,30 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
4685
6121
|
return AccountApiFp(this.configuration).createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4686
6122
|
}
|
|
4687
6123
|
|
|
6124
|
+
/**
|
|
6125
|
+
* 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.
|
|
6126
|
+
* @summary createSeaweedFSAccessKey
|
|
6127
|
+
* @param {AccountApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
6128
|
+
* @param {*} [options] Override http request option.
|
|
6129
|
+
* @throws {RequiredError}
|
|
6130
|
+
* @memberof AccountApi
|
|
6131
|
+
*/
|
|
6132
|
+
public createSeaweedFSAccessKey(requestParameters: AccountApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig) {
|
|
6133
|
+
return AccountApiFp(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
|
|
6134
|
+
}
|
|
6135
|
+
|
|
6136
|
+
/**
|
|
6137
|
+
* 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.
|
|
6138
|
+
* @summary createSeaweedFSAccount
|
|
6139
|
+
* @param {AccountApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
6140
|
+
* @param {*} [options] Override http request option.
|
|
6141
|
+
* @throws {RequiredError}
|
|
6142
|
+
* @memberof AccountApi
|
|
6143
|
+
*/
|
|
6144
|
+
public createSeaweedFSAccount(requestParameters: AccountApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
|
|
6145
|
+
return AccountApiFp(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
6146
|
+
}
|
|
6147
|
+
|
|
4688
6148
|
/**
|
|
4689
6149
|
* create a MinIO service account access key
|
|
4690
6150
|
* @summary Create MinIO access key
|
|
@@ -4781,6 +6241,42 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
4781
6241
|
return AccountApiFp(this.configuration).deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
4782
6242
|
}
|
|
4783
6243
|
|
|
6244
|
+
/**
|
|
6245
|
+
*
|
|
6246
|
+
* @summary deleteSeaweedFSAccessKey
|
|
6247
|
+
* @param {AccountApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
6248
|
+
* @param {*} [options] Override http request option.
|
|
6249
|
+
* @throws {RequiredError}
|
|
6250
|
+
* @memberof AccountApi
|
|
6251
|
+
*/
|
|
6252
|
+
public deleteSeaweedFSAccessKey(requestParameters: AccountApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig) {
|
|
6253
|
+
return AccountApiFp(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6256
|
+
/**
|
|
6257
|
+
* delete an account in cluster
|
|
6258
|
+
* @summary deleteSeaweedFSAccount
|
|
6259
|
+
* @param {AccountApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
6260
|
+
* @param {*} [options] Override http request option.
|
|
6261
|
+
* @throws {RequiredError}
|
|
6262
|
+
* @memberof AccountApi
|
|
6263
|
+
*/
|
|
6264
|
+
public deleteSeaweedFSAccount(requestParameters: AccountApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
|
|
6265
|
+
return AccountApiFp(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
6266
|
+
}
|
|
6267
|
+
|
|
6268
|
+
/**
|
|
6269
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
6270
|
+
* @summary deleteSeaweedFSPolicy
|
|
6271
|
+
* @param {AccountApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
6272
|
+
* @param {*} [options] Override http request option.
|
|
6273
|
+
* @throws {RequiredError}
|
|
6274
|
+
* @memberof AccountApi
|
|
6275
|
+
*/
|
|
6276
|
+
public deleteSeaweedFSPolicy(requestParameters: AccountApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig) {
|
|
6277
|
+
return AccountApiFp(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
|
|
6278
|
+
}
|
|
6279
|
+
|
|
4784
6280
|
/**
|
|
4785
6281
|
* delete a MinIO service account access key
|
|
4786
6282
|
* @summary Delete MinIO access key
|
|
@@ -4829,6 +6325,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
4829
6325
|
return AccountApiFp(this.configuration).getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
4830
6326
|
}
|
|
4831
6327
|
|
|
6328
|
+
/**
|
|
6329
|
+
* get root account password
|
|
6330
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
6331
|
+
* @param {AccountApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
6332
|
+
* @param {*} [options] Override http request option.
|
|
6333
|
+
* @throws {RequiredError}
|
|
6334
|
+
* @memberof AccountApi
|
|
6335
|
+
*/
|
|
6336
|
+
public getRootSeaweedFSAccountPassword(requestParameters: AccountApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig) {
|
|
6337
|
+
return AccountApiFp(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
6338
|
+
}
|
|
6339
|
+
|
|
4832
6340
|
/**
|
|
4833
6341
|
* get a MinIO service account access key
|
|
4834
6342
|
* @summary Get MinIO access key
|
|
@@ -4901,6 +6409,30 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
4901
6409
|
return AccountApiFp(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
4902
6410
|
}
|
|
4903
6411
|
|
|
6412
|
+
/**
|
|
6413
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
6414
|
+
* @summary listSeaweedFSAccounts
|
|
6415
|
+
* @param {AccountApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
6416
|
+
* @param {*} [options] Override http request option.
|
|
6417
|
+
* @throws {RequiredError}
|
|
6418
|
+
* @memberof AccountApi
|
|
6419
|
+
*/
|
|
6420
|
+
public listSeaweedFSAccounts(requestParameters: AccountApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig) {
|
|
6421
|
+
return AccountApiFp(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
6422
|
+
}
|
|
6423
|
+
|
|
6424
|
+
/**
|
|
6425
|
+
*
|
|
6426
|
+
* @summary listSeaweedFSPolicies
|
|
6427
|
+
* @param {AccountApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
6428
|
+
* @param {*} [options] Override http request option.
|
|
6429
|
+
* @throws {RequiredError}
|
|
6430
|
+
* @memberof AccountApi
|
|
6431
|
+
*/
|
|
6432
|
+
public listSeaweedFSPolicies(requestParameters: AccountApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig) {
|
|
6433
|
+
return AccountApiFp(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
6434
|
+
}
|
|
6435
|
+
|
|
4904
6436
|
/**
|
|
4905
6437
|
* list MinIO service account access keys
|
|
4906
6438
|
* @summary List MinIO access keys
|
|
@@ -4925,6 +6457,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
4925
6457
|
return AccountApiFp(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
4926
6458
|
}
|
|
4927
6459
|
|
|
6460
|
+
/**
|
|
6461
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
6462
|
+
* @summary putSeaweedFSPolicy
|
|
6463
|
+
* @param {AccountApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
6464
|
+
* @param {*} [options] Override http request option.
|
|
6465
|
+
* @throws {RequiredError}
|
|
6466
|
+
* @memberof AccountApi
|
|
6467
|
+
*/
|
|
6468
|
+
public putSeaweedFSPolicy(requestParameters: AccountApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig) {
|
|
6469
|
+
return AccountApiFp(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
6470
|
+
}
|
|
6471
|
+
|
|
4928
6472
|
/**
|
|
4929
6473
|
* unlock an account in cluster
|
|
4930
6474
|
* @summary Unlock cluster account
|
|
@@ -5057,6 +6601,30 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
5057
6601
|
return AccountApiFp(this.configuration).updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(this.axios, this.basePath));
|
|
5058
6602
|
}
|
|
5059
6603
|
|
|
6604
|
+
/**
|
|
6605
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
6606
|
+
* @summary updateSeaweedFSAccount
|
|
6607
|
+
* @param {AccountApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
6608
|
+
* @param {*} [options] Override http request option.
|
|
6609
|
+
* @throws {RequiredError}
|
|
6610
|
+
* @memberof AccountApi
|
|
6611
|
+
*/
|
|
6612
|
+
public updateSeaweedFSAccount(requestParameters: AccountApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
|
|
6613
|
+
return AccountApiFp(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
6614
|
+
}
|
|
6615
|
+
|
|
6616
|
+
/**
|
|
6617
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
6618
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
6619
|
+
* @param {AccountApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
6620
|
+
* @param {*} [options] Override http request option.
|
|
6621
|
+
* @throws {RequiredError}
|
|
6622
|
+
* @memberof AccountApi
|
|
6623
|
+
*/
|
|
6624
|
+
public updateSeaweedFSAccountPrivileges(requestParameters: AccountApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
6625
|
+
return AccountApiFp(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
6626
|
+
}
|
|
6627
|
+
|
|
5060
6628
|
/**
|
|
5061
6629
|
* update a MinIO service account access key
|
|
5062
6630
|
* @summary Update MinIO access key
|