kb-cloud-client-typescript 2.4.0-alpha.91 → 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 +310 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +303 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +310 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +303 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +310 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +303 -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 +310 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +303 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +310 -0
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +303 -0
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +310 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +303 -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 +533 -0
- package/src/adminapi/apis/rdbms-api.ts +533 -0
- package/src/adminapi/apis/shared-api.ts +533 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
- package/src/adminapi.yaml +204 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/account-api.ts +533 -0
- package/src/openapi/apis/rdbms-api.ts +533 -0
- package/src/openapi/apis/shared-api.ts +533 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/object-privilege-reset-step.ts +36 -0
- package/src/openapi.yaml +204 -0
|
@@ -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';
|
|
@@ -884,6 +886,80 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
884
886
|
|
|
885
887
|
|
|
886
888
|
|
|
889
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
890
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
891
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
892
|
+
|
|
893
|
+
return {
|
|
894
|
+
url: toPathString(localVarUrlObj),
|
|
895
|
+
options: localVarRequestOptions,
|
|
896
|
+
};
|
|
897
|
+
},
|
|
898
|
+
/**
|
|
899
|
+
* Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
|
|
900
|
+
* @summary List exact column names for account object privileges
|
|
901
|
+
* @param {string} engineName
|
|
902
|
+
* @param {string} orgName
|
|
903
|
+
* @param {string} clusterName
|
|
904
|
+
* @param {string} accountName
|
|
905
|
+
* @param {string} objectType Object type, either table or view
|
|
906
|
+
* @param {string} databaseName
|
|
907
|
+
* @param {string} objectName
|
|
908
|
+
* @param {*} [options] Override http request option.
|
|
909
|
+
* @throws {RequiredError}
|
|
910
|
+
*/
|
|
911
|
+
listAccountObjectPrivilegeColumns: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
912
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
913
|
+
assertParamExists('listAccountObjectPrivilegeColumns', 'engineName', engineName)
|
|
914
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
915
|
+
assertParamExists('listAccountObjectPrivilegeColumns', 'orgName', orgName)
|
|
916
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
917
|
+
assertParamExists('listAccountObjectPrivilegeColumns', 'clusterName', clusterName)
|
|
918
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
919
|
+
assertParamExists('listAccountObjectPrivilegeColumns', 'accountName', accountName)
|
|
920
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
921
|
+
assertParamExists('listAccountObjectPrivilegeColumns', 'objectType', objectType)
|
|
922
|
+
// verify required parameter 'databaseName' is not null or undefined
|
|
923
|
+
assertParamExists('listAccountObjectPrivilegeColumns', 'databaseName', databaseName)
|
|
924
|
+
// verify required parameter 'objectName' is not null or undefined
|
|
925
|
+
assertParamExists('listAccountObjectPrivilegeColumns', 'objectName', objectName)
|
|
926
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns`
|
|
927
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
928
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
929
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
930
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
931
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
932
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
933
|
+
let baseOptions;
|
|
934
|
+
if (configuration) {
|
|
935
|
+
baseOptions = configuration.baseOptions;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
939
|
+
const localVarHeaderParameter = {} as any;
|
|
940
|
+
const localVarQueryParameter = {} as any;
|
|
941
|
+
|
|
942
|
+
// authentication BearerToken required
|
|
943
|
+
// http bearer authentication required
|
|
944
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
945
|
+
|
|
946
|
+
// authentication DigestAuth required
|
|
947
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
948
|
+
|
|
949
|
+
if (objectType !== undefined) {
|
|
950
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
if (databaseName !== undefined) {
|
|
954
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
if (objectName !== undefined) {
|
|
958
|
+
localVarQueryParameter['objectName'] = objectName;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
|
|
887
963
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
888
964
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
889
965
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1228,6 +1304,142 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1228
1304
|
|
|
1229
1305
|
|
|
1230
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 = `/admin/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 = `/admin/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
|
+
|
|
1231
1443
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1232
1444
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1233
1445
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1773,6 +1985,25 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
|
|
|
1773
1985
|
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.killSession']?.[localVarOperationServerIndex]?.url;
|
|
1774
1986
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1775
1987
|
},
|
|
1988
|
+
/**
|
|
1989
|
+
* Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
|
|
1990
|
+
* @summary List exact column names for account object privileges
|
|
1991
|
+
* @param {string} engineName
|
|
1992
|
+
* @param {string} orgName
|
|
1993
|
+
* @param {string} clusterName
|
|
1994
|
+
* @param {string} accountName
|
|
1995
|
+
* @param {string} objectType Object type, either table or view
|
|
1996
|
+
* @param {string} databaseName
|
|
1997
|
+
* @param {string} objectName
|
|
1998
|
+
* @param {*} [options] Override http request option.
|
|
1999
|
+
* @throws {RequiredError}
|
|
2000
|
+
*/
|
|
2001
|
+
async listAccountObjectPrivilegeColumns(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName: string, objectName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
2002
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
|
|
2003
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2004
|
+
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.listAccountObjectPrivilegeColumns']?.[localVarOperationServerIndex]?.url;
|
|
2005
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2006
|
+
},
|
|
1776
2007
|
/**
|
|
1777
2008
|
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
1778
2009
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -1873,6 +2104,44 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
|
|
|
1873
2104
|
const localVarOperationServerBasePath = operationServerMap['RdbmsApi.lockAccount']?.[localVarOperationServerIndex]?.url;
|
|
1874
2105
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1875
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
|
+
},
|
|
1876
2145
|
/**
|
|
1877
2146
|
* unlock an account in cluster
|
|
1878
2147
|
* @summary Unlock cluster account
|
|
@@ -2106,6 +2375,16 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
|
|
|
2106
2375
|
killSession(requestParameters: RdbmsApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2107
2376
|
return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
|
|
2108
2377
|
},
|
|
2378
|
+
/**
|
|
2379
|
+
* Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
|
|
2380
|
+
* @summary List exact column names for account object privileges
|
|
2381
|
+
* @param {RdbmsApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
*/
|
|
2385
|
+
listAccountObjectPrivilegeColumns(requestParameters: RdbmsApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
2386
|
+
return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
|
|
2387
|
+
},
|
|
2109
2388
|
/**
|
|
2110
2389
|
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
2111
2390
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -2166,6 +2445,26 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
|
|
|
2166
2445
|
lockAccount(requestParameters: RdbmsApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2167
2446
|
return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
2168
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
|
+
},
|
|
2169
2468
|
/**
|
|
2170
2469
|
* unlock an account in cluster
|
|
2171
2470
|
* @summary Unlock cluster account
|
|
@@ -2364,6 +2663,16 @@ export interface RdbmsApiInterface {
|
|
|
2364
2663
|
*/
|
|
2365
2664
|
killSession(requestParameters: RdbmsApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2366
2665
|
|
|
2666
|
+
/**
|
|
2667
|
+
* Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
|
|
2668
|
+
* @summary List exact column names for account object privileges
|
|
2669
|
+
* @param {RdbmsApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
|
|
2670
|
+
* @param {*} [options] Override http request option.
|
|
2671
|
+
* @throws {RequiredError}
|
|
2672
|
+
* @memberof RdbmsApiInterface
|
|
2673
|
+
*/
|
|
2674
|
+
listAccountObjectPrivilegeColumns(requestParameters: RdbmsApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
2675
|
+
|
|
2367
2676
|
/**
|
|
2368
2677
|
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
2369
2678
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -2424,6 +2733,26 @@ export interface RdbmsApiInterface {
|
|
|
2424
2733
|
*/
|
|
2425
2734
|
lockAccount(requestParameters: RdbmsApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2426
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
|
+
|
|
2427
2756
|
/**
|
|
2428
2757
|
* unlock an account in cluster
|
|
2429
2758
|
* @summary Unlock cluster account
|
|
@@ -3078,6 +3407,62 @@ export interface RdbmsApiKillSessionRequest {
|
|
|
3078
3407
|
readonly keep?: boolean
|
|
3079
3408
|
}
|
|
3080
3409
|
|
|
3410
|
+
/**
|
|
3411
|
+
* Request parameters for listAccountObjectPrivilegeColumns operation in RdbmsApi.
|
|
3412
|
+
* @export
|
|
3413
|
+
* @interface RdbmsApiListAccountObjectPrivilegeColumnsRequest
|
|
3414
|
+
*/
|
|
3415
|
+
export interface RdbmsApiListAccountObjectPrivilegeColumnsRequest {
|
|
3416
|
+
/**
|
|
3417
|
+
*
|
|
3418
|
+
* @type {string}
|
|
3419
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeColumns
|
|
3420
|
+
*/
|
|
3421
|
+
readonly engineName: string
|
|
3422
|
+
|
|
3423
|
+
/**
|
|
3424
|
+
*
|
|
3425
|
+
* @type {string}
|
|
3426
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeColumns
|
|
3427
|
+
*/
|
|
3428
|
+
readonly orgName: string
|
|
3429
|
+
|
|
3430
|
+
/**
|
|
3431
|
+
*
|
|
3432
|
+
* @type {string}
|
|
3433
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeColumns
|
|
3434
|
+
*/
|
|
3435
|
+
readonly clusterName: string
|
|
3436
|
+
|
|
3437
|
+
/**
|
|
3438
|
+
*
|
|
3439
|
+
* @type {string}
|
|
3440
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeColumns
|
|
3441
|
+
*/
|
|
3442
|
+
readonly accountName: string
|
|
3443
|
+
|
|
3444
|
+
/**
|
|
3445
|
+
* Object type, either table or view
|
|
3446
|
+
* @type {string}
|
|
3447
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeColumns
|
|
3448
|
+
*/
|
|
3449
|
+
readonly objectType: string
|
|
3450
|
+
|
|
3451
|
+
/**
|
|
3452
|
+
*
|
|
3453
|
+
* @type {string}
|
|
3454
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeColumns
|
|
3455
|
+
*/
|
|
3456
|
+
readonly databaseName: string
|
|
3457
|
+
|
|
3458
|
+
/**
|
|
3459
|
+
*
|
|
3460
|
+
* @type {string}
|
|
3461
|
+
* @memberof RdbmsApiListAccountObjectPrivilegeColumns
|
|
3462
|
+
*/
|
|
3463
|
+
readonly objectName: string
|
|
3464
|
+
}
|
|
3465
|
+
|
|
3081
3466
|
/**
|
|
3082
3467
|
* Request parameters for listAccountObjectPrivilegeObjects operation in RdbmsApi.
|
|
3083
3468
|
* @export
|
|
@@ -3316,6 +3701,118 @@ export interface RdbmsApiLockAccountRequest {
|
|
|
3316
3701
|
readonly accountName: string
|
|
3317
3702
|
}
|
|
3318
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
|
+
|
|
3319
3816
|
/**
|
|
3320
3817
|
* Request parameters for unlockAccount operation in RdbmsApi.
|
|
3321
3818
|
* @export
|
|
@@ -3693,6 +4190,18 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
|
|
|
3693
4190
|
return RdbmsApiFp(this.configuration).killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(this.axios, this.basePath));
|
|
3694
4191
|
}
|
|
3695
4192
|
|
|
4193
|
+
/**
|
|
4194
|
+
* Read MySQL table or view column names using the account management connection. No workbench datasource is required. Names are returned verbatim for column-level grants.
|
|
4195
|
+
* @summary List exact column names for account object privileges
|
|
4196
|
+
* @param {RdbmsApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
|
|
4197
|
+
* @param {*} [options] Override http request option.
|
|
4198
|
+
* @throws {RequiredError}
|
|
4199
|
+
* @memberof RdbmsApi
|
|
4200
|
+
*/
|
|
4201
|
+
public listAccountObjectPrivilegeColumns(requestParameters: RdbmsApiListAccountObjectPrivilegeColumnsRequest, options?: RawAxiosRequestConfig) {
|
|
4202
|
+
return RdbmsApiFp(this.configuration).listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(this.axios, this.basePath));
|
|
4203
|
+
}
|
|
4204
|
+
|
|
3696
4205
|
/**
|
|
3697
4206
|
* Lists existing objects of one supported kind. Pagination is not a fixed snapshot. PostgreSQL requires a connection database; schema-contained kinds require schemaName. MySQL global/database listing omits databaseName; other kinds require it.
|
|
3698
4207
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -3765,6 +4274,30 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
|
|
|
3765
4274
|
return RdbmsApiFp(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
3766
4275
|
}
|
|
3767
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
|
+
|
|
3768
4301
|
/**
|
|
3769
4302
|
* unlock an account in cluster
|
|
3770
4303
|
* @summary Unlock cluster account
|