kb-cloud-client-typescript 2.2.125 → 2.2.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +992 -11
- 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 +992 -11
- 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 +1674 -106
- package/src/adminapi/apis/seaweedfs-api.ts +1644 -0
- package/src/adminapi/apis/shared-api.ts +1914 -346
- 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
|
@@ -347,6 +347,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
347
347
|
options: localVarRequestOptions,
|
|
348
348
|
};
|
|
349
349
|
},
|
|
350
|
+
/**
|
|
351
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
352
|
+
* @summary bindSeaweedFSPolicies
|
|
353
|
+
* @param {string} orgName
|
|
354
|
+
* @param {string} clusterName
|
|
355
|
+
* @param {string} accountName
|
|
356
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
bindSeaweedFSPolicies: async (orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options = {}) => {
|
|
361
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
362
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'orgName', orgName);
|
|
363
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
364
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'clusterName', clusterName);
|
|
365
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
366
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'accountName', accountName);
|
|
367
|
+
// verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
|
|
368
|
+
(0, common_1.assertParamExists)('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest);
|
|
369
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
|
|
370
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
371
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
372
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
374
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
|
+
let baseOptions;
|
|
376
|
+
if (configuration) {
|
|
377
|
+
baseOptions = configuration.baseOptions;
|
|
378
|
+
}
|
|
379
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
380
|
+
const localVarHeaderParameter = {};
|
|
381
|
+
const localVarQueryParameter = {};
|
|
382
|
+
// authentication BearerToken required
|
|
383
|
+
// http bearer authentication required
|
|
384
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
385
|
+
// authentication DigestAuth required
|
|
386
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
390
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
391
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration);
|
|
392
|
+
return {
|
|
393
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
394
|
+
options: localVarRequestOptions,
|
|
395
|
+
};
|
|
396
|
+
},
|
|
350
397
|
/**
|
|
351
398
|
*
|
|
352
399
|
* @summary build backup object with a existing backup directory
|
|
@@ -1177,6 +1224,96 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
1177
1224
|
options: localVarRequestOptions,
|
|
1178
1225
|
};
|
|
1179
1226
|
},
|
|
1227
|
+
/**
|
|
1228
|
+
* 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.
|
|
1229
|
+
* @summary createSeaweedFSAccessKey
|
|
1230
|
+
* @param {string} orgName
|
|
1231
|
+
* @param {string} clusterName
|
|
1232
|
+
* @param {string} accountName
|
|
1233
|
+
* @param {Account} account
|
|
1234
|
+
* @param {*} [options] Override http request option.
|
|
1235
|
+
* @throws {RequiredError}
|
|
1236
|
+
*/
|
|
1237
|
+
createSeaweedFSAccessKey: async (orgName, clusterName, accountName, account, options = {}) => {
|
|
1238
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1239
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'orgName', orgName);
|
|
1240
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1241
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'clusterName', clusterName);
|
|
1242
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1243
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'accountName', accountName);
|
|
1244
|
+
// verify required parameter 'account' is not null or undefined
|
|
1245
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccessKey', 'account', account);
|
|
1246
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
|
|
1247
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1248
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1249
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1250
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1251
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1252
|
+
let baseOptions;
|
|
1253
|
+
if (configuration) {
|
|
1254
|
+
baseOptions = configuration.baseOptions;
|
|
1255
|
+
}
|
|
1256
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1257
|
+
const localVarHeaderParameter = {};
|
|
1258
|
+
const localVarQueryParameter = {};
|
|
1259
|
+
// authentication BearerToken required
|
|
1260
|
+
// http bearer authentication required
|
|
1261
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1262
|
+
// authentication DigestAuth required
|
|
1263
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1264
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1265
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1267
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1268
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(account, localVarRequestOptions, configuration);
|
|
1269
|
+
return {
|
|
1270
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1271
|
+
options: localVarRequestOptions,
|
|
1272
|
+
};
|
|
1273
|
+
},
|
|
1274
|
+
/**
|
|
1275
|
+
* 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.
|
|
1276
|
+
* @summary createSeaweedFSAccount
|
|
1277
|
+
* @param {string} orgName name of the organization
|
|
1278
|
+
* @param {string} clusterName name of the cluster
|
|
1279
|
+
* @param {Account} body
|
|
1280
|
+
* @param {*} [options] Override http request option.
|
|
1281
|
+
* @throws {RequiredError}
|
|
1282
|
+
*/
|
|
1283
|
+
createSeaweedFSAccount: async (orgName, clusterName, body, options = {}) => {
|
|
1284
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1285
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'orgName', orgName);
|
|
1286
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1287
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'clusterName', clusterName);
|
|
1288
|
+
// verify required parameter 'body' is not null or undefined
|
|
1289
|
+
(0, common_1.assertParamExists)('createSeaweedFSAccount', 'body', body);
|
|
1290
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1291
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1292
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1294
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1295
|
+
let baseOptions;
|
|
1296
|
+
if (configuration) {
|
|
1297
|
+
baseOptions = configuration.baseOptions;
|
|
1298
|
+
}
|
|
1299
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1300
|
+
const localVarHeaderParameter = {};
|
|
1301
|
+
const localVarQueryParameter = {};
|
|
1302
|
+
// authentication BearerToken required
|
|
1303
|
+
// http bearer authentication required
|
|
1304
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1305
|
+
// authentication DigestAuth required
|
|
1306
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1307
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1308
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1310
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1311
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1312
|
+
return {
|
|
1313
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1314
|
+
options: localVarRequestOptions,
|
|
1315
|
+
};
|
|
1316
|
+
},
|
|
1180
1317
|
/**
|
|
1181
1318
|
* create a MinIO service account access key
|
|
1182
1319
|
* @summary Create MinIO access key
|
|
@@ -2473,6 +2610,136 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
2473
2610
|
options: localVarRequestOptions,
|
|
2474
2611
|
};
|
|
2475
2612
|
},
|
|
2613
|
+
/**
|
|
2614
|
+
*
|
|
2615
|
+
* @summary deleteSeaweedFSAccessKey
|
|
2616
|
+
* @param {string} orgName
|
|
2617
|
+
* @param {string} clusterName
|
|
2618
|
+
* @param {string} accountName
|
|
2619
|
+
* @param {string} accessKey
|
|
2620
|
+
* @param {*} [options] Override http request option.
|
|
2621
|
+
* @throws {RequiredError}
|
|
2622
|
+
*/
|
|
2623
|
+
deleteSeaweedFSAccessKey: async (orgName, clusterName, accountName, accessKey, options = {}) => {
|
|
2624
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2625
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'orgName', orgName);
|
|
2626
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2627
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'clusterName', clusterName);
|
|
2628
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2629
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accountName', accountName);
|
|
2630
|
+
// verify required parameter 'accessKey' is not null or undefined
|
|
2631
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccessKey', 'accessKey', accessKey);
|
|
2632
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
|
|
2633
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2634
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2635
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
|
|
2636
|
+
.replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
|
|
2637
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2638
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2639
|
+
let baseOptions;
|
|
2640
|
+
if (configuration) {
|
|
2641
|
+
baseOptions = configuration.baseOptions;
|
|
2642
|
+
}
|
|
2643
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2644
|
+
const localVarHeaderParameter = {};
|
|
2645
|
+
const localVarQueryParameter = {};
|
|
2646
|
+
// authentication BearerToken required
|
|
2647
|
+
// http bearer authentication required
|
|
2648
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2649
|
+
// authentication DigestAuth required
|
|
2650
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2651
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2652
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2653
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2654
|
+
return {
|
|
2655
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2656
|
+
options: localVarRequestOptions,
|
|
2657
|
+
};
|
|
2658
|
+
},
|
|
2659
|
+
/**
|
|
2660
|
+
* delete an account in cluster
|
|
2661
|
+
* @summary deleteSeaweedFSAccount
|
|
2662
|
+
* @param {string} orgName name of the organization
|
|
2663
|
+
* @param {string} clusterName name of the cluster
|
|
2664
|
+
* @param {string} accountName name of the account
|
|
2665
|
+
* @param {*} [options] Override http request option.
|
|
2666
|
+
* @throws {RequiredError}
|
|
2667
|
+
*/
|
|
2668
|
+
deleteSeaweedFSAccount: async (orgName, clusterName, accountName, options = {}) => {
|
|
2669
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2670
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'orgName', orgName);
|
|
2671
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2672
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'clusterName', clusterName);
|
|
2673
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2674
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSAccount', 'accountName', accountName);
|
|
2675
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
2676
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2677
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2678
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2680
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2681
|
+
let baseOptions;
|
|
2682
|
+
if (configuration) {
|
|
2683
|
+
baseOptions = configuration.baseOptions;
|
|
2684
|
+
}
|
|
2685
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2686
|
+
const localVarHeaderParameter = {};
|
|
2687
|
+
const localVarQueryParameter = {};
|
|
2688
|
+
// authentication BearerToken required
|
|
2689
|
+
// http bearer authentication required
|
|
2690
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2691
|
+
// authentication DigestAuth required
|
|
2692
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2693
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2694
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2695
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2696
|
+
return {
|
|
2697
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2698
|
+
options: localVarRequestOptions,
|
|
2699
|
+
};
|
|
2700
|
+
},
|
|
2701
|
+
/**
|
|
2702
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
2703
|
+
* @summary deleteSeaweedFSPolicy
|
|
2704
|
+
* @param {string} orgName
|
|
2705
|
+
* @param {string} clusterName
|
|
2706
|
+
* @param {string} policyName
|
|
2707
|
+
* @param {*} [options] Override http request option.
|
|
2708
|
+
* @throws {RequiredError}
|
|
2709
|
+
*/
|
|
2710
|
+
deleteSeaweedFSPolicy: async (orgName, clusterName, policyName, options = {}) => {
|
|
2711
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2712
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'orgName', orgName);
|
|
2713
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2714
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'clusterName', clusterName);
|
|
2715
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
2716
|
+
(0, common_1.assertParamExists)('deleteSeaweedFSPolicy', 'policyName', policyName);
|
|
2717
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
2718
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2719
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2720
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
2721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2722
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2723
|
+
let baseOptions;
|
|
2724
|
+
if (configuration) {
|
|
2725
|
+
baseOptions = configuration.baseOptions;
|
|
2726
|
+
}
|
|
2727
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2728
|
+
const localVarHeaderParameter = {};
|
|
2729
|
+
const localVarQueryParameter = {};
|
|
2730
|
+
// authentication BearerToken required
|
|
2731
|
+
// http bearer authentication required
|
|
2732
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2733
|
+
// authentication DigestAuth required
|
|
2734
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2735
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2737
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2738
|
+
return {
|
|
2739
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2740
|
+
options: localVarRequestOptions,
|
|
2741
|
+
};
|
|
2742
|
+
},
|
|
2476
2743
|
/**
|
|
2477
2744
|
* delete a MinIO service account access key
|
|
2478
2745
|
* @summary Delete MinIO access key
|
|
@@ -4846,6 +5113,54 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
4846
5113
|
options: localVarRequestOptions,
|
|
4847
5114
|
};
|
|
4848
5115
|
},
|
|
5116
|
+
/**
|
|
5117
|
+
* get root account password
|
|
5118
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
5119
|
+
* @param {string} orgName name of the Org
|
|
5120
|
+
* @param {string} clusterName name of the Cluster
|
|
5121
|
+
* @param {string} accountName name of the account
|
|
5122
|
+
* @param {string} [component] name of the component
|
|
5123
|
+
* @param {*} [options] Override http request option.
|
|
5124
|
+
* @throws {RequiredError}
|
|
5125
|
+
*/
|
|
5126
|
+
getRootSeaweedFSAccountPassword: async (orgName, clusterName, accountName, component, options = {}) => {
|
|
5127
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
5128
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'orgName', orgName);
|
|
5129
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5130
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'clusterName', clusterName);
|
|
5131
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
5132
|
+
(0, common_1.assertParamExists)('getRootSeaweedFSAccountPassword', 'accountName', accountName);
|
|
5133
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
|
|
5134
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5135
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
5136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5137
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5138
|
+
let baseOptions;
|
|
5139
|
+
if (configuration) {
|
|
5140
|
+
baseOptions = configuration.baseOptions;
|
|
5141
|
+
}
|
|
5142
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5143
|
+
const localVarHeaderParameter = {};
|
|
5144
|
+
const localVarQueryParameter = {};
|
|
5145
|
+
// authentication BearerToken required
|
|
5146
|
+
// http bearer authentication required
|
|
5147
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5148
|
+
// authentication DigestAuth required
|
|
5149
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5150
|
+
if (accountName !== undefined) {
|
|
5151
|
+
localVarQueryParameter['accountName'] = accountName;
|
|
5152
|
+
}
|
|
5153
|
+
if (component !== undefined) {
|
|
5154
|
+
localVarQueryParameter['component'] = component;
|
|
5155
|
+
}
|
|
5156
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5158
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5159
|
+
return {
|
|
5160
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5161
|
+
options: localVarRequestOptions,
|
|
5162
|
+
};
|
|
5163
|
+
},
|
|
4849
5164
|
/**
|
|
4850
5165
|
*
|
|
4851
5166
|
* @summary list all databases or schema of the cluster
|
|
@@ -7602,6 +7917,82 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7602
7917
|
options: localVarRequestOptions,
|
|
7603
7918
|
};
|
|
7604
7919
|
},
|
|
7920
|
+
/**
|
|
7921
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
7922
|
+
* @summary listSeaweedFSAccounts
|
|
7923
|
+
* @param {string} orgName name of the organization
|
|
7924
|
+
* @param {string} clusterName name of the cluster
|
|
7925
|
+
* @param {*} [options] Override http request option.
|
|
7926
|
+
* @throws {RequiredError}
|
|
7927
|
+
*/
|
|
7928
|
+
listSeaweedFSAccounts: async (orgName, clusterName, options = {}) => {
|
|
7929
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7930
|
+
(0, common_1.assertParamExists)('listSeaweedFSAccounts', 'orgName', orgName);
|
|
7931
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
7932
|
+
(0, common_1.assertParamExists)('listSeaweedFSAccounts', 'clusterName', clusterName);
|
|
7933
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
7934
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7935
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
7936
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7937
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7938
|
+
let baseOptions;
|
|
7939
|
+
if (configuration) {
|
|
7940
|
+
baseOptions = configuration.baseOptions;
|
|
7941
|
+
}
|
|
7942
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7943
|
+
const localVarHeaderParameter = {};
|
|
7944
|
+
const localVarQueryParameter = {};
|
|
7945
|
+
// authentication BearerToken required
|
|
7946
|
+
// http bearer authentication required
|
|
7947
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7948
|
+
// authentication DigestAuth required
|
|
7949
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7950
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7951
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7952
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7953
|
+
return {
|
|
7954
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7955
|
+
options: localVarRequestOptions,
|
|
7956
|
+
};
|
|
7957
|
+
},
|
|
7958
|
+
/**
|
|
7959
|
+
*
|
|
7960
|
+
* @summary listSeaweedFSPolicies
|
|
7961
|
+
* @param {string} orgName
|
|
7962
|
+
* @param {string} clusterName
|
|
7963
|
+
* @param {*} [options] Override http request option.
|
|
7964
|
+
* @throws {RequiredError}
|
|
7965
|
+
*/
|
|
7966
|
+
listSeaweedFSPolicies: async (orgName, clusterName, options = {}) => {
|
|
7967
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7968
|
+
(0, common_1.assertParamExists)('listSeaweedFSPolicies', 'orgName', orgName);
|
|
7969
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
7970
|
+
(0, common_1.assertParamExists)('listSeaweedFSPolicies', 'clusterName', clusterName);
|
|
7971
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
|
|
7972
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7973
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
7974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7975
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7976
|
+
let baseOptions;
|
|
7977
|
+
if (configuration) {
|
|
7978
|
+
baseOptions = configuration.baseOptions;
|
|
7979
|
+
}
|
|
7980
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7981
|
+
const localVarHeaderParameter = {};
|
|
7982
|
+
const localVarQueryParameter = {};
|
|
7983
|
+
// authentication BearerToken required
|
|
7984
|
+
// http bearer authentication required
|
|
7985
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7986
|
+
// authentication DigestAuth required
|
|
7987
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7988
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7989
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7990
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7991
|
+
return {
|
|
7992
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7993
|
+
options: localVarRequestOptions,
|
|
7994
|
+
};
|
|
7995
|
+
},
|
|
7605
7996
|
/**
|
|
7606
7997
|
* list MinIO service account access keys
|
|
7607
7998
|
* @summary List MinIO access keys
|
|
@@ -8509,6 +8900,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
8509
8900
|
options: localVarRequestOptions,
|
|
8510
8901
|
};
|
|
8511
8902
|
},
|
|
8903
|
+
/**
|
|
8904
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
8905
|
+
* @summary putSeaweedFSPolicy
|
|
8906
|
+
* @param {string} orgName
|
|
8907
|
+
* @param {string} clusterName
|
|
8908
|
+
* @param {string} policyName
|
|
8909
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
8910
|
+
* @param {*} [options] Override http request option.
|
|
8911
|
+
* @throws {RequiredError}
|
|
8912
|
+
*/
|
|
8913
|
+
putSeaweedFSPolicy: async (orgName, clusterName, policyName, requestBody, options = {}) => {
|
|
8914
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8915
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'orgName', orgName);
|
|
8916
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8917
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'clusterName', clusterName);
|
|
8918
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
8919
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'policyName', policyName);
|
|
8920
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
8921
|
+
(0, common_1.assertParamExists)('putSeaweedFSPolicy', 'requestBody', requestBody);
|
|
8922
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
8923
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8924
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
8925
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
8926
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8927
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8928
|
+
let baseOptions;
|
|
8929
|
+
if (configuration) {
|
|
8930
|
+
baseOptions = configuration.baseOptions;
|
|
8931
|
+
}
|
|
8932
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8933
|
+
const localVarHeaderParameter = {};
|
|
8934
|
+
const localVarQueryParameter = {};
|
|
8935
|
+
// authentication BearerToken required
|
|
8936
|
+
// http bearer authentication required
|
|
8937
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8938
|
+
// authentication DigestAuth required
|
|
8939
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
8940
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8941
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8942
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8943
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8944
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
8945
|
+
return {
|
|
8946
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8947
|
+
options: localVarRequestOptions,
|
|
8948
|
+
};
|
|
8949
|
+
},
|
|
8512
8950
|
/**
|
|
8513
8951
|
*
|
|
8514
8952
|
* @summary create a SQL query
|
|
@@ -10841,6 +11279,100 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
10841
11279
|
options: localVarRequestOptions,
|
|
10842
11280
|
};
|
|
10843
11281
|
},
|
|
11282
|
+
/**
|
|
11283
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
11284
|
+
* @summary updateSeaweedFSAccount
|
|
11285
|
+
* @param {string} orgName name of the organization
|
|
11286
|
+
* @param {string} clusterName name of the cluster
|
|
11287
|
+
* @param {string} accountName name of the account
|
|
11288
|
+
* @param {Account} body
|
|
11289
|
+
* @param {*} [options] Override http request option.
|
|
11290
|
+
* @throws {RequiredError}
|
|
11291
|
+
*/
|
|
11292
|
+
updateSeaweedFSAccount: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
11293
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
11294
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'orgName', orgName);
|
|
11295
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
11296
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'clusterName', clusterName);
|
|
11297
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
11298
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'accountName', accountName);
|
|
11299
|
+
// verify required parameter 'body' is not null or undefined
|
|
11300
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccount', 'body', body);
|
|
11301
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
11302
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
11303
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
11304
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
11305
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11306
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11307
|
+
let baseOptions;
|
|
11308
|
+
if (configuration) {
|
|
11309
|
+
baseOptions = configuration.baseOptions;
|
|
11310
|
+
}
|
|
11311
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
11312
|
+
const localVarHeaderParameter = {};
|
|
11313
|
+
const localVarQueryParameter = {};
|
|
11314
|
+
// authentication BearerToken required
|
|
11315
|
+
// http bearer authentication required
|
|
11316
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11317
|
+
// authentication DigestAuth required
|
|
11318
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
11319
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11320
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11321
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11322
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11323
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
11324
|
+
return {
|
|
11325
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11326
|
+
options: localVarRequestOptions,
|
|
11327
|
+
};
|
|
11328
|
+
},
|
|
11329
|
+
/**
|
|
11330
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
11331
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
11332
|
+
* @param {string} orgName name of the Org
|
|
11333
|
+
* @param {string} clusterName name of the Cluster
|
|
11334
|
+
* @param {string} accountName name of the account
|
|
11335
|
+
* @param {Array<PrivilegeListItem>} body
|
|
11336
|
+
* @param {*} [options] Override http request option.
|
|
11337
|
+
* @throws {RequiredError}
|
|
11338
|
+
*/
|
|
11339
|
+
updateSeaweedFSAccountPrivileges: async (orgName, clusterName, accountName, body, options = {}) => {
|
|
11340
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
11341
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'orgName', orgName);
|
|
11342
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
11343
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName);
|
|
11344
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
11345
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'accountName', accountName);
|
|
11346
|
+
// verify required parameter 'body' is not null or undefined
|
|
11347
|
+
(0, common_1.assertParamExists)('updateSeaweedFSAccountPrivileges', 'body', body);
|
|
11348
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
|
|
11349
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
11350
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
11351
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
11352
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11353
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11354
|
+
let baseOptions;
|
|
11355
|
+
if (configuration) {
|
|
11356
|
+
baseOptions = configuration.baseOptions;
|
|
11357
|
+
}
|
|
11358
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
11359
|
+
const localVarHeaderParameter = {};
|
|
11360
|
+
const localVarQueryParameter = {};
|
|
11361
|
+
// authentication BearerToken required
|
|
11362
|
+
// http bearer authentication required
|
|
11363
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
11364
|
+
// authentication DigestAuth required
|
|
11365
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
11366
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11367
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11368
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11369
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11370
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
11371
|
+
return {
|
|
11372
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11373
|
+
options: localVarRequestOptions,
|
|
11374
|
+
};
|
|
11375
|
+
},
|
|
10844
11376
|
/**
|
|
10845
11377
|
* update a MinIO service account access key
|
|
10846
11378
|
* @summary Update MinIO access key
|
|
@@ -11275,6 +11807,23 @@ const SharedApiFp = function (configuration) {
|
|
|
11275
11807
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.batchUpdateOrgParameters']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11276
11808
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11277
11809
|
},
|
|
11810
|
+
/**
|
|
11811
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
11812
|
+
* @summary bindSeaweedFSPolicies
|
|
11813
|
+
* @param {string} orgName
|
|
11814
|
+
* @param {string} clusterName
|
|
11815
|
+
* @param {string} accountName
|
|
11816
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
11817
|
+
* @param {*} [options] Override http request option.
|
|
11818
|
+
* @throws {RequiredError}
|
|
11819
|
+
*/
|
|
11820
|
+
async bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options) {
|
|
11821
|
+
var _a, _b, _c;
|
|
11822
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
|
|
11823
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11824
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.bindSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11825
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11826
|
+
},
|
|
11278
11827
|
/**
|
|
11279
11828
|
*
|
|
11280
11829
|
* @summary build backup object with a existing backup directory
|
|
@@ -11557,30 +12106,63 @@ const SharedApiFp = function (configuration) {
|
|
|
11557
12106
|
* @summary create a relation between the clusters in the organization
|
|
11558
12107
|
* @param {string} orgName
|
|
11559
12108
|
* @param {string} clusterName
|
|
11560
|
-
* @param {string} target
|
|
12109
|
+
* @param {string} target
|
|
12110
|
+
* @param {*} [options] Override http request option.
|
|
12111
|
+
* @throws {RequiredError}
|
|
12112
|
+
*/
|
|
12113
|
+
async createRelation(orgName, clusterName, target, options) {
|
|
12114
|
+
var _a, _b, _c;
|
|
12115
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRelation(orgName, clusterName, target, options);
|
|
12116
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12117
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createRelation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12118
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12119
|
+
},
|
|
12120
|
+
/**
|
|
12121
|
+
* Create role
|
|
12122
|
+
* @summary Create role
|
|
12123
|
+
* @param {string} orgName name of the Org
|
|
12124
|
+
* @param {RoleCreate} roleCreate
|
|
12125
|
+
* @param {*} [options] Override http request option.
|
|
12126
|
+
* @throws {RequiredError}
|
|
12127
|
+
*/
|
|
12128
|
+
async createRole(orgName, roleCreate, options) {
|
|
12129
|
+
var _a, _b, _c;
|
|
12130
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRole(orgName, roleCreate, options);
|
|
12131
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12132
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12133
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12134
|
+
},
|
|
12135
|
+
/**
|
|
12136
|
+
* 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.
|
|
12137
|
+
* @summary createSeaweedFSAccessKey
|
|
12138
|
+
* @param {string} orgName
|
|
12139
|
+
* @param {string} clusterName
|
|
12140
|
+
* @param {string} accountName
|
|
12141
|
+
* @param {Account} account
|
|
11561
12142
|
* @param {*} [options] Override http request option.
|
|
11562
12143
|
* @throws {RequiredError}
|
|
11563
12144
|
*/
|
|
11564
|
-
async
|
|
12145
|
+
async createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options) {
|
|
11565
12146
|
var _a, _b, _c;
|
|
11566
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12147
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
|
|
11567
12148
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11568
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.
|
|
12149
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createSeaweedFSAccessKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11569
12150
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11570
12151
|
},
|
|
11571
12152
|
/**
|
|
11572
|
-
*
|
|
11573
|
-
* @summary
|
|
11574
|
-
* @param {string} orgName name of the
|
|
11575
|
-
* @param {
|
|
12153
|
+
* 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.
|
|
12154
|
+
* @summary createSeaweedFSAccount
|
|
12155
|
+
* @param {string} orgName name of the organization
|
|
12156
|
+
* @param {string} clusterName name of the cluster
|
|
12157
|
+
* @param {Account} body
|
|
11576
12158
|
* @param {*} [options] Override http request option.
|
|
11577
12159
|
* @throws {RequiredError}
|
|
11578
12160
|
*/
|
|
11579
|
-
async
|
|
12161
|
+
async createSeaweedFSAccount(orgName, clusterName, body, options) {
|
|
11580
12162
|
var _a, _b, _c;
|
|
11581
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
|
|
11582
12164
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11583
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.
|
|
12165
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11584
12166
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11585
12167
|
},
|
|
11586
12168
|
/**
|
|
@@ -12075,6 +12657,55 @@ const SharedApiFp = function (configuration) {
|
|
|
12075
12657
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteRoleByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12076
12658
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12077
12659
|
},
|
|
12660
|
+
/**
|
|
12661
|
+
*
|
|
12662
|
+
* @summary deleteSeaweedFSAccessKey
|
|
12663
|
+
* @param {string} orgName
|
|
12664
|
+
* @param {string} clusterName
|
|
12665
|
+
* @param {string} accountName
|
|
12666
|
+
* @param {string} accessKey
|
|
12667
|
+
* @param {*} [options] Override http request option.
|
|
12668
|
+
* @throws {RequiredError}
|
|
12669
|
+
*/
|
|
12670
|
+
async deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options) {
|
|
12671
|
+
var _a, _b, _c;
|
|
12672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
|
|
12673
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12674
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteSeaweedFSAccessKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12675
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12676
|
+
},
|
|
12677
|
+
/**
|
|
12678
|
+
* delete an account in cluster
|
|
12679
|
+
* @summary deleteSeaweedFSAccount
|
|
12680
|
+
* @param {string} orgName name of the organization
|
|
12681
|
+
* @param {string} clusterName name of the cluster
|
|
12682
|
+
* @param {string} accountName name of the account
|
|
12683
|
+
* @param {*} [options] Override http request option.
|
|
12684
|
+
* @throws {RequiredError}
|
|
12685
|
+
*/
|
|
12686
|
+
async deleteSeaweedFSAccount(orgName, clusterName, accountName, options) {
|
|
12687
|
+
var _a, _b, _c;
|
|
12688
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
|
|
12689
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12690
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12691
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12692
|
+
},
|
|
12693
|
+
/**
|
|
12694
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
12695
|
+
* @summary deleteSeaweedFSPolicy
|
|
12696
|
+
* @param {string} orgName
|
|
12697
|
+
* @param {string} clusterName
|
|
12698
|
+
* @param {string} policyName
|
|
12699
|
+
* @param {*} [options] Override http request option.
|
|
12700
|
+
* @throws {RequiredError}
|
|
12701
|
+
*/
|
|
12702
|
+
async deleteSeaweedFSPolicy(orgName, clusterName, policyName, options) {
|
|
12703
|
+
var _a, _b, _c;
|
|
12704
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
|
|
12705
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12706
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12707
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12708
|
+
},
|
|
12078
12709
|
/**
|
|
12079
12710
|
* delete a MinIO service account access key
|
|
12080
12711
|
* @summary Delete MinIO access key
|
|
@@ -12967,6 +13598,23 @@ const SharedApiFp = function (configuration) {
|
|
|
12967
13598
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getRootAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12968
13599
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12969
13600
|
},
|
|
13601
|
+
/**
|
|
13602
|
+
* get root account password
|
|
13603
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
13604
|
+
* @param {string} orgName name of the Org
|
|
13605
|
+
* @param {string} clusterName name of the Cluster
|
|
13606
|
+
* @param {string} accountName name of the account
|
|
13607
|
+
* @param {string} [component] name of the component
|
|
13608
|
+
* @param {*} [options] Override http request option.
|
|
13609
|
+
* @throws {RequiredError}
|
|
13610
|
+
*/
|
|
13611
|
+
async getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options) {
|
|
13612
|
+
var _a, _b, _c;
|
|
13613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
|
|
13614
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13615
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getRootSeaweedFSAccountPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13616
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13617
|
+
},
|
|
12970
13618
|
/**
|
|
12971
13619
|
*
|
|
12972
13620
|
* @summary list all databases or schema of the cluster
|
|
@@ -14012,6 +14660,36 @@ const SharedApiFp = function (configuration) {
|
|
|
14012
14660
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14013
14661
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14014
14662
|
},
|
|
14663
|
+
/**
|
|
14664
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
14665
|
+
* @summary listSeaweedFSAccounts
|
|
14666
|
+
* @param {string} orgName name of the organization
|
|
14667
|
+
* @param {string} clusterName name of the cluster
|
|
14668
|
+
* @param {*} [options] Override http request option.
|
|
14669
|
+
* @throws {RequiredError}
|
|
14670
|
+
*/
|
|
14671
|
+
async listSeaweedFSAccounts(orgName, clusterName, options) {
|
|
14672
|
+
var _a, _b, _c;
|
|
14673
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
|
|
14674
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14675
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSeaweedFSAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14676
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14677
|
+
},
|
|
14678
|
+
/**
|
|
14679
|
+
*
|
|
14680
|
+
* @summary listSeaweedFSPolicies
|
|
14681
|
+
* @param {string} orgName
|
|
14682
|
+
* @param {string} clusterName
|
|
14683
|
+
* @param {*} [options] Override http request option.
|
|
14684
|
+
* @throws {RequiredError}
|
|
14685
|
+
*/
|
|
14686
|
+
async listSeaweedFSPolicies(orgName, clusterName, options) {
|
|
14687
|
+
var _a, _b, _c;
|
|
14688
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
|
|
14689
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14690
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listSeaweedFSPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14691
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14692
|
+
},
|
|
14015
14693
|
/**
|
|
14016
14694
|
* list MinIO service account access keys
|
|
14017
14695
|
* @summary List MinIO access keys
|
|
@@ -14351,6 +15029,23 @@ const SharedApiFp = function (configuration) {
|
|
|
14351
15029
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putMilvusRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14352
15030
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14353
15031
|
},
|
|
15032
|
+
/**
|
|
15033
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
15034
|
+
* @summary putSeaweedFSPolicy
|
|
15035
|
+
* @param {string} orgName
|
|
15036
|
+
* @param {string} clusterName
|
|
15037
|
+
* @param {string} policyName
|
|
15038
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
15039
|
+
* @param {*} [options] Override http request option.
|
|
15040
|
+
* @throws {RequiredError}
|
|
15041
|
+
*/
|
|
15042
|
+
async putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options) {
|
|
15043
|
+
var _a, _b, _c;
|
|
15044
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
|
|
15045
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15046
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15047
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15048
|
+
},
|
|
14354
15049
|
/**
|
|
14355
15050
|
*
|
|
14356
15051
|
* @summary create a SQL query
|
|
@@ -15189,6 +15884,40 @@ const SharedApiFp = function (configuration) {
|
|
|
15189
15884
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateRoleByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15190
15885
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15191
15886
|
},
|
|
15887
|
+
/**
|
|
15888
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
15889
|
+
* @summary updateSeaweedFSAccount
|
|
15890
|
+
* @param {string} orgName name of the organization
|
|
15891
|
+
* @param {string} clusterName name of the cluster
|
|
15892
|
+
* @param {string} accountName name of the account
|
|
15893
|
+
* @param {Account} body
|
|
15894
|
+
* @param {*} [options] Override http request option.
|
|
15895
|
+
* @throws {RequiredError}
|
|
15896
|
+
*/
|
|
15897
|
+
async updateSeaweedFSAccount(orgName, clusterName, accountName, body, options) {
|
|
15898
|
+
var _a, _b, _c;
|
|
15899
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
|
|
15900
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15901
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateSeaweedFSAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15902
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15903
|
+
},
|
|
15904
|
+
/**
|
|
15905
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
15906
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
15907
|
+
* @param {string} orgName name of the Org
|
|
15908
|
+
* @param {string} clusterName name of the Cluster
|
|
15909
|
+
* @param {string} accountName name of the account
|
|
15910
|
+
* @param {Array<PrivilegeListItem>} body
|
|
15911
|
+
* @param {*} [options] Override http request option.
|
|
15912
|
+
* @throws {RequiredError}
|
|
15913
|
+
*/
|
|
15914
|
+
async updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options) {
|
|
15915
|
+
var _a, _b, _c;
|
|
15916
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
|
|
15917
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15918
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateSeaweedFSAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15919
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15920
|
+
},
|
|
15192
15921
|
/**
|
|
15193
15922
|
* update a MinIO service account access key
|
|
15194
15923
|
* @summary Update MinIO access key
|
|
@@ -15390,6 +16119,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15390
16119
|
batchUpdateOrgParameters(requestParameters, options) {
|
|
15391
16120
|
return localVarFp.batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
|
|
15392
16121
|
},
|
|
16122
|
+
/**
|
|
16123
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
16124
|
+
* @summary bindSeaweedFSPolicies
|
|
16125
|
+
* @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
16126
|
+
* @param {*} [options] Override http request option.
|
|
16127
|
+
* @throws {RequiredError}
|
|
16128
|
+
*/
|
|
16129
|
+
bindSeaweedFSPolicies(requestParameters, options) {
|
|
16130
|
+
return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
|
|
16131
|
+
},
|
|
15393
16132
|
/**
|
|
15394
16133
|
*
|
|
15395
16134
|
* @summary build backup object with a existing backup directory
|
|
@@ -15581,6 +16320,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15581
16320
|
createRole(requestParameters, options) {
|
|
15582
16321
|
return localVarFp.createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(axios, basePath));
|
|
15583
16322
|
},
|
|
16323
|
+
/**
|
|
16324
|
+
* 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.
|
|
16325
|
+
* @summary createSeaweedFSAccessKey
|
|
16326
|
+
* @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
16327
|
+
* @param {*} [options] Override http request option.
|
|
16328
|
+
* @throws {RequiredError}
|
|
16329
|
+
*/
|
|
16330
|
+
createSeaweedFSAccessKey(requestParameters, options) {
|
|
16331
|
+
return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
|
|
16332
|
+
},
|
|
16333
|
+
/**
|
|
16334
|
+
* 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.
|
|
16335
|
+
* @summary createSeaweedFSAccount
|
|
16336
|
+
* @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
16337
|
+
* @param {*} [options] Override http request option.
|
|
16338
|
+
* @throws {RequiredError}
|
|
16339
|
+
*/
|
|
16340
|
+
createSeaweedFSAccount(requestParameters, options) {
|
|
16341
|
+
return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
16342
|
+
},
|
|
15584
16343
|
/**
|
|
15585
16344
|
* create a MinIO service account access key
|
|
15586
16345
|
* @summary Create MinIO access key
|
|
@@ -15891,6 +16650,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15891
16650
|
deleteRoleByName(requestParameters, options) {
|
|
15892
16651
|
return localVarFp.deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
15893
16652
|
},
|
|
16653
|
+
/**
|
|
16654
|
+
*
|
|
16655
|
+
* @summary deleteSeaweedFSAccessKey
|
|
16656
|
+
* @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
16657
|
+
* @param {*} [options] Override http request option.
|
|
16658
|
+
* @throws {RequiredError}
|
|
16659
|
+
*/
|
|
16660
|
+
deleteSeaweedFSAccessKey(requestParameters, options) {
|
|
16661
|
+
return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
|
|
16662
|
+
},
|
|
16663
|
+
/**
|
|
16664
|
+
* delete an account in cluster
|
|
16665
|
+
* @summary deleteSeaweedFSAccount
|
|
16666
|
+
* @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
16667
|
+
* @param {*} [options] Override http request option.
|
|
16668
|
+
* @throws {RequiredError}
|
|
16669
|
+
*/
|
|
16670
|
+
deleteSeaweedFSAccount(requestParameters, options) {
|
|
16671
|
+
return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
16672
|
+
},
|
|
16673
|
+
/**
|
|
16674
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
16675
|
+
* @summary deleteSeaweedFSPolicy
|
|
16676
|
+
* @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
16677
|
+
* @param {*} [options] Override http request option.
|
|
16678
|
+
* @throws {RequiredError}
|
|
16679
|
+
*/
|
|
16680
|
+
deleteSeaweedFSPolicy(requestParameters, options) {
|
|
16681
|
+
return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
|
|
16682
|
+
},
|
|
15894
16683
|
/**
|
|
15895
16684
|
* delete a MinIO service account access key
|
|
15896
16685
|
* @summary Delete MinIO access key
|
|
@@ -16441,6 +17230,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
16441
17230
|
getRootAccountPassword(requestParameters, options) {
|
|
16442
17231
|
return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
16443
17232
|
},
|
|
17233
|
+
/**
|
|
17234
|
+
* get root account password
|
|
17235
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
17236
|
+
* @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
17237
|
+
* @param {*} [options] Override http request option.
|
|
17238
|
+
* @throws {RequiredError}
|
|
17239
|
+
*/
|
|
17240
|
+
getRootSeaweedFSAccountPassword(requestParameters, options) {
|
|
17241
|
+
return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
17242
|
+
},
|
|
16444
17243
|
/**
|
|
16445
17244
|
*
|
|
16446
17245
|
* @summary list all databases or schema of the cluster
|
|
@@ -17097,6 +17896,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
17097
17896
|
listRoles(requestParameters, options) {
|
|
17098
17897
|
return localVarFp.listRoles(requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
17099
17898
|
},
|
|
17899
|
+
/**
|
|
17900
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
17901
|
+
* @summary listSeaweedFSAccounts
|
|
17902
|
+
* @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
17903
|
+
* @param {*} [options] Override http request option.
|
|
17904
|
+
* @throws {RequiredError}
|
|
17905
|
+
*/
|
|
17906
|
+
listSeaweedFSAccounts(requestParameters, options) {
|
|
17907
|
+
return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
17908
|
+
},
|
|
17909
|
+
/**
|
|
17910
|
+
*
|
|
17911
|
+
* @summary listSeaweedFSPolicies
|
|
17912
|
+
* @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
17913
|
+
* @param {*} [options] Override http request option.
|
|
17914
|
+
* @throws {RequiredError}
|
|
17915
|
+
*/
|
|
17916
|
+
listSeaweedFSPolicies(requestParameters, options) {
|
|
17917
|
+
return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
17918
|
+
},
|
|
17100
17919
|
/**
|
|
17101
17920
|
* list MinIO service account access keys
|
|
17102
17921
|
* @summary List MinIO access keys
|
|
@@ -17307,6 +18126,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
17307
18126
|
putMilvusRole(requestParameters, options) {
|
|
17308
18127
|
return localVarFp.putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
17309
18128
|
},
|
|
18129
|
+
/**
|
|
18130
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
18131
|
+
* @summary putSeaweedFSPolicy
|
|
18132
|
+
* @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
18133
|
+
* @param {*} [options] Override http request option.
|
|
18134
|
+
* @throws {RequiredError}
|
|
18135
|
+
*/
|
|
18136
|
+
putSeaweedFSPolicy(requestParameters, options) {
|
|
18137
|
+
return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
18138
|
+
},
|
|
17310
18139
|
/**
|
|
17311
18140
|
*
|
|
17312
18141
|
* @summary create a SQL query
|
|
@@ -17796,6 +18625,26 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
17796
18625
|
updateRoleByName(requestParameters, options) {
|
|
17797
18626
|
return localVarFp.updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(axios, basePath));
|
|
17798
18627
|
},
|
|
18628
|
+
/**
|
|
18629
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
18630
|
+
* @summary updateSeaweedFSAccount
|
|
18631
|
+
* @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
18632
|
+
* @param {*} [options] Override http request option.
|
|
18633
|
+
* @throws {RequiredError}
|
|
18634
|
+
*/
|
|
18635
|
+
updateSeaweedFSAccount(requestParameters, options) {
|
|
18636
|
+
return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18637
|
+
},
|
|
18638
|
+
/**
|
|
18639
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
18640
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
18641
|
+
* @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
18642
|
+
* @param {*} [options] Override http request option.
|
|
18643
|
+
* @throws {RequiredError}
|
|
18644
|
+
*/
|
|
18645
|
+
updateSeaweedFSAccountPrivileges(requestParameters, options) {
|
|
18646
|
+
return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
18647
|
+
},
|
|
17799
18648
|
/**
|
|
17800
18649
|
* update a MinIO service account access key
|
|
17801
18650
|
* @summary Update MinIO access key
|
|
@@ -17962,6 +18811,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
17962
18811
|
batchUpdateOrgParameters(requestParameters, options) {
|
|
17963
18812
|
return (0, exports.SharedApiFp)(this.configuration).batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
|
|
17964
18813
|
}
|
|
18814
|
+
/**
|
|
18815
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
18816
|
+
* @summary bindSeaweedFSPolicies
|
|
18817
|
+
* @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
18818
|
+
* @param {*} [options] Override http request option.
|
|
18819
|
+
* @throws {RequiredError}
|
|
18820
|
+
* @memberof SharedApi
|
|
18821
|
+
*/
|
|
18822
|
+
bindSeaweedFSPolicies(requestParameters, options) {
|
|
18823
|
+
return (0, exports.SharedApiFp)(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18824
|
+
}
|
|
17965
18825
|
/**
|
|
17966
18826
|
*
|
|
17967
18827
|
* @summary build backup object with a existing backup directory
|
|
@@ -18172,6 +19032,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
18172
19032
|
createRole(requestParameters, options) {
|
|
18173
19033
|
return (0, exports.SharedApiFp)(this.configuration).createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(this.axios, this.basePath));
|
|
18174
19034
|
}
|
|
19035
|
+
/**
|
|
19036
|
+
* 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.
|
|
19037
|
+
* @summary createSeaweedFSAccessKey
|
|
19038
|
+
* @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
19039
|
+
* @param {*} [options] Override http request option.
|
|
19040
|
+
* @throws {RequiredError}
|
|
19041
|
+
* @memberof SharedApi
|
|
19042
|
+
*/
|
|
19043
|
+
createSeaweedFSAccessKey(requestParameters, options) {
|
|
19044
|
+
return (0, exports.SharedApiFp)(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
|
|
19045
|
+
}
|
|
19046
|
+
/**
|
|
19047
|
+
* 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.
|
|
19048
|
+
* @summary createSeaweedFSAccount
|
|
19049
|
+
* @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
19050
|
+
* @param {*} [options] Override http request option.
|
|
19051
|
+
* @throws {RequiredError}
|
|
19052
|
+
* @memberof SharedApi
|
|
19053
|
+
*/
|
|
19054
|
+
createSeaweedFSAccount(requestParameters, options) {
|
|
19055
|
+
return (0, exports.SharedApiFp)(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
19056
|
+
}
|
|
18175
19057
|
/**
|
|
18176
19058
|
* create a MinIO service account access key
|
|
18177
19059
|
* @summary Create MinIO access key
|
|
@@ -18513,6 +19395,39 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
18513
19395
|
deleteRoleByName(requestParameters, options) {
|
|
18514
19396
|
return (0, exports.SharedApiFp)(this.configuration).deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
18515
19397
|
}
|
|
19398
|
+
/**
|
|
19399
|
+
*
|
|
19400
|
+
* @summary deleteSeaweedFSAccessKey
|
|
19401
|
+
* @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
19402
|
+
* @param {*} [options] Override http request option.
|
|
19403
|
+
* @throws {RequiredError}
|
|
19404
|
+
* @memberof SharedApi
|
|
19405
|
+
*/
|
|
19406
|
+
deleteSeaweedFSAccessKey(requestParameters, options) {
|
|
19407
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
|
|
19408
|
+
}
|
|
19409
|
+
/**
|
|
19410
|
+
* delete an account in cluster
|
|
19411
|
+
* @summary deleteSeaweedFSAccount
|
|
19412
|
+
* @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
19413
|
+
* @param {*} [options] Override http request option.
|
|
19414
|
+
* @throws {RequiredError}
|
|
19415
|
+
* @memberof SharedApi
|
|
19416
|
+
*/
|
|
19417
|
+
deleteSeaweedFSAccount(requestParameters, options) {
|
|
19418
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
19419
|
+
}
|
|
19420
|
+
/**
|
|
19421
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
19422
|
+
* @summary deleteSeaweedFSPolicy
|
|
19423
|
+
* @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
19424
|
+
* @param {*} [options] Override http request option.
|
|
19425
|
+
* @throws {RequiredError}
|
|
19426
|
+
* @memberof SharedApi
|
|
19427
|
+
*/
|
|
19428
|
+
deleteSeaweedFSPolicy(requestParameters, options) {
|
|
19429
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19430
|
+
}
|
|
18516
19431
|
/**
|
|
18517
19432
|
* delete a MinIO service account access key
|
|
18518
19433
|
* @summary Delete MinIO access key
|
|
@@ -19118,6 +20033,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
19118
20033
|
getRootAccountPassword(requestParameters, options) {
|
|
19119
20034
|
return (0, exports.SharedApiFp)(this.configuration).getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
19120
20035
|
}
|
|
20036
|
+
/**
|
|
20037
|
+
* get root account password
|
|
20038
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
20039
|
+
* @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
20040
|
+
* @param {*} [options] Override http request option.
|
|
20041
|
+
* @throws {RequiredError}
|
|
20042
|
+
* @memberof SharedApi
|
|
20043
|
+
*/
|
|
20044
|
+
getRootSeaweedFSAccountPassword(requestParameters, options) {
|
|
20045
|
+
return (0, exports.SharedApiFp)(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
20046
|
+
}
|
|
19121
20047
|
/**
|
|
19122
20048
|
*
|
|
19123
20049
|
* @summary list all databases or schema of the cluster
|
|
@@ -19840,6 +20766,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
19840
20766
|
listRoles(requestParameters, options) {
|
|
19841
20767
|
return (0, exports.SharedApiFp)(this.configuration).listRoles(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
19842
20768
|
}
|
|
20769
|
+
/**
|
|
20770
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
20771
|
+
* @summary listSeaweedFSAccounts
|
|
20772
|
+
* @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
20773
|
+
* @param {*} [options] Override http request option.
|
|
20774
|
+
* @throws {RequiredError}
|
|
20775
|
+
* @memberof SharedApi
|
|
20776
|
+
*/
|
|
20777
|
+
listSeaweedFSAccounts(requestParameters, options) {
|
|
20778
|
+
return (0, exports.SharedApiFp)(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
20779
|
+
}
|
|
20780
|
+
/**
|
|
20781
|
+
*
|
|
20782
|
+
* @summary listSeaweedFSPolicies
|
|
20783
|
+
* @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
20784
|
+
* @param {*} [options] Override http request option.
|
|
20785
|
+
* @throws {RequiredError}
|
|
20786
|
+
* @memberof SharedApi
|
|
20787
|
+
*/
|
|
20788
|
+
listSeaweedFSPolicies(requestParameters, options) {
|
|
20789
|
+
return (0, exports.SharedApiFp)(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
20790
|
+
}
|
|
19843
20791
|
/**
|
|
19844
20792
|
* list MinIO service account access keys
|
|
19845
20793
|
* @summary List MinIO access keys
|
|
@@ -20071,6 +21019,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
20071
21019
|
putMilvusRole(requestParameters, options) {
|
|
20072
21020
|
return (0, exports.SharedApiFp)(this.configuration).putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
20073
21021
|
}
|
|
21022
|
+
/**
|
|
21023
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
21024
|
+
* @summary putSeaweedFSPolicy
|
|
21025
|
+
* @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
21026
|
+
* @param {*} [options] Override http request option.
|
|
21027
|
+
* @throws {RequiredError}
|
|
21028
|
+
* @memberof SharedApi
|
|
21029
|
+
*/
|
|
21030
|
+
putSeaweedFSPolicy(requestParameters, options) {
|
|
21031
|
+
return (0, exports.SharedApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
21032
|
+
}
|
|
20074
21033
|
/**
|
|
20075
21034
|
*
|
|
20076
21035
|
* @summary create a SQL query
|
|
@@ -20609,6 +21568,28 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
20609
21568
|
updateRoleByName(requestParameters, options) {
|
|
20610
21569
|
return (0, exports.SharedApiFp)(this.configuration).updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
20611
21570
|
}
|
|
21571
|
+
/**
|
|
21572
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
21573
|
+
* @summary updateSeaweedFSAccount
|
|
21574
|
+
* @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
21575
|
+
* @param {*} [options] Override http request option.
|
|
21576
|
+
* @throws {RequiredError}
|
|
21577
|
+
* @memberof SharedApi
|
|
21578
|
+
*/
|
|
21579
|
+
updateSeaweedFSAccount(requestParameters, options) {
|
|
21580
|
+
return (0, exports.SharedApiFp)(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21581
|
+
}
|
|
21582
|
+
/**
|
|
21583
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
21584
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
21585
|
+
* @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
21586
|
+
* @param {*} [options] Override http request option.
|
|
21587
|
+
* @throws {RequiredError}
|
|
21588
|
+
* @memberof SharedApi
|
|
21589
|
+
*/
|
|
21590
|
+
updateSeaweedFSAccountPrivileges(requestParameters, options) {
|
|
21591
|
+
return (0, exports.SharedApiFp)(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
21592
|
+
}
|
|
20612
21593
|
/**
|
|
20613
21594
|
* update a MinIO service account access key
|
|
20614
21595
|
* @summary Update MinIO access key
|