kb-cloud-client-typescript 2.4.0-alpha.92 → 2.4.0-alpha.93
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/apis/account-api.d.ts +207 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +198 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +207 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +198 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +207 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +198 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/object-privilege-reset-step.d.ts +31 -0
- package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
- package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
- package/dist/openapi/apis/account-api.d.ts +207 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +198 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +207 -0
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +198 -0
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +207 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +198 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/object-privilege-reset-step.d.ts +31 -0
- package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-reset-step.js +16 -0
- package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/account-api.ts +352 -0
- package/src/adminapi/apis/rdbms-api.ts +352 -0
- package/src/adminapi/apis/shared-api.ts +352 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
- package/src/adminapi.yaml +139 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/account-api.ts +352 -0
- package/src/openapi/apis/rdbms-api.ts +352 -0
- package/src/openapi/apis/shared-api.ts +352 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/object-privilege-reset-step.ts +36 -0
- package/src/openapi.yaml +139 -0
|
@@ -56,6 +56,8 @@ import type { ObjectPrivilegeChange } from '../models';
|
|
|
56
56
|
// @ts-ignore
|
|
57
57
|
import type { ObjectPrivilegeObjectList } from '../models';
|
|
58
58
|
// @ts-ignore
|
|
59
|
+
import type { ObjectPrivilegeResetStep } from '../models';
|
|
60
|
+
// @ts-ignore
|
|
59
61
|
import type { ObjectPrivilegeSnapshot } from '../models';
|
|
60
62
|
// @ts-ignore
|
|
61
63
|
import type { ObjectPrivilegeSubjectType } from '../models';
|
|
@@ -2223,6 +2225,74 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2223
2225
|
|
|
2224
2226
|
|
|
2225
2227
|
|
|
2228
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2229
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2230
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2231
|
+
|
|
2232
|
+
return {
|
|
2233
|
+
url: toPathString(localVarUrlObj),
|
|
2234
|
+
options: localVarRequestOptions,
|
|
2235
|
+
};
|
|
2236
|
+
},
|
|
2237
|
+
/**
|
|
2238
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
2239
|
+
* @summary Preview clearing all MySQL account privileges
|
|
2240
|
+
* @param {string} engineName
|
|
2241
|
+
* @param {string} orgName
|
|
2242
|
+
* @param {string} clusterName
|
|
2243
|
+
* @param {string} accountName
|
|
2244
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
2245
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
2246
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
2247
|
+
* @param {*} [options] Override http request option.
|
|
2248
|
+
* @throws {RequiredError}
|
|
2249
|
+
*/
|
|
2250
|
+
previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2251
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
2252
|
+
assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
|
|
2253
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2254
|
+
assertParamExists('previewAccountPrivilegeReset', 'orgName', orgName)
|
|
2255
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2256
|
+
assertParamExists('previewAccountPrivilegeReset', 'clusterName', clusterName)
|
|
2257
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2258
|
+
assertParamExists('previewAccountPrivilegeReset', 'accountName', accountName)
|
|
2259
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
2260
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2261
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2262
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2263
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2264
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2265
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2266
|
+
let baseOptions;
|
|
2267
|
+
if (configuration) {
|
|
2268
|
+
baseOptions = configuration.baseOptions;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2272
|
+
const localVarHeaderParameter = {} as any;
|
|
2273
|
+
const localVarQueryParameter = {} as any;
|
|
2274
|
+
|
|
2275
|
+
// authentication BearerToken required
|
|
2276
|
+
// http bearer authentication required
|
|
2277
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2278
|
+
|
|
2279
|
+
// authentication DigestAuth required
|
|
2280
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2281
|
+
|
|
2282
|
+
if (subjectType !== undefined) {
|
|
2283
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
if (host !== undefined) {
|
|
2287
|
+
localVarQueryParameter['host'] = host;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
if (subjectQualifiers !== undefined) {
|
|
2291
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
|
|
2226
2296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2227
2297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2228
2298
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2287,6 +2357,74 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2287
2357
|
options: localVarRequestOptions,
|
|
2288
2358
|
};
|
|
2289
2359
|
},
|
|
2360
|
+
/**
|
|
2361
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
2362
|
+
* @summary Clear all MySQL account privileges
|
|
2363
|
+
* @param {string} engineName
|
|
2364
|
+
* @param {string} orgName
|
|
2365
|
+
* @param {string} clusterName
|
|
2366
|
+
* @param {string} accountName
|
|
2367
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
2368
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
2369
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
2370
|
+
* @param {*} [options] Override http request option.
|
|
2371
|
+
* @throws {RequiredError}
|
|
2372
|
+
*/
|
|
2373
|
+
resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2374
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
2375
|
+
assertParamExists('resetAccountPrivileges', 'engineName', engineName)
|
|
2376
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2377
|
+
assertParamExists('resetAccountPrivileges', 'orgName', orgName)
|
|
2378
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2379
|
+
assertParamExists('resetAccountPrivileges', 'clusterName', clusterName)
|
|
2380
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2381
|
+
assertParamExists('resetAccountPrivileges', 'accountName', accountName)
|
|
2382
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
2383
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2384
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2385
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2386
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2387
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2388
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2389
|
+
let baseOptions;
|
|
2390
|
+
if (configuration) {
|
|
2391
|
+
baseOptions = configuration.baseOptions;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2395
|
+
const localVarHeaderParameter = {} as any;
|
|
2396
|
+
const localVarQueryParameter = {} as any;
|
|
2397
|
+
|
|
2398
|
+
// authentication BearerToken required
|
|
2399
|
+
// http bearer authentication required
|
|
2400
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2401
|
+
|
|
2402
|
+
// authentication DigestAuth required
|
|
2403
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2404
|
+
|
|
2405
|
+
if (subjectType !== undefined) {
|
|
2406
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
if (host !== undefined) {
|
|
2410
|
+
localVarQueryParameter['host'] = host;
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
if (subjectQualifiers !== undefined) {
|
|
2414
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2421
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2422
|
+
|
|
2423
|
+
return {
|
|
2424
|
+
url: toPathString(localVarUrlObj),
|
|
2425
|
+
options: localVarRequestOptions,
|
|
2426
|
+
};
|
|
2427
|
+
},
|
|
2290
2428
|
/**
|
|
2291
2429
|
* unlock an account in cluster
|
|
2292
2430
|
* @summary Unlock cluster account
|
|
@@ -3704,6 +3842,25 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
3704
3842
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.lockAccount']?.[localVarOperationServerIndex]?.url;
|
|
3705
3843
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3706
3844
|
},
|
|
3845
|
+
/**
|
|
3846
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
3847
|
+
* @summary Preview clearing all MySQL account privileges
|
|
3848
|
+
* @param {string} engineName
|
|
3849
|
+
* @param {string} orgName
|
|
3850
|
+
* @param {string} clusterName
|
|
3851
|
+
* @param {string} accountName
|
|
3852
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
3853
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
3854
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
3855
|
+
* @param {*} [options] Override http request option.
|
|
3856
|
+
* @throws {RequiredError}
|
|
3857
|
+
*/
|
|
3858
|
+
async previewAccountPrivilegeReset(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectPrivilegeResetStep>>> {
|
|
3859
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
3860
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3861
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
|
|
3862
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3863
|
+
},
|
|
3707
3864
|
/**
|
|
3708
3865
|
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
3709
3866
|
* @summary putSeaweedFSPolicy
|
|
@@ -3720,6 +3877,25 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
3720
3877
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.putSeaweedFSPolicy']?.[localVarOperationServerIndex]?.url;
|
|
3721
3878
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3722
3879
|
},
|
|
3880
|
+
/**
|
|
3881
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
3882
|
+
* @summary Clear all MySQL account privileges
|
|
3883
|
+
* @param {string} engineName
|
|
3884
|
+
* @param {string} orgName
|
|
3885
|
+
* @param {string} clusterName
|
|
3886
|
+
* @param {string} accountName
|
|
3887
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
3888
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
3889
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
3890
|
+
* @param {*} [options] Override http request option.
|
|
3891
|
+
* @throws {RequiredError}
|
|
3892
|
+
*/
|
|
3893
|
+
async resetAccountPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3894
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
3895
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3896
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.resetAccountPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
3897
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3898
|
+
},
|
|
3723
3899
|
/**
|
|
3724
3900
|
* unlock an account in cluster
|
|
3725
3901
|
* @summary Unlock cluster account
|
|
@@ -4356,6 +4532,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
4356
4532
|
lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4357
4533
|
return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
4358
4534
|
},
|
|
4535
|
+
/**
|
|
4536
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
4537
|
+
* @summary Preview clearing all MySQL account privileges
|
|
4538
|
+
* @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
4539
|
+
* @param {*} [options] Override http request option.
|
|
4540
|
+
* @throws {RequiredError}
|
|
4541
|
+
*/
|
|
4542
|
+
previewAccountPrivilegeReset(requestParameters: AccountApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
|
|
4543
|
+
return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
4544
|
+
},
|
|
4359
4545
|
/**
|
|
4360
4546
|
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
4361
4547
|
* @summary putSeaweedFSPolicy
|
|
@@ -4366,6 +4552,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
4366
4552
|
putSeaweedFSPolicy(requestParameters: AccountApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4367
4553
|
return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
4368
4554
|
},
|
|
4555
|
+
/**
|
|
4556
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
4557
|
+
* @summary Clear all MySQL account privileges
|
|
4558
|
+
* @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
4559
|
+
* @param {*} [options] Override http request option.
|
|
4560
|
+
* @throws {RequiredError}
|
|
4561
|
+
*/
|
|
4562
|
+
resetAccountPrivileges(requestParameters: AccountApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4563
|
+
return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
4564
|
+
},
|
|
4369
4565
|
/**
|
|
4370
4566
|
* unlock an account in cluster
|
|
4371
4567
|
* @summary Unlock cluster account
|
|
@@ -4915,6 +5111,16 @@ export interface AccountApiInterface {
|
|
|
4915
5111
|
*/
|
|
4916
5112
|
lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4917
5113
|
|
|
5114
|
+
/**
|
|
5115
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
5116
|
+
* @summary Preview clearing all MySQL account privileges
|
|
5117
|
+
* @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
5118
|
+
* @param {*} [options] Override http request option.
|
|
5119
|
+
* @throws {RequiredError}
|
|
5120
|
+
* @memberof AccountApiInterface
|
|
5121
|
+
*/
|
|
5122
|
+
previewAccountPrivilegeReset(requestParameters: AccountApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>>;
|
|
5123
|
+
|
|
4918
5124
|
/**
|
|
4919
5125
|
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
4920
5126
|
* @summary putSeaweedFSPolicy
|
|
@@ -4925,6 +5131,16 @@ export interface AccountApiInterface {
|
|
|
4925
5131
|
*/
|
|
4926
5132
|
putSeaweedFSPolicy(requestParameters: AccountApiPutSeaweedFSPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4927
5133
|
|
|
5134
|
+
/**
|
|
5135
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
5136
|
+
* @summary Clear all MySQL account privileges
|
|
5137
|
+
* @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
5138
|
+
* @param {*} [options] Override http request option.
|
|
5139
|
+
* @throws {RequiredError}
|
|
5140
|
+
* @memberof AccountApiInterface
|
|
5141
|
+
*/
|
|
5142
|
+
resetAccountPrivileges(requestParameters: AccountApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5143
|
+
|
|
4928
5144
|
/**
|
|
4929
5145
|
* unlock an account in cluster
|
|
4930
5146
|
* @summary Unlock cluster account
|
|
@@ -6418,6 +6634,62 @@ export interface AccountApiLockAccountRequest {
|
|
|
6418
6634
|
readonly accountName: string
|
|
6419
6635
|
}
|
|
6420
6636
|
|
|
6637
|
+
/**
|
|
6638
|
+
* Request parameters for previewAccountPrivilegeReset operation in AccountApi.
|
|
6639
|
+
* @export
|
|
6640
|
+
* @interface AccountApiPreviewAccountPrivilegeResetRequest
|
|
6641
|
+
*/
|
|
6642
|
+
export interface AccountApiPreviewAccountPrivilegeResetRequest {
|
|
6643
|
+
/**
|
|
6644
|
+
*
|
|
6645
|
+
* @type {string}
|
|
6646
|
+
* @memberof AccountApiPreviewAccountPrivilegeReset
|
|
6647
|
+
*/
|
|
6648
|
+
readonly engineName: string
|
|
6649
|
+
|
|
6650
|
+
/**
|
|
6651
|
+
*
|
|
6652
|
+
* @type {string}
|
|
6653
|
+
* @memberof AccountApiPreviewAccountPrivilegeReset
|
|
6654
|
+
*/
|
|
6655
|
+
readonly orgName: string
|
|
6656
|
+
|
|
6657
|
+
/**
|
|
6658
|
+
*
|
|
6659
|
+
* @type {string}
|
|
6660
|
+
* @memberof AccountApiPreviewAccountPrivilegeReset
|
|
6661
|
+
*/
|
|
6662
|
+
readonly clusterName: string
|
|
6663
|
+
|
|
6664
|
+
/**
|
|
6665
|
+
*
|
|
6666
|
+
* @type {string}
|
|
6667
|
+
* @memberof AccountApiPreviewAccountPrivilegeReset
|
|
6668
|
+
*/
|
|
6669
|
+
readonly accountName: string
|
|
6670
|
+
|
|
6671
|
+
/**
|
|
6672
|
+
* Native subject kind; path account name identifies the subject.
|
|
6673
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
6674
|
+
* @memberof AccountApiPreviewAccountPrivilegeReset
|
|
6675
|
+
*/
|
|
6676
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
6677
|
+
|
|
6678
|
+
/**
|
|
6679
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
6680
|
+
* @type {string}
|
|
6681
|
+
* @memberof AccountApiPreviewAccountPrivilegeReset
|
|
6682
|
+
*/
|
|
6683
|
+
readonly host?: string
|
|
6684
|
+
|
|
6685
|
+
/**
|
|
6686
|
+
* JSON identity qualifiers; MySQL host defaults to %.
|
|
6687
|
+
* @type {string}
|
|
6688
|
+
* @memberof AccountApiPreviewAccountPrivilegeReset
|
|
6689
|
+
*/
|
|
6690
|
+
readonly subjectQualifiers?: string
|
|
6691
|
+
}
|
|
6692
|
+
|
|
6421
6693
|
/**
|
|
6422
6694
|
* Request parameters for putSeaweedFSPolicy operation in AccountApi.
|
|
6423
6695
|
* @export
|
|
@@ -6453,6 +6725,62 @@ export interface AccountApiPutSeaweedFSPolicyRequest {
|
|
|
6453
6725
|
readonly requestBody: { [key: string]: any; }
|
|
6454
6726
|
}
|
|
6455
6727
|
|
|
6728
|
+
/**
|
|
6729
|
+
* Request parameters for resetAccountPrivileges operation in AccountApi.
|
|
6730
|
+
* @export
|
|
6731
|
+
* @interface AccountApiResetAccountPrivilegesRequest
|
|
6732
|
+
*/
|
|
6733
|
+
export interface AccountApiResetAccountPrivilegesRequest {
|
|
6734
|
+
/**
|
|
6735
|
+
*
|
|
6736
|
+
* @type {string}
|
|
6737
|
+
* @memberof AccountApiResetAccountPrivileges
|
|
6738
|
+
*/
|
|
6739
|
+
readonly engineName: string
|
|
6740
|
+
|
|
6741
|
+
/**
|
|
6742
|
+
*
|
|
6743
|
+
* @type {string}
|
|
6744
|
+
* @memberof AccountApiResetAccountPrivileges
|
|
6745
|
+
*/
|
|
6746
|
+
readonly orgName: string
|
|
6747
|
+
|
|
6748
|
+
/**
|
|
6749
|
+
*
|
|
6750
|
+
* @type {string}
|
|
6751
|
+
* @memberof AccountApiResetAccountPrivileges
|
|
6752
|
+
*/
|
|
6753
|
+
readonly clusterName: string
|
|
6754
|
+
|
|
6755
|
+
/**
|
|
6756
|
+
*
|
|
6757
|
+
* @type {string}
|
|
6758
|
+
* @memberof AccountApiResetAccountPrivileges
|
|
6759
|
+
*/
|
|
6760
|
+
readonly accountName: string
|
|
6761
|
+
|
|
6762
|
+
/**
|
|
6763
|
+
* Native subject kind; path account name identifies the subject.
|
|
6764
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
6765
|
+
* @memberof AccountApiResetAccountPrivileges
|
|
6766
|
+
*/
|
|
6767
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
6768
|
+
|
|
6769
|
+
/**
|
|
6770
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
6771
|
+
* @type {string}
|
|
6772
|
+
* @memberof AccountApiResetAccountPrivileges
|
|
6773
|
+
*/
|
|
6774
|
+
readonly host?: string
|
|
6775
|
+
|
|
6776
|
+
/**
|
|
6777
|
+
* JSON identity qualifiers; MySQL host defaults to %.
|
|
6778
|
+
* @type {string}
|
|
6779
|
+
* @memberof AccountApiResetAccountPrivileges
|
|
6780
|
+
*/
|
|
6781
|
+
readonly subjectQualifiers?: string
|
|
6782
|
+
}
|
|
6783
|
+
|
|
6456
6784
|
/**
|
|
6457
6785
|
* Request parameters for unlockAccount operation in AccountApi.
|
|
6458
6786
|
* @export
|
|
@@ -7444,6 +7772,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
7444
7772
|
return AccountApiFp(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
7445
7773
|
}
|
|
7446
7774
|
|
|
7775
|
+
/**
|
|
7776
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
7777
|
+
* @summary Preview clearing all MySQL account privileges
|
|
7778
|
+
* @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
7779
|
+
* @param {*} [options] Override http request option.
|
|
7780
|
+
* @throws {RequiredError}
|
|
7781
|
+
* @memberof AccountApi
|
|
7782
|
+
*/
|
|
7783
|
+
public previewAccountPrivilegeReset(requestParameters: AccountApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig) {
|
|
7784
|
+
return AccountApiFp(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
|
|
7785
|
+
}
|
|
7786
|
+
|
|
7447
7787
|
/**
|
|
7448
7788
|
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
7449
7789
|
* @summary putSeaweedFSPolicy
|
|
@@ -7456,6 +7796,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
7456
7796
|
return AccountApiFp(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
7457
7797
|
}
|
|
7458
7798
|
|
|
7799
|
+
/**
|
|
7800
|
+
* MySQL only. Clears direct privileges at every scope (including columns, routines, dynamic privileges and grant options), explicit role memberships and PROXY grants for one exact user/host. Rejects protected accounts and servers with mandatory roles before writing. Preview does not mutate. Execution re-reads current grants; concurrent new grants can be included. Statements are not atomic; on failure refresh and preview before retrying. Existing sessions follow MySQL privilege-cache semantics; this does not lock the account or terminate connections.
|
|
7801
|
+
* @summary Clear all MySQL account privileges
|
|
7802
|
+
* @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
7803
|
+
* @param {*} [options] Override http request option.
|
|
7804
|
+
* @throws {RequiredError}
|
|
7805
|
+
* @memberof AccountApi
|
|
7806
|
+
*/
|
|
7807
|
+
public resetAccountPrivileges(requestParameters: AccountApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
7808
|
+
return AccountApiFp(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
|
|
7809
|
+
}
|
|
7810
|
+
|
|
7459
7811
|
/**
|
|
7460
7812
|
* unlock an account in cluster
|
|
7461
7813
|
* @summary Unlock cluster account
|