kb-cloud-client-typescript 2.4.0-alpha.92 → 2.4.0-alpha.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/account-api.d.ts +207 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +198 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +207 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +198 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +207 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +198 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +12 -0
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/component-item.d.ts +19 -0
- package/dist/adminapi/models/component-item.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.js +0 -1
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
- package/dist/adminapi/models/instance-template-create.d.ts +9 -3
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/adminapi/models/instance.d.ts +6 -0
- package/dist/adminapi/models/instance.d.ts.map +1 -1
- package/dist/adminapi/models/mode-option.d.ts +7 -0
- package/dist/adminapi/models/mode-option.d.ts.map +1 -1
- package/dist/adminapi/models/object-privilege-reset-step.d.ts +31 -0
- package/dist/adminapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-reset-step.js +16 -0
- package/dist/adminapi/models/object-privilege-reset-step.js.map +1 -0
- package/dist/adminapi/models/placement-scope.d.ts +22 -0
- package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
- package/dist/adminapi/models/placement-scope.js +26 -0
- package/dist/adminapi/models/placement-scope.js.map +1 -0
- package/dist/internalapi/models/component-item.d.ts +19 -0
- package/dist/internalapi/models/component-item.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +2 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +2 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/internalapi/models/instance-template-create.d.ts +72 -0
- package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create.js +16 -0
- package/dist/internalapi/models/instance-template-create.js.map +1 -0
- package/dist/openapi/apis/account-api.d.ts +207 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +198 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +207 -0
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +198 -0
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +207 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +198 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +12 -0
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item.d.ts +19 -0
- package/dist/openapi/models/component-item.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-attribute.js +0 -1
- package/dist/openapi/models/instance-template-attribute.js.map +1 -1
- package/dist/openapi/models/instance-template-create.d.ts +9 -3
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/instance.d.ts +6 -0
- package/dist/openapi/models/instance.d.ts.map +1 -1
- package/dist/openapi/models/mode-option.d.ts +7 -0
- package/dist/openapi/models/mode-option.d.ts.map +1 -1
- package/dist/openapi/models/object-privilege-reset-step.d.ts +31 -0
- package/dist/openapi/models/object-privilege-reset-step.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-reset-step.js +16 -0
- package/dist/openapi/models/object-privilege-reset-step.js.map +1 -0
- package/dist/openapi/models/placement-scope.d.ts +22 -0
- package/dist/openapi/models/placement-scope.d.ts.map +1 -0
- package/dist/openapi/models/placement-scope.js +26 -0
- package/dist/openapi/models/placement-scope.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/account-api.ts +352 -0
- package/src/adminapi/apis/rdbms-api.ts +352 -0
- package/src/adminapi/apis/shared-api.ts +352 -0
- package/src/adminapi/models/component-item-create.ts +12 -0
- package/src/adminapi/models/component-item.ts +21 -0
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/instance-template-attribute.ts +0 -1
- package/src/adminapi/models/instance-template-create.ts +9 -3
- package/src/adminapi/models/instance.ts +6 -0
- package/src/adminapi/models/mode-option.ts +9 -0
- package/src/adminapi/models/object-privilege-reset-step.ts +36 -0
- package/src/adminapi/models/placement-scope.ts +31 -0
- package/src/adminapi.yaml +174 -5
- package/src/internalapi/.openapi-generator/FILES +2 -0
- package/src/internalapi/models/component-item.ts +21 -0
- package/src/internalapi/models/index.ts +2 -0
- package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/internalapi/models/instance-template-create.ts +75 -0
- package/src/internalapi.yaml +62 -0
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/account-api.ts +352 -0
- package/src/openapi/apis/rdbms-api.ts +352 -0
- package/src/openapi/apis/shared-api.ts +352 -0
- package/src/openapi/models/component-item-create.ts +12 -0
- package/src/openapi/models/component-item.ts +21 -0
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/instance-template-attribute.ts +0 -1
- package/src/openapi/models/instance-template-create.ts +9 -3
- package/src/openapi/models/instance.ts +6 -0
- package/src/openapi/models/mode-option.ts +9 -0
- package/src/openapi/models/object-privilege-reset-step.ts +36 -0
- package/src/openapi/models/placement-scope.ts +31 -0
- package/src/openapi.yaml +174 -5
|
@@ -1868,6 +1868,64 @@ const AccountApiAxiosParamCreator = function (configuration) {
|
|
|
1868
1868
|
options: localVarRequestOptions,
|
|
1869
1869
|
};
|
|
1870
1870
|
},
|
|
1871
|
+
/**
|
|
1872
|
+
* 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.
|
|
1873
|
+
* @summary Preview clearing all MySQL account privileges
|
|
1874
|
+
* @param {string} engineName
|
|
1875
|
+
* @param {string} orgName
|
|
1876
|
+
* @param {string} clusterName
|
|
1877
|
+
* @param {string} accountName
|
|
1878
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1879
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1880
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
1881
|
+
* @param {*} [options] Override http request option.
|
|
1882
|
+
* @throws {RequiredError}
|
|
1883
|
+
*/
|
|
1884
|
+
previewAccountPrivilegeReset: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
|
|
1885
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1886
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'engineName', engineName);
|
|
1887
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1888
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'orgName', orgName);
|
|
1889
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1890
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'clusterName', clusterName);
|
|
1891
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1892
|
+
(0, common_1.assertParamExists)('previewAccountPrivilegeReset', 'accountName', accountName);
|
|
1893
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
1894
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1895
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1896
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1897
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1898
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1899
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1900
|
+
let baseOptions;
|
|
1901
|
+
if (configuration) {
|
|
1902
|
+
baseOptions = configuration.baseOptions;
|
|
1903
|
+
}
|
|
1904
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1905
|
+
const localVarHeaderParameter = {};
|
|
1906
|
+
const localVarQueryParameter = {};
|
|
1907
|
+
// authentication BearerToken required
|
|
1908
|
+
// http bearer authentication required
|
|
1909
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1910
|
+
// authentication DigestAuth required
|
|
1911
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1912
|
+
if (subjectType !== undefined) {
|
|
1913
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
1914
|
+
}
|
|
1915
|
+
if (host !== undefined) {
|
|
1916
|
+
localVarQueryParameter['host'] = host;
|
|
1917
|
+
}
|
|
1918
|
+
if (subjectQualifiers !== undefined) {
|
|
1919
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
1920
|
+
}
|
|
1921
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1922
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1923
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1924
|
+
return {
|
|
1925
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1926
|
+
options: localVarRequestOptions,
|
|
1927
|
+
};
|
|
1928
|
+
},
|
|
1871
1929
|
/**
|
|
1872
1930
|
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
1873
1931
|
* @summary putSeaweedFSPolicy
|
|
@@ -1915,6 +1973,64 @@ const AccountApiAxiosParamCreator = function (configuration) {
|
|
|
1915
1973
|
options: localVarRequestOptions,
|
|
1916
1974
|
};
|
|
1917
1975
|
},
|
|
1976
|
+
/**
|
|
1977
|
+
* 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.
|
|
1978
|
+
* @summary Clear all MySQL account privileges
|
|
1979
|
+
* @param {string} engineName
|
|
1980
|
+
* @param {string} orgName
|
|
1981
|
+
* @param {string} clusterName
|
|
1982
|
+
* @param {string} accountName
|
|
1983
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1984
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1985
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
1986
|
+
* @param {*} [options] Override http request option.
|
|
1987
|
+
* @throws {RequiredError}
|
|
1988
|
+
*/
|
|
1989
|
+
resetAccountPrivileges: async (engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options = {}) => {
|
|
1990
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1991
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'engineName', engineName);
|
|
1992
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1993
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'orgName', orgName);
|
|
1994
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1995
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'clusterName', clusterName);
|
|
1996
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1997
|
+
(0, common_1.assertParamExists)('resetAccountPrivileges', 'accountName', accountName);
|
|
1998
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/reset`
|
|
1999
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2000
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2001
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2002
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2003
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2004
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2005
|
+
let baseOptions;
|
|
2006
|
+
if (configuration) {
|
|
2007
|
+
baseOptions = configuration.baseOptions;
|
|
2008
|
+
}
|
|
2009
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2010
|
+
const localVarHeaderParameter = {};
|
|
2011
|
+
const localVarQueryParameter = {};
|
|
2012
|
+
// authentication BearerToken required
|
|
2013
|
+
// http bearer authentication required
|
|
2014
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2015
|
+
// authentication DigestAuth required
|
|
2016
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2017
|
+
if (subjectType !== undefined) {
|
|
2018
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
2019
|
+
}
|
|
2020
|
+
if (host !== undefined) {
|
|
2021
|
+
localVarQueryParameter['host'] = host;
|
|
2022
|
+
}
|
|
2023
|
+
if (subjectQualifiers !== undefined) {
|
|
2024
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
2025
|
+
}
|
|
2026
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2027
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2028
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2029
|
+
return {
|
|
2030
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2031
|
+
options: localVarRequestOptions,
|
|
2032
|
+
};
|
|
2033
|
+
},
|
|
1918
2034
|
/**
|
|
1919
2035
|
* unlock an account in cluster
|
|
1920
2036
|
* @summary Unlock cluster account
|
|
@@ -3261,6 +3377,26 @@ const AccountApiFp = function (configuration) {
|
|
|
3261
3377
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3262
3378
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3263
3379
|
},
|
|
3380
|
+
/**
|
|
3381
|
+
* 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.
|
|
3382
|
+
* @summary Preview clearing all MySQL account privileges
|
|
3383
|
+
* @param {string} engineName
|
|
3384
|
+
* @param {string} orgName
|
|
3385
|
+
* @param {string} clusterName
|
|
3386
|
+
* @param {string} accountName
|
|
3387
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
3388
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
3389
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
3390
|
+
* @param {*} [options] Override http request option.
|
|
3391
|
+
* @throws {RequiredError}
|
|
3392
|
+
*/
|
|
3393
|
+
async previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
|
|
3394
|
+
var _a, _b, _c;
|
|
3395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.previewAccountPrivilegeReset(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
3396
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3397
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.previewAccountPrivilegeReset']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3398
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3399
|
+
},
|
|
3264
3400
|
/**
|
|
3265
3401
|
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
3266
3402
|
* @summary putSeaweedFSPolicy
|
|
@@ -3278,6 +3414,26 @@ const AccountApiFp = function (configuration) {
|
|
|
3278
3414
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.putSeaweedFSPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3279
3415
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3280
3416
|
},
|
|
3417
|
+
/**
|
|
3418
|
+
* 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.
|
|
3419
|
+
* @summary Clear all MySQL account privileges
|
|
3420
|
+
* @param {string} engineName
|
|
3421
|
+
* @param {string} orgName
|
|
3422
|
+
* @param {string} clusterName
|
|
3423
|
+
* @param {string} accountName
|
|
3424
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
3425
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
3426
|
+
* @param {string} [subjectQualifiers] JSON identity qualifiers; MySQL host defaults to %.
|
|
3427
|
+
* @param {*} [options] Override http request option.
|
|
3428
|
+
* @throws {RequiredError}
|
|
3429
|
+
*/
|
|
3430
|
+
async resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options) {
|
|
3431
|
+
var _a, _b, _c;
|
|
3432
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetAccountPrivileges(engineName, orgName, clusterName, accountName, subjectType, host, subjectQualifiers, options);
|
|
3433
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3434
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.resetAccountPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3435
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3436
|
+
},
|
|
3281
3437
|
/**
|
|
3282
3438
|
* unlock an account in cluster
|
|
3283
3439
|
* @summary Unlock cluster account
|
|
@@ -3928,6 +4084,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
|
|
|
3928
4084
|
lockAccount(requestParameters, options) {
|
|
3929
4085
|
return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
3930
4086
|
},
|
|
4087
|
+
/**
|
|
4088
|
+
* 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.
|
|
4089
|
+
* @summary Preview clearing all MySQL account privileges
|
|
4090
|
+
* @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
4091
|
+
* @param {*} [options] Override http request option.
|
|
4092
|
+
* @throws {RequiredError}
|
|
4093
|
+
*/
|
|
4094
|
+
previewAccountPrivilegeReset(requestParameters, options) {
|
|
4095
|
+
return localVarFp.previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
4096
|
+
},
|
|
3931
4097
|
/**
|
|
3932
4098
|
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
3933
4099
|
* @summary putSeaweedFSPolicy
|
|
@@ -3938,6 +4104,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
|
|
|
3938
4104
|
putSeaweedFSPolicy(requestParameters, options) {
|
|
3939
4105
|
return localVarFp.putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
3940
4106
|
},
|
|
4107
|
+
/**
|
|
4108
|
+
* 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.
|
|
4109
|
+
* @summary Clear all MySQL account privileges
|
|
4110
|
+
* @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
4111
|
+
* @param {*} [options] Override http request option.
|
|
4112
|
+
* @throws {RequiredError}
|
|
4113
|
+
*/
|
|
4114
|
+
resetAccountPrivileges(requestParameters, options) {
|
|
4115
|
+
return localVarFp.resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
4116
|
+
},
|
|
3941
4117
|
/**
|
|
3942
4118
|
* unlock an account in cluster
|
|
3943
4119
|
* @summary Unlock cluster account
|
|
@@ -4528,6 +4704,17 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
4528
4704
|
lockAccount(requestParameters, options) {
|
|
4529
4705
|
return (0, exports.AccountApiFp)(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
4530
4706
|
}
|
|
4707
|
+
/**
|
|
4708
|
+
* 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.
|
|
4709
|
+
* @summary Preview clearing all MySQL account privileges
|
|
4710
|
+
* @param {AccountApiPreviewAccountPrivilegeResetRequest} requestParameters Request parameters.
|
|
4711
|
+
* @param {*} [options] Override http request option.
|
|
4712
|
+
* @throws {RequiredError}
|
|
4713
|
+
* @memberof AccountApi
|
|
4714
|
+
*/
|
|
4715
|
+
previewAccountPrivilegeReset(requestParameters, options) {
|
|
4716
|
+
return (0, exports.AccountApiFp)(this.configuration).previewAccountPrivilegeReset(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
|
|
4717
|
+
}
|
|
4531
4718
|
/**
|
|
4532
4719
|
* Creates or replaces a named AWS IAM JSON policy document. Updates affect every identity and group that uses this policy.
|
|
4533
4720
|
* @summary putSeaweedFSPolicy
|
|
@@ -4539,6 +4726,17 @@ class AccountApi extends base_1.BaseAPI {
|
|
|
4539
4726
|
putSeaweedFSPolicy(requestParameters, options) {
|
|
4540
4727
|
return (0, exports.AccountApiFp)(this.configuration).putSeaweedFSPolicy(requestParameters.orgName, requestParameters.clusterName, requestParameters.policyName, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
4541
4728
|
}
|
|
4729
|
+
/**
|
|
4730
|
+
* 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.
|
|
4731
|
+
* @summary Clear all MySQL account privileges
|
|
4732
|
+
* @param {AccountApiResetAccountPrivilegesRequest} requestParameters Request parameters.
|
|
4733
|
+
* @param {*} [options] Override http request option.
|
|
4734
|
+
* @throws {RequiredError}
|
|
4735
|
+
* @memberof AccountApi
|
|
4736
|
+
*/
|
|
4737
|
+
resetAccountPrivileges(requestParameters, options) {
|
|
4738
|
+
return (0, exports.AccountApiFp)(this.configuration).resetAccountPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
|
|
4739
|
+
}
|
|
4542
4740
|
/**
|
|
4543
4741
|
* unlock an account in cluster
|
|
4544
4742
|
* @summary Unlock cluster account
|