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
|
@@ -7368,6 +7368,70 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7368
7368
|
options: localVarRequestOptions,
|
|
7369
7369
|
};
|
|
7370
7370
|
},
|
|
7371
|
+
/**
|
|
7372
|
+
* 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.
|
|
7373
|
+
* @summary List exact column names for account object privileges
|
|
7374
|
+
* @param {string} engineName
|
|
7375
|
+
* @param {string} orgName
|
|
7376
|
+
* @param {string} clusterName
|
|
7377
|
+
* @param {string} accountName
|
|
7378
|
+
* @param {string} objectType Object type, either table or view
|
|
7379
|
+
* @param {string} databaseName
|
|
7380
|
+
* @param {string} objectName
|
|
7381
|
+
* @param {*} [options] Override http request option.
|
|
7382
|
+
* @throws {RequiredError}
|
|
7383
|
+
*/
|
|
7384
|
+
listAccountObjectPrivilegeColumns: async (engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options = {}) => {
|
|
7385
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
7386
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'engineName', engineName);
|
|
7387
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7388
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'orgName', orgName);
|
|
7389
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
7390
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'clusterName', clusterName);
|
|
7391
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
7392
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'accountName', accountName);
|
|
7393
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
7394
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'objectType', objectType);
|
|
7395
|
+
// verify required parameter 'databaseName' is not null or undefined
|
|
7396
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'databaseName', databaseName);
|
|
7397
|
+
// verify required parameter 'objectName' is not null or undefined
|
|
7398
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'objectName', objectName);
|
|
7399
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns`
|
|
7400
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
7401
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7402
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
7403
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
7404
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7405
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7406
|
+
let baseOptions;
|
|
7407
|
+
if (configuration) {
|
|
7408
|
+
baseOptions = configuration.baseOptions;
|
|
7409
|
+
}
|
|
7410
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7411
|
+
const localVarHeaderParameter = {};
|
|
7412
|
+
const localVarQueryParameter = {};
|
|
7413
|
+
// authentication BearerToken required
|
|
7414
|
+
// http bearer authentication required
|
|
7415
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7416
|
+
// authentication DigestAuth required
|
|
7417
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7418
|
+
if (objectType !== undefined) {
|
|
7419
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
7420
|
+
}
|
|
7421
|
+
if (databaseName !== undefined) {
|
|
7422
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
7423
|
+
}
|
|
7424
|
+
if (objectName !== undefined) {
|
|
7425
|
+
localVarQueryParameter['objectName'] = objectName;
|
|
7426
|
+
}
|
|
7427
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7429
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7430
|
+
return {
|
|
7431
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7432
|
+
options: localVarRequestOptions,
|
|
7433
|
+
};
|
|
7434
|
+
},
|
|
7371
7435
|
/**
|
|
7372
7436
|
* 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.
|
|
7373
7437
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -10501,6 +10565,64 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
10501
10565
|
options: localVarRequestOptions,
|
|
10502
10566
|
};
|
|
10503
10567
|
},
|
|
10568
|
+
/**
|
|
10569
|
+
* 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.
|
|
10570
|
+
* @summary Preview clearing all MySQL account privileges
|
|
10571
|
+
* @param {string} engineName
|
|
10572
|
+
* @param {string} orgName
|
|
10573
|
+
* @param {string} clusterName
|
|
10574
|
+
* @param {string} accountName
|
|
10575
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
10576
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
10577
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
10578
|
+
* @param {*} [options] Override http request option.
|
|
10579
|
+
* @throws {RequiredError}
|
|
10580
|
+
*/
|
|
10581
|
+
previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
|
|
10582
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
10583
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'engineName', engineName);
|
|
10584
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
10585
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'orgName', orgName);
|
|
10586
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
10587
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'clusterName', clusterName);
|
|
10588
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
10589
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'accountName', accountName);
|
|
10590
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
10591
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
10592
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
10593
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
10594
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
10595
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10596
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10597
|
+
let baseOptions;
|
|
10598
|
+
if (configuration) {
|
|
10599
|
+
baseOptions = configuration.baseOptions;
|
|
10600
|
+
}
|
|
10601
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10602
|
+
const localVarHeaderParameter = {};
|
|
10603
|
+
const localVarQueryParameter = {};
|
|
10604
|
+
// authentication BearerToken required
|
|
10605
|
+
// http bearer authentication required
|
|
10606
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10607
|
+
// authentication DigestAuth required
|
|
10608
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10609
|
+
if (subjectType !== undefined) {
|
|
10610
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
10611
|
+
}
|
|
10612
|
+
if (host !== undefined) {
|
|
10613
|
+
localVarQueryParameter['host'] = host;
|
|
10614
|
+
}
|
|
10615
|
+
if (subjectQualifiers !== undefined) {
|
|
10616
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
10617
|
+
}
|
|
10618
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10619
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10620
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10621
|
+
return {
|
|
10622
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10623
|
+
options: localVarRequestOptions,
|
|
10624
|
+
};
|
|
10625
|
+
},
|
|
10504
10626
|
/**
|
|
10505
10627
|
*
|
|
10506
10628
|
* @summary Produce message to topic
|
|
@@ -12311,6 +12433,64 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
12311
12433
|
options: localVarRequestOptions,
|
|
12312
12434
|
};
|
|
12313
12435
|
},
|
|
12436
|
+
/**
|
|
12437
|
+
* 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.
|
|
12438
|
+
* @summary Clear all MySQL account privileges
|
|
12439
|
+
* @param {string} engineName
|
|
12440
|
+
* @param {string} orgName
|
|
12441
|
+
* @param {string} clusterName
|
|
12442
|
+
* @param {string} accountName
|
|
12443
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
12444
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
12445
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
12446
|
+
* @param {*} [options] Override http request option.
|
|
12447
|
+
* @throws {RequiredError}
|
|
12448
|
+
*/
|
|
12449
|
+
resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
|
|
12450
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
12451
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'engineName', engineName);
|
|
12452
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
12453
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'orgName', orgName);
|
|
12454
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
12455
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'clusterName', clusterName);
|
|
12456
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
12457
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'accountName', accountName);
|
|
12458
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
12459
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
12460
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
12461
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
12462
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
12463
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12464
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12465
|
+
let baseOptions;
|
|
12466
|
+
if (configuration) {
|
|
12467
|
+
baseOptions = configuration.baseOptions;
|
|
12468
|
+
}
|
|
12469
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12470
|
+
const localVarHeaderParameter = {};
|
|
12471
|
+
const localVarQueryParameter = {};
|
|
12472
|
+
// authentication BearerToken required
|
|
12473
|
+
// http bearer authentication required
|
|
12474
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12475
|
+
// authentication DigestAuth required
|
|
12476
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
12477
|
+
if (subjectType !== undefined) {
|
|
12478
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
12479
|
+
}
|
|
12480
|
+
if (host !== undefined) {
|
|
12481
|
+
localVarQueryParameter['host'] = host;
|
|
12482
|
+
}
|
|
12483
|
+
if (subjectQualifiers !== undefined) {
|
|
12484
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
12485
|
+
}
|
|
12486
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12488
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12489
|
+
return {
|
|
12490
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12491
|
+
options: localVarRequestOptions,
|
|
12492
|
+
};
|
|
12493
|
+
},
|
|
12314
12494
|
/**
|
|
12315
12495
|
*
|
|
12316
12496
|
* @summary Reset consumer offset of topic
|
|
@@ -17625,6 +17805,26 @@ const SharedApiFp = function (configuration) {
|
|
|
17625
17805
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.killSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17626
17806
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17627
17807
|
},
|
|
17808
|
+
/**
|
|
17809
|
+
* 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.
|
|
17810
|
+
* @summary List exact column names for account object privileges
|
|
17811
|
+
* @param {string} engineName
|
|
17812
|
+
* @param {string} orgName
|
|
17813
|
+
* @param {string} clusterName
|
|
17814
|
+
* @param {string} accountName
|
|
17815
|
+
* @param {string} objectType Object type, either table or view
|
|
17816
|
+
* @param {string} databaseName
|
|
17817
|
+
* @param {string} objectName
|
|
17818
|
+
* @param {*} [options] Override http request option.
|
|
17819
|
+
* @throws {RequiredError}
|
|
17820
|
+
*/
|
|
17821
|
+
async listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options) {
|
|
17822
|
+
var _a, _b, _c;
|
|
17823
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
|
|
17824
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17825
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listAccountObjectPrivilegeColumns']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17826
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17827
|
+
},
|
|
17628
17828
|
/**
|
|
17629
17829
|
* 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.
|
|
17630
17830
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -18809,6 +19009,26 @@ const SharedApiFp = function (configuration) {
|
|
|
18809
19009
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.patchOrgParameter']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
18810
19010
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18811
19011
|
},
|
|
19012
|
+
/**
|
|
19013
|
+
* 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.
|
|
19014
|
+
* @summary Preview clearing all MySQL account privileges
|
|
19015
|
+
* @param {string} engineName
|
|
19016
|
+
* @param {string} orgName
|
|
19017
|
+
* @param {string} clusterName
|
|
19018
|
+
* @param {string} accountName
|
|
19019
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
19020
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
19021
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
19022
|
+
* @param {*} [options] Override http request option.
|
|
19023
|
+
* @throws {RequiredError}
|
|
19024
|
+
*/
|
|
19025
|
+
async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
|
|
19026
|
+
var _a, _b, _c;
|
|
19027
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
19028
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19029
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.previewAccountPrivilegeReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19030
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19031
|
+
},
|
|
18812
19032
|
/**
|
|
18813
19033
|
*
|
|
18814
19034
|
* @summary Produce message to topic
|
|
@@ -19397,6 +19617,26 @@ const SharedApiFp = function (configuration) {
|
|
|
19397
19617
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.reconfigureCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19398
19618
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19399
19619
|
},
|
|
19620
|
+
/**
|
|
19621
|
+
* 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.
|
|
19622
|
+
* @summary Clear all MySQL account privileges
|
|
19623
|
+
* @param {string} engineName
|
|
19624
|
+
* @param {string} orgName
|
|
19625
|
+
* @param {string} clusterName
|
|
19626
|
+
* @param {string} accountName
|
|
19627
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
19628
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
19629
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
19630
|
+
* @param {*} [options] Override http request option.
|
|
19631
|
+
* @throws {RequiredError}
|
|
19632
|
+
*/
|
|
19633
|
+
async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
|
|
19634
|
+
var _a, _b, _c;
|
|
19635
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
19636
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19637
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.resetAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19638
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19639
|
+
},
|
|
19400
19640
|
/**
|
|
19401
19641
|
*
|
|
19402
19642
|
* @summary Reset consumer offset of topic
|
|
@@ -21949,6 +22189,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
21949
22189
|
killSession(requestParameters, options) {
|
|
21950
22190
|
return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
|
|
21951
22191
|
},
|
|
22192
|
+
/**
|
|
22193
|
+
* 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.
|
|
22194
|
+
* @summary List exact column names for account object privileges
|
|
22195
|
+
* @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
|
|
22196
|
+
* @param {*} [options] Override http request option.
|
|
22197
|
+
* @throws {RequiredError}
|
|
22198
|
+
*/
|
|
22199
|
+
listAccountObjectPrivilegeColumns(requestParameters, options) {
|
|
22200
|
+
return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
|
|
22201
|
+
},
|
|
21952
22202
|
/**
|
|
21953
22203
|
* 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.
|
|
21954
22204
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -22687,6 +22937,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
22687
22937
|
patchOrgParameter(requestParameters, options) {
|
|
22688
22938
|
return localVarFp.patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(axios, basePath));
|
|
22689
22939
|
},
|
|
22940
|
+
/**
|
|
22941
|
+
* 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.
|
|
22942
|
+
* @summary Preview clearing all MySQL account privileges
|
|
22943
|
+
* @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
22944
|
+
* @param {*} [options] Override http request option.
|
|
22945
|
+
* @throws {RequiredError}
|
|
22946
|
+
*/
|
|
22947
|
+
previewAccountPrivilegeReset(requestParameters, options) {
|
|
22948
|
+
return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
22949
|
+
},
|
|
22690
22950
|
/**
|
|
22691
22951
|
*
|
|
22692
22952
|
* @summary Produce message to topic
|
|
@@ -22966,6 +23226,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
22966
23226
|
reconfigureCluster(requestParameters, options) {
|
|
22967
23227
|
return localVarFp.reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
22968
23228
|
},
|
|
23229
|
+
/**
|
|
23230
|
+
* 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.
|
|
23231
|
+
* @summary Clear all MySQL account privileges
|
|
23232
|
+
* @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
23233
|
+
* @param {*} [options] Override http request option.
|
|
23234
|
+
* @throws {RequiredError}
|
|
23235
|
+
*/
|
|
23236
|
+
resetAccountPrivileges(requestParameters, options) {
|
|
23237
|
+
return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
23238
|
+
},
|
|
22969
23239
|
/**
|
|
22970
23240
|
*
|
|
22971
23241
|
* @summary Reset consumer offset of topic
|
|
@@ -25292,6 +25562,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
25292
25562
|
killSession(requestParameters, options) {
|
|
25293
25563
|
return (0, exports.SharedApiFp)(this.configuration).killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(this.axios, this.basePath));
|
|
25294
25564
|
}
|
|
25565
|
+
/**
|
|
25566
|
+
* 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.
|
|
25567
|
+
* @summary List exact column names for account object privileges
|
|
25568
|
+
* @param {SharedApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
|
|
25569
|
+
* @param {*} [options] Override http request option.
|
|
25570
|
+
* @throws {RequiredError}
|
|
25571
|
+
* @memberof SharedApi
|
|
25572
|
+
*/
|
|
25573
|
+
listAccountObjectPrivilegeColumns(requestParameters, options) {
|
|
25574
|
+
return (0, exports.SharedApiFp)(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));
|
|
25575
|
+
}
|
|
25295
25576
|
/**
|
|
25296
25577
|
* 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.
|
|
25297
25578
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -26104,6 +26385,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
26104
26385
|
patchOrgParameter(requestParameters, options) {
|
|
26105
26386
|
return (0, exports.SharedApiFp)(this.configuration).patchOrgParameter(requestParameters.orgName, requestParameters.parameterName, requestParameters.orgParameter, options).then((request) => request(this.axios, this.basePath));
|
|
26106
26387
|
}
|
|
26388
|
+
/**
|
|
26389
|
+
* 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.
|
|
26390
|
+
* @summary Preview clearing all MySQL account privileges
|
|
26391
|
+
* @param {SharedApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
26392
|
+
* @param {*} [options] Override http request option.
|
|
26393
|
+
* @throws {RequiredError}
|
|
26394
|
+
* @memberof SharedApi
|
|
26395
|
+
*/
|
|
26396
|
+
previewAccountPrivilegeReset(requestParameters, options) {
|
|
26397
|
+
return (0, exports.SharedApiFp)(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));
|
|
26398
|
+
}
|
|
26107
26399
|
/**
|
|
26108
26400
|
*
|
|
26109
26401
|
* @summary Produce message to topic
|
|
@@ -26411,6 +26703,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
26411
26703
|
reconfigureCluster(requestParameters, options) {
|
|
26412
26704
|
return (0, exports.SharedApiFp)(this.configuration).reconfigureCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
26413
26705
|
}
|
|
26706
|
+
/**
|
|
26707
|
+
* 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.
|
|
26708
|
+
* @summary Clear all MySQL account privileges
|
|
26709
|
+
* @param {SharedApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
26710
|
+
* @param {*} [options] Override http request option.
|
|
26711
|
+
* @throws {RequiredError}
|
|
26712
|
+
* @memberof SharedApi
|
|
26713
|
+
*/
|
|
26714
|
+
resetAccountPrivileges(requestParameters, options) {
|
|
26715
|
+
return (0, exports.SharedApiFp)(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));
|
|
26716
|
+
}
|
|
26414
26717
|
/**
|
|
26415
26718
|
*
|
|
26416
26719
|
* @summary Reset consumer offset of topic
|