kb-cloud-client-typescript 2.4.0-alpha.89 → 2.4.0-alpha.90
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 +473 -0
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +436 -0
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +473 -0
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +436 -0
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +473 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +436 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +17 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +17 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/object-privilege-capabilities.d.ts +46 -0
- package/dist/adminapi/models/object-privilege-capabilities.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-capabilities.js +16 -0
- package/dist/adminapi/models/object-privilege-capabilities.js.map +1 -0
- package/dist/adminapi/models/object-privilege-capability.d.ts +95 -0
- package/dist/adminapi/models/object-privilege-capability.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-capability.js +16 -0
- package/dist/adminapi/models/object-privilege-capability.js.map +1 -0
- package/dist/adminapi/models/object-privilege-change.d.ts +71 -0
- package/dist/adminapi/models/object-privilege-change.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-change.js +16 -0
- package/dist/adminapi/models/object-privilege-change.js.map +1 -0
- package/dist/adminapi/models/object-privilege-definition.d.ts +38 -0
- package/dist/adminapi/models/object-privilege-definition.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-definition.js +16 -0
- package/dist/adminapi/models/object-privilege-definition.js.map +1 -0
- package/dist/adminapi/models/object-privilege-evidence.d.ts +37 -0
- package/dist/adminapi/models/object-privilege-evidence.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-evidence.js +16 -0
- package/dist/adminapi/models/object-privilege-evidence.js.map +1 -0
- package/dist/adminapi/models/object-privilege-grant-option-scope.d.ts +23 -0
- package/dist/adminapi/models/object-privilege-grant-option-scope.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-grant-option-scope.js +27 -0
- package/dist/adminapi/models/object-privilege-grant-option-scope.js.map +1 -0
- package/dist/adminapi/models/object-privilege-grant.d.ts +43 -0
- package/dist/adminapi/models/object-privilege-grant.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-grant.js +16 -0
- package/dist/adminapi/models/object-privilege-grant.js.map +1 -0
- package/dist/adminapi/models/object-privilege-object-list.d.ts +38 -0
- package/dist/adminapi/models/object-privilege-object-list.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-object-list.js +16 -0
- package/dist/adminapi/models/object-privilege-object-list.js.map +1 -0
- package/dist/adminapi/models/object-privilege-object.d.ts +32 -0
- package/dist/adminapi/models/object-privilege-object.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-object.js +16 -0
- package/dist/adminapi/models/object-privilege-object.js.map +1 -0
- package/dist/adminapi/models/object-privilege-prerequisite-check.d.ts +45 -0
- package/dist/adminapi/models/object-privilege-prerequisite-check.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-prerequisite-check.js +16 -0
- package/dist/adminapi/models/object-privilege-prerequisite-check.js.map +1 -0
- package/dist/adminapi/models/object-privilege-prerequisite-status.d.ts +23 -0
- package/dist/adminapi/models/object-privilege-prerequisite-status.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-prerequisite-status.js +27 -0
- package/dist/adminapi/models/object-privilege-prerequisite-status.js.map +1 -0
- package/dist/adminapi/models/object-privilege-qualifier.d.ts +43 -0
- package/dist/adminapi/models/object-privilege-qualifier.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-qualifier.js +16 -0
- package/dist/adminapi/models/object-privilege-qualifier.js.map +1 -0
- package/dist/adminapi/models/object-privilege-snapshot.d.ts +92 -0
- package/dist/adminapi/models/object-privilege-snapshot.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-snapshot.js +16 -0
- package/dist/adminapi/models/object-privilege-snapshot.js.map +1 -0
- package/dist/adminapi/models/object-privilege-spec.d.ts +31 -0
- package/dist/adminapi/models/object-privilege-spec.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-spec.js +16 -0
- package/dist/adminapi/models/object-privilege-spec.js.map +1 -0
- package/dist/adminapi/models/object-privilege-subject-type.d.ts +22 -0
- package/dist/adminapi/models/object-privilege-subject-type.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-subject-type.js +26 -0
- package/dist/adminapi/models/object-privilege-subject-type.js.map +1 -0
- package/dist/adminapi/models/object-privilege-subject.d.ts +40 -0
- package/dist/adminapi/models/object-privilege-subject.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-subject.js +16 -0
- package/dist/adminapi/models/object-privilege-subject.js.map +1 -0
- package/dist/adminapi/models/object-privilege-target.d.ts +55 -0
- package/dist/adminapi/models/object-privilege-target.d.ts.map +1 -0
- package/dist/adminapi/models/object-privilege-target.js +16 -0
- package/dist/adminapi/models/object-privilege-target.js.map +1 -0
- package/dist/openapi/apis/account-api.d.ts +473 -0
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +436 -0
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +473 -0
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +436 -0
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +473 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +436 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +17 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +17 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/object-privilege-capabilities.d.ts +46 -0
- package/dist/openapi/models/object-privilege-capabilities.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-capabilities.js +16 -0
- package/dist/openapi/models/object-privilege-capabilities.js.map +1 -0
- package/dist/openapi/models/object-privilege-capability.d.ts +95 -0
- package/dist/openapi/models/object-privilege-capability.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-capability.js +16 -0
- package/dist/openapi/models/object-privilege-capability.js.map +1 -0
- package/dist/openapi/models/object-privilege-change.d.ts +71 -0
- package/dist/openapi/models/object-privilege-change.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-change.js +16 -0
- package/dist/openapi/models/object-privilege-change.js.map +1 -0
- package/dist/openapi/models/object-privilege-definition.d.ts +38 -0
- package/dist/openapi/models/object-privilege-definition.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-definition.js +16 -0
- package/dist/openapi/models/object-privilege-definition.js.map +1 -0
- package/dist/openapi/models/object-privilege-evidence.d.ts +37 -0
- package/dist/openapi/models/object-privilege-evidence.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-evidence.js +16 -0
- package/dist/openapi/models/object-privilege-evidence.js.map +1 -0
- package/dist/openapi/models/object-privilege-grant-option-scope.d.ts +23 -0
- package/dist/openapi/models/object-privilege-grant-option-scope.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-grant-option-scope.js +27 -0
- package/dist/openapi/models/object-privilege-grant-option-scope.js.map +1 -0
- package/dist/openapi/models/object-privilege-grant.d.ts +43 -0
- package/dist/openapi/models/object-privilege-grant.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-grant.js +16 -0
- package/dist/openapi/models/object-privilege-grant.js.map +1 -0
- package/dist/openapi/models/object-privilege-object-list.d.ts +38 -0
- package/dist/openapi/models/object-privilege-object-list.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-object-list.js +16 -0
- package/dist/openapi/models/object-privilege-object-list.js.map +1 -0
- package/dist/openapi/models/object-privilege-object.d.ts +32 -0
- package/dist/openapi/models/object-privilege-object.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-object.js +16 -0
- package/dist/openapi/models/object-privilege-object.js.map +1 -0
- package/dist/openapi/models/object-privilege-prerequisite-check.d.ts +45 -0
- package/dist/openapi/models/object-privilege-prerequisite-check.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-prerequisite-check.js +16 -0
- package/dist/openapi/models/object-privilege-prerequisite-check.js.map +1 -0
- package/dist/openapi/models/object-privilege-prerequisite-status.d.ts +23 -0
- package/dist/openapi/models/object-privilege-prerequisite-status.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-prerequisite-status.js +27 -0
- package/dist/openapi/models/object-privilege-prerequisite-status.js.map +1 -0
- package/dist/openapi/models/object-privilege-qualifier.d.ts +43 -0
- package/dist/openapi/models/object-privilege-qualifier.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-qualifier.js +16 -0
- package/dist/openapi/models/object-privilege-qualifier.js.map +1 -0
- package/dist/openapi/models/object-privilege-snapshot.d.ts +92 -0
- package/dist/openapi/models/object-privilege-snapshot.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-snapshot.js +16 -0
- package/dist/openapi/models/object-privilege-snapshot.js.map +1 -0
- package/dist/openapi/models/object-privilege-spec.d.ts +31 -0
- package/dist/openapi/models/object-privilege-spec.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-spec.js +16 -0
- package/dist/openapi/models/object-privilege-spec.js.map +1 -0
- package/dist/openapi/models/object-privilege-subject-type.d.ts +22 -0
- package/dist/openapi/models/object-privilege-subject-type.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-subject-type.js +26 -0
- package/dist/openapi/models/object-privilege-subject-type.js.map +1 -0
- package/dist/openapi/models/object-privilege-subject.d.ts +40 -0
- package/dist/openapi/models/object-privilege-subject.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-subject.js +16 -0
- package/dist/openapi/models/object-privilege-subject.js.map +1 -0
- package/dist/openapi/models/object-privilege-target.d.ts +55 -0
- package/dist/openapi/models/object-privilege-target.d.ts.map +1 -0
- package/dist/openapi/models/object-privilege-target.js +16 -0
- package/dist/openapi/models/object-privilege-target.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +17 -0
- package/src/adminapi/apis/account-api.ts +811 -5
- package/src/adminapi/apis/rdbms-api.ts +806 -0
- package/src/adminapi/apis/shared-api.ts +806 -0
- package/src/adminapi/models/index.ts +17 -0
- package/src/adminapi/models/object-privilege-capabilities.ts +57 -0
- package/src/adminapi/models/object-privilege-capability.ts +104 -0
- package/src/adminapi/models/object-privilege-change.ts +78 -0
- package/src/adminapi/models/object-privilege-definition.ts +47 -0
- package/src/adminapi/models/object-privilege-evidence.ts +42 -0
- package/src/adminapi/models/object-privilege-grant-option-scope.ts +32 -0
- package/src/adminapi/models/object-privilege-grant.ts +48 -0
- package/src/adminapi/models/object-privilege-object-list.ts +45 -0
- package/src/adminapi/models/object-privilege-object.ts +39 -0
- package/src/adminapi/models/object-privilege-prerequisite-check.ts +56 -0
- package/src/adminapi/models/object-privilege-prerequisite-status.ts +32 -0
- package/src/adminapi/models/object-privilege-qualifier.ts +48 -0
- package/src/adminapi/models/object-privilege-snapshot.ts +105 -0
- package/src/adminapi/models/object-privilege-spec.ts +36 -0
- package/src/adminapi/models/object-privilege-subject-type.ts +31 -0
- package/src/adminapi/models/object-privilege-subject.ts +47 -0
- package/src/adminapi/models/object-privilege-target.ts +60 -0
- package/src/adminapi.yaml +675 -0
- package/src/openapi/.openapi-generator/FILES +17 -0
- package/src/openapi/apis/account-api.ts +811 -5
- package/src/openapi/apis/rdbms-api.ts +806 -0
- package/src/openapi/apis/shared-api.ts +942 -136
- package/src/openapi/models/index.ts +17 -0
- package/src/openapi/models/object-privilege-capabilities.ts +57 -0
- package/src/openapi/models/object-privilege-capability.ts +104 -0
- package/src/openapi/models/object-privilege-change.ts +78 -0
- package/src/openapi/models/object-privilege-definition.ts +47 -0
- package/src/openapi/models/object-privilege-evidence.ts +42 -0
- package/src/openapi/models/object-privilege-grant-option-scope.ts +32 -0
- package/src/openapi/models/object-privilege-grant.ts +48 -0
- package/src/openapi/models/object-privilege-object-list.ts +45 -0
- package/src/openapi/models/object-privilege-object.ts +39 -0
- package/src/openapi/models/object-privilege-prerequisite-check.ts +56 -0
- package/src/openapi/models/object-privilege-prerequisite-status.ts +32 -0
- package/src/openapi/models/object-privilege-qualifier.ts +48 -0
- package/src/openapi/models/object-privilege-snapshot.ts +105 -0
- package/src/openapi/models/object-privilege-spec.ts +36 -0
- package/src/openapi/models/object-privilege-subject-type.ts +31 -0
- package/src/openapi/models/object-privilege-subject.ts +47 -0
- package/src/openapi/models/object-privilege-target.ts +60 -0
- package/src/openapi.yaml +675 -0
|
@@ -276,6 +276,16 @@ import type { NodeList } from '../models';
|
|
|
276
276
|
// @ts-ignore
|
|
277
277
|
import type { NodeResourceStatsList } from '../models';
|
|
278
278
|
// @ts-ignore
|
|
279
|
+
import type { ObjectPrivilegeCapabilities } from '../models';
|
|
280
|
+
// @ts-ignore
|
|
281
|
+
import type { ObjectPrivilegeChange } from '../models';
|
|
282
|
+
// @ts-ignore
|
|
283
|
+
import type { ObjectPrivilegeObjectList } from '../models';
|
|
284
|
+
// @ts-ignore
|
|
285
|
+
import type { ObjectPrivilegeSnapshot } from '../models';
|
|
286
|
+
// @ts-ignore
|
|
287
|
+
import type { ObjectPrivilegeSubjectType } from '../models';
|
|
288
|
+
// @ts-ignore
|
|
279
289
|
import type { OfflineInstanceList } from '../models';
|
|
280
290
|
// @ts-ignore
|
|
281
291
|
import type { OpsCustom } from '../models';
|
|
@@ -1048,6 +1058,80 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1048
1058
|
|
|
1049
1059
|
|
|
1050
1060
|
|
|
1061
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1062
|
+
|
|
1063
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1064
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1065
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1066
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1067
|
+
|
|
1068
|
+
return {
|
|
1069
|
+
url: toPathString(localVarUrlObj),
|
|
1070
|
+
options: localVarRequestOptions,
|
|
1071
|
+
};
|
|
1072
|
+
},
|
|
1073
|
+
/**
|
|
1074
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
1075
|
+
* @summary Grant or revoke native object and column privileges
|
|
1076
|
+
* @param {string} engineName
|
|
1077
|
+
* @param {string} orgName
|
|
1078
|
+
* @param {string} clusterName
|
|
1079
|
+
* @param {string} accountName
|
|
1080
|
+
* @param {ObjectPrivilegeChange} body
|
|
1081
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1082
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1083
|
+
* @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @throws {RequiredError}
|
|
1086
|
+
*/
|
|
1087
|
+
changeAccountObjectPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, body: ObjectPrivilegeChange, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1088
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1089
|
+
assertParamExists('changeAccountObjectPrivileges', 'engineName', engineName)
|
|
1090
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1091
|
+
assertParamExists('changeAccountObjectPrivileges', 'orgName', orgName)
|
|
1092
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1093
|
+
assertParamExists('changeAccountObjectPrivileges', 'clusterName', clusterName)
|
|
1094
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1095
|
+
assertParamExists('changeAccountObjectPrivileges', 'accountName', accountName)
|
|
1096
|
+
// verify required parameter 'body' is not null or undefined
|
|
1097
|
+
assertParamExists('changeAccountObjectPrivileges', 'body', body)
|
|
1098
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges`
|
|
1099
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1100
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1101
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1102
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1104
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1105
|
+
let baseOptions;
|
|
1106
|
+
if (configuration) {
|
|
1107
|
+
baseOptions = configuration.baseOptions;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
1111
|
+
const localVarHeaderParameter = {} as any;
|
|
1112
|
+
const localVarQueryParameter = {} as any;
|
|
1113
|
+
|
|
1114
|
+
// authentication BearerToken required
|
|
1115
|
+
// http bearer authentication required
|
|
1116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1117
|
+
|
|
1118
|
+
// authentication DigestAuth required
|
|
1119
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1120
|
+
|
|
1121
|
+
if (subjectType !== undefined) {
|
|
1122
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
if (host !== undefined) {
|
|
1126
|
+
localVarQueryParameter['host'] = host;
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
if (subjectQualifiers !== undefined) {
|
|
1130
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
|
|
1051
1135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1052
1136
|
|
|
1053
1137
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5644,17 +5728,29 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5644
5728
|
};
|
|
5645
5729
|
},
|
|
5646
5730
|
/**
|
|
5647
|
-
*
|
|
5648
|
-
* @summary
|
|
5649
|
-
* @param {string}
|
|
5731
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
5732
|
+
* @summary List native object privilege capabilities for the connected server
|
|
5733
|
+
* @param {string} engineName
|
|
5734
|
+
* @param {string} orgName
|
|
5735
|
+
* @param {string} clusterName
|
|
5736
|
+
* @param {string} accountName
|
|
5650
5737
|
* @param {*} [options] Override http request option.
|
|
5651
5738
|
* @throws {RequiredError}
|
|
5652
5739
|
*/
|
|
5653
|
-
|
|
5740
|
+
getAccountObjectPrivilegeCapabilities: async (engineName: string, orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5741
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
5742
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'engineName', engineName)
|
|
5654
5743
|
// verify required parameter 'orgName' is not null or undefined
|
|
5655
|
-
assertParamExists('
|
|
5656
|
-
|
|
5657
|
-
|
|
5744
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'orgName', orgName)
|
|
5745
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5746
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'clusterName', clusterName)
|
|
5747
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
5748
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'accountName', accountName)
|
|
5749
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/capabilities`
|
|
5750
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
5751
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5752
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
5753
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
5658
5754
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5659
5755
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5660
5756
|
let baseOptions;
|
|
@@ -5685,21 +5781,40 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5685
5781
|
};
|
|
5686
5782
|
},
|
|
5687
5783
|
/**
|
|
5688
|
-
*
|
|
5689
|
-
* @summary
|
|
5690
|
-
* @param {string}
|
|
5691
|
-
* @param {string}
|
|
5784
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
5785
|
+
* @summary Inspect native object and column privileges
|
|
5786
|
+
* @param {string} engineName
|
|
5787
|
+
* @param {string} orgName
|
|
5788
|
+
* @param {string} clusterName
|
|
5789
|
+
* @param {string} accountName
|
|
5790
|
+
* @param {string} objectType
|
|
5791
|
+
* @param {string} [databaseName]
|
|
5792
|
+
* @param {string} [schemaName]
|
|
5793
|
+
* @param {string} [objectName]
|
|
5794
|
+
* @param {string} [objectId]
|
|
5795
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
5796
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
5797
|
+
* @param {string} [catalogName]
|
|
5798
|
+
* @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
5692
5799
|
* @param {*} [options] Override http request option.
|
|
5693
5800
|
* @throws {RequiredError}
|
|
5694
5801
|
*/
|
|
5695
|
-
|
|
5802
|
+
getAccountObjectPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName?: string, schemaName?: string, objectName?: string, objectId?: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, catalogName?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5803
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
5804
|
+
assertParamExists('getAccountObjectPrivileges', 'engineName', engineName)
|
|
5696
5805
|
// verify required parameter 'orgName' is not null or undefined
|
|
5697
|
-
assertParamExists('
|
|
5698
|
-
// verify required parameter '
|
|
5699
|
-
assertParamExists('
|
|
5700
|
-
|
|
5806
|
+
assertParamExists('getAccountObjectPrivileges', 'orgName', orgName)
|
|
5807
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5808
|
+
assertParamExists('getAccountObjectPrivileges', 'clusterName', clusterName)
|
|
5809
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
5810
|
+
assertParamExists('getAccountObjectPrivileges', 'accountName', accountName)
|
|
5811
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
5812
|
+
assertParamExists('getAccountObjectPrivileges', 'objectType', objectType)
|
|
5813
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges`
|
|
5814
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
5701
5815
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5702
|
-
.replace(`{${"
|
|
5816
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
5817
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
5703
5818
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5704
5819
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5705
5820
|
let baseOptions;
|
|
@@ -5718,49 +5833,41 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5718
5833
|
// authentication DigestAuth required
|
|
5719
5834
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5720
5835
|
|
|
5836
|
+
if (objectType !== undefined) {
|
|
5837
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
5838
|
+
}
|
|
5721
5839
|
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5840
|
+
if (databaseName !== undefined) {
|
|
5841
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
5842
|
+
}
|
|
5726
5843
|
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
options: localVarRequestOptions,
|
|
5730
|
-
};
|
|
5731
|
-
},
|
|
5732
|
-
/**
|
|
5733
|
-
*
|
|
5734
|
-
* @param {string} orgName name of the Org
|
|
5735
|
-
* @param {string} alertName name of the alert
|
|
5736
|
-
* @param {*} [options] Override http request option.
|
|
5737
|
-
* @throws {RequiredError}
|
|
5738
|
-
*/
|
|
5739
|
-
getAlertRule: async (orgName: string, alertName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5740
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
5741
|
-
assertParamExists('getAlertRule', 'orgName', orgName)
|
|
5742
|
-
// verify required parameter 'alertName' is not null or undefined
|
|
5743
|
-
assertParamExists('getAlertRule', 'alertName', alertName)
|
|
5744
|
-
const localVarPath = `/api/v1/organizations/{orgName}/alerts/rules/{alertName}`
|
|
5745
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5746
|
-
.replace(`{${"alertName"}}`, encodeURIComponent(String(alertName)));
|
|
5747
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5748
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5749
|
-
let baseOptions;
|
|
5750
|
-
if (configuration) {
|
|
5751
|
-
baseOptions = configuration.baseOptions;
|
|
5844
|
+
if (schemaName !== undefined) {
|
|
5845
|
+
localVarQueryParameter['schemaName'] = schemaName;
|
|
5752
5846
|
}
|
|
5753
5847
|
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5848
|
+
if (objectName !== undefined) {
|
|
5849
|
+
localVarQueryParameter['objectName'] = objectName;
|
|
5850
|
+
}
|
|
5757
5851
|
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5852
|
+
if (objectId !== undefined) {
|
|
5853
|
+
localVarQueryParameter['objectId'] = objectId;
|
|
5854
|
+
}
|
|
5761
5855
|
|
|
5762
|
-
|
|
5763
|
-
|
|
5856
|
+
if (subjectType !== undefined) {
|
|
5857
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
if (host !== undefined) {
|
|
5861
|
+
localVarQueryParameter['host'] = host;
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
if (catalogName !== undefined) {
|
|
5865
|
+
localVarQueryParameter['catalogName'] = catalogName;
|
|
5866
|
+
}
|
|
5867
|
+
|
|
5868
|
+
if (subjectQualifiers !== undefined) {
|
|
5869
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
5870
|
+
}
|
|
5764
5871
|
|
|
5765
5872
|
|
|
5766
5873
|
|
|
@@ -5775,20 +5882,16 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5775
5882
|
},
|
|
5776
5883
|
/**
|
|
5777
5884
|
*
|
|
5778
|
-
* @summary Get
|
|
5885
|
+
* @summary Get alert config
|
|
5779
5886
|
* @param {string} orgName name of the Org
|
|
5780
|
-
* @param {string} backupId id of the Backup
|
|
5781
5887
|
* @param {*} [options] Override http request option.
|
|
5782
5888
|
* @throws {RequiredError}
|
|
5783
5889
|
*/
|
|
5784
|
-
|
|
5890
|
+
getAlertConfig: async (orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5785
5891
|
// verify required parameter 'orgName' is not null or undefined
|
|
5786
|
-
assertParamExists('
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
const localVarPath = `/api/v1/organizations/{orgName}/backups/{backupId}`
|
|
5790
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5791
|
-
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
5892
|
+
assertParamExists('getAlertConfig', 'orgName', orgName)
|
|
5893
|
+
const localVarPath = `/api/v1/organizations/{orgName}/alerts/config`
|
|
5894
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
5792
5895
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5793
5896
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5794
5897
|
let baseOptions;
|
|
@@ -5820,20 +5923,20 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5820
5923
|
},
|
|
5821
5924
|
/**
|
|
5822
5925
|
*
|
|
5823
|
-
* @summary Get
|
|
5926
|
+
* @summary Get alert inhibit
|
|
5824
5927
|
* @param {string} orgName name of the Org
|
|
5825
|
-
* @param {string}
|
|
5928
|
+
* @param {string} inhibitId inhibit id
|
|
5826
5929
|
* @param {*} [options] Override http request option.
|
|
5827
5930
|
* @throws {RequiredError}
|
|
5828
5931
|
*/
|
|
5829
|
-
|
|
5932
|
+
getAlertInhibit: async (orgName: string, inhibitId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5830
5933
|
// verify required parameter 'orgName' is not null or undefined
|
|
5831
|
-
assertParamExists('
|
|
5832
|
-
// verify required parameter '
|
|
5833
|
-
assertParamExists('
|
|
5834
|
-
const localVarPath = `/api/v1/organizations/{orgName}/
|
|
5934
|
+
assertParamExists('getAlertInhibit', 'orgName', orgName)
|
|
5935
|
+
// verify required parameter 'inhibitId' is not null or undefined
|
|
5936
|
+
assertParamExists('getAlertInhibit', 'inhibitId', inhibitId)
|
|
5937
|
+
const localVarPath = `/api/v1/organizations/{orgName}/alerts/inhibits/{inhibitId}`
|
|
5835
5938
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5836
|
-
.replace(`{${"
|
|
5939
|
+
.replace(`{${"inhibitId"}}`, encodeURIComponent(String(inhibitId)));
|
|
5837
5940
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5838
5941
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5839
5942
|
let baseOptions;
|
|
@@ -5865,27 +5968,19 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5865
5968
|
},
|
|
5866
5969
|
/**
|
|
5867
5970
|
*
|
|
5868
|
-
* @
|
|
5869
|
-
* @param {string}
|
|
5870
|
-
* @param {string} engineName engine name
|
|
5871
|
-
* @param {string} [clusterID] clusterID is required when you want to get the backup method of a existing cluster
|
|
5872
|
-
* @param {boolean} [enablePITR] define whether to enable PITR (Point-In-Time Recovery). This setting is required when clusterId is not empty.
|
|
5873
|
-
* @param {boolean} [withRebuildInstance] defined whether to search for rebuilding instance.
|
|
5874
|
-
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
5875
|
-
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
5876
|
-
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
5877
|
-
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
5971
|
+
* @param {string} orgName name of the Org
|
|
5972
|
+
* @param {string} alertName name of the alert
|
|
5878
5973
|
* @param {*} [options] Override http request option.
|
|
5879
5974
|
* @throws {RequiredError}
|
|
5880
5975
|
*/
|
|
5881
|
-
|
|
5976
|
+
getAlertRule: async (orgName: string, alertName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5882
5977
|
// verify required parameter 'orgName' is not null or undefined
|
|
5883
|
-
assertParamExists('
|
|
5884
|
-
// verify required parameter '
|
|
5885
|
-
assertParamExists('
|
|
5886
|
-
const localVarPath = `/api/v1/organizations/{orgName}/{
|
|
5978
|
+
assertParamExists('getAlertRule', 'orgName', orgName)
|
|
5979
|
+
// verify required parameter 'alertName' is not null or undefined
|
|
5980
|
+
assertParamExists('getAlertRule', 'alertName', alertName)
|
|
5981
|
+
const localVarPath = `/api/v1/organizations/{orgName}/alerts/rules/{alertName}`
|
|
5887
5982
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5888
|
-
.replace(`{${"
|
|
5983
|
+
.replace(`{${"alertName"}}`, encodeURIComponent(String(alertName)));
|
|
5889
5984
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5890
5985
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5891
5986
|
let baseOptions;
|
|
@@ -5904,34 +5999,6 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5904
5999
|
// authentication DigestAuth required
|
|
5905
6000
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5906
6001
|
|
|
5907
|
-
if (clusterID !== undefined) {
|
|
5908
|
-
localVarQueryParameter['clusterID'] = clusterID;
|
|
5909
|
-
}
|
|
5910
|
-
|
|
5911
|
-
if (enablePITR !== undefined) {
|
|
5912
|
-
localVarQueryParameter['enablePITR'] = enablePITR;
|
|
5913
|
-
}
|
|
5914
|
-
|
|
5915
|
-
if (withRebuildInstance !== undefined) {
|
|
5916
|
-
localVarQueryParameter['withRebuildInstance'] = withRebuildInstance;
|
|
5917
|
-
}
|
|
5918
|
-
|
|
5919
|
-
if (withRestoreCluster !== undefined) {
|
|
5920
|
-
localVarQueryParameter['withRestoreCluster'] = withRestoreCluster;
|
|
5921
|
-
}
|
|
5922
|
-
|
|
5923
|
-
if (withHScale !== undefined) {
|
|
5924
|
-
localVarQueryParameter['withHScale'] = withHScale;
|
|
5925
|
-
}
|
|
5926
|
-
|
|
5927
|
-
if (component !== undefined) {
|
|
5928
|
-
localVarQueryParameter['component'] = component;
|
|
5929
|
-
}
|
|
5930
|
-
|
|
5931
|
-
if (mode !== undefined) {
|
|
5932
|
-
localVarQueryParameter['mode'] = mode;
|
|
5933
|
-
}
|
|
5934
|
-
|
|
5935
6002
|
|
|
5936
6003
|
|
|
5937
6004
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5945,24 +6012,20 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5945
6012
|
},
|
|
5946
6013
|
/**
|
|
5947
6014
|
*
|
|
5948
|
-
* @summary Get
|
|
5949
|
-
* @param {string} orgName
|
|
5950
|
-
* @param {string}
|
|
5951
|
-
* @param {string} roleName
|
|
6015
|
+
* @summary Get backup
|
|
6016
|
+
* @param {string} orgName name of the Org
|
|
6017
|
+
* @param {string} backupId id of the Backup
|
|
5952
6018
|
* @param {*} [options] Override http request option.
|
|
5953
6019
|
* @throws {RequiredError}
|
|
5954
6020
|
*/
|
|
5955
|
-
|
|
6021
|
+
getBackup: async (orgName: string, backupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5956
6022
|
// verify required parameter 'orgName' is not null or undefined
|
|
5957
|
-
assertParamExists('
|
|
5958
|
-
// verify required parameter '
|
|
5959
|
-
assertParamExists('
|
|
5960
|
-
|
|
5961
|
-
assertParamExists('getClickhouseRoleGrants', 'roleName', roleName)
|
|
5962
|
-
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
6023
|
+
assertParamExists('getBackup', 'orgName', orgName)
|
|
6024
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
6025
|
+
assertParamExists('getBackup', 'backupId', backupId)
|
|
6026
|
+
const localVarPath = `/api/v1/organizations/{orgName}/backups/{backupId}`
|
|
5963
6027
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5964
|
-
.replace(`{${"
|
|
5965
|
-
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
6028
|
+
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
5966
6029
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5967
6030
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5968
6031
|
let baseOptions;
|
|
@@ -5994,20 +6057,194 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5994
6057
|
},
|
|
5995
6058
|
/**
|
|
5996
6059
|
*
|
|
5997
|
-
* @summary Get
|
|
6060
|
+
* @summary Get backup log
|
|
5998
6061
|
* @param {string} orgName name of the Org
|
|
5999
|
-
* @param {string}
|
|
6062
|
+
* @param {string} backupId id of the Backup
|
|
6000
6063
|
* @param {*} [options] Override http request option.
|
|
6001
6064
|
* @throws {RequiredError}
|
|
6002
6065
|
*/
|
|
6003
|
-
|
|
6066
|
+
getBackupLog: async (orgName: string, backupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6004
6067
|
// verify required parameter 'orgName' is not null or undefined
|
|
6005
|
-
assertParamExists('
|
|
6006
|
-
// verify required parameter '
|
|
6007
|
-
assertParamExists('
|
|
6008
|
-
const localVarPath = `/api/v1/organizations/{orgName}/
|
|
6068
|
+
assertParamExists('getBackupLog', 'orgName', orgName)
|
|
6069
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
6070
|
+
assertParamExists('getBackupLog', 'backupId', backupId)
|
|
6071
|
+
const localVarPath = `/api/v1/organizations/{orgName}/backups/{backupId}/logs`
|
|
6009
6072
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6010
|
-
.replace(`{${"
|
|
6073
|
+
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
6074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6075
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6076
|
+
let baseOptions;
|
|
6077
|
+
if (configuration) {
|
|
6078
|
+
baseOptions = configuration.baseOptions;
|
|
6079
|
+
}
|
|
6080
|
+
|
|
6081
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6082
|
+
const localVarHeaderParameter = {} as any;
|
|
6083
|
+
const localVarQueryParameter = {} as any;
|
|
6084
|
+
|
|
6085
|
+
// authentication BearerToken required
|
|
6086
|
+
// http bearer authentication required
|
|
6087
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6088
|
+
|
|
6089
|
+
// authentication DigestAuth required
|
|
6090
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6091
|
+
|
|
6092
|
+
|
|
6093
|
+
|
|
6094
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6095
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6096
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6097
|
+
|
|
6098
|
+
return {
|
|
6099
|
+
url: toPathString(localVarUrlObj),
|
|
6100
|
+
options: localVarRequestOptions,
|
|
6101
|
+
};
|
|
6102
|
+
},
|
|
6103
|
+
/**
|
|
6104
|
+
*
|
|
6105
|
+
* @summary get backup method
|
|
6106
|
+
* @param {string} orgName name of the org
|
|
6107
|
+
* @param {string} engineName engine name
|
|
6108
|
+
* @param {string} [clusterID] clusterID is required when you want to get the backup method of a existing cluster
|
|
6109
|
+
* @param {boolean} [enablePITR] define whether to enable PITR (Point-In-Time Recovery). This setting is required when clusterId is not empty.
|
|
6110
|
+
* @param {boolean} [withRebuildInstance] defined whether to search for rebuilding instance.
|
|
6111
|
+
* @param {boolean} [withRestoreCluster] defined whether to search for restoring cluster.
|
|
6112
|
+
* @param {boolean} [withHScale] defined whether to search for rebuilding instance.
|
|
6113
|
+
* @param {string} [component] The component type is required when withRebuildInstance/withHScale is true.
|
|
6114
|
+
* @param {string} [mode] The cluster mode, used to filter out unsupported backup methods.
|
|
6115
|
+
* @param {*} [options] Override http request option.
|
|
6116
|
+
* @throws {RequiredError}
|
|
6117
|
+
*/
|
|
6118
|
+
getBackupMethod: async (orgName: string, engineName: string, clusterID?: string, enablePITR?: boolean, withRebuildInstance?: boolean, withRestoreCluster?: boolean, withHScale?: boolean, component?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6119
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6120
|
+
assertParamExists('getBackupMethod', 'orgName', orgName)
|
|
6121
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
6122
|
+
assertParamExists('getBackupMethod', 'engineName', engineName)
|
|
6123
|
+
const localVarPath = `/api/v1/organizations/{orgName}/{engineName}/clusterBackupMethod`
|
|
6124
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6125
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)));
|
|
6126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6127
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6128
|
+
let baseOptions;
|
|
6129
|
+
if (configuration) {
|
|
6130
|
+
baseOptions = configuration.baseOptions;
|
|
6131
|
+
}
|
|
6132
|
+
|
|
6133
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6134
|
+
const localVarHeaderParameter = {} as any;
|
|
6135
|
+
const localVarQueryParameter = {} as any;
|
|
6136
|
+
|
|
6137
|
+
// authentication BearerToken required
|
|
6138
|
+
// http bearer authentication required
|
|
6139
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6140
|
+
|
|
6141
|
+
// authentication DigestAuth required
|
|
6142
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6143
|
+
|
|
6144
|
+
if (clusterID !== undefined) {
|
|
6145
|
+
localVarQueryParameter['clusterID'] = clusterID;
|
|
6146
|
+
}
|
|
6147
|
+
|
|
6148
|
+
if (enablePITR !== undefined) {
|
|
6149
|
+
localVarQueryParameter['enablePITR'] = enablePITR;
|
|
6150
|
+
}
|
|
6151
|
+
|
|
6152
|
+
if (withRebuildInstance !== undefined) {
|
|
6153
|
+
localVarQueryParameter['withRebuildInstance'] = withRebuildInstance;
|
|
6154
|
+
}
|
|
6155
|
+
|
|
6156
|
+
if (withRestoreCluster !== undefined) {
|
|
6157
|
+
localVarQueryParameter['withRestoreCluster'] = withRestoreCluster;
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6160
|
+
if (withHScale !== undefined) {
|
|
6161
|
+
localVarQueryParameter['withHScale'] = withHScale;
|
|
6162
|
+
}
|
|
6163
|
+
|
|
6164
|
+
if (component !== undefined) {
|
|
6165
|
+
localVarQueryParameter['component'] = component;
|
|
6166
|
+
}
|
|
6167
|
+
|
|
6168
|
+
if (mode !== undefined) {
|
|
6169
|
+
localVarQueryParameter['mode'] = mode;
|
|
6170
|
+
}
|
|
6171
|
+
|
|
6172
|
+
|
|
6173
|
+
|
|
6174
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6176
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6177
|
+
|
|
6178
|
+
return {
|
|
6179
|
+
url: toPathString(localVarUrlObj),
|
|
6180
|
+
options: localVarRequestOptions,
|
|
6181
|
+
};
|
|
6182
|
+
},
|
|
6183
|
+
/**
|
|
6184
|
+
*
|
|
6185
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
6186
|
+
* @param {string} orgName
|
|
6187
|
+
* @param {string} clusterName
|
|
6188
|
+
* @param {string} roleName
|
|
6189
|
+
* @param {*} [options] Override http request option.
|
|
6190
|
+
* @throws {RequiredError}
|
|
6191
|
+
*/
|
|
6192
|
+
getClickhouseRoleGrants: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6193
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6194
|
+
assertParamExists('getClickhouseRoleGrants', 'orgName', orgName)
|
|
6195
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6196
|
+
assertParamExists('getClickhouseRoleGrants', 'clusterName', clusterName)
|
|
6197
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
6198
|
+
assertParamExists('getClickhouseRoleGrants', 'roleName', roleName)
|
|
6199
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
6200
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6201
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
6202
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
6203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6204
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6205
|
+
let baseOptions;
|
|
6206
|
+
if (configuration) {
|
|
6207
|
+
baseOptions = configuration.baseOptions;
|
|
6208
|
+
}
|
|
6209
|
+
|
|
6210
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6211
|
+
const localVarHeaderParameter = {} as any;
|
|
6212
|
+
const localVarQueryParameter = {} as any;
|
|
6213
|
+
|
|
6214
|
+
// authentication BearerToken required
|
|
6215
|
+
// http bearer authentication required
|
|
6216
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6217
|
+
|
|
6218
|
+
// authentication DigestAuth required
|
|
6219
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6220
|
+
|
|
6221
|
+
|
|
6222
|
+
|
|
6223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6225
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6226
|
+
|
|
6227
|
+
return {
|
|
6228
|
+
url: toPathString(localVarUrlObj),
|
|
6229
|
+
options: localVarRequestOptions,
|
|
6230
|
+
};
|
|
6231
|
+
},
|
|
6232
|
+
/**
|
|
6233
|
+
*
|
|
6234
|
+
* @summary Get cluster details
|
|
6235
|
+
* @param {string} orgName name of the Org
|
|
6236
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
6237
|
+
* @param {*} [options] Override http request option.
|
|
6238
|
+
* @throws {RequiredError}
|
|
6239
|
+
*/
|
|
6240
|
+
getCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6241
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
6242
|
+
assertParamExists('getCluster', 'orgName', orgName)
|
|
6243
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
6244
|
+
assertParamExists('getCluster', 'clusterName', clusterName)
|
|
6245
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}`
|
|
6246
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
6247
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
6011
6248
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6012
6249
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6013
6250
|
let baseOptions;
|
|
@@ -8880,6 +9117,91 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8880
9117
|
|
|
8881
9118
|
|
|
8882
9119
|
|
|
9120
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9121
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9122
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9123
|
+
|
|
9124
|
+
return {
|
|
9125
|
+
url: toPathString(localVarUrlObj),
|
|
9126
|
+
options: localVarRequestOptions,
|
|
9127
|
+
};
|
|
9128
|
+
},
|
|
9129
|
+
/**
|
|
9130
|
+
* 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.
|
|
9131
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
9132
|
+
* @param {string} engineName
|
|
9133
|
+
* @param {string} orgName
|
|
9134
|
+
* @param {string} clusterName
|
|
9135
|
+
* @param {string} accountName
|
|
9136
|
+
* @param {string} objectType
|
|
9137
|
+
* @param {string} [databaseName]
|
|
9138
|
+
* @param {string} [schemaName]
|
|
9139
|
+
* @param {number} [offset]
|
|
9140
|
+
* @param {number} [limit]
|
|
9141
|
+
* @param {string} [catalogName]
|
|
9142
|
+
* @param {*} [options] Override http request option.
|
|
9143
|
+
* @throws {RequiredError}
|
|
9144
|
+
*/
|
|
9145
|
+
listAccountObjectPrivilegeObjects: async (engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName?: string, schemaName?: string, offset?: number, limit?: number, catalogName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9146
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
9147
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'engineName', engineName)
|
|
9148
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
9149
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'orgName', orgName)
|
|
9150
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
9151
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'clusterName', clusterName)
|
|
9152
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
9153
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'accountName', accountName)
|
|
9154
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
9155
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'objectType', objectType)
|
|
9156
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/objects`
|
|
9157
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
9158
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
9159
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
9160
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
9161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9163
|
+
let baseOptions;
|
|
9164
|
+
if (configuration) {
|
|
9165
|
+
baseOptions = configuration.baseOptions;
|
|
9166
|
+
}
|
|
9167
|
+
|
|
9168
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9169
|
+
const localVarHeaderParameter = {} as any;
|
|
9170
|
+
const localVarQueryParameter = {} as any;
|
|
9171
|
+
|
|
9172
|
+
// authentication BearerToken required
|
|
9173
|
+
// http bearer authentication required
|
|
9174
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9175
|
+
|
|
9176
|
+
// authentication DigestAuth required
|
|
9177
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
9178
|
+
|
|
9179
|
+
if (objectType !== undefined) {
|
|
9180
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
9181
|
+
}
|
|
9182
|
+
|
|
9183
|
+
if (databaseName !== undefined) {
|
|
9184
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
9185
|
+
}
|
|
9186
|
+
|
|
9187
|
+
if (schemaName !== undefined) {
|
|
9188
|
+
localVarQueryParameter['schemaName'] = schemaName;
|
|
9189
|
+
}
|
|
9190
|
+
|
|
9191
|
+
if (offset !== undefined) {
|
|
9192
|
+
localVarQueryParameter['offset'] = offset;
|
|
9193
|
+
}
|
|
9194
|
+
|
|
9195
|
+
if (limit !== undefined) {
|
|
9196
|
+
localVarQueryParameter['limit'] = limit;
|
|
9197
|
+
}
|
|
9198
|
+
|
|
9199
|
+
if (catalogName !== undefined) {
|
|
9200
|
+
localVarQueryParameter['catalogName'] = catalogName;
|
|
9201
|
+
}
|
|
9202
|
+
|
|
9203
|
+
|
|
9204
|
+
|
|
8883
9205
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8884
9206
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8885
9207
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -17958,6 +18280,26 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17958
18280
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.buildBackupObj']?.[localVarOperationServerIndex]?.url;
|
|
17959
18281
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17960
18282
|
},
|
|
18283
|
+
/**
|
|
18284
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
18285
|
+
* @summary Grant or revoke native object and column privileges
|
|
18286
|
+
* @param {string} engineName
|
|
18287
|
+
* @param {string} orgName
|
|
18288
|
+
* @param {string} clusterName
|
|
18289
|
+
* @param {string} accountName
|
|
18290
|
+
* @param {ObjectPrivilegeChange} body
|
|
18291
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
18292
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
18293
|
+
* @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
18294
|
+
* @param {*} [options] Override http request option.
|
|
18295
|
+
* @throws {RequiredError}
|
|
18296
|
+
*/
|
|
18297
|
+
async changeAccountObjectPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, body: ObjectPrivilegeChange, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
18298
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.changeAccountObjectPrivileges(engineName, orgName, clusterName, accountName, body, subjectType, host, subjectQualifiers, options);
|
|
18299
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18300
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.changeAccountObjectPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
18301
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18302
|
+
},
|
|
17961
18303
|
/**
|
|
17962
18304
|
*
|
|
17963
18305
|
* @summary Change Elasticsearch account password
|
|
@@ -19303,6 +19645,47 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
19303
19645
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.generateDemoData']?.[localVarOperationServerIndex]?.url;
|
|
19304
19646
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19305
19647
|
},
|
|
19648
|
+
/**
|
|
19649
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
19650
|
+
* @summary List native object privilege capabilities for the connected server
|
|
19651
|
+
* @param {string} engineName
|
|
19652
|
+
* @param {string} orgName
|
|
19653
|
+
* @param {string} clusterName
|
|
19654
|
+
* @param {string} accountName
|
|
19655
|
+
* @param {*} [options] Override http request option.
|
|
19656
|
+
* @throws {RequiredError}
|
|
19657
|
+
*/
|
|
19658
|
+
async getAccountObjectPrivilegeCapabilities(engineName: string, orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectPrivilegeCapabilities>> {
|
|
19659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountObjectPrivilegeCapabilities(engineName, orgName, clusterName, accountName, options);
|
|
19660
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19661
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.getAccountObjectPrivilegeCapabilities']?.[localVarOperationServerIndex]?.url;
|
|
19662
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19663
|
+
},
|
|
19664
|
+
/**
|
|
19665
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
19666
|
+
* @summary Inspect native object and column privileges
|
|
19667
|
+
* @param {string} engineName
|
|
19668
|
+
* @param {string} orgName
|
|
19669
|
+
* @param {string} clusterName
|
|
19670
|
+
* @param {string} accountName
|
|
19671
|
+
* @param {string} objectType
|
|
19672
|
+
* @param {string} [databaseName]
|
|
19673
|
+
* @param {string} [schemaName]
|
|
19674
|
+
* @param {string} [objectName]
|
|
19675
|
+
* @param {string} [objectId]
|
|
19676
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
19677
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
19678
|
+
* @param {string} [catalogName]
|
|
19679
|
+
* @param {string} [subjectQualifiers] JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
19680
|
+
* @param {*} [options] Override http request option.
|
|
19681
|
+
* @throws {RequiredError}
|
|
19682
|
+
*/
|
|
19683
|
+
async getAccountObjectPrivileges(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName?: string, schemaName?: string, objectName?: string, objectId?: string, subjectType?: ObjectPrivilegeSubjectType, host?: string, catalogName?: string, subjectQualifiers?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectPrivilegeSnapshot>> {
|
|
19684
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountObjectPrivileges(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, objectName, objectId, subjectType, host, catalogName, subjectQualifiers, options);
|
|
19685
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19686
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.getAccountObjectPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
19687
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19688
|
+
},
|
|
19306
19689
|
/**
|
|
19307
19690
|
*
|
|
19308
19691
|
* @summary Get alert config
|
|
@@ -20251,6 +20634,28 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
20251
20634
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.killSession']?.[localVarOperationServerIndex]?.url;
|
|
20252
20635
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20253
20636
|
},
|
|
20637
|
+
/**
|
|
20638
|
+
* 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.
|
|
20639
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
20640
|
+
* @param {string} engineName
|
|
20641
|
+
* @param {string} orgName
|
|
20642
|
+
* @param {string} clusterName
|
|
20643
|
+
* @param {string} accountName
|
|
20644
|
+
* @param {string} objectType
|
|
20645
|
+
* @param {string} [databaseName]
|
|
20646
|
+
* @param {string} [schemaName]
|
|
20647
|
+
* @param {number} [offset]
|
|
20648
|
+
* @param {number} [limit]
|
|
20649
|
+
* @param {string} [catalogName]
|
|
20650
|
+
* @param {*} [options] Override http request option.
|
|
20651
|
+
* @throws {RequiredError}
|
|
20652
|
+
*/
|
|
20653
|
+
async listAccountObjectPrivilegeObjects(engineName: string, orgName: string, clusterName: string, accountName: string, objectType: string, databaseName?: string, schemaName?: string, offset?: number, limit?: number, catalogName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectPrivilegeObjectList>> {
|
|
20654
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeObjects(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, offset, limit, catalogName, options);
|
|
20655
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20656
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listAccountObjectPrivilegeObjects']?.[localVarOperationServerIndex]?.url;
|
|
20657
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20658
|
+
},
|
|
20254
20659
|
/**
|
|
20255
20660
|
* list accounts in cluster
|
|
20256
20661
|
* @summary List cluster accounts
|
|
@@ -22904,6 +23309,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22904
23309
|
buildBackupObj(requestParameters: SharedApiBuildBackupObjRequest, options?: RawAxiosRequestConfig): AxiosPromise<Backup> {
|
|
22905
23310
|
return localVarFp.buildBackupObj(requestParameters.orgName, requestParameters.environmentName, requestParameters.engineName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
22906
23311
|
},
|
|
23312
|
+
/**
|
|
23313
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
23314
|
+
* @summary Grant or revoke native object and column privileges
|
|
23315
|
+
* @param {SharedApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
23316
|
+
* @param {*} [options] Override http request option.
|
|
23317
|
+
* @throws {RequiredError}
|
|
23318
|
+
*/
|
|
23319
|
+
changeAccountObjectPrivileges(requestParameters: SharedApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
23320
|
+
return localVarFp.changeAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
23321
|
+
},
|
|
22907
23322
|
/**
|
|
22908
23323
|
*
|
|
22909
23324
|
* @summary Change Elasticsearch account password
|
|
@@ -23765,6 +24180,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23765
24180
|
generateDemoData(requestParameters: SharedApiGenerateDemoDataRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
23766
24181
|
return localVarFp.generateDemoData(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
23767
24182
|
},
|
|
24183
|
+
/**
|
|
24184
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
24185
|
+
* @summary List native object privilege capabilities for the connected server
|
|
24186
|
+
* @param {SharedApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
24187
|
+
* @param {*} [options] Override http request option.
|
|
24188
|
+
* @throws {RequiredError}
|
|
24189
|
+
*/
|
|
24190
|
+
getAccountObjectPrivilegeCapabilities(requestParameters: SharedApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeCapabilities> {
|
|
24191
|
+
return localVarFp.getAccountObjectPrivilegeCapabilities(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
24192
|
+
},
|
|
24193
|
+
/**
|
|
24194
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
24195
|
+
* @summary Inspect native object and column privileges
|
|
24196
|
+
* @param {SharedApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
24197
|
+
* @param {*} [options] Override http request option.
|
|
24198
|
+
* @throws {RequiredError}
|
|
24199
|
+
*/
|
|
24200
|
+
getAccountObjectPrivileges(requestParameters: SharedApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot> {
|
|
24201
|
+
return localVarFp.getAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.objectName, requestParameters.objectId, requestParameters.subjectType, requestParameters.host, requestParameters.catalogName, requestParameters.subjectQualifiers, options).then((request) => request(axios, basePath));
|
|
24202
|
+
},
|
|
23768
24203
|
/**
|
|
23769
24204
|
*
|
|
23770
24205
|
* @summary Get alert config
|
|
@@ -24363,6 +24798,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
24363
24798
|
killSession(requestParameters: SharedApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
24364
24799
|
return localVarFp.killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(axios, basePath));
|
|
24365
24800
|
},
|
|
24801
|
+
/**
|
|
24802
|
+
* 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.
|
|
24803
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
24804
|
+
* @param {SharedApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
24805
|
+
* @param {*} [options] Override http request option.
|
|
24806
|
+
* @throws {RequiredError}
|
|
24807
|
+
*/
|
|
24808
|
+
listAccountObjectPrivilegeObjects(requestParameters: SharedApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeObjectList> {
|
|
24809
|
+
return localVarFp.listAccountObjectPrivilegeObjects(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.offset, requestParameters.limit, requestParameters.catalogName, options).then((request) => request(axios, basePath));
|
|
24810
|
+
},
|
|
24366
24811
|
/**
|
|
24367
24812
|
* list accounts in cluster
|
|
24368
24813
|
* @summary List cluster accounts
|
|
@@ -26048,6 +26493,16 @@ export interface SharedApiInterface {
|
|
|
26048
26493
|
*/
|
|
26049
26494
|
buildBackupObj(requestParameters: SharedApiBuildBackupObjRequest, options?: RawAxiosRequestConfig): AxiosPromise<Backup>;
|
|
26050
26495
|
|
|
26496
|
+
/**
|
|
26497
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
26498
|
+
* @summary Grant or revoke native object and column privileges
|
|
26499
|
+
* @param {SharedApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
26500
|
+
* @param {*} [options] Override http request option.
|
|
26501
|
+
* @throws {RequiredError}
|
|
26502
|
+
* @memberof SharedApiInterface
|
|
26503
|
+
*/
|
|
26504
|
+
changeAccountObjectPrivileges(requestParameters: SharedApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26505
|
+
|
|
26051
26506
|
/**
|
|
26052
26507
|
*
|
|
26053
26508
|
* @summary Change Elasticsearch account password
|
|
@@ -26909,6 +27364,26 @@ export interface SharedApiInterface {
|
|
|
26909
27364
|
*/
|
|
26910
27365
|
generateDemoData(requestParameters: SharedApiGenerateDemoDataRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26911
27366
|
|
|
27367
|
+
/**
|
|
27368
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
27369
|
+
* @summary List native object privilege capabilities for the connected server
|
|
27370
|
+
* @param {SharedApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
27371
|
+
* @param {*} [options] Override http request option.
|
|
27372
|
+
* @throws {RequiredError}
|
|
27373
|
+
* @memberof SharedApiInterface
|
|
27374
|
+
*/
|
|
27375
|
+
getAccountObjectPrivilegeCapabilities(requestParameters: SharedApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeCapabilities>;
|
|
27376
|
+
|
|
27377
|
+
/**
|
|
27378
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
27379
|
+
* @summary Inspect native object and column privileges
|
|
27380
|
+
* @param {SharedApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
27381
|
+
* @param {*} [options] Override http request option.
|
|
27382
|
+
* @throws {RequiredError}
|
|
27383
|
+
* @memberof SharedApiInterface
|
|
27384
|
+
*/
|
|
27385
|
+
getAccountObjectPrivileges(requestParameters: SharedApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot>;
|
|
27386
|
+
|
|
26912
27387
|
/**
|
|
26913
27388
|
*
|
|
26914
27389
|
* @summary Get alert config
|
|
@@ -27507,6 +27982,16 @@ export interface SharedApiInterface {
|
|
|
27507
27982
|
*/
|
|
27508
27983
|
killSession(requestParameters: SharedApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
27509
27984
|
|
|
27985
|
+
/**
|
|
27986
|
+
* 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.
|
|
27987
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
27988
|
+
* @param {SharedApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
27989
|
+
* @param {*} [options] Override http request option.
|
|
27990
|
+
* @throws {RequiredError}
|
|
27991
|
+
* @memberof SharedApiInterface
|
|
27992
|
+
*/
|
|
27993
|
+
listAccountObjectPrivilegeObjects(requestParameters: SharedApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeObjectList>;
|
|
27994
|
+
|
|
27510
27995
|
/**
|
|
27511
27996
|
* list accounts in cluster
|
|
27512
27997
|
* @summary List cluster accounts
|
|
@@ -29564,6 +30049,69 @@ export interface SharedApiBuildBackupObjRequest {
|
|
|
29564
30049
|
readonly body: BuildBackupObjRequest
|
|
29565
30050
|
}
|
|
29566
30051
|
|
|
30052
|
+
/**
|
|
30053
|
+
* Request parameters for changeAccountObjectPrivileges operation in SharedApi.
|
|
30054
|
+
* @export
|
|
30055
|
+
* @interface SharedApiChangeAccountObjectPrivilegesRequest
|
|
30056
|
+
*/
|
|
30057
|
+
export interface SharedApiChangeAccountObjectPrivilegesRequest {
|
|
30058
|
+
/**
|
|
30059
|
+
*
|
|
30060
|
+
* @type {string}
|
|
30061
|
+
* @memberof SharedApiChangeAccountObjectPrivileges
|
|
30062
|
+
*/
|
|
30063
|
+
readonly engineName: string
|
|
30064
|
+
|
|
30065
|
+
/**
|
|
30066
|
+
*
|
|
30067
|
+
* @type {string}
|
|
30068
|
+
* @memberof SharedApiChangeAccountObjectPrivileges
|
|
30069
|
+
*/
|
|
30070
|
+
readonly orgName: string
|
|
30071
|
+
|
|
30072
|
+
/**
|
|
30073
|
+
*
|
|
30074
|
+
* @type {string}
|
|
30075
|
+
* @memberof SharedApiChangeAccountObjectPrivileges
|
|
30076
|
+
*/
|
|
30077
|
+
readonly clusterName: string
|
|
30078
|
+
|
|
30079
|
+
/**
|
|
30080
|
+
*
|
|
30081
|
+
* @type {string}
|
|
30082
|
+
* @memberof SharedApiChangeAccountObjectPrivileges
|
|
30083
|
+
*/
|
|
30084
|
+
readonly accountName: string
|
|
30085
|
+
|
|
30086
|
+
/**
|
|
30087
|
+
*
|
|
30088
|
+
* @type {ObjectPrivilegeChange}
|
|
30089
|
+
* @memberof SharedApiChangeAccountObjectPrivileges
|
|
30090
|
+
*/
|
|
30091
|
+
readonly body: ObjectPrivilegeChange
|
|
30092
|
+
|
|
30093
|
+
/**
|
|
30094
|
+
* Native subject kind; path account name identifies the subject.
|
|
30095
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
30096
|
+
* @memberof SharedApiChangeAccountObjectPrivileges
|
|
30097
|
+
*/
|
|
30098
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
30099
|
+
|
|
30100
|
+
/**
|
|
30101
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
30102
|
+
* @type {string}
|
|
30103
|
+
* @memberof SharedApiChangeAccountObjectPrivileges
|
|
30104
|
+
*/
|
|
30105
|
+
readonly host?: string
|
|
30106
|
+
|
|
30107
|
+
/**
|
|
30108
|
+
* JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
30109
|
+
* @type {string}
|
|
30110
|
+
* @memberof SharedApiChangeAccountObjectPrivileges
|
|
30111
|
+
*/
|
|
30112
|
+
readonly subjectQualifiers?: string
|
|
30113
|
+
}
|
|
30114
|
+
|
|
29567
30115
|
/**
|
|
29568
30116
|
* Request parameters for changeElasticsearchSecurityUserPassword operation in SharedApi.
|
|
29569
30117
|
* @export
|
|
@@ -32350,6 +32898,139 @@ export interface SharedApiGenerateDemoDataRequest {
|
|
|
32350
32898
|
readonly accountName: string
|
|
32351
32899
|
}
|
|
32352
32900
|
|
|
32901
|
+
/**
|
|
32902
|
+
* Request parameters for getAccountObjectPrivilegeCapabilities operation in SharedApi.
|
|
32903
|
+
* @export
|
|
32904
|
+
* @interface SharedApiGetAccountObjectPrivilegeCapabilitiesRequest
|
|
32905
|
+
*/
|
|
32906
|
+
export interface SharedApiGetAccountObjectPrivilegeCapabilitiesRequest {
|
|
32907
|
+
/**
|
|
32908
|
+
*
|
|
32909
|
+
* @type {string}
|
|
32910
|
+
* @memberof SharedApiGetAccountObjectPrivilegeCapabilities
|
|
32911
|
+
*/
|
|
32912
|
+
readonly engineName: string
|
|
32913
|
+
|
|
32914
|
+
/**
|
|
32915
|
+
*
|
|
32916
|
+
* @type {string}
|
|
32917
|
+
* @memberof SharedApiGetAccountObjectPrivilegeCapabilities
|
|
32918
|
+
*/
|
|
32919
|
+
readonly orgName: string
|
|
32920
|
+
|
|
32921
|
+
/**
|
|
32922
|
+
*
|
|
32923
|
+
* @type {string}
|
|
32924
|
+
* @memberof SharedApiGetAccountObjectPrivilegeCapabilities
|
|
32925
|
+
*/
|
|
32926
|
+
readonly clusterName: string
|
|
32927
|
+
|
|
32928
|
+
/**
|
|
32929
|
+
*
|
|
32930
|
+
* @type {string}
|
|
32931
|
+
* @memberof SharedApiGetAccountObjectPrivilegeCapabilities
|
|
32932
|
+
*/
|
|
32933
|
+
readonly accountName: string
|
|
32934
|
+
}
|
|
32935
|
+
|
|
32936
|
+
/**
|
|
32937
|
+
* Request parameters for getAccountObjectPrivileges operation in SharedApi.
|
|
32938
|
+
* @export
|
|
32939
|
+
* @interface SharedApiGetAccountObjectPrivilegesRequest
|
|
32940
|
+
*/
|
|
32941
|
+
export interface SharedApiGetAccountObjectPrivilegesRequest {
|
|
32942
|
+
/**
|
|
32943
|
+
*
|
|
32944
|
+
* @type {string}
|
|
32945
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
32946
|
+
*/
|
|
32947
|
+
readonly engineName: string
|
|
32948
|
+
|
|
32949
|
+
/**
|
|
32950
|
+
*
|
|
32951
|
+
* @type {string}
|
|
32952
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
32953
|
+
*/
|
|
32954
|
+
readonly orgName: string
|
|
32955
|
+
|
|
32956
|
+
/**
|
|
32957
|
+
*
|
|
32958
|
+
* @type {string}
|
|
32959
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
32960
|
+
*/
|
|
32961
|
+
readonly clusterName: string
|
|
32962
|
+
|
|
32963
|
+
/**
|
|
32964
|
+
*
|
|
32965
|
+
* @type {string}
|
|
32966
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
32967
|
+
*/
|
|
32968
|
+
readonly accountName: string
|
|
32969
|
+
|
|
32970
|
+
/**
|
|
32971
|
+
*
|
|
32972
|
+
* @type {string}
|
|
32973
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
32974
|
+
*/
|
|
32975
|
+
readonly objectType: string
|
|
32976
|
+
|
|
32977
|
+
/**
|
|
32978
|
+
*
|
|
32979
|
+
* @type {string}
|
|
32980
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
32981
|
+
*/
|
|
32982
|
+
readonly databaseName?: string
|
|
32983
|
+
|
|
32984
|
+
/**
|
|
32985
|
+
*
|
|
32986
|
+
* @type {string}
|
|
32987
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
32988
|
+
*/
|
|
32989
|
+
readonly schemaName?: string
|
|
32990
|
+
|
|
32991
|
+
/**
|
|
32992
|
+
*
|
|
32993
|
+
* @type {string}
|
|
32994
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
32995
|
+
*/
|
|
32996
|
+
readonly objectName?: string
|
|
32997
|
+
|
|
32998
|
+
/**
|
|
32999
|
+
*
|
|
33000
|
+
* @type {string}
|
|
33001
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
33002
|
+
*/
|
|
33003
|
+
readonly objectId?: string
|
|
33004
|
+
|
|
33005
|
+
/**
|
|
33006
|
+
* Native subject kind; path account name identifies the subject.
|
|
33007
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
33008
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
33009
|
+
*/
|
|
33010
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
33011
|
+
|
|
33012
|
+
/**
|
|
33013
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
33014
|
+
* @type {string}
|
|
33015
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
33016
|
+
*/
|
|
33017
|
+
readonly host?: string
|
|
33018
|
+
|
|
33019
|
+
/**
|
|
33020
|
+
*
|
|
33021
|
+
* @type {string}
|
|
33022
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
33023
|
+
*/
|
|
33024
|
+
readonly catalogName?: string
|
|
33025
|
+
|
|
33026
|
+
/**
|
|
33027
|
+
* JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
33028
|
+
* @type {string}
|
|
33029
|
+
* @memberof SharedApiGetAccountObjectPrivileges
|
|
33030
|
+
*/
|
|
33031
|
+
readonly subjectQualifiers?: string
|
|
33032
|
+
}
|
|
33033
|
+
|
|
32353
33034
|
/**
|
|
32354
33035
|
* Request parameters for getAlertConfig operation in SharedApi.
|
|
32355
33036
|
* @export
|
|
@@ -34380,6 +35061,83 @@ export interface SharedApiKillSessionRequest {
|
|
|
34380
35061
|
readonly keep?: boolean
|
|
34381
35062
|
}
|
|
34382
35063
|
|
|
35064
|
+
/**
|
|
35065
|
+
* Request parameters for listAccountObjectPrivilegeObjects operation in SharedApi.
|
|
35066
|
+
* @export
|
|
35067
|
+
* @interface SharedApiListAccountObjectPrivilegeObjectsRequest
|
|
35068
|
+
*/
|
|
35069
|
+
export interface SharedApiListAccountObjectPrivilegeObjectsRequest {
|
|
35070
|
+
/**
|
|
35071
|
+
*
|
|
35072
|
+
* @type {string}
|
|
35073
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35074
|
+
*/
|
|
35075
|
+
readonly engineName: string
|
|
35076
|
+
|
|
35077
|
+
/**
|
|
35078
|
+
*
|
|
35079
|
+
* @type {string}
|
|
35080
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35081
|
+
*/
|
|
35082
|
+
readonly orgName: string
|
|
35083
|
+
|
|
35084
|
+
/**
|
|
35085
|
+
*
|
|
35086
|
+
* @type {string}
|
|
35087
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35088
|
+
*/
|
|
35089
|
+
readonly clusterName: string
|
|
35090
|
+
|
|
35091
|
+
/**
|
|
35092
|
+
*
|
|
35093
|
+
* @type {string}
|
|
35094
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35095
|
+
*/
|
|
35096
|
+
readonly accountName: string
|
|
35097
|
+
|
|
35098
|
+
/**
|
|
35099
|
+
*
|
|
35100
|
+
* @type {string}
|
|
35101
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35102
|
+
*/
|
|
35103
|
+
readonly objectType: string
|
|
35104
|
+
|
|
35105
|
+
/**
|
|
35106
|
+
*
|
|
35107
|
+
* @type {string}
|
|
35108
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35109
|
+
*/
|
|
35110
|
+
readonly databaseName?: string
|
|
35111
|
+
|
|
35112
|
+
/**
|
|
35113
|
+
*
|
|
35114
|
+
* @type {string}
|
|
35115
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35116
|
+
*/
|
|
35117
|
+
readonly schemaName?: string
|
|
35118
|
+
|
|
35119
|
+
/**
|
|
35120
|
+
*
|
|
35121
|
+
* @type {number}
|
|
35122
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35123
|
+
*/
|
|
35124
|
+
readonly offset?: number
|
|
35125
|
+
|
|
35126
|
+
/**
|
|
35127
|
+
*
|
|
35128
|
+
* @type {number}
|
|
35129
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35130
|
+
*/
|
|
35131
|
+
readonly limit?: number
|
|
35132
|
+
|
|
35133
|
+
/**
|
|
35134
|
+
*
|
|
35135
|
+
* @type {string}
|
|
35136
|
+
* @memberof SharedApiListAccountObjectPrivilegeObjects
|
|
35137
|
+
*/
|
|
35138
|
+
readonly catalogName?: string
|
|
35139
|
+
}
|
|
35140
|
+
|
|
34383
35141
|
/**
|
|
34384
35142
|
* Request parameters for listAccounts operation in SharedApi.
|
|
34385
35143
|
* @export
|
|
@@ -40095,6 +40853,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
40095
40853
|
return SharedApiFp(this.configuration).buildBackupObj(requestParameters.orgName, requestParameters.environmentName, requestParameters.engineName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
40096
40854
|
}
|
|
40097
40855
|
|
|
40856
|
+
/**
|
|
40857
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
40858
|
+
* @summary Grant or revoke native object and column privileges
|
|
40859
|
+
* @param {SharedApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
40860
|
+
* @param {*} [options] Override http request option.
|
|
40861
|
+
* @throws {RequiredError}
|
|
40862
|
+
* @memberof SharedApi
|
|
40863
|
+
*/
|
|
40864
|
+
public changeAccountObjectPrivileges(requestParameters: SharedApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
40865
|
+
return SharedApiFp(this.configuration).changeAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, requestParameters.subjectType, requestParameters.host, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
|
|
40866
|
+
}
|
|
40867
|
+
|
|
40098
40868
|
/**
|
|
40099
40869
|
*
|
|
40100
40870
|
* @summary Change Elasticsearch account password
|
|
@@ -41128,6 +41898,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
41128
41898
|
return SharedApiFp(this.configuration).generateDemoData(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
41129
41899
|
}
|
|
41130
41900
|
|
|
41901
|
+
/**
|
|
41902
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
41903
|
+
* @summary List native object privilege capabilities for the connected server
|
|
41904
|
+
* @param {SharedApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
41905
|
+
* @param {*} [options] Override http request option.
|
|
41906
|
+
* @throws {RequiredError}
|
|
41907
|
+
* @memberof SharedApi
|
|
41908
|
+
*/
|
|
41909
|
+
public getAccountObjectPrivilegeCapabilities(requestParameters: SharedApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig) {
|
|
41910
|
+
return SharedApiFp(this.configuration).getAccountObjectPrivilegeCapabilities(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
41911
|
+
}
|
|
41912
|
+
|
|
41913
|
+
/**
|
|
41914
|
+
* Native object GRANT/REVOKE alongside presets. Consult capabilities for engine/version-specific object types and privileges. PostgreSQL RESTRICT is the default; MySQL static GRANT OPTION is scope-wide.
|
|
41915
|
+
* @summary Inspect native object and column privileges
|
|
41916
|
+
* @param {SharedApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
41917
|
+
* @param {*} [options] Override http request option.
|
|
41918
|
+
* @throws {RequiredError}
|
|
41919
|
+
* @memberof SharedApi
|
|
41920
|
+
*/
|
|
41921
|
+
public getAccountObjectPrivileges(requestParameters: SharedApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
41922
|
+
return SharedApiFp(this.configuration).getAccountObjectPrivileges(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.objectName, requestParameters.objectId, requestParameters.subjectType, requestParameters.host, requestParameters.catalogName, requestParameters.subjectQualifiers, options).then((request) => request(this.axios, this.basePath));
|
|
41923
|
+
}
|
|
41924
|
+
|
|
41131
41925
|
/**
|
|
41132
41926
|
*
|
|
41133
41927
|
* @summary Get alert config
|
|
@@ -41846,6 +42640,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
41846
42640
|
return SharedApiFp(this.configuration).killSession(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.session, requestParameters.keep, options).then((request) => request(this.axios, this.basePath));
|
|
41847
42641
|
}
|
|
41848
42642
|
|
|
42643
|
+
/**
|
|
42644
|
+
* 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.
|
|
42645
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
42646
|
+
* @param {SharedApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
42647
|
+
* @param {*} [options] Override http request option.
|
|
42648
|
+
* @throws {RequiredError}
|
|
42649
|
+
* @memberof SharedApi
|
|
42650
|
+
*/
|
|
42651
|
+
public listAccountObjectPrivilegeObjects(requestParameters: SharedApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig) {
|
|
42652
|
+
return SharedApiFp(this.configuration).listAccountObjectPrivilegeObjects(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.objectType, requestParameters.databaseName, requestParameters.schemaName, requestParameters.offset, requestParameters.limit, requestParameters.catalogName, options).then((request) => request(this.axios, this.basePath));
|
|
42653
|
+
}
|
|
42654
|
+
|
|
41849
42655
|
/**
|
|
41850
42656
|
* list accounts in cluster
|
|
41851
42657
|
* @summary List cluster accounts
|