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
|
@@ -746,6 +746,70 @@ const RdbmsApiAxiosParamCreator = function (configuration) {
|
|
|
746
746
|
options: localVarRequestOptions,
|
|
747
747
|
};
|
|
748
748
|
},
|
|
749
|
+
/**
|
|
750
|
+
* 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.
|
|
751
|
+
* @summary List exact column names for account object privileges
|
|
752
|
+
* @param {string} engineName
|
|
753
|
+
* @param {string} orgName
|
|
754
|
+
* @param {string} clusterName
|
|
755
|
+
* @param {string} accountName
|
|
756
|
+
* @param {string} objectType Object type, either table or view
|
|
757
|
+
* @param {string} databaseName
|
|
758
|
+
* @param {string} objectName
|
|
759
|
+
* @param {*} [options] Override http request option.
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
*/
|
|
762
|
+
listAccountObjectPrivilegeColumns: async (engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options = {}) => {
|
|
763
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
764
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'engineName', engineName);
|
|
765
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
766
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'orgName', orgName);
|
|
767
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
768
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'clusterName', clusterName);
|
|
769
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
770
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'accountName', accountName);
|
|
771
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
772
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'objectType', objectType);
|
|
773
|
+
// verify required parameter 'databaseName' is not null or undefined
|
|
774
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'databaseName', databaseName);
|
|
775
|
+
// verify required parameter 'objectName' is not null or undefined
|
|
776
|
+
(0, common_1.assertParamExists)('listAccountObjectPrivilegeColumns', 'objectName', objectName);
|
|
777
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/columns`
|
|
778
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
779
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
780
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
781
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
782
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
783
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
784
|
+
let baseOptions;
|
|
785
|
+
if (configuration) {
|
|
786
|
+
baseOptions = configuration.baseOptions;
|
|
787
|
+
}
|
|
788
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
789
|
+
const localVarHeaderParameter = {};
|
|
790
|
+
const localVarQueryParameter = {};
|
|
791
|
+
// authentication BearerToken required
|
|
792
|
+
// http bearer authentication required
|
|
793
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
794
|
+
// authentication DigestAuth required
|
|
795
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
796
|
+
if (objectType !== undefined) {
|
|
797
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
798
|
+
}
|
|
799
|
+
if (databaseName !== undefined) {
|
|
800
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
801
|
+
}
|
|
802
|
+
if (objectName !== undefined) {
|
|
803
|
+
localVarQueryParameter['objectName'] = objectName;
|
|
804
|
+
}
|
|
805
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
806
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
807
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
808
|
+
return {
|
|
809
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
810
|
+
options: localVarRequestOptions,
|
|
811
|
+
};
|
|
812
|
+
},
|
|
749
813
|
/**
|
|
750
814
|
* 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.
|
|
751
815
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -1040,6 +1104,122 @@ const RdbmsApiAxiosParamCreator = function (configuration) {
|
|
|
1040
1104
|
options: localVarRequestOptions,
|
|
1041
1105
|
};
|
|
1042
1106
|
},
|
|
1107
|
+
/**
|
|
1108
|
+
* 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.
|
|
1109
|
+
* @summary Preview clearing all MySQL account privileges
|
|
1110
|
+
* @param {string} engineName
|
|
1111
|
+
* @param {string} orgName
|
|
1112
|
+
* @param {string} clusterName
|
|
1113
|
+
* @param {string} accountName
|
|
1114
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1115
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1116
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
1117
|
+
* @param {*} [options] Override http request option.
|
|
1118
|
+
* @throws {RequiredError}
|
|
1119
|
+
*/
|
|
1120
|
+
previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
|
|
1121
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1122
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'engineName', engineName);
|
|
1123
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1124
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'orgName', orgName);
|
|
1125
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1126
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'clusterName', clusterName);
|
|
1127
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1128
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'accountName', accountName);
|
|
1129
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
1130
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1131
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1132
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1133
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1134
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1135
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1136
|
+
let baseOptions;
|
|
1137
|
+
if (configuration) {
|
|
1138
|
+
baseOptions = configuration.baseOptions;
|
|
1139
|
+
}
|
|
1140
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1141
|
+
const localVarHeaderParameter = {};
|
|
1142
|
+
const localVarQueryParameter = {};
|
|
1143
|
+
// authentication BearerToken required
|
|
1144
|
+
// http bearer authentication required
|
|
1145
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1146
|
+
// authentication DigestAuth required
|
|
1147
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1148
|
+
if (subjectType !== undefined) {
|
|
1149
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
1150
|
+
}
|
|
1151
|
+
if (host !== undefined) {
|
|
1152
|
+
localVarQueryParameter['host'] = host;
|
|
1153
|
+
}
|
|
1154
|
+
if (subjectQualifiers !== undefined) {
|
|
1155
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
1156
|
+
}
|
|
1157
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1160
|
+
return {
|
|
1161
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1162
|
+
options: localVarRequestOptions,
|
|
1163
|
+
};
|
|
1164
|
+
},
|
|
1165
|
+
/**
|
|
1166
|
+
* 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.
|
|
1167
|
+
* @summary Clear all MySQL account privileges
|
|
1168
|
+
* @param {string} engineName
|
|
1169
|
+
* @param {string} orgName
|
|
1170
|
+
* @param {string} clusterName
|
|
1171
|
+
* @param {string} accountName
|
|
1172
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1173
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1174
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
1175
|
+
* @param {*} [options] Override http request option.
|
|
1176
|
+
* @throws {RequiredError}
|
|
1177
|
+
*/
|
|
1178
|
+
resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
|
|
1179
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1180
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'engineName', engineName);
|
|
1181
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1182
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'orgName', orgName);
|
|
1183
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1184
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'clusterName', clusterName);
|
|
1185
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1186
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'accountName', accountName);
|
|
1187
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
1188
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1189
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1190
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1191
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1192
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1193
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1194
|
+
let baseOptions;
|
|
1195
|
+
if (configuration) {
|
|
1196
|
+
baseOptions = configuration.baseOptions;
|
|
1197
|
+
}
|
|
1198
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1199
|
+
const localVarHeaderParameter = {};
|
|
1200
|
+
const localVarQueryParameter = {};
|
|
1201
|
+
// authentication BearerToken required
|
|
1202
|
+
// http bearer authentication required
|
|
1203
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1204
|
+
// authentication DigestAuth required
|
|
1205
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1206
|
+
if (subjectType !== undefined) {
|
|
1207
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
1208
|
+
}
|
|
1209
|
+
if (host !== undefined) {
|
|
1210
|
+
localVarQueryParameter['host'] = host;
|
|
1211
|
+
}
|
|
1212
|
+
if (subjectQualifiers !== undefined) {
|
|
1213
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
1214
|
+
}
|
|
1215
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1217
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1218
|
+
return {
|
|
1219
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1220
|
+
options: localVarRequestOptions,
|
|
1221
|
+
};
|
|
1222
|
+
},
|
|
1043
1223
|
/**
|
|
1044
1224
|
* unlock an account in cluster
|
|
1045
1225
|
* @summary Unlock cluster account
|
|
@@ -1551,6 +1731,26 @@ const RdbmsApiFp = function (configuration) {
|
|
|
1551
1731
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RdbmsApi.killSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1552
1732
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1553
1733
|
},
|
|
1734
|
+
/**
|
|
1735
|
+
* 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.
|
|
1736
|
+
* @summary List exact column names for account object privileges
|
|
1737
|
+
* @param {string} engineName
|
|
1738
|
+
* @param {string} orgName
|
|
1739
|
+
* @param {string} clusterName
|
|
1740
|
+
* @param {string} accountName
|
|
1741
|
+
* @param {string} objectType Object type, either table or view
|
|
1742
|
+
* @param {string} databaseName
|
|
1743
|
+
* @param {string} objectName
|
|
1744
|
+
* @param {*} [options] Override http request option.
|
|
1745
|
+
* @throws {RequiredError}
|
|
1746
|
+
*/
|
|
1747
|
+
async listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options) {
|
|
1748
|
+
var _a, _b, _c;
|
|
1749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeColumns(engineName, orgName, clusterName, accountName, objectType, databaseName, objectName, options);
|
|
1750
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1751
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RdbmsApi.listAccountObjectPrivilegeColumns']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1752
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1753
|
+
},
|
|
1554
1754
|
/**
|
|
1555
1755
|
* 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.
|
|
1556
1756
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -1657,6 +1857,46 @@ const RdbmsApiFp = function (configuration) {
|
|
|
1657
1857
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RdbmsApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1658
1858
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1659
1859
|
},
|
|
1860
|
+
/**
|
|
1861
|
+
* 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.
|
|
1862
|
+
* @summary Preview clearing all MySQL account privileges
|
|
1863
|
+
* @param {string} engineName
|
|
1864
|
+
* @param {string} orgName
|
|
1865
|
+
* @param {string} clusterName
|
|
1866
|
+
* @param {string} accountName
|
|
1867
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1868
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1869
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
1870
|
+
* @param {*} [options] Override http request option.
|
|
1871
|
+
* @throws {RequiredError}
|
|
1872
|
+
*/
|
|
1873
|
+
async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
|
|
1874
|
+
var _a, _b, _c;
|
|
1875
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
1876
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1877
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RdbmsApi.previewAccountPrivilegeReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1878
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1879
|
+
},
|
|
1880
|
+
/**
|
|
1881
|
+
* 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.
|
|
1882
|
+
* @summary Clear all MySQL account privileges
|
|
1883
|
+
* @param {string} engineName
|
|
1884
|
+
* @param {string} orgName
|
|
1885
|
+
* @param {string} clusterName
|
|
1886
|
+
* @param {string} accountName
|
|
1887
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1888
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1889
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
1890
|
+
* @param {*} [options] Override http request option.
|
|
1891
|
+
* @throws {RequiredError}
|
|
1892
|
+
*/
|
|
1893
|
+
async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
|
|
1894
|
+
var _a, _b, _c;
|
|
1895
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
1896
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1897
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RdbmsApi.resetAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1898
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1899
|
+
},
|
|
1660
1900
|
/**
|
|
1661
1901
|
* unlock an account in cluster
|
|
1662
1902
|
* @summary Unlock cluster account
|
|
@@ -1895,6 +2135,16 @@ const RdbmsApiFactory = function (configuration, basePath, axios) {
|
|
|
1895
2135
|
killSession(requestParameters, options) {
|
|
1896
2136
|
return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
|
|
1897
2137
|
},
|
|
2138
|
+
/**
|
|
2139
|
+
* 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.
|
|
2140
|
+
* @summary List exact column names for account object privileges
|
|
2141
|
+
* @param {RdbmsApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
*/
|
|
2145
|
+
listAccountObjectPrivilegeColumns(requestParameters, options) {
|
|
2146
|
+
return localVarFp.listAccountObjectPrivilegeColumns(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.objectName, options).then((request) => request(axios, basePath));
|
|
2147
|
+
},
|
|
1898
2148
|
/**
|
|
1899
2149
|
* 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.
|
|
1900
2150
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -1955,6 +2205,26 @@ const RdbmsApiFactory = function (configuration, basePath, axios) {
|
|
|
1955
2205
|
lockAccount(requestParameters, options) {
|
|
1956
2206
|
return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
1957
2207
|
},
|
|
2208
|
+
/**
|
|
2209
|
+
* 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.
|
|
2210
|
+
* @summary Preview clearing all MySQL account privileges
|
|
2211
|
+
* @param {RdbmsApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
2212
|
+
* @param {*} [options] Override http request option.
|
|
2213
|
+
* @throws {RequiredError}
|
|
2214
|
+
*/
|
|
2215
|
+
previewAccountPrivilegeReset(requestParameters, options) {
|
|
2216
|
+
return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
2217
|
+
},
|
|
2218
|
+
/**
|
|
2219
|
+
* 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.
|
|
2220
|
+
* @summary Clear all MySQL account privileges
|
|
2221
|
+
* @param {RdbmsApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
2222
|
+
* @param {*} [options] Override http request option.
|
|
2223
|
+
* @throws {RequiredError}
|
|
2224
|
+
*/
|
|
2225
|
+
resetAccountPrivileges(requestParameters, options) {
|
|
2226
|
+
return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
2227
|
+
},
|
|
1958
2228
|
/**
|
|
1959
2229
|
* unlock an account in cluster
|
|
1960
2230
|
* @summary Unlock cluster account
|
|
@@ -2168,6 +2438,17 @@ class RdbmsApi extends base_1.BaseAPI {
|
|
|
2168
2438
|
killSession(requestParameters, options) {
|
|
2169
2439
|
return (0, exports.RdbmsApiFp)(this.configuration).killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(this.axios, this.basePath));
|
|
2170
2440
|
}
|
|
2441
|
+
/**
|
|
2442
|
+
* 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.
|
|
2443
|
+
* @summary List exact column names for account object privileges
|
|
2444
|
+
* @param {RdbmsApiListAccountObjectPrivilegeColumnsRequest} requestParameters Request parameters.
|
|
2445
|
+
* @param {*} [options] Override http request option.
|
|
2446
|
+
* @throws {RequiredError}
|
|
2447
|
+
* @memberof RdbmsApi
|
|
2448
|
+
*/
|
|
2449
|
+
listAccountObjectPrivilegeColumns(requestParameters, options) {
|
|
2450
|
+
return (0, exports.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));
|
|
2451
|
+
}
|
|
2171
2452
|
/**
|
|
2172
2453
|
* 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.
|
|
2173
2454
|
* @summary Discover existing native privilege objects with stable routine identities
|
|
@@ -2234,6 +2515,28 @@ class RdbmsApi extends base_1.BaseAPI {
|
|
|
2234
2515
|
lockAccount(requestParameters, options) {
|
|
2235
2516
|
return (0, exports.RdbmsApiFp)(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
2236
2517
|
}
|
|
2518
|
+
/**
|
|
2519
|
+
* 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.
|
|
2520
|
+
* @summary Preview clearing all MySQL account privileges
|
|
2521
|
+
* @param {RdbmsApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
2522
|
+
* @param {*} [options] Override http request option.
|
|
2523
|
+
* @throws {RequiredError}
|
|
2524
|
+
* @memberof RdbmsApi
|
|
2525
|
+
*/
|
|
2526
|
+
previewAccountPrivilegeReset(requestParameters, options) {
|
|
2527
|
+
return (0, exports.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));
|
|
2528
|
+
}
|
|
2529
|
+
/**
|
|
2530
|
+
* 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.
|
|
2531
|
+
* @summary Clear all MySQL account privileges
|
|
2532
|
+
* @param {RdbmsApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
2533
|
+
* @param {*} [options] Override http request option.
|
|
2534
|
+
* @throws {RequiredError}
|
|
2535
|
+
* @memberof RdbmsApi
|
|
2536
|
+
*/
|
|
2537
|
+
resetAccountPrivileges(requestParameters, options) {
|
|
2538
|
+
return (0, exports.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));
|
|
2539
|
+
}
|
|
2237
2540
|
/**
|
|
2238
2541
|
* unlock an account in cluster
|
|
2239
2542
|
* @summary Unlock cluster account
|