kb-cloud-client-typescript 2.4.0-alpha.62 → 2.4.0-alpha.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/account-api.d.ts +906 -6
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +981 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/seaweedfs-api.d.ts +951 -0
- package/dist/adminapi/apis/seaweedfs-api.d.ts.map +1 -0
- package/dist/adminapi/apis/seaweedfs-api.js +1045 -0
- package/dist/adminapi/apis/seaweedfs-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +905 -5
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +991 -10
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.js +16 -0
- package/dist/adminapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +3 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +3 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.js +16 -0
- package/dist/adminapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/account-api.d.ts +906 -6
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +981 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/seaweedfs-api.d.ts +951 -0
- package/dist/openapi/apis/seaweedfs-api.d.ts.map +1 -0
- package/dist/openapi/apis/seaweedfs-api.js +1045 -0
- package/dist/openapi/apis/seaweedfs-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +905 -5
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +991 -10
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts +25 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.d.ts.map +1 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.js +16 -0
- package/dist/openapi/models/bind-seaweed-fspolicies-request.js.map +1 -0
- package/dist/openapi/models/index.d.ts +3 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +3 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts +33 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.d.ts.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js +16 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response-items-inner.js.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts +26 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.d.ts.map +1 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.js +16 -0
- package/dist/openapi/models/list-seaweed-fspolicies200-response.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +4 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/account-api.ts +1623 -55
- package/src/adminapi/apis/seaweedfs-api.ts +1644 -0
- package/src/adminapi/apis/shared-api.ts +1776 -208
- package/src/adminapi/models/bind-seaweed-fspolicies-request.ts +30 -0
- package/src/adminapi/models/index.ts +3 -0
- package/src/adminapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
- package/src/adminapi/models/list-seaweed-fspolicies200-response.ts +33 -0
- package/src/adminapi.yaml +562 -0
- package/src/openapi/.openapi-generator/FILES +4 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/account-api.ts +1623 -55
- package/src/openapi/apis/seaweedfs-api.ts +1644 -0
- package/src/openapi/apis/shared-api.ts +1776 -208
- package/src/openapi/models/bind-seaweed-fspolicies-request.ts +30 -0
- package/src/openapi/models/index.ts +3 -0
- package/src/openapi/models/list-seaweed-fspolicies200-response-items-inner.ts +36 -0
- package/src/openapi/models/list-seaweed-fspolicies200-response.ts +33 -0
- package/src/openapi.yaml +562 -0
|
@@ -68,6 +68,8 @@ import type { BackupScheduleUpdate } from '../models';
|
|
|
68
68
|
// @ts-ignore
|
|
69
69
|
import type { BackupView } from '../models';
|
|
70
70
|
// @ts-ignore
|
|
71
|
+
import type { BindSeaweedFSPoliciesRequest } from '../models';
|
|
72
|
+
// @ts-ignore
|
|
71
73
|
import type { Broker } from '../models';
|
|
72
74
|
// @ts-ignore
|
|
73
75
|
import type { BuildBackupObjRequest } from '../models';
|
|
@@ -254,6 +256,8 @@ import type { ListClickhouseAccountRoles200Response } from '../models';
|
|
|
254
256
|
// @ts-ignore
|
|
255
257
|
import type { ListClickhouseAccountRoles200ResponsePrivilegesInner } from '../models';
|
|
256
258
|
// @ts-ignore
|
|
259
|
+
import type { ListSeaweedFSPolicies200Response } from '../models';
|
|
260
|
+
// @ts-ignore
|
|
257
261
|
import type { Llm } from '../models';
|
|
258
262
|
// @ts-ignore
|
|
259
263
|
import type { MetricsQueryType } from '../models';
|
|
@@ -988,6 +992,61 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
988
992
|
options: localVarRequestOptions,
|
|
989
993
|
};
|
|
990
994
|
},
|
|
995
|
+
/**
|
|
996
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
997
|
+
* @summary bindSeaweedFSPolicies
|
|
998
|
+
* @param {string} orgName
|
|
999
|
+
* @param {string} clusterName
|
|
1000
|
+
* @param {string} accountName
|
|
1001
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
*/
|
|
1005
|
+
bindSeaweedFSPolicies: async (orgName: string, clusterName: string, accountName: string, bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1006
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1007
|
+
assertParamExists('bindSeaweedFSPolicies', 'orgName', orgName)
|
|
1008
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1009
|
+
assertParamExists('bindSeaweedFSPolicies', 'clusterName', clusterName)
|
|
1010
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1011
|
+
assertParamExists('bindSeaweedFSPolicies', 'accountName', accountName)
|
|
1012
|
+
// verify required parameter 'bindSeaweedFSPoliciesRequest' is not null or undefined
|
|
1013
|
+
assertParamExists('bindSeaweedFSPolicies', 'bindSeaweedFSPoliciesRequest', bindSeaweedFSPoliciesRequest)
|
|
1014
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/policies`
|
|
1015
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1016
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1017
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1018
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1019
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1020
|
+
let baseOptions;
|
|
1021
|
+
if (configuration) {
|
|
1022
|
+
baseOptions = configuration.baseOptions;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1026
|
+
const localVarHeaderParameter = {} as any;
|
|
1027
|
+
const localVarQueryParameter = {} as any;
|
|
1028
|
+
|
|
1029
|
+
// authentication BearerToken required
|
|
1030
|
+
// http bearer authentication required
|
|
1031
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1032
|
+
|
|
1033
|
+
// authentication DigestAuth required
|
|
1034
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1039
|
+
|
|
1040
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1041
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1042
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1043
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bindSeaweedFSPoliciesRequest, localVarRequestOptions, configuration)
|
|
1044
|
+
|
|
1045
|
+
return {
|
|
1046
|
+
url: toPathString(localVarUrlObj),
|
|
1047
|
+
options: localVarRequestOptions,
|
|
1048
|
+
};
|
|
1049
|
+
},
|
|
991
1050
|
/**
|
|
992
1051
|
*
|
|
993
1052
|
* @summary build backup object with a existing backup directory
|
|
@@ -2228,222 +2287,328 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2228
2287
|
};
|
|
2229
2288
|
},
|
|
2230
2289
|
/**
|
|
2231
|
-
*
|
|
2232
|
-
* @summary
|
|
2233
|
-
* @param {string} engineName name of the engine
|
|
2234
|
-
* @param {string} orgName name of the organization
|
|
2235
|
-
* @param {string} clusterName name of the cluster
|
|
2236
|
-
* @param {DmsServiceAccountCreateRequest} body
|
|
2237
|
-
* @param {*} [options] Override http request option.
|
|
2238
|
-
* @throws {RequiredError}
|
|
2239
|
-
*/
|
|
2240
|
-
createServiceAccount: async (engineName: string, orgName: string, clusterName: string, body: DmsServiceAccountCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2241
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
2242
|
-
assertParamExists('createServiceAccount', 'engineName', engineName)
|
|
2243
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
2244
|
-
assertParamExists('createServiceAccount', 'orgName', orgName)
|
|
2245
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
2246
|
-
assertParamExists('createServiceAccount', 'clusterName', clusterName)
|
|
2247
|
-
// verify required parameter 'body' is not null or undefined
|
|
2248
|
-
assertParamExists('createServiceAccount', 'body', body)
|
|
2249
|
-
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
|
|
2250
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2251
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2252
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2253
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2254
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2255
|
-
let baseOptions;
|
|
2256
|
-
if (configuration) {
|
|
2257
|
-
baseOptions = configuration.baseOptions;
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2261
|
-
const localVarHeaderParameter = {} as any;
|
|
2262
|
-
const localVarQueryParameter = {} as any;
|
|
2263
|
-
|
|
2264
|
-
// authentication BearerToken required
|
|
2265
|
-
// http bearer authentication required
|
|
2266
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2267
|
-
|
|
2268
|
-
// authentication DigestAuth required
|
|
2269
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2274
|
-
|
|
2275
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2276
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2277
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2278
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2279
|
-
|
|
2280
|
-
return {
|
|
2281
|
-
url: toPathString(localVarUrlObj),
|
|
2282
|
-
options: localVarRequestOptions,
|
|
2283
|
-
};
|
|
2284
|
-
},
|
|
2285
|
-
/**
|
|
2286
|
-
* create tag
|
|
2287
|
-
* @summary Create cluster tags
|
|
2290
|
+
* 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.
|
|
2291
|
+
* @summary createSeaweedFSAccessKey
|
|
2288
2292
|
* @param {string} orgName
|
|
2289
|
-
* @param {
|
|
2290
|
-
* @param {
|
|
2291
|
-
* @
|
|
2292
|
-
*/
|
|
2293
|
-
createTag: async (orgName: string, body: TagCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2294
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
2295
|
-
assertParamExists('createTag', 'orgName', orgName)
|
|
2296
|
-
// verify required parameter 'body' is not null or undefined
|
|
2297
|
-
assertParamExists('createTag', 'body', body)
|
|
2298
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/tags`
|
|
2299
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
2300
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2301
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2302
|
-
let baseOptions;
|
|
2303
|
-
if (configuration) {
|
|
2304
|
-
baseOptions = configuration.baseOptions;
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2308
|
-
const localVarHeaderParameter = {} as any;
|
|
2309
|
-
const localVarQueryParameter = {} as any;
|
|
2310
|
-
|
|
2311
|
-
// authentication BearerToken required
|
|
2312
|
-
// http bearer authentication required
|
|
2313
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2314
|
-
|
|
2315
|
-
// authentication DigestAuth required
|
|
2316
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2321
|
-
|
|
2322
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2323
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2324
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2325
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2326
|
-
|
|
2327
|
-
return {
|
|
2328
|
-
url: toPathString(localVarUrlObj),
|
|
2329
|
-
options: localVarRequestOptions,
|
|
2330
|
-
};
|
|
2331
|
-
},
|
|
2332
|
-
/**
|
|
2333
|
-
* Create apikey of the authenticated user
|
|
2334
|
-
* @summary Create apikey of the authenticated user
|
|
2335
|
-
* @param {ApikeyCreate} body
|
|
2336
|
-
* @param {*} [options] Override http request option.
|
|
2337
|
-
* @throws {RequiredError}
|
|
2338
|
-
*/
|
|
2339
|
-
createUserApikey: async (body: ApikeyCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2340
|
-
// verify required parameter 'body' is not null or undefined
|
|
2341
|
-
assertParamExists('createUserApikey', 'body', body)
|
|
2342
|
-
const localVarPath = `/admin/v1/user/apikeys`;
|
|
2343
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2344
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2345
|
-
let baseOptions;
|
|
2346
|
-
if (configuration) {
|
|
2347
|
-
baseOptions = configuration.baseOptions;
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2351
|
-
const localVarHeaderParameter = {} as any;
|
|
2352
|
-
const localVarQueryParameter = {} as any;
|
|
2353
|
-
|
|
2354
|
-
// authentication BearerToken required
|
|
2355
|
-
// http bearer authentication required
|
|
2356
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2357
|
-
|
|
2358
|
-
// authentication DigestAuth required
|
|
2359
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2364
|
-
|
|
2365
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2366
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2367
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2368
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2369
|
-
|
|
2370
|
-
return {
|
|
2371
|
-
url: toPathString(localVarUrlObj),
|
|
2372
|
-
options: localVarRequestOptions,
|
|
2373
|
-
};
|
|
2374
|
-
},
|
|
2375
|
-
/**
|
|
2376
|
-
*
|
|
2377
|
-
* @summary Create custom OpsRequest
|
|
2378
|
-
* @param {string} orgName name of the Org
|
|
2379
|
-
* @param {string} clusterName name of the KubeBlocks cluster
|
|
2380
|
-
* @param {OpsCustom} body
|
|
2381
|
-
* @param {*} [options] Override http request option.
|
|
2382
|
-
* @throws {RequiredError}
|
|
2383
|
-
*/
|
|
2384
|
-
customOps: async (orgName: string, clusterName: string, body: OpsCustom, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2385
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
2386
|
-
assertParamExists('customOps', 'orgName', orgName)
|
|
2387
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
2388
|
-
assertParamExists('customOps', 'clusterName', clusterName)
|
|
2389
|
-
// verify required parameter 'body' is not null or undefined
|
|
2390
|
-
assertParamExists('customOps', 'body', body)
|
|
2391
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/custom-ops`
|
|
2392
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2393
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2394
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2395
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2396
|
-
let baseOptions;
|
|
2397
|
-
if (configuration) {
|
|
2398
|
-
baseOptions = configuration.baseOptions;
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2402
|
-
const localVarHeaderParameter = {} as any;
|
|
2403
|
-
const localVarQueryParameter = {} as any;
|
|
2404
|
-
|
|
2405
|
-
// authentication BearerToken required
|
|
2406
|
-
// http bearer authentication required
|
|
2407
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2408
|
-
|
|
2409
|
-
// authentication DigestAuth required
|
|
2410
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2415
|
-
|
|
2416
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2417
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2418
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2419
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2420
|
-
|
|
2421
|
-
return {
|
|
2422
|
-
url: toPathString(localVarUrlObj),
|
|
2423
|
-
options: localVarRequestOptions,
|
|
2424
|
-
};
|
|
2425
|
-
},
|
|
2426
|
-
/**
|
|
2427
|
-
*
|
|
2428
|
-
* @summary Data Export
|
|
2429
|
-
* @param {string} orgName name of the Org
|
|
2430
|
-
* @param {string} clusterName name of the cluster
|
|
2431
|
-
* @param {string} id id of the datasource
|
|
2432
|
-
* @param {DmsExportRequest} [dmsExportRequest]
|
|
2293
|
+
* @param {string} clusterName
|
|
2294
|
+
* @param {string} accountName
|
|
2295
|
+
* @param {Account} account
|
|
2433
2296
|
* @param {*} [options] Override http request option.
|
|
2434
2297
|
* @throws {RequiredError}
|
|
2435
2298
|
*/
|
|
2436
|
-
|
|
2299
|
+
createSeaweedFSAccessKey: async (orgName: string, clusterName: string, accountName: string, account: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2437
2300
|
// verify required parameter 'orgName' is not null or undefined
|
|
2438
|
-
assertParamExists('
|
|
2301
|
+
assertParamExists('createSeaweedFSAccessKey', 'orgName', orgName)
|
|
2439
2302
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2440
|
-
assertParamExists('
|
|
2441
|
-
// verify required parameter '
|
|
2442
|
-
assertParamExists('
|
|
2443
|
-
|
|
2303
|
+
assertParamExists('createSeaweedFSAccessKey', 'clusterName', clusterName)
|
|
2304
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2305
|
+
assertParamExists('createSeaweedFSAccessKey', 'accountName', accountName)
|
|
2306
|
+
// verify required parameter 'account' is not null or undefined
|
|
2307
|
+
assertParamExists('createSeaweedFSAccessKey', 'account', account)
|
|
2308
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys`
|
|
2444
2309
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2445
2310
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2446
|
-
.replace(`{${"
|
|
2311
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2312
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2313
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2314
|
+
let baseOptions;
|
|
2315
|
+
if (configuration) {
|
|
2316
|
+
baseOptions = configuration.baseOptions;
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2320
|
+
const localVarHeaderParameter = {} as any;
|
|
2321
|
+
const localVarQueryParameter = {} as any;
|
|
2322
|
+
|
|
2323
|
+
// authentication BearerToken required
|
|
2324
|
+
// http bearer authentication required
|
|
2325
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2326
|
+
|
|
2327
|
+
// authentication DigestAuth required
|
|
2328
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
|
|
2332
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2333
|
+
|
|
2334
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2335
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2336
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2337
|
+
localVarRequestOptions.data = serializeDataIfNeeded(account, localVarRequestOptions, configuration)
|
|
2338
|
+
|
|
2339
|
+
return {
|
|
2340
|
+
url: toPathString(localVarUrlObj),
|
|
2341
|
+
options: localVarRequestOptions,
|
|
2342
|
+
};
|
|
2343
|
+
},
|
|
2344
|
+
/**
|
|
2345
|
+
* 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.
|
|
2346
|
+
* @summary createSeaweedFSAccount
|
|
2347
|
+
* @param {string} orgName name of the organization
|
|
2348
|
+
* @param {string} clusterName name of the cluster
|
|
2349
|
+
* @param {Account} body
|
|
2350
|
+
* @param {*} [options] Override http request option.
|
|
2351
|
+
* @throws {RequiredError}
|
|
2352
|
+
*/
|
|
2353
|
+
createSeaweedFSAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2354
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2355
|
+
assertParamExists('createSeaweedFSAccount', 'orgName', orgName)
|
|
2356
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2357
|
+
assertParamExists('createSeaweedFSAccount', 'clusterName', clusterName)
|
|
2358
|
+
// verify required parameter 'body' is not null or undefined
|
|
2359
|
+
assertParamExists('createSeaweedFSAccount', 'body', body)
|
|
2360
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
2361
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2362
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2363
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2364
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2365
|
+
let baseOptions;
|
|
2366
|
+
if (configuration) {
|
|
2367
|
+
baseOptions = configuration.baseOptions;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2371
|
+
const localVarHeaderParameter = {} as any;
|
|
2372
|
+
const localVarQueryParameter = {} as any;
|
|
2373
|
+
|
|
2374
|
+
// authentication BearerToken required
|
|
2375
|
+
// http bearer authentication required
|
|
2376
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2377
|
+
|
|
2378
|
+
// authentication DigestAuth required
|
|
2379
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2384
|
+
|
|
2385
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2386
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2387
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2388
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2389
|
+
|
|
2390
|
+
return {
|
|
2391
|
+
url: toPathString(localVarUrlObj),
|
|
2392
|
+
options: localVarRequestOptions,
|
|
2393
|
+
};
|
|
2394
|
+
},
|
|
2395
|
+
/**
|
|
2396
|
+
* create a MinIO service account access key
|
|
2397
|
+
* @summary Create MinIO access key
|
|
2398
|
+
* @param {string} engineName name of the engine
|
|
2399
|
+
* @param {string} orgName name of the organization
|
|
2400
|
+
* @param {string} clusterName name of the cluster
|
|
2401
|
+
* @param {DmsServiceAccountCreateRequest} body
|
|
2402
|
+
* @param {*} [options] Override http request option.
|
|
2403
|
+
* @throws {RequiredError}
|
|
2404
|
+
*/
|
|
2405
|
+
createServiceAccount: async (engineName: string, orgName: string, clusterName: string, body: DmsServiceAccountCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2406
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
2407
|
+
assertParamExists('createServiceAccount', 'engineName', engineName)
|
|
2408
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2409
|
+
assertParamExists('createServiceAccount', 'orgName', orgName)
|
|
2410
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2411
|
+
assertParamExists('createServiceAccount', 'clusterName', clusterName)
|
|
2412
|
+
// verify required parameter 'body' is not null or undefined
|
|
2413
|
+
assertParamExists('createServiceAccount', 'body', body)
|
|
2414
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
|
|
2415
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2416
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2417
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2419
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2420
|
+
let baseOptions;
|
|
2421
|
+
if (configuration) {
|
|
2422
|
+
baseOptions = configuration.baseOptions;
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2426
|
+
const localVarHeaderParameter = {} as any;
|
|
2427
|
+
const localVarQueryParameter = {} as any;
|
|
2428
|
+
|
|
2429
|
+
// authentication BearerToken required
|
|
2430
|
+
// http bearer authentication required
|
|
2431
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2432
|
+
|
|
2433
|
+
// authentication DigestAuth required
|
|
2434
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2439
|
+
|
|
2440
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2442
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2443
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2444
|
+
|
|
2445
|
+
return {
|
|
2446
|
+
url: toPathString(localVarUrlObj),
|
|
2447
|
+
options: localVarRequestOptions,
|
|
2448
|
+
};
|
|
2449
|
+
},
|
|
2450
|
+
/**
|
|
2451
|
+
* create tag
|
|
2452
|
+
* @summary Create cluster tags
|
|
2453
|
+
* @param {string} orgName
|
|
2454
|
+
* @param {TagCreate} body
|
|
2455
|
+
* @param {*} [options] Override http request option.
|
|
2456
|
+
* @throws {RequiredError}
|
|
2457
|
+
*/
|
|
2458
|
+
createTag: async (orgName: string, body: TagCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2459
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2460
|
+
assertParamExists('createTag', 'orgName', orgName)
|
|
2461
|
+
// verify required parameter 'body' is not null or undefined
|
|
2462
|
+
assertParamExists('createTag', 'body', body)
|
|
2463
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/tags`
|
|
2464
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
2465
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2466
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2467
|
+
let baseOptions;
|
|
2468
|
+
if (configuration) {
|
|
2469
|
+
baseOptions = configuration.baseOptions;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2473
|
+
const localVarHeaderParameter = {} as any;
|
|
2474
|
+
const localVarQueryParameter = {} as any;
|
|
2475
|
+
|
|
2476
|
+
// authentication BearerToken required
|
|
2477
|
+
// http bearer authentication required
|
|
2478
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2479
|
+
|
|
2480
|
+
// authentication DigestAuth required
|
|
2481
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
|
|
2485
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2486
|
+
|
|
2487
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2488
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2489
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2490
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2491
|
+
|
|
2492
|
+
return {
|
|
2493
|
+
url: toPathString(localVarUrlObj),
|
|
2494
|
+
options: localVarRequestOptions,
|
|
2495
|
+
};
|
|
2496
|
+
},
|
|
2497
|
+
/**
|
|
2498
|
+
* Create apikey of the authenticated user
|
|
2499
|
+
* @summary Create apikey of the authenticated user
|
|
2500
|
+
* @param {ApikeyCreate} body
|
|
2501
|
+
* @param {*} [options] Override http request option.
|
|
2502
|
+
* @throws {RequiredError}
|
|
2503
|
+
*/
|
|
2504
|
+
createUserApikey: async (body: ApikeyCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2505
|
+
// verify required parameter 'body' is not null or undefined
|
|
2506
|
+
assertParamExists('createUserApikey', 'body', body)
|
|
2507
|
+
const localVarPath = `/admin/v1/user/apikeys`;
|
|
2508
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2509
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2510
|
+
let baseOptions;
|
|
2511
|
+
if (configuration) {
|
|
2512
|
+
baseOptions = configuration.baseOptions;
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2516
|
+
const localVarHeaderParameter = {} as any;
|
|
2517
|
+
const localVarQueryParameter = {} as any;
|
|
2518
|
+
|
|
2519
|
+
// authentication BearerToken required
|
|
2520
|
+
// http bearer authentication required
|
|
2521
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2522
|
+
|
|
2523
|
+
// authentication DigestAuth required
|
|
2524
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2525
|
+
|
|
2526
|
+
|
|
2527
|
+
|
|
2528
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2529
|
+
|
|
2530
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2531
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2532
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2533
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2534
|
+
|
|
2535
|
+
return {
|
|
2536
|
+
url: toPathString(localVarUrlObj),
|
|
2537
|
+
options: localVarRequestOptions,
|
|
2538
|
+
};
|
|
2539
|
+
},
|
|
2540
|
+
/**
|
|
2541
|
+
*
|
|
2542
|
+
* @summary Create custom OpsRequest
|
|
2543
|
+
* @param {string} orgName name of the Org
|
|
2544
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
2545
|
+
* @param {OpsCustom} body
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
*/
|
|
2549
|
+
customOps: async (orgName: string, clusterName: string, body: OpsCustom, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2550
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2551
|
+
assertParamExists('customOps', 'orgName', orgName)
|
|
2552
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2553
|
+
assertParamExists('customOps', 'clusterName', clusterName)
|
|
2554
|
+
// verify required parameter 'body' is not null or undefined
|
|
2555
|
+
assertParamExists('customOps', 'body', body)
|
|
2556
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/custom-ops`
|
|
2557
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2558
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2559
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2560
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2561
|
+
let baseOptions;
|
|
2562
|
+
if (configuration) {
|
|
2563
|
+
baseOptions = configuration.baseOptions;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2567
|
+
const localVarHeaderParameter = {} as any;
|
|
2568
|
+
const localVarQueryParameter = {} as any;
|
|
2569
|
+
|
|
2570
|
+
// authentication BearerToken required
|
|
2571
|
+
// http bearer authentication required
|
|
2572
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2573
|
+
|
|
2574
|
+
// authentication DigestAuth required
|
|
2575
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2576
|
+
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2580
|
+
|
|
2581
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2582
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2583
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2584
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2585
|
+
|
|
2586
|
+
return {
|
|
2587
|
+
url: toPathString(localVarUrlObj),
|
|
2588
|
+
options: localVarRequestOptions,
|
|
2589
|
+
};
|
|
2590
|
+
},
|
|
2591
|
+
/**
|
|
2592
|
+
*
|
|
2593
|
+
* @summary Data Export
|
|
2594
|
+
* @param {string} orgName name of the Org
|
|
2595
|
+
* @param {string} clusterName name of the cluster
|
|
2596
|
+
* @param {string} id id of the datasource
|
|
2597
|
+
* @param {DmsExportRequest} [dmsExportRequest]
|
|
2598
|
+
* @param {*} [options] Override http request option.
|
|
2599
|
+
* @throws {RequiredError}
|
|
2600
|
+
*/
|
|
2601
|
+
dataExport: async (orgName: string, clusterName: string, id: string, dmsExportRequest?: DmsExportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2602
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2603
|
+
assertParamExists('dataExport', 'orgName', orgName)
|
|
2604
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2605
|
+
assertParamExists('dataExport', 'clusterName', clusterName)
|
|
2606
|
+
// verify required parameter 'id' is not null or undefined
|
|
2607
|
+
assertParamExists('dataExport', 'id', id)
|
|
2608
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/export`
|
|
2609
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2610
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2611
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2447
2612
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2448
2613
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2449
2614
|
let baseOptions;
|
|
@@ -3938,6 +4103,157 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3938
4103
|
|
|
3939
4104
|
|
|
3940
4105
|
|
|
4106
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4108
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4109
|
+
|
|
4110
|
+
return {
|
|
4111
|
+
url: toPathString(localVarUrlObj),
|
|
4112
|
+
options: localVarRequestOptions,
|
|
4113
|
+
};
|
|
4114
|
+
},
|
|
4115
|
+
/**
|
|
4116
|
+
*
|
|
4117
|
+
* @summary deleteSeaweedFSAccessKey
|
|
4118
|
+
* @param {string} orgName
|
|
4119
|
+
* @param {string} clusterName
|
|
4120
|
+
* @param {string} accountName
|
|
4121
|
+
* @param {string} accessKey
|
|
4122
|
+
* @param {*} [options] Override http request option.
|
|
4123
|
+
* @throws {RequiredError}
|
|
4124
|
+
*/
|
|
4125
|
+
deleteSeaweedFSAccessKey: async (orgName: string, clusterName: string, accountName: string, accessKey: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4126
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
4127
|
+
assertParamExists('deleteSeaweedFSAccessKey', 'orgName', orgName)
|
|
4128
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
4129
|
+
assertParamExists('deleteSeaweedFSAccessKey', 'clusterName', clusterName)
|
|
4130
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
4131
|
+
assertParamExists('deleteSeaweedFSAccessKey', 'accountName', accountName)
|
|
4132
|
+
// verify required parameter 'accessKey' is not null or undefined
|
|
4133
|
+
assertParamExists('deleteSeaweedFSAccessKey', 'accessKey', accessKey)
|
|
4134
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/access-keys/{accessKey}`
|
|
4135
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
4136
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
4137
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)))
|
|
4138
|
+
.replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
|
|
4139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4141
|
+
let baseOptions;
|
|
4142
|
+
if (configuration) {
|
|
4143
|
+
baseOptions = configuration.baseOptions;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4147
|
+
const localVarHeaderParameter = {} as any;
|
|
4148
|
+
const localVarQueryParameter = {} as any;
|
|
4149
|
+
|
|
4150
|
+
// authentication BearerToken required
|
|
4151
|
+
// http bearer authentication required
|
|
4152
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4153
|
+
|
|
4154
|
+
// authentication DigestAuth required
|
|
4155
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4156
|
+
|
|
4157
|
+
|
|
4158
|
+
|
|
4159
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4160
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4161
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4162
|
+
|
|
4163
|
+
return {
|
|
4164
|
+
url: toPathString(localVarUrlObj),
|
|
4165
|
+
options: localVarRequestOptions,
|
|
4166
|
+
};
|
|
4167
|
+
},
|
|
4168
|
+
/**
|
|
4169
|
+
* delete an account in cluster
|
|
4170
|
+
* @summary deleteSeaweedFSAccount
|
|
4171
|
+
* @param {string} orgName name of the organization
|
|
4172
|
+
* @param {string} clusterName name of the cluster
|
|
4173
|
+
* @param {string} accountName name of the account
|
|
4174
|
+
* @param {*} [options] Override http request option.
|
|
4175
|
+
* @throws {RequiredError}
|
|
4176
|
+
*/
|
|
4177
|
+
deleteSeaweedFSAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4178
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
4179
|
+
assertParamExists('deleteSeaweedFSAccount', 'orgName', orgName)
|
|
4180
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
4181
|
+
assertParamExists('deleteSeaweedFSAccount', 'clusterName', clusterName)
|
|
4182
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
4183
|
+
assertParamExists('deleteSeaweedFSAccount', 'accountName', accountName)
|
|
4184
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
4185
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
4186
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
4187
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
4188
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4189
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4190
|
+
let baseOptions;
|
|
4191
|
+
if (configuration) {
|
|
4192
|
+
baseOptions = configuration.baseOptions;
|
|
4193
|
+
}
|
|
4194
|
+
|
|
4195
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4196
|
+
const localVarHeaderParameter = {} as any;
|
|
4197
|
+
const localVarQueryParameter = {} as any;
|
|
4198
|
+
|
|
4199
|
+
// authentication BearerToken required
|
|
4200
|
+
// http bearer authentication required
|
|
4201
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4202
|
+
|
|
4203
|
+
// authentication DigestAuth required
|
|
4204
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
|
|
4208
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4209
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4210
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4211
|
+
|
|
4212
|
+
return {
|
|
4213
|
+
url: toPathString(localVarUrlObj),
|
|
4214
|
+
options: localVarRequestOptions,
|
|
4215
|
+
};
|
|
4216
|
+
},
|
|
4217
|
+
/**
|
|
4218
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
4219
|
+
* @summary deleteSeaweedFSPolicy
|
|
4220
|
+
* @param {string} orgName
|
|
4221
|
+
* @param {string} clusterName
|
|
4222
|
+
* @param {string} policyName
|
|
4223
|
+
* @param {*} [options] Override http request option.
|
|
4224
|
+
* @throws {RequiredError}
|
|
4225
|
+
*/
|
|
4226
|
+
deleteSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4227
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
4228
|
+
assertParamExists('deleteSeaweedFSPolicy', 'orgName', orgName)
|
|
4229
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
4230
|
+
assertParamExists('deleteSeaweedFSPolicy', 'clusterName', clusterName)
|
|
4231
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
4232
|
+
assertParamExists('deleteSeaweedFSPolicy', 'policyName', policyName)
|
|
4233
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
4234
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
4235
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
4236
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
4237
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4238
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4239
|
+
let baseOptions;
|
|
4240
|
+
if (configuration) {
|
|
4241
|
+
baseOptions = configuration.baseOptions;
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4244
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4245
|
+
const localVarHeaderParameter = {} as any;
|
|
4246
|
+
const localVarQueryParameter = {} as any;
|
|
4247
|
+
|
|
4248
|
+
// authentication BearerToken required
|
|
4249
|
+
// http bearer authentication required
|
|
4250
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4251
|
+
|
|
4252
|
+
// authentication DigestAuth required
|
|
4253
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4254
|
+
|
|
4255
|
+
|
|
4256
|
+
|
|
3941
4257
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3942
4258
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3943
4259
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7197,6 +7513,63 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
7197
7513
|
|
|
7198
7514
|
|
|
7199
7515
|
|
|
7516
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7517
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7518
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7519
|
+
|
|
7520
|
+
return {
|
|
7521
|
+
url: toPathString(localVarUrlObj),
|
|
7522
|
+
options: localVarRequestOptions,
|
|
7523
|
+
};
|
|
7524
|
+
},
|
|
7525
|
+
/**
|
|
7526
|
+
* get root account password
|
|
7527
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
7528
|
+
* @param {string} orgName name of the Org
|
|
7529
|
+
* @param {string} clusterName name of the Cluster
|
|
7530
|
+
* @param {string} accountName name of the account
|
|
7531
|
+
* @param {string} [component] name of the component
|
|
7532
|
+
* @param {*} [options] Override http request option.
|
|
7533
|
+
* @throws {RequiredError}
|
|
7534
|
+
*/
|
|
7535
|
+
getRootSeaweedFSAccountPassword: async (orgName: string, clusterName: string, accountName: string, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7536
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7537
|
+
assertParamExists('getRootSeaweedFSAccountPassword', 'orgName', orgName)
|
|
7538
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
7539
|
+
assertParamExists('getRootSeaweedFSAccountPassword', 'clusterName', clusterName)
|
|
7540
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
7541
|
+
assertParamExists('getRootSeaweedFSAccountPassword', 'accountName', accountName)
|
|
7542
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/root-password`
|
|
7543
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7544
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
7545
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7546
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7547
|
+
let baseOptions;
|
|
7548
|
+
if (configuration) {
|
|
7549
|
+
baseOptions = configuration.baseOptions;
|
|
7550
|
+
}
|
|
7551
|
+
|
|
7552
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7553
|
+
const localVarHeaderParameter = {} as any;
|
|
7554
|
+
const localVarQueryParameter = {} as any;
|
|
7555
|
+
|
|
7556
|
+
// authentication BearerToken required
|
|
7557
|
+
// http bearer authentication required
|
|
7558
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7559
|
+
|
|
7560
|
+
// authentication DigestAuth required
|
|
7561
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
7562
|
+
|
|
7563
|
+
if (accountName !== undefined) {
|
|
7564
|
+
localVarQueryParameter['accountName'] = accountName;
|
|
7565
|
+
}
|
|
7566
|
+
|
|
7567
|
+
if (component !== undefined) {
|
|
7568
|
+
localVarQueryParameter['component'] = component;
|
|
7569
|
+
}
|
|
7570
|
+
|
|
7571
|
+
|
|
7572
|
+
|
|
7200
7573
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7201
7574
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7202
7575
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -11121,6 +11494,96 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11121
11494
|
|
|
11122
11495
|
|
|
11123
11496
|
|
|
11497
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11498
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11499
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11500
|
+
|
|
11501
|
+
return {
|
|
11502
|
+
url: toPathString(localVarUrlObj),
|
|
11503
|
+
options: localVarRequestOptions,
|
|
11504
|
+
};
|
|
11505
|
+
},
|
|
11506
|
+
/**
|
|
11507
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
11508
|
+
* @summary listSeaweedFSAccounts
|
|
11509
|
+
* @param {string} orgName name of the organization
|
|
11510
|
+
* @param {string} clusterName name of the cluster
|
|
11511
|
+
* @param {*} [options] Override http request option.
|
|
11512
|
+
* @throws {RequiredError}
|
|
11513
|
+
*/
|
|
11514
|
+
listSeaweedFSAccounts: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11515
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
11516
|
+
assertParamExists('listSeaweedFSAccounts', 'orgName', orgName)
|
|
11517
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
11518
|
+
assertParamExists('listSeaweedFSAccounts', 'clusterName', clusterName)
|
|
11519
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
11520
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
11521
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
11522
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11523
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11524
|
+
let baseOptions;
|
|
11525
|
+
if (configuration) {
|
|
11526
|
+
baseOptions = configuration.baseOptions;
|
|
11527
|
+
}
|
|
11528
|
+
|
|
11529
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11530
|
+
const localVarHeaderParameter = {} as any;
|
|
11531
|
+
const localVarQueryParameter = {} as any;
|
|
11532
|
+
|
|
11533
|
+
// authentication BearerToken required
|
|
11534
|
+
// http bearer authentication required
|
|
11535
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11536
|
+
|
|
11537
|
+
// authentication DigestAuth required
|
|
11538
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
11539
|
+
|
|
11540
|
+
|
|
11541
|
+
|
|
11542
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11543
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11544
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11545
|
+
|
|
11546
|
+
return {
|
|
11547
|
+
url: toPathString(localVarUrlObj),
|
|
11548
|
+
options: localVarRequestOptions,
|
|
11549
|
+
};
|
|
11550
|
+
},
|
|
11551
|
+
/**
|
|
11552
|
+
*
|
|
11553
|
+
* @summary listSeaweedFSPolicies
|
|
11554
|
+
* @param {string} orgName
|
|
11555
|
+
* @param {string} clusterName
|
|
11556
|
+
* @param {*} [options] Override http request option.
|
|
11557
|
+
* @throws {RequiredError}
|
|
11558
|
+
*/
|
|
11559
|
+
listSeaweedFSPolicies: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11560
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
11561
|
+
assertParamExists('listSeaweedFSPolicies', 'orgName', orgName)
|
|
11562
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
11563
|
+
assertParamExists('listSeaweedFSPolicies', 'clusterName', clusterName)
|
|
11564
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies`
|
|
11565
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
11566
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
11567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11568
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11569
|
+
let baseOptions;
|
|
11570
|
+
if (configuration) {
|
|
11571
|
+
baseOptions = configuration.baseOptions;
|
|
11572
|
+
}
|
|
11573
|
+
|
|
11574
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11575
|
+
const localVarHeaderParameter = {} as any;
|
|
11576
|
+
const localVarQueryParameter = {} as any;
|
|
11577
|
+
|
|
11578
|
+
// authentication BearerToken required
|
|
11579
|
+
// http bearer authentication required
|
|
11580
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11581
|
+
|
|
11582
|
+
// authentication DigestAuth required
|
|
11583
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
11584
|
+
|
|
11585
|
+
|
|
11586
|
+
|
|
11124
11587
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11125
11588
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11126
11589
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12201,6 +12664,61 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
12201
12664
|
options: localVarRequestOptions,
|
|
12202
12665
|
};
|
|
12203
12666
|
},
|
|
12667
|
+
/**
|
|
12668
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
12669
|
+
* @summary putSeaweedFSPolicy
|
|
12670
|
+
* @param {string} orgName
|
|
12671
|
+
* @param {string} clusterName
|
|
12672
|
+
* @param {string} policyName
|
|
12673
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
12674
|
+
* @param {*} [options] Override http request option.
|
|
12675
|
+
* @throws {RequiredError}
|
|
12676
|
+
*/
|
|
12677
|
+
putSeaweedFSPolicy: async (orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12678
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12679
|
+
assertParamExists('putSeaweedFSPolicy', 'orgName', orgName)
|
|
12680
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12681
|
+
assertParamExists('putSeaweedFSPolicy', 'clusterName', clusterName)
|
|
12682
|
+
// verify required parameter 'policyName' is not null or undefined
|
|
12683
|
+
assertParamExists('putSeaweedFSPolicy', 'policyName', policyName)
|
|
12684
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
12685
|
+
assertParamExists('putSeaweedFSPolicy', 'requestBody', requestBody)
|
|
12686
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/policies/{policyName}`
|
|
12687
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12688
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
12689
|
+
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
12690
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12691
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12692
|
+
let baseOptions;
|
|
12693
|
+
if (configuration) {
|
|
12694
|
+
baseOptions = configuration.baseOptions;
|
|
12695
|
+
}
|
|
12696
|
+
|
|
12697
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12698
|
+
const localVarHeaderParameter = {} as any;
|
|
12699
|
+
const localVarQueryParameter = {} as any;
|
|
12700
|
+
|
|
12701
|
+
// authentication BearerToken required
|
|
12702
|
+
// http bearer authentication required
|
|
12703
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12704
|
+
|
|
12705
|
+
// authentication DigestAuth required
|
|
12706
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
12707
|
+
|
|
12708
|
+
|
|
12709
|
+
|
|
12710
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12711
|
+
|
|
12712
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12713
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12714
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12715
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
12716
|
+
|
|
12717
|
+
return {
|
|
12718
|
+
url: toPathString(localVarUrlObj),
|
|
12719
|
+
options: localVarRequestOptions,
|
|
12720
|
+
};
|
|
12721
|
+
},
|
|
12204
12722
|
/**
|
|
12205
12723
|
*
|
|
12206
12724
|
* @summary create a SQL query
|
|
@@ -16259,6 +16777,116 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
16259
16777
|
options: localVarRequestOptions,
|
|
16260
16778
|
};
|
|
16261
16779
|
},
|
|
16780
|
+
/**
|
|
16781
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
16782
|
+
* @summary updateSeaweedFSAccount
|
|
16783
|
+
* @param {string} orgName name of the organization
|
|
16784
|
+
* @param {string} clusterName name of the cluster
|
|
16785
|
+
* @param {string} accountName name of the account
|
|
16786
|
+
* @param {Account} body
|
|
16787
|
+
* @param {*} [options] Override http request option.
|
|
16788
|
+
* @throws {RequiredError}
|
|
16789
|
+
*/
|
|
16790
|
+
updateSeaweedFSAccount: async (orgName: string, clusterName: string, accountName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16791
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
16792
|
+
assertParamExists('updateSeaweedFSAccount', 'orgName', orgName)
|
|
16793
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
16794
|
+
assertParamExists('updateSeaweedFSAccount', 'clusterName', clusterName)
|
|
16795
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
16796
|
+
assertParamExists('updateSeaweedFSAccount', 'accountName', accountName)
|
|
16797
|
+
// verify required parameter 'body' is not null or undefined
|
|
16798
|
+
assertParamExists('updateSeaweedFSAccount', 'body', body)
|
|
16799
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
16800
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
16801
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
16802
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
16803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16804
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16805
|
+
let baseOptions;
|
|
16806
|
+
if (configuration) {
|
|
16807
|
+
baseOptions = configuration.baseOptions;
|
|
16808
|
+
}
|
|
16809
|
+
|
|
16810
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
16811
|
+
const localVarHeaderParameter = {} as any;
|
|
16812
|
+
const localVarQueryParameter = {} as any;
|
|
16813
|
+
|
|
16814
|
+
// authentication BearerToken required
|
|
16815
|
+
// http bearer authentication required
|
|
16816
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16817
|
+
|
|
16818
|
+
// authentication DigestAuth required
|
|
16819
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
16820
|
+
|
|
16821
|
+
|
|
16822
|
+
|
|
16823
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16824
|
+
|
|
16825
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16827
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16828
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
16829
|
+
|
|
16830
|
+
return {
|
|
16831
|
+
url: toPathString(localVarUrlObj),
|
|
16832
|
+
options: localVarRequestOptions,
|
|
16833
|
+
};
|
|
16834
|
+
},
|
|
16835
|
+
/**
|
|
16836
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
16837
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
16838
|
+
* @param {string} orgName name of the Org
|
|
16839
|
+
* @param {string} clusterName name of the Cluster
|
|
16840
|
+
* @param {string} accountName name of the account
|
|
16841
|
+
* @param {Array<PrivilegeListItem>} body
|
|
16842
|
+
* @param {*} [options] Override http request option.
|
|
16843
|
+
* @throws {RequiredError}
|
|
16844
|
+
*/
|
|
16845
|
+
updateSeaweedFSAccountPrivileges: async (orgName: string, clusterName: string, accountName: string, body: Array<PrivilegeListItem>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16846
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
16847
|
+
assertParamExists('updateSeaweedFSAccountPrivileges', 'orgName', orgName)
|
|
16848
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
16849
|
+
assertParamExists('updateSeaweedFSAccountPrivileges', 'clusterName', clusterName)
|
|
16850
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
16851
|
+
assertParamExists('updateSeaweedFSAccountPrivileges', 'accountName', accountName)
|
|
16852
|
+
// verify required parameter 'body' is not null or undefined
|
|
16853
|
+
assertParamExists('updateSeaweedFSAccountPrivileges', 'body', body)
|
|
16854
|
+
const localVarPath = `/admin/v1/data/seaweedfs/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/privileges`
|
|
16855
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
16856
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
16857
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
16858
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16859
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16860
|
+
let baseOptions;
|
|
16861
|
+
if (configuration) {
|
|
16862
|
+
baseOptions = configuration.baseOptions;
|
|
16863
|
+
}
|
|
16864
|
+
|
|
16865
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
16866
|
+
const localVarHeaderParameter = {} as any;
|
|
16867
|
+
const localVarQueryParameter = {} as any;
|
|
16868
|
+
|
|
16869
|
+
// authentication BearerToken required
|
|
16870
|
+
// http bearer authentication required
|
|
16871
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16872
|
+
|
|
16873
|
+
// authentication DigestAuth required
|
|
16874
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
16875
|
+
|
|
16876
|
+
|
|
16877
|
+
|
|
16878
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16879
|
+
|
|
16880
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16881
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16882
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16883
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
16884
|
+
|
|
16885
|
+
return {
|
|
16886
|
+
url: toPathString(localVarUrlObj),
|
|
16887
|
+
options: localVarRequestOptions,
|
|
16888
|
+
};
|
|
16889
|
+
},
|
|
16262
16890
|
/**
|
|
16263
16891
|
* update a MinIO service account access key
|
|
16264
16892
|
* @summary Update MinIO access key
|
|
@@ -16884,6 +17512,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16884
17512
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.batchUpdateOrgParameters']?.[localVarOperationServerIndex]?.url;
|
|
16885
17513
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16886
17514
|
},
|
|
17515
|
+
/**
|
|
17516
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
17517
|
+
* @summary bindSeaweedFSPolicies
|
|
17518
|
+
* @param {string} orgName
|
|
17519
|
+
* @param {string} clusterName
|
|
17520
|
+
* @param {string} accountName
|
|
17521
|
+
* @param {BindSeaweedFSPoliciesRequest} bindSeaweedFSPoliciesRequest
|
|
17522
|
+
* @param {*} [options] Override http request option.
|
|
17523
|
+
* @throws {RequiredError}
|
|
17524
|
+
*/
|
|
17525
|
+
async bindSeaweedFSPolicies(orgName: string, clusterName: string, accountName: string, bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17526
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bindSeaweedFSPolicies(orgName, clusterName, accountName, bindSeaweedFSPoliciesRequest, options);
|
|
17527
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17528
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.bindSeaweedFSPolicies']?.[localVarOperationServerIndex]?.url;
|
|
17529
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17530
|
+
},
|
|
16887
17531
|
/**
|
|
16888
17532
|
*
|
|
16889
17533
|
* @summary build backup object with a existing backup directory
|
|
@@ -17248,6 +17892,37 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17248
17892
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.createRole']?.[localVarOperationServerIndex]?.url;
|
|
17249
17893
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17250
17894
|
},
|
|
17895
|
+
/**
|
|
17896
|
+
* 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.
|
|
17897
|
+
* @summary createSeaweedFSAccessKey
|
|
17898
|
+
* @param {string} orgName
|
|
17899
|
+
* @param {string} clusterName
|
|
17900
|
+
* @param {string} accountName
|
|
17901
|
+
* @param {Account} account
|
|
17902
|
+
* @param {*} [options] Override http request option.
|
|
17903
|
+
* @throws {RequiredError}
|
|
17904
|
+
*/
|
|
17905
|
+
async createSeaweedFSAccessKey(orgName: string, clusterName: string, accountName: string, account: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
|
|
17906
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccessKey(orgName, clusterName, accountName, account, options);
|
|
17907
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17908
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.createSeaweedFSAccessKey']?.[localVarOperationServerIndex]?.url;
|
|
17909
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17910
|
+
},
|
|
17911
|
+
/**
|
|
17912
|
+
* 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.
|
|
17913
|
+
* @summary createSeaweedFSAccount
|
|
17914
|
+
* @param {string} orgName name of the organization
|
|
17915
|
+
* @param {string} clusterName name of the cluster
|
|
17916
|
+
* @param {Account} body
|
|
17917
|
+
* @param {*} [options] Override http request option.
|
|
17918
|
+
* @throws {RequiredError}
|
|
17919
|
+
*/
|
|
17920
|
+
async createSeaweedFSAccount(orgName: string, clusterName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
|
|
17921
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSeaweedFSAccount(orgName, clusterName, body, options);
|
|
17922
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17923
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.createSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
|
|
17924
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17925
|
+
},
|
|
17251
17926
|
/**
|
|
17252
17927
|
* create a MinIO service account access key
|
|
17253
17928
|
* @summary Create MinIO access key
|
|
@@ -17769,6 +18444,52 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17769
18444
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteRoleByName']?.[localVarOperationServerIndex]?.url;
|
|
17770
18445
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17771
18446
|
},
|
|
18447
|
+
/**
|
|
18448
|
+
*
|
|
18449
|
+
* @summary deleteSeaweedFSAccessKey
|
|
18450
|
+
* @param {string} orgName
|
|
18451
|
+
* @param {string} clusterName
|
|
18452
|
+
* @param {string} accountName
|
|
18453
|
+
* @param {string} accessKey
|
|
18454
|
+
* @param {*} [options] Override http request option.
|
|
18455
|
+
* @throws {RequiredError}
|
|
18456
|
+
*/
|
|
18457
|
+
async deleteSeaweedFSAccessKey(orgName: string, clusterName: string, accountName: string, accessKey: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
18458
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccessKey(orgName, clusterName, accountName, accessKey, options);
|
|
18459
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18460
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteSeaweedFSAccessKey']?.[localVarOperationServerIndex]?.url;
|
|
18461
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18462
|
+
},
|
|
18463
|
+
/**
|
|
18464
|
+
* delete an account in cluster
|
|
18465
|
+
* @summary deleteSeaweedFSAccount
|
|
18466
|
+
* @param {string} orgName name of the organization
|
|
18467
|
+
* @param {string} clusterName name of the cluster
|
|
18468
|
+
* @param {string} accountName name of the account
|
|
18469
|
+
* @param {*} [options] Override http request option.
|
|
18470
|
+
* @throws {RequiredError}
|
|
18471
|
+
*/
|
|
18472
|
+
async deleteSeaweedFSAccount(orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
18473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSAccount(orgName, clusterName, accountName, options);
|
|
18474
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18475
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
|
|
18476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18477
|
+
},
|
|
18478
|
+
/**
|
|
18479
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
18480
|
+
* @summary deleteSeaweedFSPolicy
|
|
18481
|
+
* @param {string} orgName
|
|
18482
|
+
* @param {string} clusterName
|
|
18483
|
+
* @param {string} policyName
|
|
18484
|
+
* @param {*} [options] Override http request option.
|
|
18485
|
+
* @throws {RequiredError}
|
|
18486
|
+
*/
|
|
18487
|
+
async deleteSeaweedFSPolicy(orgName: string, clusterName: string, policyName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
18488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSeaweedFSPolicy(orgName, clusterName, policyName, options);
|
|
18489
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18490
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteSeaweedFSPolicy']?.[localVarOperationServerIndex]?.url;
|
|
18491
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18492
|
+
},
|
|
17772
18493
|
/**
|
|
17773
18494
|
* delete a MinIO service account access key
|
|
17774
18495
|
* @summary Delete MinIO access key
|
|
@@ -18726,6 +19447,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18726
19447
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getRootAccountPassword']?.[localVarOperationServerIndex]?.url;
|
|
18727
19448
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18728
19449
|
},
|
|
19450
|
+
/**
|
|
19451
|
+
* get root account password
|
|
19452
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
19453
|
+
* @param {string} orgName name of the Org
|
|
19454
|
+
* @param {string} clusterName name of the Cluster
|
|
19455
|
+
* @param {string} accountName name of the account
|
|
19456
|
+
* @param {string} [component] name of the component
|
|
19457
|
+
* @param {*} [options] Override http request option.
|
|
19458
|
+
* @throws {RequiredError}
|
|
19459
|
+
*/
|
|
19460
|
+
async getRootSeaweedFSAccountPassword(orgName: string, clusterName: string, accountName: string, component?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
19461
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRootSeaweedFSAccountPassword(orgName, clusterName, accountName, component, options);
|
|
19462
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19463
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.getRootSeaweedFSAccountPassword']?.[localVarOperationServerIndex]?.url;
|
|
19464
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19465
|
+
},
|
|
18729
19466
|
/**
|
|
18730
19467
|
*
|
|
18731
19468
|
* @summary list all databases or schema of the cluster
|
|
@@ -19878,6 +20615,34 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
19878
20615
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.listRoles']?.[localVarOperationServerIndex]?.url;
|
|
19879
20616
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19880
20617
|
},
|
|
20618
|
+
/**
|
|
20619
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
20620
|
+
* @summary listSeaweedFSAccounts
|
|
20621
|
+
* @param {string} orgName name of the organization
|
|
20622
|
+
* @param {string} clusterName name of the cluster
|
|
20623
|
+
* @param {*} [options] Override http request option.
|
|
20624
|
+
* @throws {RequiredError}
|
|
20625
|
+
*/
|
|
20626
|
+
async listSeaweedFSAccounts(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AccountListItem>>> {
|
|
20627
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSAccounts(orgName, clusterName, options);
|
|
20628
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20629
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listSeaweedFSAccounts']?.[localVarOperationServerIndex]?.url;
|
|
20630
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20631
|
+
},
|
|
20632
|
+
/**
|
|
20633
|
+
*
|
|
20634
|
+
* @summary listSeaweedFSPolicies
|
|
20635
|
+
* @param {string} orgName
|
|
20636
|
+
* @param {string} clusterName
|
|
20637
|
+
* @param {*} [options] Override http request option.
|
|
20638
|
+
* @throws {RequiredError}
|
|
20639
|
+
*/
|
|
20640
|
+
async listSeaweedFSPolicies(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSeaweedFSPolicies200Response>> {
|
|
20641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSeaweedFSPolicies(orgName, clusterName, options);
|
|
20642
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20643
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listSeaweedFSPolicies']?.[localVarOperationServerIndex]?.url;
|
|
20644
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20645
|
+
},
|
|
19881
20646
|
/**
|
|
19882
20647
|
* list MinIO service account access keys
|
|
19883
20648
|
* @summary List MinIO access keys
|
|
@@ -20196,6 +20961,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
20196
20961
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.putElasticsearchSecurityUser']?.[localVarOperationServerIndex]?.url;
|
|
20197
20962
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20198
20963
|
},
|
|
20964
|
+
/**
|
|
20965
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
20966
|
+
* @summary putSeaweedFSPolicy
|
|
20967
|
+
* @param {string} orgName
|
|
20968
|
+
* @param {string} clusterName
|
|
20969
|
+
* @param {string} policyName
|
|
20970
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
20971
|
+
* @param {*} [options] Override http request option.
|
|
20972
|
+
* @throws {RequiredError}
|
|
20973
|
+
*/
|
|
20974
|
+
async putSeaweedFSPolicy(orgName: string, clusterName: string, policyName: string, requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
20975
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putSeaweedFSPolicy(orgName, clusterName, policyName, requestBody, options);
|
|
20976
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20977
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.putSeaweedFSPolicy']?.[localVarOperationServerIndex]?.url;
|
|
20978
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20979
|
+
},
|
|
20199
20980
|
/**
|
|
20200
20981
|
*
|
|
20201
20982
|
* @summary create a SQL query
|
|
@@ -21315,6 +22096,38 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
21315
22096
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateRoleByName']?.[localVarOperationServerIndex]?.url;
|
|
21316
22097
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21317
22098
|
},
|
|
22099
|
+
/**
|
|
22100
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
22101
|
+
* @summary updateSeaweedFSAccount
|
|
22102
|
+
* @param {string} orgName name of the organization
|
|
22103
|
+
* @param {string} clusterName name of the cluster
|
|
22104
|
+
* @param {string} accountName name of the account
|
|
22105
|
+
* @param {Account} body
|
|
22106
|
+
* @param {*} [options] Override http request option.
|
|
22107
|
+
* @throws {RequiredError}
|
|
22108
|
+
*/
|
|
22109
|
+
async updateSeaweedFSAccount(orgName: string, clusterName: string, accountName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>> {
|
|
22110
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccount(orgName, clusterName, accountName, body, options);
|
|
22111
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22112
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateSeaweedFSAccount']?.[localVarOperationServerIndex]?.url;
|
|
22113
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22114
|
+
},
|
|
22115
|
+
/**
|
|
22116
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
22117
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
22118
|
+
* @param {string} orgName name of the Org
|
|
22119
|
+
* @param {string} clusterName name of the Cluster
|
|
22120
|
+
* @param {string} accountName name of the account
|
|
22121
|
+
* @param {Array<PrivilegeListItem>} body
|
|
22122
|
+
* @param {*} [options] Override http request option.
|
|
22123
|
+
* @throws {RequiredError}
|
|
22124
|
+
*/
|
|
22125
|
+
async updateSeaweedFSAccountPrivileges(orgName: string, clusterName: string, accountName: string, body: Array<PrivilegeListItem>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
22126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSeaweedFSAccountPrivileges(orgName, clusterName, accountName, body, options);
|
|
22127
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22128
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateSeaweedFSAccountPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
22129
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22130
|
+
},
|
|
21318
22131
|
/**
|
|
21319
22132
|
* update a MinIO service account access key
|
|
21320
22133
|
* @summary Update MinIO access key
|
|
@@ -21550,6 +22363,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21550
22363
|
batchUpdateOrgParameters(requestParameters: SharedApiBatchUpdateOrgParametersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrgParameter>> {
|
|
21551
22364
|
return localVarFp.batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
|
|
21552
22365
|
},
|
|
22366
|
+
/**
|
|
22367
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
22368
|
+
* @summary bindSeaweedFSPolicies
|
|
22369
|
+
* @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
22370
|
+
* @param {*} [options] Override http request option.
|
|
22371
|
+
* @throws {RequiredError}
|
|
22372
|
+
*/
|
|
22373
|
+
bindSeaweedFSPolicies(requestParameters: SharedApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
22374
|
+
return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
|
|
22375
|
+
},
|
|
21553
22376
|
/**
|
|
21554
22377
|
*
|
|
21555
22378
|
* @summary build backup object with a existing backup directory
|
|
@@ -21791,6 +22614,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21791
22614
|
createRole(requestParameters: SharedApiCreateRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<Role> {
|
|
21792
22615
|
return localVarFp.createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(axios, basePath));
|
|
21793
22616
|
},
|
|
22617
|
+
/**
|
|
22618
|
+
* 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.
|
|
22619
|
+
* @summary createSeaweedFSAccessKey
|
|
22620
|
+
* @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
22621
|
+
* @param {*} [options] Override http request option.
|
|
22622
|
+
* @throws {RequiredError}
|
|
22623
|
+
*/
|
|
22624
|
+
createSeaweedFSAccessKey(requestParameters: SharedApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
|
|
22625
|
+
return localVarFp.createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(axios, basePath));
|
|
22626
|
+
},
|
|
22627
|
+
/**
|
|
22628
|
+
* 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.
|
|
22629
|
+
* @summary createSeaweedFSAccount
|
|
22630
|
+
* @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
22631
|
+
* @param {*} [options] Override http request option.
|
|
22632
|
+
* @throws {RequiredError}
|
|
22633
|
+
*/
|
|
22634
|
+
createSeaweedFSAccount(requestParameters: SharedApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
|
|
22635
|
+
return localVarFp.createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
22636
|
+
},
|
|
21794
22637
|
/**
|
|
21795
22638
|
* create a MinIO service account access key
|
|
21796
22639
|
* @summary Create MinIO access key
|
|
@@ -22141,6 +22984,36 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22141
22984
|
deleteRoleByName(requestParameters: SharedApiDeleteRoleByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
22142
22985
|
return localVarFp.deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
22143
22986
|
},
|
|
22987
|
+
/**
|
|
22988
|
+
*
|
|
22989
|
+
* @summary deleteSeaweedFSAccessKey
|
|
22990
|
+
* @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
22991
|
+
* @param {*} [options] Override http request option.
|
|
22992
|
+
* @throws {RequiredError}
|
|
22993
|
+
*/
|
|
22994
|
+
deleteSeaweedFSAccessKey(requestParameters: SharedApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
22995
|
+
return localVarFp.deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
|
|
22996
|
+
},
|
|
22997
|
+
/**
|
|
22998
|
+
* delete an account in cluster
|
|
22999
|
+
* @summary deleteSeaweedFSAccount
|
|
23000
|
+
* @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
23001
|
+
* @param {*} [options] Override http request option.
|
|
23002
|
+
* @throws {RequiredError}
|
|
23003
|
+
*/
|
|
23004
|
+
deleteSeaweedFSAccount(requestParameters: SharedApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
23005
|
+
return localVarFp.deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
23006
|
+
},
|
|
23007
|
+
/**
|
|
23008
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
23009
|
+
* @summary deleteSeaweedFSPolicy
|
|
23010
|
+
* @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
23011
|
+
* @param {*} [options] Override http request option.
|
|
23012
|
+
* @throws {RequiredError}
|
|
23013
|
+
*/
|
|
23014
|
+
deleteSeaweedFSPolicy(requestParameters: SharedApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
23015
|
+
return localVarFp.deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(axios, basePath));
|
|
23016
|
+
},
|
|
22144
23017
|
/**
|
|
22145
23018
|
* delete a MinIO service account access key
|
|
22146
23019
|
* @summary Delete MinIO access key
|
|
@@ -22750,6 +23623,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22750
23623
|
getRootAccountPassword(requestParameters: SharedApiGetRootAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
22751
23624
|
return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
22752
23625
|
},
|
|
23626
|
+
/**
|
|
23627
|
+
* get root account password
|
|
23628
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
23629
|
+
* @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
23630
|
+
* @param {*} [options] Override http request option.
|
|
23631
|
+
* @throws {RequiredError}
|
|
23632
|
+
*/
|
|
23633
|
+
getRootSeaweedFSAccountPassword(requestParameters: SharedApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
23634
|
+
return localVarFp.getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
23635
|
+
},
|
|
22753
23636
|
/**
|
|
22754
23637
|
*
|
|
22755
23638
|
* @summary list all databases or schema of the cluster
|
|
@@ -23496,6 +24379,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23496
24379
|
listRoles(requestParameters: SharedApiListRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<RoleList> {
|
|
23497
24380
|
return localVarFp.listRoles(requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
23498
24381
|
},
|
|
24382
|
+
/**
|
|
24383
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
24384
|
+
* @summary listSeaweedFSAccounts
|
|
24385
|
+
* @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
24386
|
+
* @param {*} [options] Override http request option.
|
|
24387
|
+
* @throws {RequiredError}
|
|
24388
|
+
*/
|
|
24389
|
+
listSeaweedFSAccounts(requestParameters: SharedApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountListItem>> {
|
|
24390
|
+
return localVarFp.listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
24391
|
+
},
|
|
24392
|
+
/**
|
|
24393
|
+
*
|
|
24394
|
+
* @summary listSeaweedFSPolicies
|
|
24395
|
+
* @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
24396
|
+
* @param {*} [options] Override http request option.
|
|
24397
|
+
* @throws {RequiredError}
|
|
24398
|
+
*/
|
|
24399
|
+
listSeaweedFSPolicies(requestParameters: SharedApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSeaweedFSPolicies200Response> {
|
|
24400
|
+
return localVarFp.listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
24401
|
+
},
|
|
23499
24402
|
/**
|
|
23500
24403
|
* list MinIO service account access keys
|
|
23501
24404
|
* @summary List MinIO access keys
|
|
@@ -23706,6 +24609,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23706
24609
|
putElasticsearchSecurityUser(requestParameters: SharedApiPutElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
23707
24610
|
return localVarFp.putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
23708
24611
|
},
|
|
24612
|
+
/**
|
|
24613
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
24614
|
+
* @summary putSeaweedFSPolicy
|
|
24615
|
+
* @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
24616
|
+
* @param {*} [options] Override http request option.
|
|
24617
|
+
* @throws {RequiredError}
|
|
24618
|
+
*/
|
|
24619
|
+
putSeaweedFSPolicy(requestParameters: SharedApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
24620
|
+
return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
24621
|
+
},
|
|
23709
24622
|
/**
|
|
23710
24623
|
*
|
|
23711
24624
|
* @summary create a SQL query
|
|
@@ -24345,6 +25258,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
24345
25258
|
updateRoleByName(requestParameters: SharedApiUpdateRoleByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<Role> {
|
|
24346
25259
|
return localVarFp.updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(axios, basePath));
|
|
24347
25260
|
},
|
|
25261
|
+
/**
|
|
25262
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
25263
|
+
* @summary updateSeaweedFSAccount
|
|
25264
|
+
* @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
25265
|
+
* @param {*} [options] Override http request option.
|
|
25266
|
+
* @throws {RequiredError}
|
|
25267
|
+
*/
|
|
25268
|
+
updateSeaweedFSAccount(requestParameters: SharedApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
|
|
25269
|
+
return localVarFp.updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
25270
|
+
},
|
|
25271
|
+
/**
|
|
25272
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
25273
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
25274
|
+
* @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
25275
|
+
* @param {*} [options] Override http request option.
|
|
25276
|
+
* @throws {RequiredError}
|
|
25277
|
+
*/
|
|
25278
|
+
updateSeaweedFSAccountPrivileges(requestParameters: SharedApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
25279
|
+
return localVarFp.updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
25280
|
+
},
|
|
24348
25281
|
/**
|
|
24349
25282
|
* update a MinIO service account access key
|
|
24350
25283
|
* @summary Update MinIO access key
|
|
@@ -24532,6 +25465,16 @@ export interface SharedApiInterface {
|
|
|
24532
25465
|
*/
|
|
24533
25466
|
batchUpdateOrgParameters(requestParameters: SharedApiBatchUpdateOrgParametersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrgParameter>>;
|
|
24534
25467
|
|
|
25468
|
+
/**
|
|
25469
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
25470
|
+
* @summary bindSeaweedFSPolicies
|
|
25471
|
+
* @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
25472
|
+
* @param {*} [options] Override http request option.
|
|
25473
|
+
* @throws {RequiredError}
|
|
25474
|
+
* @memberof SharedApiInterface
|
|
25475
|
+
*/
|
|
25476
|
+
bindSeaweedFSPolicies(requestParameters: SharedApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
25477
|
+
|
|
24535
25478
|
/**
|
|
24536
25479
|
*
|
|
24537
25480
|
* @summary build backup object with a existing backup directory
|
|
@@ -24773,6 +25716,26 @@ export interface SharedApiInterface {
|
|
|
24773
25716
|
*/
|
|
24774
25717
|
createRole(requestParameters: SharedApiCreateRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<Role>;
|
|
24775
25718
|
|
|
25719
|
+
/**
|
|
25720
|
+
* 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.
|
|
25721
|
+
* @summary createSeaweedFSAccessKey
|
|
25722
|
+
* @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
25723
|
+
* @param {*} [options] Override http request option.
|
|
25724
|
+
* @throws {RequiredError}
|
|
25725
|
+
* @memberof SharedApiInterface
|
|
25726
|
+
*/
|
|
25727
|
+
createSeaweedFSAccessKey(requestParameters: SharedApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
|
|
25728
|
+
|
|
25729
|
+
/**
|
|
25730
|
+
* 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.
|
|
25731
|
+
* @summary createSeaweedFSAccount
|
|
25732
|
+
* @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
25733
|
+
* @param {*} [options] Override http request option.
|
|
25734
|
+
* @throws {RequiredError}
|
|
25735
|
+
* @memberof SharedApiInterface
|
|
25736
|
+
*/
|
|
25737
|
+
createSeaweedFSAccount(requestParameters: SharedApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
|
|
25738
|
+
|
|
24776
25739
|
/**
|
|
24777
25740
|
* create a MinIO service account access key
|
|
24778
25741
|
* @summary Create MinIO access key
|
|
@@ -25123,6 +26086,36 @@ export interface SharedApiInterface {
|
|
|
25123
26086
|
*/
|
|
25124
26087
|
deleteRoleByName(requestParameters: SharedApiDeleteRoleByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
25125
26088
|
|
|
26089
|
+
/**
|
|
26090
|
+
*
|
|
26091
|
+
* @summary deleteSeaweedFSAccessKey
|
|
26092
|
+
* @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
26093
|
+
* @param {*} [options] Override http request option.
|
|
26094
|
+
* @throws {RequiredError}
|
|
26095
|
+
* @memberof SharedApiInterface
|
|
26096
|
+
*/
|
|
26097
|
+
deleteSeaweedFSAccessKey(requestParameters: SharedApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26098
|
+
|
|
26099
|
+
/**
|
|
26100
|
+
* delete an account in cluster
|
|
26101
|
+
* @summary deleteSeaweedFSAccount
|
|
26102
|
+
* @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
26103
|
+
* @param {*} [options] Override http request option.
|
|
26104
|
+
* @throws {RequiredError}
|
|
26105
|
+
* @memberof SharedApiInterface
|
|
26106
|
+
*/
|
|
26107
|
+
deleteSeaweedFSAccount(requestParameters: SharedApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26108
|
+
|
|
26109
|
+
/**
|
|
26110
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
26111
|
+
* @summary deleteSeaweedFSPolicy
|
|
26112
|
+
* @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
26113
|
+
* @param {*} [options] Override http request option.
|
|
26114
|
+
* @throws {RequiredError}
|
|
26115
|
+
* @memberof SharedApiInterface
|
|
26116
|
+
*/
|
|
26117
|
+
deleteSeaweedFSPolicy(requestParameters: SharedApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26118
|
+
|
|
25126
26119
|
/**
|
|
25127
26120
|
* delete a MinIO service account access key
|
|
25128
26121
|
* @summary Delete MinIO access key
|
|
@@ -25732,6 +26725,16 @@ export interface SharedApiInterface {
|
|
|
25732
26725
|
*/
|
|
25733
26726
|
getRootAccountPassword(requestParameters: SharedApiGetRootAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
25734
26727
|
|
|
26728
|
+
/**
|
|
26729
|
+
* get root account password
|
|
26730
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
26731
|
+
* @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
26732
|
+
* @param {*} [options] Override http request option.
|
|
26733
|
+
* @throws {RequiredError}
|
|
26734
|
+
* @memberof SharedApiInterface
|
|
26735
|
+
*/
|
|
26736
|
+
getRootSeaweedFSAccountPassword(requestParameters: SharedApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
26737
|
+
|
|
25735
26738
|
/**
|
|
25736
26739
|
*
|
|
25737
26740
|
* @summary list all databases or schema of the cluster
|
|
@@ -26478,6 +27481,26 @@ export interface SharedApiInterface {
|
|
|
26478
27481
|
*/
|
|
26479
27482
|
listRoles(requestParameters: SharedApiListRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<RoleList>;
|
|
26480
27483
|
|
|
27484
|
+
/**
|
|
27485
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
27486
|
+
* @summary listSeaweedFSAccounts
|
|
27487
|
+
* @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
27488
|
+
* @param {*} [options] Override http request option.
|
|
27489
|
+
* @throws {RequiredError}
|
|
27490
|
+
* @memberof SharedApiInterface
|
|
27491
|
+
*/
|
|
27492
|
+
listSeaweedFSAccounts(requestParameters: SharedApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountListItem>>;
|
|
27493
|
+
|
|
27494
|
+
/**
|
|
27495
|
+
*
|
|
27496
|
+
* @summary listSeaweedFSPolicies
|
|
27497
|
+
* @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
27498
|
+
* @param {*} [options] Override http request option.
|
|
27499
|
+
* @throws {RequiredError}
|
|
27500
|
+
* @memberof SharedApiInterface
|
|
27501
|
+
*/
|
|
27502
|
+
listSeaweedFSPolicies(requestParameters: SharedApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListSeaweedFSPolicies200Response>;
|
|
27503
|
+
|
|
26481
27504
|
/**
|
|
26482
27505
|
* list MinIO service account access keys
|
|
26483
27506
|
* @summary List MinIO access keys
|
|
@@ -26688,6 +27711,16 @@ export interface SharedApiInterface {
|
|
|
26688
27711
|
*/
|
|
26689
27712
|
putElasticsearchSecurityUser(requestParameters: SharedApiPutElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26690
27713
|
|
|
27714
|
+
/**
|
|
27715
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
27716
|
+
* @summary putSeaweedFSPolicy
|
|
27717
|
+
* @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
27718
|
+
* @param {*} [options] Override http request option.
|
|
27719
|
+
* @throws {RequiredError}
|
|
27720
|
+
* @memberof SharedApiInterface
|
|
27721
|
+
*/
|
|
27722
|
+
putSeaweedFSPolicy(requestParameters: SharedApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
27723
|
+
|
|
26691
27724
|
/**
|
|
26692
27725
|
*
|
|
26693
27726
|
* @summary create a SQL query
|
|
@@ -27327,6 +28360,26 @@ export interface SharedApiInterface {
|
|
|
27327
28360
|
*/
|
|
27328
28361
|
updateRoleByName(requestParameters: SharedApiUpdateRoleByNameRequest, options?: RawAxiosRequestConfig): AxiosPromise<Role>;
|
|
27329
28362
|
|
|
28363
|
+
/**
|
|
28364
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
28365
|
+
* @summary updateSeaweedFSAccount
|
|
28366
|
+
* @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
28367
|
+
* @param {*} [options] Override http request option.
|
|
28368
|
+
* @throws {RequiredError}
|
|
28369
|
+
* @memberof SharedApiInterface
|
|
28370
|
+
*/
|
|
28371
|
+
updateSeaweedFSAccount(requestParameters: SharedApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
|
|
28372
|
+
|
|
28373
|
+
/**
|
|
28374
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
28375
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
28376
|
+
* @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
28377
|
+
* @param {*} [options] Override http request option.
|
|
28378
|
+
* @throws {RequiredError}
|
|
28379
|
+
* @memberof SharedApiInterface
|
|
28380
|
+
*/
|
|
28381
|
+
updateSeaweedFSAccountPrivileges(requestParameters: SharedApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
28382
|
+
|
|
27330
28383
|
/**
|
|
27331
28384
|
* update a MinIO service account access key
|
|
27332
28385
|
* @summary Update MinIO access key
|
|
@@ -27775,6 +28828,41 @@ export interface SharedApiBatchUpdateOrgParametersRequest {
|
|
|
27775
28828
|
readonly orgParameter: Array<OrgParameter>
|
|
27776
28829
|
}
|
|
27777
28830
|
|
|
28831
|
+
/**
|
|
28832
|
+
* Request parameters for bindSeaweedFSPolicies operation in SharedApi.
|
|
28833
|
+
* @export
|
|
28834
|
+
* @interface SharedApiBindSeaweedFSPoliciesRequest
|
|
28835
|
+
*/
|
|
28836
|
+
export interface SharedApiBindSeaweedFSPoliciesRequest {
|
|
28837
|
+
/**
|
|
28838
|
+
*
|
|
28839
|
+
* @type {string}
|
|
28840
|
+
* @memberof SharedApiBindSeaweedFSPolicies
|
|
28841
|
+
*/
|
|
28842
|
+
readonly orgName: string
|
|
28843
|
+
|
|
28844
|
+
/**
|
|
28845
|
+
*
|
|
28846
|
+
* @type {string}
|
|
28847
|
+
* @memberof SharedApiBindSeaweedFSPolicies
|
|
28848
|
+
*/
|
|
28849
|
+
readonly clusterName: string
|
|
28850
|
+
|
|
28851
|
+
/**
|
|
28852
|
+
*
|
|
28853
|
+
* @type {string}
|
|
28854
|
+
* @memberof SharedApiBindSeaweedFSPolicies
|
|
28855
|
+
*/
|
|
28856
|
+
readonly accountName: string
|
|
28857
|
+
|
|
28858
|
+
/**
|
|
28859
|
+
*
|
|
28860
|
+
* @type {BindSeaweedFSPoliciesRequest}
|
|
28861
|
+
* @memberof SharedApiBindSeaweedFSPolicies
|
|
28862
|
+
*/
|
|
28863
|
+
readonly bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest
|
|
28864
|
+
}
|
|
28865
|
+
|
|
27778
28866
|
/**
|
|
27779
28867
|
* Request parameters for buildBackupObj operation in SharedApi.
|
|
27780
28868
|
* @export
|
|
@@ -28468,6 +29556,69 @@ export interface SharedApiCreateRoleRequest {
|
|
|
28468
29556
|
readonly roleCreate: RoleCreate
|
|
28469
29557
|
}
|
|
28470
29558
|
|
|
29559
|
+
/**
|
|
29560
|
+
* Request parameters for createSeaweedFSAccessKey operation in SharedApi.
|
|
29561
|
+
* @export
|
|
29562
|
+
* @interface SharedApiCreateSeaweedFSAccessKeyRequest
|
|
29563
|
+
*/
|
|
29564
|
+
export interface SharedApiCreateSeaweedFSAccessKeyRequest {
|
|
29565
|
+
/**
|
|
29566
|
+
*
|
|
29567
|
+
* @type {string}
|
|
29568
|
+
* @memberof SharedApiCreateSeaweedFSAccessKey
|
|
29569
|
+
*/
|
|
29570
|
+
readonly orgName: string
|
|
29571
|
+
|
|
29572
|
+
/**
|
|
29573
|
+
*
|
|
29574
|
+
* @type {string}
|
|
29575
|
+
* @memberof SharedApiCreateSeaweedFSAccessKey
|
|
29576
|
+
*/
|
|
29577
|
+
readonly clusterName: string
|
|
29578
|
+
|
|
29579
|
+
/**
|
|
29580
|
+
*
|
|
29581
|
+
* @type {string}
|
|
29582
|
+
* @memberof SharedApiCreateSeaweedFSAccessKey
|
|
29583
|
+
*/
|
|
29584
|
+
readonly accountName: string
|
|
29585
|
+
|
|
29586
|
+
/**
|
|
29587
|
+
*
|
|
29588
|
+
* @type {Account}
|
|
29589
|
+
* @memberof SharedApiCreateSeaweedFSAccessKey
|
|
29590
|
+
*/
|
|
29591
|
+
readonly account: Account
|
|
29592
|
+
}
|
|
29593
|
+
|
|
29594
|
+
/**
|
|
29595
|
+
* Request parameters for createSeaweedFSAccount operation in SharedApi.
|
|
29596
|
+
* @export
|
|
29597
|
+
* @interface SharedApiCreateSeaweedFSAccountRequest
|
|
29598
|
+
*/
|
|
29599
|
+
export interface SharedApiCreateSeaweedFSAccountRequest {
|
|
29600
|
+
/**
|
|
29601
|
+
* name of the organization
|
|
29602
|
+
* @type {string}
|
|
29603
|
+
* @memberof SharedApiCreateSeaweedFSAccount
|
|
29604
|
+
*/
|
|
29605
|
+
readonly orgName: string
|
|
29606
|
+
|
|
29607
|
+
/**
|
|
29608
|
+
* name of the cluster
|
|
29609
|
+
* @type {string}
|
|
29610
|
+
* @memberof SharedApiCreateSeaweedFSAccount
|
|
29611
|
+
*/
|
|
29612
|
+
readonly clusterName: string
|
|
29613
|
+
|
|
29614
|
+
/**
|
|
29615
|
+
*
|
|
29616
|
+
* @type {Account}
|
|
29617
|
+
* @memberof SharedApiCreateSeaweedFSAccount
|
|
29618
|
+
*/
|
|
29619
|
+
readonly body: Account
|
|
29620
|
+
}
|
|
29621
|
+
|
|
28471
29622
|
/**
|
|
28472
29623
|
* Request parameters for createServiceAccount operation in SharedApi.
|
|
28473
29624
|
* @export
|
|
@@ -29420,6 +30571,97 @@ export interface SharedApiDeleteRoleByNameRequest {
|
|
|
29420
30571
|
readonly roleName: string
|
|
29421
30572
|
}
|
|
29422
30573
|
|
|
30574
|
+
/**
|
|
30575
|
+
* Request parameters for deleteSeaweedFSAccessKey operation in SharedApi.
|
|
30576
|
+
* @export
|
|
30577
|
+
* @interface SharedApiDeleteSeaweedFSAccessKeyRequest
|
|
30578
|
+
*/
|
|
30579
|
+
export interface SharedApiDeleteSeaweedFSAccessKeyRequest {
|
|
30580
|
+
/**
|
|
30581
|
+
*
|
|
30582
|
+
* @type {string}
|
|
30583
|
+
* @memberof SharedApiDeleteSeaweedFSAccessKey
|
|
30584
|
+
*/
|
|
30585
|
+
readonly orgName: string
|
|
30586
|
+
|
|
30587
|
+
/**
|
|
30588
|
+
*
|
|
30589
|
+
* @type {string}
|
|
30590
|
+
* @memberof SharedApiDeleteSeaweedFSAccessKey
|
|
30591
|
+
*/
|
|
30592
|
+
readonly clusterName: string
|
|
30593
|
+
|
|
30594
|
+
/**
|
|
30595
|
+
*
|
|
30596
|
+
* @type {string}
|
|
30597
|
+
* @memberof SharedApiDeleteSeaweedFSAccessKey
|
|
30598
|
+
*/
|
|
30599
|
+
readonly accountName: string
|
|
30600
|
+
|
|
30601
|
+
/**
|
|
30602
|
+
*
|
|
30603
|
+
* @type {string}
|
|
30604
|
+
* @memberof SharedApiDeleteSeaweedFSAccessKey
|
|
30605
|
+
*/
|
|
30606
|
+
readonly accessKey: string
|
|
30607
|
+
}
|
|
30608
|
+
|
|
30609
|
+
/**
|
|
30610
|
+
* Request parameters for deleteSeaweedFSAccount operation in SharedApi.
|
|
30611
|
+
* @export
|
|
30612
|
+
* @interface SharedApiDeleteSeaweedFSAccountRequest
|
|
30613
|
+
*/
|
|
30614
|
+
export interface SharedApiDeleteSeaweedFSAccountRequest {
|
|
30615
|
+
/**
|
|
30616
|
+
* name of the organization
|
|
30617
|
+
* @type {string}
|
|
30618
|
+
* @memberof SharedApiDeleteSeaweedFSAccount
|
|
30619
|
+
*/
|
|
30620
|
+
readonly orgName: string
|
|
30621
|
+
|
|
30622
|
+
/**
|
|
30623
|
+
* name of the cluster
|
|
30624
|
+
* @type {string}
|
|
30625
|
+
* @memberof SharedApiDeleteSeaweedFSAccount
|
|
30626
|
+
*/
|
|
30627
|
+
readonly clusterName: string
|
|
30628
|
+
|
|
30629
|
+
/**
|
|
30630
|
+
* name of the account
|
|
30631
|
+
* @type {string}
|
|
30632
|
+
* @memberof SharedApiDeleteSeaweedFSAccount
|
|
30633
|
+
*/
|
|
30634
|
+
readonly accountName: string
|
|
30635
|
+
}
|
|
30636
|
+
|
|
30637
|
+
/**
|
|
30638
|
+
* Request parameters for deleteSeaweedFSPolicy operation in SharedApi.
|
|
30639
|
+
* @export
|
|
30640
|
+
* @interface SharedApiDeleteSeaweedFSPolicyRequest
|
|
30641
|
+
*/
|
|
30642
|
+
export interface SharedApiDeleteSeaweedFSPolicyRequest {
|
|
30643
|
+
/**
|
|
30644
|
+
*
|
|
30645
|
+
* @type {string}
|
|
30646
|
+
* @memberof SharedApiDeleteSeaweedFSPolicy
|
|
30647
|
+
*/
|
|
30648
|
+
readonly orgName: string
|
|
30649
|
+
|
|
30650
|
+
/**
|
|
30651
|
+
*
|
|
30652
|
+
* @type {string}
|
|
30653
|
+
* @memberof SharedApiDeleteSeaweedFSPolicy
|
|
30654
|
+
*/
|
|
30655
|
+
readonly clusterName: string
|
|
30656
|
+
|
|
30657
|
+
/**
|
|
30658
|
+
*
|
|
30659
|
+
* @type {string}
|
|
30660
|
+
* @memberof SharedApiDeleteSeaweedFSPolicy
|
|
30661
|
+
*/
|
|
30662
|
+
readonly policyName: string
|
|
30663
|
+
}
|
|
30664
|
+
|
|
29423
30665
|
/**
|
|
29424
30666
|
* Request parameters for deleteServiceAccount operation in SharedApi.
|
|
29425
30667
|
* @export
|
|
@@ -31429,6 +32671,41 @@ export interface SharedApiGetRootAccountPasswordRequest {
|
|
|
31429
32671
|
readonly component?: string
|
|
31430
32672
|
}
|
|
31431
32673
|
|
|
32674
|
+
/**
|
|
32675
|
+
* Request parameters for getRootSeaweedFSAccountPassword operation in SharedApi.
|
|
32676
|
+
* @export
|
|
32677
|
+
* @interface SharedApiGetRootSeaweedFSAccountPasswordRequest
|
|
32678
|
+
*/
|
|
32679
|
+
export interface SharedApiGetRootSeaweedFSAccountPasswordRequest {
|
|
32680
|
+
/**
|
|
32681
|
+
* name of the Org
|
|
32682
|
+
* @type {string}
|
|
32683
|
+
* @memberof SharedApiGetRootSeaweedFSAccountPassword
|
|
32684
|
+
*/
|
|
32685
|
+
readonly orgName: string
|
|
32686
|
+
|
|
32687
|
+
/**
|
|
32688
|
+
* name of the Cluster
|
|
32689
|
+
* @type {string}
|
|
32690
|
+
* @memberof SharedApiGetRootSeaweedFSAccountPassword
|
|
32691
|
+
*/
|
|
32692
|
+
readonly clusterName: string
|
|
32693
|
+
|
|
32694
|
+
/**
|
|
32695
|
+
* name of the account
|
|
32696
|
+
* @type {string}
|
|
32697
|
+
* @memberof SharedApiGetRootSeaweedFSAccountPassword
|
|
32698
|
+
*/
|
|
32699
|
+
readonly accountName: string
|
|
32700
|
+
|
|
32701
|
+
/**
|
|
32702
|
+
* name of the component
|
|
32703
|
+
* @type {string}
|
|
32704
|
+
* @memberof SharedApiGetRootSeaweedFSAccountPassword
|
|
32705
|
+
*/
|
|
32706
|
+
readonly component?: string
|
|
32707
|
+
}
|
|
32708
|
+
|
|
31432
32709
|
/**
|
|
31433
32710
|
* Request parameters for getSchemaList operation in SharedApi.
|
|
31434
32711
|
* @export
|
|
@@ -33690,6 +34967,48 @@ export interface SharedApiListRolesRequest {
|
|
|
33690
34967
|
readonly orgName: string
|
|
33691
34968
|
}
|
|
33692
34969
|
|
|
34970
|
+
/**
|
|
34971
|
+
* Request parameters for listSeaweedFSAccounts operation in SharedApi.
|
|
34972
|
+
* @export
|
|
34973
|
+
* @interface SharedApiListSeaweedFSAccountsRequest
|
|
34974
|
+
*/
|
|
34975
|
+
export interface SharedApiListSeaweedFSAccountsRequest {
|
|
34976
|
+
/**
|
|
34977
|
+
* name of the organization
|
|
34978
|
+
* @type {string}
|
|
34979
|
+
* @memberof SharedApiListSeaweedFSAccounts
|
|
34980
|
+
*/
|
|
34981
|
+
readonly orgName: string
|
|
34982
|
+
|
|
34983
|
+
/**
|
|
34984
|
+
* name of the cluster
|
|
34985
|
+
* @type {string}
|
|
34986
|
+
* @memberof SharedApiListSeaweedFSAccounts
|
|
34987
|
+
*/
|
|
34988
|
+
readonly clusterName: string
|
|
34989
|
+
}
|
|
34990
|
+
|
|
34991
|
+
/**
|
|
34992
|
+
* Request parameters for listSeaweedFSPolicies operation in SharedApi.
|
|
34993
|
+
* @export
|
|
34994
|
+
* @interface SharedApiListSeaweedFSPoliciesRequest
|
|
34995
|
+
*/
|
|
34996
|
+
export interface SharedApiListSeaweedFSPoliciesRequest {
|
|
34997
|
+
/**
|
|
34998
|
+
*
|
|
34999
|
+
* @type {string}
|
|
35000
|
+
* @memberof SharedApiListSeaweedFSPolicies
|
|
35001
|
+
*/
|
|
35002
|
+
readonly orgName: string
|
|
35003
|
+
|
|
35004
|
+
/**
|
|
35005
|
+
*
|
|
35006
|
+
* @type {string}
|
|
35007
|
+
* @memberof SharedApiListSeaweedFSPolicies
|
|
35008
|
+
*/
|
|
35009
|
+
readonly clusterName: string
|
|
35010
|
+
}
|
|
35011
|
+
|
|
33693
35012
|
/**
|
|
33694
35013
|
* Request parameters for listServiceAccounts operation in SharedApi.
|
|
33695
35014
|
* @export
|
|
@@ -34285,6 +35604,41 @@ export interface SharedApiPutElasticsearchSecurityUserRequest {
|
|
|
34285
35604
|
readonly body: ESPutSecurityUserRequest
|
|
34286
35605
|
}
|
|
34287
35606
|
|
|
35607
|
+
/**
|
|
35608
|
+
* Request parameters for putSeaweedFSPolicy operation in SharedApi.
|
|
35609
|
+
* @export
|
|
35610
|
+
* @interface SharedApiPutSeaweedFSPolicyRequest
|
|
35611
|
+
*/
|
|
35612
|
+
export interface SharedApiPutSeaweedFSPolicyRequest {
|
|
35613
|
+
/**
|
|
35614
|
+
*
|
|
35615
|
+
* @type {string}
|
|
35616
|
+
* @memberof SharedApiPutSeaweedFSPolicy
|
|
35617
|
+
*/
|
|
35618
|
+
readonly orgName: string
|
|
35619
|
+
|
|
35620
|
+
/**
|
|
35621
|
+
*
|
|
35622
|
+
* @type {string}
|
|
35623
|
+
* @memberof SharedApiPutSeaweedFSPolicy
|
|
35624
|
+
*/
|
|
35625
|
+
readonly clusterName: string
|
|
35626
|
+
|
|
35627
|
+
/**
|
|
35628
|
+
*
|
|
35629
|
+
* @type {string}
|
|
35630
|
+
* @memberof SharedApiPutSeaweedFSPolicy
|
|
35631
|
+
*/
|
|
35632
|
+
readonly policyName: string
|
|
35633
|
+
|
|
35634
|
+
/**
|
|
35635
|
+
*
|
|
35636
|
+
* @type {{ [key: string]: any; }}
|
|
35637
|
+
* @memberof SharedApiPutSeaweedFSPolicy
|
|
35638
|
+
*/
|
|
35639
|
+
readonly requestBody: { [key: string]: any; }
|
|
35640
|
+
}
|
|
35641
|
+
|
|
34288
35642
|
/**
|
|
34289
35643
|
* Request parameters for query operation in SharedApi.
|
|
34290
35644
|
* @export
|
|
@@ -37183,6 +38537,76 @@ export interface SharedApiUpdateRoleByNameRequest {
|
|
|
37183
38537
|
readonly roleUpdate: RoleUpdate
|
|
37184
38538
|
}
|
|
37185
38539
|
|
|
38540
|
+
/**
|
|
38541
|
+
* Request parameters for updateSeaweedFSAccount operation in SharedApi.
|
|
38542
|
+
* @export
|
|
38543
|
+
* @interface SharedApiUpdateSeaweedFSAccountRequest
|
|
38544
|
+
*/
|
|
38545
|
+
export interface SharedApiUpdateSeaweedFSAccountRequest {
|
|
38546
|
+
/**
|
|
38547
|
+
* name of the organization
|
|
38548
|
+
* @type {string}
|
|
38549
|
+
* @memberof SharedApiUpdateSeaweedFSAccount
|
|
38550
|
+
*/
|
|
38551
|
+
readonly orgName: string
|
|
38552
|
+
|
|
38553
|
+
/**
|
|
38554
|
+
* name of the cluster
|
|
38555
|
+
* @type {string}
|
|
38556
|
+
* @memberof SharedApiUpdateSeaweedFSAccount
|
|
38557
|
+
*/
|
|
38558
|
+
readonly clusterName: string
|
|
38559
|
+
|
|
38560
|
+
/**
|
|
38561
|
+
* name of the account
|
|
38562
|
+
* @type {string}
|
|
38563
|
+
* @memberof SharedApiUpdateSeaweedFSAccount
|
|
38564
|
+
*/
|
|
38565
|
+
readonly accountName: string
|
|
38566
|
+
|
|
38567
|
+
/**
|
|
38568
|
+
*
|
|
38569
|
+
* @type {Account}
|
|
38570
|
+
* @memberof SharedApiUpdateSeaweedFSAccount
|
|
38571
|
+
*/
|
|
38572
|
+
readonly body: Account
|
|
38573
|
+
}
|
|
38574
|
+
|
|
38575
|
+
/**
|
|
38576
|
+
* Request parameters for updateSeaweedFSAccountPrivileges operation in SharedApi.
|
|
38577
|
+
* @export
|
|
38578
|
+
* @interface SharedApiUpdateSeaweedFSAccountPrivilegesRequest
|
|
38579
|
+
*/
|
|
38580
|
+
export interface SharedApiUpdateSeaweedFSAccountPrivilegesRequest {
|
|
38581
|
+
/**
|
|
38582
|
+
* name of the Org
|
|
38583
|
+
* @type {string}
|
|
38584
|
+
* @memberof SharedApiUpdateSeaweedFSAccountPrivileges
|
|
38585
|
+
*/
|
|
38586
|
+
readonly orgName: string
|
|
38587
|
+
|
|
38588
|
+
/**
|
|
38589
|
+
* name of the Cluster
|
|
38590
|
+
* @type {string}
|
|
38591
|
+
* @memberof SharedApiUpdateSeaweedFSAccountPrivileges
|
|
38592
|
+
*/
|
|
38593
|
+
readonly clusterName: string
|
|
38594
|
+
|
|
38595
|
+
/**
|
|
38596
|
+
* name of the account
|
|
38597
|
+
* @type {string}
|
|
38598
|
+
* @memberof SharedApiUpdateSeaweedFSAccountPrivileges
|
|
38599
|
+
*/
|
|
38600
|
+
readonly accountName: string
|
|
38601
|
+
|
|
38602
|
+
/**
|
|
38603
|
+
*
|
|
38604
|
+
* @type {Array<PrivilegeListItem>}
|
|
38605
|
+
* @memberof SharedApiUpdateSeaweedFSAccountPrivileges
|
|
38606
|
+
*/
|
|
38607
|
+
readonly body: Array<PrivilegeListItem>
|
|
38608
|
+
}
|
|
38609
|
+
|
|
37186
38610
|
/**
|
|
37187
38611
|
* Request parameters for updateServiceAccount operation in SharedApi.
|
|
37188
38612
|
* @export
|
|
@@ -37563,6 +38987,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37563
38987
|
return SharedApiFp(this.configuration).batchUpdateOrgParameters(requestParameters.orgName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
|
|
37564
38988
|
}
|
|
37565
38989
|
|
|
38990
|
+
/**
|
|
38991
|
+
* Replaces named policy bindings. An empty policies array removes all direct bindings. Existing credentials, legacy actions and other identity attributes are preserved.
|
|
38992
|
+
* @summary bindSeaweedFSPolicies
|
|
38993
|
+
* @param {SharedApiBindSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
38994
|
+
* @param {*} [options] Override http request option.
|
|
38995
|
+
* @throws {RequiredError}
|
|
38996
|
+
* @memberof SharedApi
|
|
38997
|
+
*/
|
|
38998
|
+
public bindSeaweedFSPolicies(requestParameters: SharedApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig) {
|
|
38999
|
+
return SharedApiFp(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
39000
|
+
}
|
|
39001
|
+
|
|
37566
39002
|
/**
|
|
37567
39003
|
*
|
|
37568
39004
|
* @summary build backup object with a existing backup directory
|
|
@@ -37852,6 +39288,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37852
39288
|
return SharedApiFp(this.configuration).createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(this.axios, this.basePath));
|
|
37853
39289
|
}
|
|
37854
39290
|
|
|
39291
|
+
/**
|
|
39292
|
+
* 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.
|
|
39293
|
+
* @summary createSeaweedFSAccessKey
|
|
39294
|
+
* @param {SharedApiCreateSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
39295
|
+
* @param {*} [options] Override http request option.
|
|
39296
|
+
* @throws {RequiredError}
|
|
39297
|
+
* @memberof SharedApi
|
|
39298
|
+
*/
|
|
39299
|
+
public createSeaweedFSAccessKey(requestParameters: SharedApiCreateSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig) {
|
|
39300
|
+
return SharedApiFp(this.configuration).createSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.account, options).then((request) => request(this.axios, this.basePath));
|
|
39301
|
+
}
|
|
39302
|
+
|
|
39303
|
+
/**
|
|
39304
|
+
* 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.
|
|
39305
|
+
* @summary createSeaweedFSAccount
|
|
39306
|
+
* @param {SharedApiCreateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
39307
|
+
* @param {*} [options] Override http request option.
|
|
39308
|
+
* @throws {RequiredError}
|
|
39309
|
+
* @memberof SharedApi
|
|
39310
|
+
*/
|
|
39311
|
+
public createSeaweedFSAccount(requestParameters: SharedApiCreateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
|
|
39312
|
+
return SharedApiFp(this.configuration).createSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
39313
|
+
}
|
|
39314
|
+
|
|
37855
39315
|
/**
|
|
37856
39316
|
* create a MinIO service account access key
|
|
37857
39317
|
* @summary Create MinIO access key
|
|
@@ -38272,6 +39732,42 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
38272
39732
|
return SharedApiFp(this.configuration).deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
38273
39733
|
}
|
|
38274
39734
|
|
|
39735
|
+
/**
|
|
39736
|
+
*
|
|
39737
|
+
* @summary deleteSeaweedFSAccessKey
|
|
39738
|
+
* @param {SharedApiDeleteSeaweedFSAccessKeyRequest} requestParameters Request parameters.
|
|
39739
|
+
* @param {*} [options] Override http request option.
|
|
39740
|
+
* @throws {RequiredError}
|
|
39741
|
+
* @memberof SharedApi
|
|
39742
|
+
*/
|
|
39743
|
+
public deleteSeaweedFSAccessKey(requestParameters: SharedApiDeleteSeaweedFSAccessKeyRequest, options?: RawAxiosRequestConfig) {
|
|
39744
|
+
return SharedApiFp(this.configuration).deleteSeaweedFSAccessKey(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
|
|
39745
|
+
}
|
|
39746
|
+
|
|
39747
|
+
/**
|
|
39748
|
+
* delete an account in cluster
|
|
39749
|
+
* @summary deleteSeaweedFSAccount
|
|
39750
|
+
* @param {SharedApiDeleteSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
39751
|
+
* @param {*} [options] Override http request option.
|
|
39752
|
+
* @throws {RequiredError}
|
|
39753
|
+
* @memberof SharedApi
|
|
39754
|
+
*/
|
|
39755
|
+
public deleteSeaweedFSAccount(requestParameters: SharedApiDeleteSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
|
|
39756
|
+
return SharedApiFp(this.configuration).deleteSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
39757
|
+
}
|
|
39758
|
+
|
|
39759
|
+
/**
|
|
39760
|
+
* Deletes an unused named policy. Attached policies are rejected; no identities or groups are implicitly changed.
|
|
39761
|
+
* @summary deleteSeaweedFSPolicy
|
|
39762
|
+
* @param {SharedApiDeleteSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
39763
|
+
* @param {*} [options] Override http request option.
|
|
39764
|
+
* @throws {RequiredError}
|
|
39765
|
+
* @memberof SharedApi
|
|
39766
|
+
*/
|
|
39767
|
+
public deleteSeaweedFSPolicy(requestParameters: SharedApiDeleteSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig) {
|
|
39768
|
+
return SharedApiFp(this.configuration).deleteSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, options).then((request) => request(this.axios, this.basePath));
|
|
39769
|
+
}
|
|
39770
|
+
|
|
38275
39771
|
/**
|
|
38276
39772
|
* delete a MinIO service account access key
|
|
38277
39773
|
* @summary Delete MinIO access key
|
|
@@ -39003,6 +40499,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
39003
40499
|
return SharedApiFp(this.configuration).getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
39004
40500
|
}
|
|
39005
40501
|
|
|
40502
|
+
/**
|
|
40503
|
+
* get root account password
|
|
40504
|
+
* @summary getRootSeaweedFSAccountPassword
|
|
40505
|
+
* @param {SharedApiGetRootSeaweedFSAccountPasswordRequest} requestParameters Request parameters.
|
|
40506
|
+
* @param {*} [options] Override http request option.
|
|
40507
|
+
* @throws {RequiredError}
|
|
40508
|
+
* @memberof SharedApi
|
|
40509
|
+
*/
|
|
40510
|
+
public getRootSeaweedFSAccountPassword(requestParameters: SharedApiGetRootSeaweedFSAccountPasswordRequest, options?: RawAxiosRequestConfig) {
|
|
40511
|
+
return SharedApiFp(this.configuration).getRootSeaweedFSAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
40512
|
+
}
|
|
40513
|
+
|
|
39006
40514
|
/**
|
|
39007
40515
|
*
|
|
39008
40516
|
* @summary list all databases or schema of the cluster
|
|
@@ -39899,6 +41407,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
39899
41407
|
return SharedApiFp(this.configuration).listRoles(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
39900
41408
|
}
|
|
39901
41409
|
|
|
41410
|
+
/**
|
|
41411
|
+
* Lists SeaweedFS identities and access-key metadata without secret keys.
|
|
41412
|
+
* @summary listSeaweedFSAccounts
|
|
41413
|
+
* @param {SharedApiListSeaweedFSAccountsRequest} requestParameters Request parameters.
|
|
41414
|
+
* @param {*} [options] Override http request option.
|
|
41415
|
+
* @throws {RequiredError}
|
|
41416
|
+
* @memberof SharedApi
|
|
41417
|
+
*/
|
|
41418
|
+
public listSeaweedFSAccounts(requestParameters: SharedApiListSeaweedFSAccountsRequest, options?: RawAxiosRequestConfig) {
|
|
41419
|
+
return SharedApiFp(this.configuration).listSeaweedFSAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
41420
|
+
}
|
|
41421
|
+
|
|
41422
|
+
/**
|
|
41423
|
+
*
|
|
41424
|
+
* @summary listSeaweedFSPolicies
|
|
41425
|
+
* @param {SharedApiListSeaweedFSPoliciesRequest} requestParameters Request parameters.
|
|
41426
|
+
* @param {*} [options] Override http request option.
|
|
41427
|
+
* @throws {RequiredError}
|
|
41428
|
+
* @memberof SharedApi
|
|
41429
|
+
*/
|
|
41430
|
+
public listSeaweedFSPolicies(requestParameters: SharedApiListSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig) {
|
|
41431
|
+
return SharedApiFp(this.configuration).listSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
41432
|
+
}
|
|
41433
|
+
|
|
39902
41434
|
/**
|
|
39903
41435
|
* list MinIO service account access keys
|
|
39904
41436
|
* @summary List MinIO access keys
|
|
@@ -40151,6 +41683,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
40151
41683
|
return SharedApiFp(this.configuration).putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
40152
41684
|
}
|
|
40153
41685
|
|
|
41686
|
+
/**
|
|
41687
|
+
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
41688
|
+
* @summary putSeaweedFSPolicy
|
|
41689
|
+
* @param {SharedApiPutSeaweedFSPolicyRequest} requestParameters Request parameters.
|
|
41690
|
+
* @param {*} [options] Override http request option.
|
|
41691
|
+
* @throws {RequiredError}
|
|
41692
|
+
* @memberof SharedApi
|
|
41693
|
+
*/
|
|
41694
|
+
public putSeaweedFSPolicy(requestParameters: SharedApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig) {
|
|
41695
|
+
return SharedApiFp(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
41696
|
+
}
|
|
41697
|
+
|
|
40154
41698
|
/**
|
|
40155
41699
|
*
|
|
40156
41700
|
* @summary create a SQL query
|
|
@@ -40918,6 +42462,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
40918
42462
|
return SharedApiFp(this.configuration).updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
40919
42463
|
}
|
|
40920
42464
|
|
|
42465
|
+
/**
|
|
42466
|
+
* Resets the secret for extra.accessKey. Account.name must match accountName. extra.accessKey is required. The returned password is disclosed only in this response.
|
|
42467
|
+
* @summary updateSeaweedFSAccount
|
|
42468
|
+
* @param {SharedApiUpdateSeaweedFSAccountRequest} requestParameters Request parameters.
|
|
42469
|
+
* @param {*} [options] Override http request option.
|
|
42470
|
+
* @throws {RequiredError}
|
|
42471
|
+
* @memberof SharedApi
|
|
42472
|
+
*/
|
|
42473
|
+
public updateSeaweedFSAccount(requestParameters: SharedApiUpdateSeaweedFSAccountRequest, options?: RawAxiosRequestConfig) {
|
|
42474
|
+
return SharedApiFp(this.configuration).updateSeaweedFSAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
42475
|
+
}
|
|
42476
|
+
|
|
42477
|
+
/**
|
|
42478
|
+
* Unsupported for SeaweedFS. Use the named policy binding API instead.
|
|
42479
|
+
* @summary updateSeaweedFSAccountPrivileges
|
|
42480
|
+
* @param {SharedApiUpdateSeaweedFSAccountPrivilegesRequest} requestParameters Request parameters.
|
|
42481
|
+
* @param {*} [options] Override http request option.
|
|
42482
|
+
* @throws {RequiredError}
|
|
42483
|
+
* @memberof SharedApi
|
|
42484
|
+
*/
|
|
42485
|
+
public updateSeaweedFSAccountPrivileges(requestParameters: SharedApiUpdateSeaweedFSAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
42486
|
+
return SharedApiFp(this.configuration).updateSeaweedFSAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
42487
|
+
}
|
|
42488
|
+
|
|
40921
42489
|
/**
|
|
40922
42490
|
* update a MinIO service account access key
|
|
40923
42491
|
* @summary Update MinIO access key
|