kb-cloud-client-typescript 2.4.0-alpha.92 → 2.4.0-alpha.94
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/component-item-create.d.ts +12 -0
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/component-item.d.ts +19 -0
- package/dist/adminapi/models/component-item.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.js +0 -1
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
- package/dist/adminapi/models/instance-template-create.d.ts +9 -3
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/adminapi/models/instance.d.ts +6 -0
- package/dist/adminapi/models/instance.d.ts.map +1 -1
- package/dist/adminapi/models/mode-option.d.ts +7 -0
- package/dist/adminapi/models/mode-option.d.ts.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/adminapi/models/placement-scope.d.ts +22 -0
- package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
- package/dist/adminapi/models/placement-scope.js +26 -0
- package/dist/adminapi/models/placement-scope.js.map +1 -0
- package/dist/internalapi/models/component-item.d.ts +19 -0
- package/dist/internalapi/models/component-item.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +2 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +2 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/internalapi/models/instance-template-create.d.ts +72 -0
- package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create.js +16 -0
- package/dist/internalapi/models/instance-template-create.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/component-item-create.d.ts +12 -0
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item.d.ts +19 -0
- package/dist/openapi/models/component-item.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-attribute.js +0 -1
- package/dist/openapi/models/instance-template-attribute.js.map +1 -1
- package/dist/openapi/models/instance-template-create.d.ts +9 -3
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/instance.d.ts +6 -0
- package/dist/openapi/models/instance.d.ts.map +1 -1
- package/dist/openapi/models/mode-option.d.ts +7 -0
- package/dist/openapi/models/mode-option.d.ts.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/dist/openapi/models/placement-scope.d.ts +22 -0
- package/dist/openapi/models/placement-scope.d.ts.map +1 -0
- package/dist/openapi/models/placement-scope.js +26 -0
- package/dist/openapi/models/placement-scope.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -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/component-item-create.ts +12 -0
- package/src/adminapi/models/component-item.ts +21 -0
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/instance-template-attribute.ts +0 -1
- package/src/adminapi/models/instance-template-create.ts +9 -3
- package/src/adminapi/models/instance.ts +6 -0
- package/src/adminapi/models/mode-option.ts +9 -0
- package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
- package/src/adminapi/models/placement-scope.ts +31 -0
- package/src/adminapi.yaml +174 -5
- package/src/internalapi/.openapi-generator/FILES +2 -0
- package/src/internalapi/models/component-item.ts +21 -0
- package/src/internalapi/models/index.ts +2 -0
- package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/internalapi/models/instance-template-create.ts +75 -0
- package/src/internalapi.yaml +62 -0
- package/src/openapi/.openapi-generator/FILES +2 -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/component-item-create.ts +12 -0
- package/src/openapi/models/component-item.ts +21 -0
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/instance-template-attribute.ts +0 -1
- package/src/openapi/models/instance-template-create.ts +9 -3
- package/src/openapi/models/instance.ts +6 -0
- package/src/openapi/models/mode-option.ts +9 -0
- package/src/openapi/models/object-privilege-reset-step.ts +36 -0
- package/src/openapi/models/placement-scope.ts +31 -0
- package/src/openapi.yaml +174 -5
|
@@ -46,6 +46,8 @@ import type { ObjectPrivilegeChange } from '../models';
|
|
|
46
46
|
// @ts-ignore
|
|
47
47
|
import type { ObjectPrivilegeObjectList } from '../models';
|
|
48
48
|
// @ts-ignore
|
|
49
|
+
import type { ObjectPrivilegeResetStep } from '../models';
|
|
50
|
+
// @ts-ignore
|
|
49
51
|
import type { ObjectPrivilegeSnapshot } from '../models';
|
|
50
52
|
// @ts-ignore
|
|
51
53
|
import type { ObjectPrivilegeSubjectType } from '../models';
|
|
@@ -1302,6 +1304,142 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1302
1304
|
|
|
1303
1305
|
|
|
1304
1306
|
|
|
1307
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1308
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1309
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1310
|
+
|
|
1311
|
+
return {
|
|
1312
|
+
url: toPathString(localVarUrlObj),
|
|
1313
|
+
options: localVarRequestOptions,
|
|
1314
|
+
};
|
|
1315
|
+
},
|
|
1316
|
+
/**
|
|
1317
|
+
* 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.
|
|
1318
|
+
* @summary Preview clearing all MySQL account privileges
|
|
1319
|
+
* @param {string} engineName
|
|
1320
|
+
* @param {string} orgName
|
|
1321
|
+
* @param {string} clusterName
|
|
1322
|
+
* @param {string} accountName
|
|
1323
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1324
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1325
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
1326
|
+
* @param {*} [options] Override http request option.
|
|
1327
|
+
* @throws {RequiredError}
|
|
1328
|
+
*/
|
|
1329
|
+
previewAccountPrivilegeReset: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1330
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1331
|
+
assertParamExists('previewAccountPrivilegeReset', 'engineName', engineName)
|
|
1332
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1333
|
+
assertParamExists('previewAccountPrivilegeReset', 'orgName', orgName)
|
|
1334
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1335
|
+
assertParamExists('previewAccountPrivilegeReset', 'clusterName', clusterName)
|
|
1336
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1337
|
+
assertParamExists('previewAccountPrivilegeReset', 'accountName', accountName)
|
|
1338
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
1339
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1340
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1341
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1342
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1344
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1345
|
+
let baseOptions;
|
|
1346
|
+
if (configuration) {
|
|
1347
|
+
baseOptions = configuration.baseOptions;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1351
|
+
const localVarHeaderParameter = {} as any;
|
|
1352
|
+
const localVarQueryParameter = {} as any;
|
|
1353
|
+
|
|
1354
|
+
// authentication BearerToken required
|
|
1355
|
+
// http bearer authentication required
|
|
1356
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1357
|
+
|
|
1358
|
+
// authentication DigestAuth required
|
|
1359
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1360
|
+
|
|
1361
|
+
if (subjectType !== undefined) {
|
|
1362
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
if (host !== undefined) {
|
|
1366
|
+
localVarQueryParameter['host'] = host;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
if (subjectQualifiers !== undefined) {
|
|
1370
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1376
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1377
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1378
|
+
|
|
1379
|
+
return {
|
|
1380
|
+
url: toPathString(localVarUrlObj),
|
|
1381
|
+
options: localVarRequestOptions,
|
|
1382
|
+
};
|
|
1383
|
+
},
|
|
1384
|
+
/**
|
|
1385
|
+
* 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.
|
|
1386
|
+
* @summary Clear all MySQL account privileges
|
|
1387
|
+
* @param {string} engineName
|
|
1388
|
+
* @param {string} orgName
|
|
1389
|
+
* @param {string} clusterName
|
|
1390
|
+
* @param {string} accountName
|
|
1391
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1392
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1393
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
1394
|
+
* @param {*} [options] Override http request option.
|
|
1395
|
+
* @throws {RequiredError}
|
|
1396
|
+
*/
|
|
1397
|
+
resetAccountPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1398
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1399
|
+
assertParamExists('resetAccountPrivileges', 'engineName', engineName)
|
|
1400
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1401
|
+
assertParamExists('resetAccountPrivileges', 'orgName', orgName)
|
|
1402
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1403
|
+
assertParamExists('resetAccountPrivileges', 'clusterName', clusterName)
|
|
1404
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1405
|
+
assertParamExists('resetAccountPrivileges', 'accountName', accountName)
|
|
1406
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
1407
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1408
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1409
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1410
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1413
|
+
let baseOptions;
|
|
1414
|
+
if (configuration) {
|
|
1415
|
+
baseOptions = configuration.baseOptions;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1419
|
+
const localVarHeaderParameter = {} as any;
|
|
1420
|
+
const localVarQueryParameter = {} as any;
|
|
1421
|
+
|
|
1422
|
+
// authentication BearerToken required
|
|
1423
|
+
// http bearer authentication required
|
|
1424
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1425
|
+
|
|
1426
|
+
// authentication DigestAuth required
|
|
1427
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1428
|
+
|
|
1429
|
+
if (subjectType !== undefined) {
|
|
1430
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
if (host !== undefined) {
|
|
1434
|
+
localVarQueryParameter['host'] = host;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
if (subjectQualifiers !== undefined) {
|
|
1438
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
|
|
1442
|
+
|
|
1305
1443
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1306
1444
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1307
1445
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1966,6 +2104,44 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
|
|
|
1966
2104
|
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.lockAccount']?.[localVarOperationServerIndex]?.url;
|
|
1967
2105
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1968
2106
|
},
|
|
2107
|
+
/**
|
|
2108
|
+
* 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.
|
|
2109
|
+
* @summary Preview clearing all MySQL account privileges
|
|
2110
|
+
* @param {string} engineName
|
|
2111
|
+
* @param {string} orgName
|
|
2112
|
+
* @param {string} clusterName
|
|
2113
|
+
* @param {string} accountName
|
|
2114
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
2115
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
2116
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
2117
|
+
* @param {*} [options] Override http request option.
|
|
2118
|
+
* @throws {RequiredError}
|
|
2119
|
+
*/
|
|
2120
|
+
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>>> {
|
|
2121
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
2122
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2123
|
+
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.previewAccountPrivilegeReset']?.[localVarOperationServerIndex]?.url;
|
|
2124
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2125
|
+
},
|
|
2126
|
+
/**
|
|
2127
|
+
* 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.
|
|
2128
|
+
* @summary Clear all MySQL account privileges
|
|
2129
|
+
* @param {string} engineName
|
|
2130
|
+
* @param {string} orgName
|
|
2131
|
+
* @param {string} clusterName
|
|
2132
|
+
* @param {string} accountName
|
|
2133
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
2134
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
2135
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
2136
|
+
* @param {*} [options] Override http request option.
|
|
2137
|
+
* @throws {RequiredError}
|
|
2138
|
+
*/
|
|
2139
|
+
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>> {
|
|
2140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
2141
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2142
|
+
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.resetAccountPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
2143
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2144
|
+
},
|
|
1969
2145
|
/**
|
|
1970
2146
|
* unlock an account in cluster
|
|
1971
2147
|
* @summary Unlock cluster account
|
|
@@ -2269,6 +2445,26 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
|
|
|
2269
2445
|
lockAccount(requestParameters: RdbmsApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2270
2446
|
return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
2271
2447
|
},
|
|
2448
|
+
/**
|
|
2449
|
+
* 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.
|
|
2450
|
+
* @summary Preview clearing all MySQL account privileges
|
|
2451
|
+
* @param {RdbmsApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
2452
|
+
* @param {*} [options] Override http request option.
|
|
2453
|
+
* @throws {RequiredError}
|
|
2454
|
+
*/
|
|
2455
|
+
previewAccountPrivilegeReset(requestParameters: RdbmsApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>> {
|
|
2456
|
+
return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
2457
|
+
},
|
|
2458
|
+
/**
|
|
2459
|
+
* 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.
|
|
2460
|
+
* @summary Clear all MySQL account privileges
|
|
2461
|
+
* @param {RdbmsApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
2462
|
+
* @param {*} [options] Override http request option.
|
|
2463
|
+
* @throws {RequiredError}
|
|
2464
|
+
*/
|
|
2465
|
+
resetAccountPrivileges(requestParameters: RdbmsApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2466
|
+
return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
2467
|
+
},
|
|
2272
2468
|
/**
|
|
2273
2469
|
* unlock an account in cluster
|
|
2274
2470
|
* @summary Unlock cluster account
|
|
@@ -2537,6 +2733,26 @@ export interface RdbmsApiInterface {
|
|
|
2537
2733
|
*/
|
|
2538
2734
|
lockAccount(requestParameters: RdbmsApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2539
2735
|
|
|
2736
|
+
/**
|
|
2737
|
+
* 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.
|
|
2738
|
+
* @summary Preview clearing all MySQL account privileges
|
|
2739
|
+
* @param {RdbmsApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
2740
|
+
* @param {*} [options] Override http request option.
|
|
2741
|
+
* @throws {RequiredError}
|
|
2742
|
+
* @memberof RdbmsApiInterface
|
|
2743
|
+
*/
|
|
2744
|
+
previewAccountPrivilegeReset(requestParameters: RdbmsApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectPrivilegeResetStep>>;
|
|
2745
|
+
|
|
2746
|
+
/**
|
|
2747
|
+
* 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.
|
|
2748
|
+
* @summary Clear all MySQL account privileges
|
|
2749
|
+
* @param {RdbmsApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
2750
|
+
* @param {*} [options] Override http request option.
|
|
2751
|
+
* @throws {RequiredError}
|
|
2752
|
+
* @memberof RdbmsApiInterface
|
|
2753
|
+
*/
|
|
2754
|
+
resetAccountPrivileges(requestParameters: RdbmsApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2755
|
+
|
|
2540
2756
|
/**
|
|
2541
2757
|
* unlock an account in cluster
|
|
2542
2758
|
* @summary Unlock cluster account
|
|
@@ -3485,6 +3701,118 @@ export interface RdbmsApiLockAccountRequest {
|
|
|
3485
3701
|
readonly accountName: string
|
|
3486
3702
|
}
|
|
3487
3703
|
|
|
3704
|
+
/**
|
|
3705
|
+
* Request parameters for previewAccountPrivilegeReset operation in RdbmsApi.
|
|
3706
|
+
* @export
|
|
3707
|
+
* @interface RdbmsApiPreviewAccountPrivilegeResetRequest
|
|
3708
|
+
*/
|
|
3709
|
+
export interface RdbmsApiPreviewAccountPrivilegeResetRequest {
|
|
3710
|
+
/**
|
|
3711
|
+
*
|
|
3712
|
+
* @type {string}
|
|
3713
|
+
* @memberof RdbmsApiPreviewAccountPrivilegeReset
|
|
3714
|
+
*/
|
|
3715
|
+
readonly engineName: string
|
|
3716
|
+
|
|
3717
|
+
/**
|
|
3718
|
+
*
|
|
3719
|
+
* @type {string}
|
|
3720
|
+
* @memberof RdbmsApiPreviewAccountPrivilegeReset
|
|
3721
|
+
*/
|
|
3722
|
+
readonly orgName: string
|
|
3723
|
+
|
|
3724
|
+
/**
|
|
3725
|
+
*
|
|
3726
|
+
* @type {string}
|
|
3727
|
+
* @memberof RdbmsApiPreviewAccountPrivilegeReset
|
|
3728
|
+
*/
|
|
3729
|
+
readonly clusterName: string
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
*
|
|
3733
|
+
* @type {string}
|
|
3734
|
+
* @memberof RdbmsApiPreviewAccountPrivilegeReset
|
|
3735
|
+
*/
|
|
3736
|
+
readonly accountName: string
|
|
3737
|
+
|
|
3738
|
+
/**
|
|
3739
|
+
* Native subject kind; path account name identifies the subject.
|
|
3740
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
3741
|
+
* @memberof RdbmsApiPreviewAccountPrivilegeReset
|
|
3742
|
+
*/
|
|
3743
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
3744
|
+
|
|
3745
|
+
/**
|
|
3746
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
3747
|
+
* @type {string}
|
|
3748
|
+
* @memberof RdbmsApiPreviewAccountPrivilegeReset
|
|
3749
|
+
*/
|
|
3750
|
+
readonly host?: string
|
|
3751
|
+
|
|
3752
|
+
/**
|
|
3753
|
+
* JSON identity qualifiers; MySQL host defaults to %.
|
|
3754
|
+
* @type {string}
|
|
3755
|
+
* @memberof RdbmsApiPreviewAccountPrivilegeReset
|
|
3756
|
+
*/
|
|
3757
|
+
readonly subjectQualifiers?: string
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
/**
|
|
3761
|
+
* Request parameters for resetAccountPrivileges operation in RdbmsApi.
|
|
3762
|
+
* @export
|
|
3763
|
+
* @interface RdbmsApiResetAccountPrivilegesRequest
|
|
3764
|
+
*/
|
|
3765
|
+
export interface RdbmsApiResetAccountPrivilegesRequest {
|
|
3766
|
+
/**
|
|
3767
|
+
*
|
|
3768
|
+
* @type {string}
|
|
3769
|
+
* @memberof RdbmsApiResetAccountPrivileges
|
|
3770
|
+
*/
|
|
3771
|
+
readonly engineName: string
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
*
|
|
3775
|
+
* @type {string}
|
|
3776
|
+
* @memberof RdbmsApiResetAccountPrivileges
|
|
3777
|
+
*/
|
|
3778
|
+
readonly orgName: string
|
|
3779
|
+
|
|
3780
|
+
/**
|
|
3781
|
+
*
|
|
3782
|
+
* @type {string}
|
|
3783
|
+
* @memberof RdbmsApiResetAccountPrivileges
|
|
3784
|
+
*/
|
|
3785
|
+
readonly clusterName: string
|
|
3786
|
+
|
|
3787
|
+
/**
|
|
3788
|
+
*
|
|
3789
|
+
* @type {string}
|
|
3790
|
+
* @memberof RdbmsApiResetAccountPrivileges
|
|
3791
|
+
*/
|
|
3792
|
+
readonly accountName: string
|
|
3793
|
+
|
|
3794
|
+
/**
|
|
3795
|
+
* Native subject kind; path account name identifies the subject.
|
|
3796
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
3797
|
+
* @memberof RdbmsApiResetAccountPrivileges
|
|
3798
|
+
*/
|
|
3799
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
3800
|
+
|
|
3801
|
+
/**
|
|
3802
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
3803
|
+
* @type {string}
|
|
3804
|
+
* @memberof RdbmsApiResetAccountPrivileges
|
|
3805
|
+
*/
|
|
3806
|
+
readonly host?: string
|
|
3807
|
+
|
|
3808
|
+
/**
|
|
3809
|
+
* JSON identity qualifiers; MySQL host defaults to %.
|
|
3810
|
+
* @type {string}
|
|
3811
|
+
* @memberof RdbmsApiResetAccountPrivileges
|
|
3812
|
+
*/
|
|
3813
|
+
readonly subjectQualifiers?: string
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3488
3816
|
/**
|
|
3489
3817
|
* Request parameters for unlockAccount operation in RdbmsApi.
|
|
3490
3818
|
* @export
|
|
@@ -3946,6 +4274,30 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
|
|
|
3946
4274
|
return RdbmsApiFp(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
3947
4275
|
}
|
|
3948
4276
|
|
|
4277
|
+
/**
|
|
4278
|
+
* 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.
|
|
4279
|
+
* @summary Preview clearing all MySQL account privileges
|
|
4280
|
+
* @param {RdbmsApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
4281
|
+
* @param {*} [options] Override http request option.
|
|
4282
|
+
* @throws {RequiredError}
|
|
4283
|
+
* @memberof RdbmsApi
|
|
4284
|
+
*/
|
|
4285
|
+
public previewAccountPrivilegeReset(requestParameters: RdbmsApiPreviewAccountPrivilegeResetRequest, options?: RawAxiosRequestConfig) {
|
|
4286
|
+
return RdbmsApiFp(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));
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
/**
|
|
4290
|
+
* 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.
|
|
4291
|
+
* @summary Clear all MySQL account privileges
|
|
4292
|
+
* @param {RdbmsApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
4293
|
+
* @param {*} [options] Override http request option.
|
|
4294
|
+
* @throws {RequiredError}
|
|
4295
|
+
* @memberof RdbmsApi
|
|
4296
|
+
*/
|
|
4297
|
+
public resetAccountPrivileges(requestParameters: RdbmsApiResetAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
4298
|
+
return RdbmsApiFp(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));
|
|
4299
|
+
}
|
|
4300
|
+
|
|
3949
4301
|
/**
|
|
3950
4302
|
* unlock an account in cluster
|
|
3951
4303
|
* @summary Unlock cluster account
|