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
|
@@ -50,6 +50,16 @@ import type { MilvusRoleList } from '../models';
|
|
|
50
50
|
// @ts-ignore
|
|
51
51
|
import type { MilvusRoleRequest } from '../models';
|
|
52
52
|
// @ts-ignore
|
|
53
|
+
import type { ObjectPrivilegeCapabilities } from '../models';
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
import type { ObjectPrivilegeChange } from '../models';
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
import type { ObjectPrivilegeObjectList } from '../models';
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
import type { ObjectPrivilegeSnapshot } from '../models';
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
import type { ObjectPrivilegeSubjectType } from '../models';
|
|
62
|
+
// @ts-ignore
|
|
53
63
|
import type { PrivilegeListItem } from '../models';
|
|
54
64
|
// @ts-ignore
|
|
55
65
|
import type { RbmqAccountRequest } from '../models';
|
|
@@ -120,6 +130,80 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
120
130
|
options: localVarRequestOptions,
|
|
121
131
|
};
|
|
122
132
|
},
|
|
133
|
+
/**
|
|
134
|
+
* 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.
|
|
135
|
+
* @summary Grant or revoke native object and column privileges
|
|
136
|
+
* @param {string} engineName
|
|
137
|
+
* @param {string} orgName
|
|
138
|
+
* @param {string} clusterName
|
|
139
|
+
* @param {string} accountName
|
|
140
|
+
* @param {ObjectPrivilegeChange} body
|
|
141
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
142
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
143
|
+
* @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.
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
changeAccountObjectPrivileges: async (engineName: string, orgName: string, clusterName: string, accountName: string, body: ObjectPrivilegeChange, subjectType?: ObjectPrivilegeSubjectType, host?: string, subjectQualifiers?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
149
|
+
assertParamExists('changeAccountObjectPrivileges', 'engineName', engineName)
|
|
150
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
151
|
+
assertParamExists('changeAccountObjectPrivileges', 'orgName', orgName)
|
|
152
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
153
|
+
assertParamExists('changeAccountObjectPrivileges', 'clusterName', clusterName)
|
|
154
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
155
|
+
assertParamExists('changeAccountObjectPrivileges', 'accountName', accountName)
|
|
156
|
+
// verify required parameter 'body' is not null or undefined
|
|
157
|
+
assertParamExists('changeAccountObjectPrivileges', 'body', body)
|
|
158
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges`
|
|
159
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
160
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
161
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
162
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
164
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
165
|
+
let baseOptions;
|
|
166
|
+
if (configuration) {
|
|
167
|
+
baseOptions = configuration.baseOptions;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
171
|
+
const localVarHeaderParameter = {} as any;
|
|
172
|
+
const localVarQueryParameter = {} as any;
|
|
173
|
+
|
|
174
|
+
// authentication BearerToken required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
177
|
+
|
|
178
|
+
// authentication DigestAuth required
|
|
179
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
180
|
+
|
|
181
|
+
if (subjectType !== undefined) {
|
|
182
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (host !== undefined) {
|
|
186
|
+
localVarQueryParameter['host'] = host;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (subjectQualifiers !== undefined) {
|
|
190
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
196
|
+
|
|
197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
200
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
url: toPathString(localVarUrlObj),
|
|
204
|
+
options: localVarRequestOptions,
|
|
205
|
+
};
|
|
206
|
+
},
|
|
123
207
|
/**
|
|
124
208
|
* create an account in cluster
|
|
125
209
|
* @summary Create cluster account
|
|
@@ -1136,6 +1220,159 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1136
1220
|
|
|
1137
1221
|
|
|
1138
1222
|
|
|
1223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1225
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1226
|
+
|
|
1227
|
+
return {
|
|
1228
|
+
url: toPathString(localVarUrlObj),
|
|
1229
|
+
options: localVarRequestOptions,
|
|
1230
|
+
};
|
|
1231
|
+
},
|
|
1232
|
+
/**
|
|
1233
|
+
* 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.
|
|
1234
|
+
* @summary List native object privilege capabilities for the connected server
|
|
1235
|
+
* @param {string} engineName
|
|
1236
|
+
* @param {string} orgName
|
|
1237
|
+
* @param {string} clusterName
|
|
1238
|
+
* @param {string} accountName
|
|
1239
|
+
* @param {*} [options] Override http request option.
|
|
1240
|
+
* @throws {RequiredError}
|
|
1241
|
+
*/
|
|
1242
|
+
getAccountObjectPrivilegeCapabilities: async (engineName: string, orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1243
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1244
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'engineName', engineName)
|
|
1245
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1246
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'orgName', orgName)
|
|
1247
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1248
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'clusterName', clusterName)
|
|
1249
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1250
|
+
assertParamExists('getAccountObjectPrivilegeCapabilities', 'accountName', accountName)
|
|
1251
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/capabilities`
|
|
1252
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1253
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1254
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1255
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1256
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1257
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1258
|
+
let baseOptions;
|
|
1259
|
+
if (configuration) {
|
|
1260
|
+
baseOptions = configuration.baseOptions;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1264
|
+
const localVarHeaderParameter = {} as any;
|
|
1265
|
+
const localVarQueryParameter = {} as any;
|
|
1266
|
+
|
|
1267
|
+
// authentication BearerToken required
|
|
1268
|
+
// http bearer authentication required
|
|
1269
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1270
|
+
|
|
1271
|
+
// authentication DigestAuth required
|
|
1272
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1278
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1279
|
+
|
|
1280
|
+
return {
|
|
1281
|
+
url: toPathString(localVarUrlObj),
|
|
1282
|
+
options: localVarRequestOptions,
|
|
1283
|
+
};
|
|
1284
|
+
},
|
|
1285
|
+
/**
|
|
1286
|
+
* 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.
|
|
1287
|
+
* @summary Inspect native object and column privileges
|
|
1288
|
+
* @param {string} engineName
|
|
1289
|
+
* @param {string} orgName
|
|
1290
|
+
* @param {string} clusterName
|
|
1291
|
+
* @param {string} accountName
|
|
1292
|
+
* @param {string} objectType
|
|
1293
|
+
* @param {string} [databaseName]
|
|
1294
|
+
* @param {string} [schemaName]
|
|
1295
|
+
* @param {string} [objectName]
|
|
1296
|
+
* @param {string} [objectId]
|
|
1297
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
1298
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
1299
|
+
* @param {string} [catalogName]
|
|
1300
|
+
* @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.
|
|
1301
|
+
* @param {*} [options] Override http request option.
|
|
1302
|
+
* @throws {RequiredError}
|
|
1303
|
+
*/
|
|
1304
|
+
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> => {
|
|
1305
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1306
|
+
assertParamExists('getAccountObjectPrivileges', 'engineName', engineName)
|
|
1307
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1308
|
+
assertParamExists('getAccountObjectPrivileges', 'orgName', orgName)
|
|
1309
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1310
|
+
assertParamExists('getAccountObjectPrivileges', 'clusterName', clusterName)
|
|
1311
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1312
|
+
assertParamExists('getAccountObjectPrivileges', 'accountName', accountName)
|
|
1313
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
1314
|
+
assertParamExists('getAccountObjectPrivileges', 'objectType', objectType)
|
|
1315
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges`
|
|
1316
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1317
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1318
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1319
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1320
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1321
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1322
|
+
let baseOptions;
|
|
1323
|
+
if (configuration) {
|
|
1324
|
+
baseOptions = configuration.baseOptions;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1328
|
+
const localVarHeaderParameter = {} as any;
|
|
1329
|
+
const localVarQueryParameter = {} as any;
|
|
1330
|
+
|
|
1331
|
+
// authentication BearerToken required
|
|
1332
|
+
// http bearer authentication required
|
|
1333
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1334
|
+
|
|
1335
|
+
// authentication DigestAuth required
|
|
1336
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1337
|
+
|
|
1338
|
+
if (objectType !== undefined) {
|
|
1339
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
if (databaseName !== undefined) {
|
|
1343
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
if (schemaName !== undefined) {
|
|
1347
|
+
localVarQueryParameter['schemaName'] = schemaName;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
if (objectName !== undefined) {
|
|
1351
|
+
localVarQueryParameter['objectName'] = objectName;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
if (objectId !== undefined) {
|
|
1355
|
+
localVarQueryParameter['objectId'] = objectId;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
if (subjectType !== undefined) {
|
|
1359
|
+
localVarQueryParameter['subjectType'] = subjectType;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
if (host !== undefined) {
|
|
1363
|
+
localVarQueryParameter['host'] = host;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
if (catalogName !== undefined) {
|
|
1367
|
+
localVarQueryParameter['catalogName'] = catalogName;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
if (subjectQualifiers !== undefined) {
|
|
1371
|
+
localVarQueryParameter['subjectQualifiers'] = subjectQualifiers;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
|
|
1139
1376
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1140
1377
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1141
1378
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1401,6 +1638,91 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1401
1638
|
|
|
1402
1639
|
|
|
1403
1640
|
|
|
1641
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1642
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1643
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1644
|
+
|
|
1645
|
+
return {
|
|
1646
|
+
url: toPathString(localVarUrlObj),
|
|
1647
|
+
options: localVarRequestOptions,
|
|
1648
|
+
};
|
|
1649
|
+
},
|
|
1650
|
+
/**
|
|
1651
|
+
* 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.
|
|
1652
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
1653
|
+
* @param {string} engineName
|
|
1654
|
+
* @param {string} orgName
|
|
1655
|
+
* @param {string} clusterName
|
|
1656
|
+
* @param {string} accountName
|
|
1657
|
+
* @param {string} objectType
|
|
1658
|
+
* @param {string} [databaseName]
|
|
1659
|
+
* @param {string} [schemaName]
|
|
1660
|
+
* @param {number} [offset]
|
|
1661
|
+
* @param {number} [limit]
|
|
1662
|
+
* @param {string} [catalogName]
|
|
1663
|
+
* @param {*} [options] Override http request option.
|
|
1664
|
+
* @throws {RequiredError}
|
|
1665
|
+
*/
|
|
1666
|
+
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> => {
|
|
1667
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1668
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'engineName', engineName)
|
|
1669
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1670
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'orgName', orgName)
|
|
1671
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1672
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'clusterName', clusterName)
|
|
1673
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
1674
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'accountName', accountName)
|
|
1675
|
+
// verify required parameter 'objectType' is not null or undefined
|
|
1676
|
+
assertParamExists('listAccountObjectPrivilegeObjects', 'objectType', objectType)
|
|
1677
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/object-privileges/objects`
|
|
1678
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1679
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1680
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1681
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
1682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1683
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1684
|
+
let baseOptions;
|
|
1685
|
+
if (configuration) {
|
|
1686
|
+
baseOptions = configuration.baseOptions;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1690
|
+
const localVarHeaderParameter = {} as any;
|
|
1691
|
+
const localVarQueryParameter = {} as any;
|
|
1692
|
+
|
|
1693
|
+
// authentication BearerToken required
|
|
1694
|
+
// http bearer authentication required
|
|
1695
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1696
|
+
|
|
1697
|
+
// authentication DigestAuth required
|
|
1698
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1699
|
+
|
|
1700
|
+
if (objectType !== undefined) {
|
|
1701
|
+
localVarQueryParameter['objectType'] = objectType;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
if (databaseName !== undefined) {
|
|
1705
|
+
localVarQueryParameter['databaseName'] = databaseName;
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
if (schemaName !== undefined) {
|
|
1709
|
+
localVarQueryParameter['schemaName'] = schemaName;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
if (offset !== undefined) {
|
|
1713
|
+
localVarQueryParameter['offset'] = offset;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
if (limit !== undefined) {
|
|
1717
|
+
localVarQueryParameter['limit'] = limit;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
if (catalogName !== undefined) {
|
|
1721
|
+
localVarQueryParameter['catalogName'] = catalogName;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
|
|
1404
1726
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1405
1727
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1406
1728
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2691,6 +3013,26 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2691
3013
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.bindSeaweedFSPolicies']?.[localVarOperationServerIndex]?.url;
|
|
2692
3014
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2693
3015
|
},
|
|
3016
|
+
/**
|
|
3017
|
+
* 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.
|
|
3018
|
+
* @summary Grant or revoke native object and column privileges
|
|
3019
|
+
* @param {string} engineName
|
|
3020
|
+
* @param {string} orgName
|
|
3021
|
+
* @param {string} clusterName
|
|
3022
|
+
* @param {string} accountName
|
|
3023
|
+
* @param {ObjectPrivilegeChange} body
|
|
3024
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
3025
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
3026
|
+
* @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.
|
|
3027
|
+
* @param {*} [options] Override http request option.
|
|
3028
|
+
* @throws {RequiredError}
|
|
3029
|
+
*/
|
|
3030
|
+
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>> {
|
|
3031
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.changeAccountObjectPrivileges(engineName, orgName, clusterName, accountName, body, subjectType, host, subjectQualifiers, options);
|
|
3032
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3033
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.changeAccountObjectPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
3034
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3035
|
+
},
|
|
2694
3036
|
/**
|
|
2695
3037
|
* create an account in cluster
|
|
2696
3038
|
* @summary Create cluster account
|
|
@@ -2997,6 +3339,47 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2997
3339
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.deleteServiceAccount']?.[localVarOperationServerIndex]?.url;
|
|
2998
3340
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2999
3341
|
},
|
|
3342
|
+
/**
|
|
3343
|
+
* 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.
|
|
3344
|
+
* @summary List native object privilege capabilities for the connected server
|
|
3345
|
+
* @param {string} engineName
|
|
3346
|
+
* @param {string} orgName
|
|
3347
|
+
* @param {string} clusterName
|
|
3348
|
+
* @param {string} accountName
|
|
3349
|
+
* @param {*} [options] Override http request option.
|
|
3350
|
+
* @throws {RequiredError}
|
|
3351
|
+
*/
|
|
3352
|
+
async getAccountObjectPrivilegeCapabilities(engineName: string, orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectPrivilegeCapabilities>> {
|
|
3353
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountObjectPrivilegeCapabilities(engineName, orgName, clusterName, accountName, options);
|
|
3354
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3355
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.getAccountObjectPrivilegeCapabilities']?.[localVarOperationServerIndex]?.url;
|
|
3356
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3357
|
+
},
|
|
3358
|
+
/**
|
|
3359
|
+
* 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.
|
|
3360
|
+
* @summary Inspect native object and column privileges
|
|
3361
|
+
* @param {string} engineName
|
|
3362
|
+
* @param {string} orgName
|
|
3363
|
+
* @param {string} clusterName
|
|
3364
|
+
* @param {string} accountName
|
|
3365
|
+
* @param {string} objectType
|
|
3366
|
+
* @param {string} [databaseName]
|
|
3367
|
+
* @param {string} [schemaName]
|
|
3368
|
+
* @param {string} [objectName]
|
|
3369
|
+
* @param {string} [objectId]
|
|
3370
|
+
* @param {ObjectPrivilegeSubjectType} [subjectType] Native subject kind; path account name identifies the subject.
|
|
3371
|
+
* @param {string} [host] Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
3372
|
+
* @param {string} [catalogName]
|
|
3373
|
+
* @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.
|
|
3374
|
+
* @param {*} [options] Override http request option.
|
|
3375
|
+
* @throws {RequiredError}
|
|
3376
|
+
*/
|
|
3377
|
+
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>> {
|
|
3378
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountObjectPrivileges(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, objectName, objectId, subjectType, host, catalogName, subjectQualifiers, options);
|
|
3379
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3380
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.getAccountObjectPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
3381
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3382
|
+
},
|
|
3000
3383
|
/**
|
|
3001
3384
|
* Get Hive accounts
|
|
3002
3385
|
* @summary Get Hive accounts
|
|
@@ -3076,11 +3459,33 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
3076
3459
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3077
3460
|
},
|
|
3078
3461
|
/**
|
|
3079
|
-
*
|
|
3080
|
-
* @summary
|
|
3081
|
-
* @param {string} engineName
|
|
3082
|
-
* @param {string} orgName
|
|
3083
|
-
* @param {string} clusterName
|
|
3462
|
+
* 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.
|
|
3463
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
3464
|
+
* @param {string} engineName
|
|
3465
|
+
* @param {string} orgName
|
|
3466
|
+
* @param {string} clusterName
|
|
3467
|
+
* @param {string} accountName
|
|
3468
|
+
* @param {string} objectType
|
|
3469
|
+
* @param {string} [databaseName]
|
|
3470
|
+
* @param {string} [schemaName]
|
|
3471
|
+
* @param {number} [offset]
|
|
3472
|
+
* @param {number} [limit]
|
|
3473
|
+
* @param {string} [catalogName]
|
|
3474
|
+
* @param {*} [options] Override http request option.
|
|
3475
|
+
* @throws {RequiredError}
|
|
3476
|
+
*/
|
|
3477
|
+
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>> {
|
|
3478
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountObjectPrivilegeObjects(engineName, orgName, clusterName, accountName, objectType, databaseName, schemaName, offset, limit, catalogName, options);
|
|
3479
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3480
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.listAccountObjectPrivilegeObjects']?.[localVarOperationServerIndex]?.url;
|
|
3481
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3482
|
+
},
|
|
3483
|
+
/**
|
|
3484
|
+
* list accounts in cluster
|
|
3485
|
+
* @summary List cluster accounts
|
|
3486
|
+
* @param {string} engineName name of the engine
|
|
3487
|
+
* @param {string} orgName name of the organization
|
|
3488
|
+
* @param {string} clusterName name of the cluster
|
|
3084
3489
|
* @param {*} [options] Override http request option.
|
|
3085
3490
|
* @throws {RequiredError}
|
|
3086
3491
|
*/
|
|
@@ -3468,6 +3873,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
3468
3873
|
bindSeaweedFSPolicies(requestParameters: AccountApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3469
3874
|
return localVarFp.bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(axios, basePath));
|
|
3470
3875
|
},
|
|
3876
|
+
/**
|
|
3877
|
+
* 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.
|
|
3878
|
+
* @summary Grant or revoke native object and column privileges
|
|
3879
|
+
* @param {AccountApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
3880
|
+
* @param {*} [options] Override http request option.
|
|
3881
|
+
* @throws {RequiredError}
|
|
3882
|
+
*/
|
|
3883
|
+
changeAccountObjectPrivileges(requestParameters: AccountApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3884
|
+
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));
|
|
3885
|
+
},
|
|
3471
3886
|
/**
|
|
3472
3887
|
* create an account in cluster
|
|
3473
3888
|
* @summary Create cluster account
|
|
@@ -3668,6 +4083,26 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
3668
4083
|
deleteServiceAccount(requestParameters: AccountApiDeleteServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3669
4084
|
return localVarFp.deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
|
|
3670
4085
|
},
|
|
4086
|
+
/**
|
|
4087
|
+
* 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.
|
|
4088
|
+
* @summary List native object privilege capabilities for the connected server
|
|
4089
|
+
* @param {AccountApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
4090
|
+
* @param {*} [options] Override http request option.
|
|
4091
|
+
* @throws {RequiredError}
|
|
4092
|
+
*/
|
|
4093
|
+
getAccountObjectPrivilegeCapabilities(requestParameters: AccountApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeCapabilities> {
|
|
4094
|
+
return localVarFp.getAccountObjectPrivilegeCapabilities(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
4095
|
+
},
|
|
4096
|
+
/**
|
|
4097
|
+
* 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.
|
|
4098
|
+
* @summary Inspect native object and column privileges
|
|
4099
|
+
* @param {AccountApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
4100
|
+
* @param {*} [options] Override http request option.
|
|
4101
|
+
* @throws {RequiredError}
|
|
4102
|
+
*/
|
|
4103
|
+
getAccountObjectPrivileges(requestParameters: AccountApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot> {
|
|
4104
|
+
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));
|
|
4105
|
+
},
|
|
3671
4106
|
/**
|
|
3672
4107
|
* Get Hive accounts
|
|
3673
4108
|
* @summary Get Hive accounts
|
|
@@ -3718,6 +4153,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
3718
4153
|
getServiceAccount(requestParameters: AccountApiGetServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount> {
|
|
3719
4154
|
return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
|
|
3720
4155
|
},
|
|
4156
|
+
/**
|
|
4157
|
+
* 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.
|
|
4158
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
4159
|
+
* @param {AccountApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
4160
|
+
* @param {*} [options] Override http request option.
|
|
4161
|
+
* @throws {RequiredError}
|
|
4162
|
+
*/
|
|
4163
|
+
listAccountObjectPrivilegeObjects(requestParameters: AccountApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeObjectList> {
|
|
4164
|
+
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));
|
|
4165
|
+
},
|
|
3721
4166
|
/**
|
|
3722
4167
|
* list accounts in cluster
|
|
3723
4168
|
* @summary List cluster accounts
|
|
@@ -3977,6 +4422,16 @@ export interface AccountApiInterface {
|
|
|
3977
4422
|
*/
|
|
3978
4423
|
bindSeaweedFSPolicies(requestParameters: AccountApiBindSeaweedFSPoliciesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3979
4424
|
|
|
4425
|
+
/**
|
|
4426
|
+
* 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.
|
|
4427
|
+
* @summary Grant or revoke native object and column privileges
|
|
4428
|
+
* @param {AccountApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
4429
|
+
* @param {*} [options] Override http request option.
|
|
4430
|
+
* @throws {RequiredError}
|
|
4431
|
+
* @memberof AccountApiInterface
|
|
4432
|
+
*/
|
|
4433
|
+
changeAccountObjectPrivileges(requestParameters: AccountApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4434
|
+
|
|
3980
4435
|
/**
|
|
3981
4436
|
* create an account in cluster
|
|
3982
4437
|
* @summary Create cluster account
|
|
@@ -4177,6 +4632,26 @@ export interface AccountApiInterface {
|
|
|
4177
4632
|
*/
|
|
4178
4633
|
deleteServiceAccount(requestParameters: AccountApiDeleteServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4179
4634
|
|
|
4635
|
+
/**
|
|
4636
|
+
* 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.
|
|
4637
|
+
* @summary List native object privilege capabilities for the connected server
|
|
4638
|
+
* @param {AccountApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
4639
|
+
* @param {*} [options] Override http request option.
|
|
4640
|
+
* @throws {RequiredError}
|
|
4641
|
+
* @memberof AccountApiInterface
|
|
4642
|
+
*/
|
|
4643
|
+
getAccountObjectPrivilegeCapabilities(requestParameters: AccountApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeCapabilities>;
|
|
4644
|
+
|
|
4645
|
+
/**
|
|
4646
|
+
* 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.
|
|
4647
|
+
* @summary Inspect native object and column privileges
|
|
4648
|
+
* @param {AccountApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
4649
|
+
* @param {*} [options] Override http request option.
|
|
4650
|
+
* @throws {RequiredError}
|
|
4651
|
+
* @memberof AccountApiInterface
|
|
4652
|
+
*/
|
|
4653
|
+
getAccountObjectPrivileges(requestParameters: AccountApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeSnapshot>;
|
|
4654
|
+
|
|
4180
4655
|
/**
|
|
4181
4656
|
* Get Hive accounts
|
|
4182
4657
|
* @summary Get Hive accounts
|
|
@@ -4227,6 +4702,16 @@ export interface AccountApiInterface {
|
|
|
4227
4702
|
*/
|
|
4228
4703
|
getServiceAccount(requestParameters: AccountApiGetServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount>;
|
|
4229
4704
|
|
|
4705
|
+
/**
|
|
4706
|
+
* 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.
|
|
4707
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
4708
|
+
* @param {AccountApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
4709
|
+
* @param {*} [options] Override http request option.
|
|
4710
|
+
* @throws {RequiredError}
|
|
4711
|
+
* @memberof AccountApiInterface
|
|
4712
|
+
*/
|
|
4713
|
+
listAccountObjectPrivilegeObjects(requestParameters: AccountApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObjectPrivilegeObjectList>;
|
|
4714
|
+
|
|
4230
4715
|
/**
|
|
4231
4716
|
* list accounts in cluster
|
|
4232
4717
|
* @summary List cluster accounts
|
|
@@ -4504,6 +4989,69 @@ export interface AccountApiBindSeaweedFSPoliciesRequest {
|
|
|
4504
4989
|
readonly bindSeaweedFSPoliciesRequest: BindSeaweedFSPoliciesRequest
|
|
4505
4990
|
}
|
|
4506
4991
|
|
|
4992
|
+
/**
|
|
4993
|
+
* Request parameters for changeAccountObjectPrivileges operation in AccountApi.
|
|
4994
|
+
* @export
|
|
4995
|
+
* @interface AccountApiChangeAccountObjectPrivilegesRequest
|
|
4996
|
+
*/
|
|
4997
|
+
export interface AccountApiChangeAccountObjectPrivilegesRequest {
|
|
4998
|
+
/**
|
|
4999
|
+
*
|
|
5000
|
+
* @type {string}
|
|
5001
|
+
* @memberof AccountApiChangeAccountObjectPrivileges
|
|
5002
|
+
*/
|
|
5003
|
+
readonly engineName: string
|
|
5004
|
+
|
|
5005
|
+
/**
|
|
5006
|
+
*
|
|
5007
|
+
* @type {string}
|
|
5008
|
+
* @memberof AccountApiChangeAccountObjectPrivileges
|
|
5009
|
+
*/
|
|
5010
|
+
readonly orgName: string
|
|
5011
|
+
|
|
5012
|
+
/**
|
|
5013
|
+
*
|
|
5014
|
+
* @type {string}
|
|
5015
|
+
* @memberof AccountApiChangeAccountObjectPrivileges
|
|
5016
|
+
*/
|
|
5017
|
+
readonly clusterName: string
|
|
5018
|
+
|
|
5019
|
+
/**
|
|
5020
|
+
*
|
|
5021
|
+
* @type {string}
|
|
5022
|
+
* @memberof AccountApiChangeAccountObjectPrivileges
|
|
5023
|
+
*/
|
|
5024
|
+
readonly accountName: string
|
|
5025
|
+
|
|
5026
|
+
/**
|
|
5027
|
+
*
|
|
5028
|
+
* @type {ObjectPrivilegeChange}
|
|
5029
|
+
* @memberof AccountApiChangeAccountObjectPrivileges
|
|
5030
|
+
*/
|
|
5031
|
+
readonly body: ObjectPrivilegeChange
|
|
5032
|
+
|
|
5033
|
+
/**
|
|
5034
|
+
* Native subject kind; path account name identifies the subject.
|
|
5035
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
5036
|
+
* @memberof AccountApiChangeAccountObjectPrivileges
|
|
5037
|
+
*/
|
|
5038
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
5039
|
+
|
|
5040
|
+
/**
|
|
5041
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
5042
|
+
* @type {string}
|
|
5043
|
+
* @memberof AccountApiChangeAccountObjectPrivileges
|
|
5044
|
+
*/
|
|
5045
|
+
readonly host?: string
|
|
5046
|
+
|
|
5047
|
+
/**
|
|
5048
|
+
* JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
5049
|
+
* @type {string}
|
|
5050
|
+
* @memberof AccountApiChangeAccountObjectPrivileges
|
|
5051
|
+
*/
|
|
5052
|
+
readonly subjectQualifiers?: string
|
|
5053
|
+
}
|
|
5054
|
+
|
|
4507
5055
|
/**
|
|
4508
5056
|
* Request parameters for createAccount operation in AccountApi.
|
|
4509
5057
|
* @export
|
|
@@ -5106,6 +5654,139 @@ export interface AccountApiDeleteServiceAccountRequest {
|
|
|
5106
5654
|
readonly accessKey: string
|
|
5107
5655
|
}
|
|
5108
5656
|
|
|
5657
|
+
/**
|
|
5658
|
+
* Request parameters for getAccountObjectPrivilegeCapabilities operation in AccountApi.
|
|
5659
|
+
* @export
|
|
5660
|
+
* @interface AccountApiGetAccountObjectPrivilegeCapabilitiesRequest
|
|
5661
|
+
*/
|
|
5662
|
+
export interface AccountApiGetAccountObjectPrivilegeCapabilitiesRequest {
|
|
5663
|
+
/**
|
|
5664
|
+
*
|
|
5665
|
+
* @type {string}
|
|
5666
|
+
* @memberof AccountApiGetAccountObjectPrivilegeCapabilities
|
|
5667
|
+
*/
|
|
5668
|
+
readonly engineName: string
|
|
5669
|
+
|
|
5670
|
+
/**
|
|
5671
|
+
*
|
|
5672
|
+
* @type {string}
|
|
5673
|
+
* @memberof AccountApiGetAccountObjectPrivilegeCapabilities
|
|
5674
|
+
*/
|
|
5675
|
+
readonly orgName: string
|
|
5676
|
+
|
|
5677
|
+
/**
|
|
5678
|
+
*
|
|
5679
|
+
* @type {string}
|
|
5680
|
+
* @memberof AccountApiGetAccountObjectPrivilegeCapabilities
|
|
5681
|
+
*/
|
|
5682
|
+
readonly clusterName: string
|
|
5683
|
+
|
|
5684
|
+
/**
|
|
5685
|
+
*
|
|
5686
|
+
* @type {string}
|
|
5687
|
+
* @memberof AccountApiGetAccountObjectPrivilegeCapabilities
|
|
5688
|
+
*/
|
|
5689
|
+
readonly accountName: string
|
|
5690
|
+
}
|
|
5691
|
+
|
|
5692
|
+
/**
|
|
5693
|
+
* Request parameters for getAccountObjectPrivileges operation in AccountApi.
|
|
5694
|
+
* @export
|
|
5695
|
+
* @interface AccountApiGetAccountObjectPrivilegesRequest
|
|
5696
|
+
*/
|
|
5697
|
+
export interface AccountApiGetAccountObjectPrivilegesRequest {
|
|
5698
|
+
/**
|
|
5699
|
+
*
|
|
5700
|
+
* @type {string}
|
|
5701
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5702
|
+
*/
|
|
5703
|
+
readonly engineName: string
|
|
5704
|
+
|
|
5705
|
+
/**
|
|
5706
|
+
*
|
|
5707
|
+
* @type {string}
|
|
5708
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5709
|
+
*/
|
|
5710
|
+
readonly orgName: string
|
|
5711
|
+
|
|
5712
|
+
/**
|
|
5713
|
+
*
|
|
5714
|
+
* @type {string}
|
|
5715
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5716
|
+
*/
|
|
5717
|
+
readonly clusterName: string
|
|
5718
|
+
|
|
5719
|
+
/**
|
|
5720
|
+
*
|
|
5721
|
+
* @type {string}
|
|
5722
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5723
|
+
*/
|
|
5724
|
+
readonly accountName: string
|
|
5725
|
+
|
|
5726
|
+
/**
|
|
5727
|
+
*
|
|
5728
|
+
* @type {string}
|
|
5729
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5730
|
+
*/
|
|
5731
|
+
readonly objectType: string
|
|
5732
|
+
|
|
5733
|
+
/**
|
|
5734
|
+
*
|
|
5735
|
+
* @type {string}
|
|
5736
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5737
|
+
*/
|
|
5738
|
+
readonly databaseName?: string
|
|
5739
|
+
|
|
5740
|
+
/**
|
|
5741
|
+
*
|
|
5742
|
+
* @type {string}
|
|
5743
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5744
|
+
*/
|
|
5745
|
+
readonly schemaName?: string
|
|
5746
|
+
|
|
5747
|
+
/**
|
|
5748
|
+
*
|
|
5749
|
+
* @type {string}
|
|
5750
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5751
|
+
*/
|
|
5752
|
+
readonly objectName?: string
|
|
5753
|
+
|
|
5754
|
+
/**
|
|
5755
|
+
*
|
|
5756
|
+
* @type {string}
|
|
5757
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5758
|
+
*/
|
|
5759
|
+
readonly objectId?: string
|
|
5760
|
+
|
|
5761
|
+
/**
|
|
5762
|
+
* Native subject kind; path account name identifies the subject.
|
|
5763
|
+
* @type {ObjectPrivilegeSubjectType}
|
|
5764
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5765
|
+
*/
|
|
5766
|
+
readonly subjectType?: ObjectPrivilegeSubjectType
|
|
5767
|
+
|
|
5768
|
+
/**
|
|
5769
|
+
* Deprecated MySQL host alias. Prefer subjectQualifiers. Do not specify host in both.
|
|
5770
|
+
* @type {string}
|
|
5771
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5772
|
+
*/
|
|
5773
|
+
readonly host?: string
|
|
5774
|
+
|
|
5775
|
+
/**
|
|
5776
|
+
*
|
|
5777
|
+
* @type {string}
|
|
5778
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5779
|
+
*/
|
|
5780
|
+
readonly catalogName?: string
|
|
5781
|
+
|
|
5782
|
+
/**
|
|
5783
|
+
* JSON object of string identity qualifiers, e.g. {\"host\":\"%\"}. Allowed keys and defaults come from capabilities. Unknown keys or duplicate identity inputs are rejected.
|
|
5784
|
+
* @type {string}
|
|
5785
|
+
* @memberof AccountApiGetAccountObjectPrivileges
|
|
5786
|
+
*/
|
|
5787
|
+
readonly subjectQualifiers?: string
|
|
5788
|
+
}
|
|
5789
|
+
|
|
5109
5790
|
/**
|
|
5110
5791
|
* Request parameters for getHiveAccounts operation in AccountApi.
|
|
5111
5792
|
* @export
|
|
@@ -5267,6 +5948,83 @@ export interface AccountApiGetServiceAccountRequest {
|
|
|
5267
5948
|
readonly accessKey: string
|
|
5268
5949
|
}
|
|
5269
5950
|
|
|
5951
|
+
/**
|
|
5952
|
+
* Request parameters for listAccountObjectPrivilegeObjects operation in AccountApi.
|
|
5953
|
+
* @export
|
|
5954
|
+
* @interface AccountApiListAccountObjectPrivilegeObjectsRequest
|
|
5955
|
+
*/
|
|
5956
|
+
export interface AccountApiListAccountObjectPrivilegeObjectsRequest {
|
|
5957
|
+
/**
|
|
5958
|
+
*
|
|
5959
|
+
* @type {string}
|
|
5960
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
5961
|
+
*/
|
|
5962
|
+
readonly engineName: string
|
|
5963
|
+
|
|
5964
|
+
/**
|
|
5965
|
+
*
|
|
5966
|
+
* @type {string}
|
|
5967
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
5968
|
+
*/
|
|
5969
|
+
readonly orgName: string
|
|
5970
|
+
|
|
5971
|
+
/**
|
|
5972
|
+
*
|
|
5973
|
+
* @type {string}
|
|
5974
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
5975
|
+
*/
|
|
5976
|
+
readonly clusterName: string
|
|
5977
|
+
|
|
5978
|
+
/**
|
|
5979
|
+
*
|
|
5980
|
+
* @type {string}
|
|
5981
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
5982
|
+
*/
|
|
5983
|
+
readonly accountName: string
|
|
5984
|
+
|
|
5985
|
+
/**
|
|
5986
|
+
*
|
|
5987
|
+
* @type {string}
|
|
5988
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
5989
|
+
*/
|
|
5990
|
+
readonly objectType: string
|
|
5991
|
+
|
|
5992
|
+
/**
|
|
5993
|
+
*
|
|
5994
|
+
* @type {string}
|
|
5995
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
5996
|
+
*/
|
|
5997
|
+
readonly databaseName?: string
|
|
5998
|
+
|
|
5999
|
+
/**
|
|
6000
|
+
*
|
|
6001
|
+
* @type {string}
|
|
6002
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
6003
|
+
*/
|
|
6004
|
+
readonly schemaName?: string
|
|
6005
|
+
|
|
6006
|
+
/**
|
|
6007
|
+
*
|
|
6008
|
+
* @type {number}
|
|
6009
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
6010
|
+
*/
|
|
6011
|
+
readonly offset?: number
|
|
6012
|
+
|
|
6013
|
+
/**
|
|
6014
|
+
*
|
|
6015
|
+
* @type {number}
|
|
6016
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
6017
|
+
*/
|
|
6018
|
+
readonly limit?: number
|
|
6019
|
+
|
|
6020
|
+
/**
|
|
6021
|
+
*
|
|
6022
|
+
* @type {string}
|
|
6023
|
+
* @memberof AccountApiListAccountObjectPrivilegeObjects
|
|
6024
|
+
*/
|
|
6025
|
+
readonly catalogName?: string
|
|
6026
|
+
}
|
|
6027
|
+
|
|
5270
6028
|
/**
|
|
5271
6029
|
* Request parameters for listAccounts operation in AccountApi.
|
|
5272
6030
|
* @export
|
|
@@ -6049,6 +6807,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
6049
6807
|
return AccountApiFp(this.configuration).bindSeaweedFSPolicies(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.bindSeaweedFSPoliciesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6050
6808
|
}
|
|
6051
6809
|
|
|
6810
|
+
/**
|
|
6811
|
+
* 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.
|
|
6812
|
+
* @summary Grant or revoke native object and column privileges
|
|
6813
|
+
* @param {AccountApiChangeAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
6814
|
+
* @param {*} [options] Override http request option.
|
|
6815
|
+
* @throws {RequiredError}
|
|
6816
|
+
* @memberof AccountApi
|
|
6817
|
+
*/
|
|
6818
|
+
public changeAccountObjectPrivileges(requestParameters: AccountApiChangeAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
6819
|
+
return AccountApiFp(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));
|
|
6820
|
+
}
|
|
6821
|
+
|
|
6052
6822
|
/**
|
|
6053
6823
|
* create an account in cluster
|
|
6054
6824
|
* @summary Create cluster account
|
|
@@ -6289,6 +7059,30 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
6289
7059
|
return AccountApiFp(this.configuration).deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
|
|
6290
7060
|
}
|
|
6291
7061
|
|
|
7062
|
+
/**
|
|
7063
|
+
* 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.
|
|
7064
|
+
* @summary List native object privilege capabilities for the connected server
|
|
7065
|
+
* @param {AccountApiGetAccountObjectPrivilegeCapabilitiesRequest} requestParameters Request parameters.
|
|
7066
|
+
* @param {*} [options] Override http request option.
|
|
7067
|
+
* @throws {RequiredError}
|
|
7068
|
+
* @memberof AccountApi
|
|
7069
|
+
*/
|
|
7070
|
+
public getAccountObjectPrivilegeCapabilities(requestParameters: AccountApiGetAccountObjectPrivilegeCapabilitiesRequest, options?: RawAxiosRequestConfig) {
|
|
7071
|
+
return AccountApiFp(this.configuration).getAccountObjectPrivilegeCapabilities(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
7072
|
+
}
|
|
7073
|
+
|
|
7074
|
+
/**
|
|
7075
|
+
* 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.
|
|
7076
|
+
* @summary Inspect native object and column privileges
|
|
7077
|
+
* @param {AccountApiGetAccountObjectPrivilegesRequest} requestParameters Request parameters.
|
|
7078
|
+
* @param {*} [options] Override http request option.
|
|
7079
|
+
* @throws {RequiredError}
|
|
7080
|
+
* @memberof AccountApi
|
|
7081
|
+
*/
|
|
7082
|
+
public getAccountObjectPrivileges(requestParameters: AccountApiGetAccountObjectPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
7083
|
+
return AccountApiFp(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));
|
|
7084
|
+
}
|
|
7085
|
+
|
|
6292
7086
|
/**
|
|
6293
7087
|
* Get Hive accounts
|
|
6294
7088
|
* @summary Get Hive accounts
|
|
@@ -6349,6 +7143,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
6349
7143
|
return AccountApiFp(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
|
|
6350
7144
|
}
|
|
6351
7145
|
|
|
7146
|
+
/**
|
|
7147
|
+
* 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.
|
|
7148
|
+
* @summary Discover existing native privilege objects with stable routine identities
|
|
7149
|
+
* @param {AccountApiListAccountObjectPrivilegeObjectsRequest} requestParameters Request parameters.
|
|
7150
|
+
* @param {*} [options] Override http request option.
|
|
7151
|
+
* @throws {RequiredError}
|
|
7152
|
+
* @memberof AccountApi
|
|
7153
|
+
*/
|
|
7154
|
+
public listAccountObjectPrivilegeObjects(requestParameters: AccountApiListAccountObjectPrivilegeObjectsRequest, options?: RawAxiosRequestConfig) {
|
|
7155
|
+
return AccountApiFp(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));
|
|
7156
|
+
}
|
|
7157
|
+
|
|
6352
7158
|
/**
|
|
6353
7159
|
* list accounts in cluster
|
|
6354
7160
|
* @summary List cluster accounts
|