kb-cloud-client-typescript 2.3.0-beta.1 → 2.3.0-beta.11
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/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/clickhouse-api.d.ts +995 -0
- package/dist/adminapi/apis/clickhouse-api.d.ts.map +1 -0
- package/dist/adminapi/apis/clickhouse-api.js +1107 -0
- package/dist/adminapi/apis/clickhouse-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +951 -4
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +1095 -52
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/ck-account-type.d.ts +23 -0
- package/dist/adminapi/models/ck-account-type.d.ts.map +1 -0
- package/dist/adminapi/models/ck-account-type.js +27 -0
- package/dist/adminapi/models/ck-account-type.js.map +1 -0
- package/dist/adminapi/models/ck-account.d.ts +50 -0
- package/dist/adminapi/models/ck-account.d.ts.map +1 -0
- package/dist/adminapi/models/ck-account.js +16 -0
- package/dist/adminapi/models/ck-account.js.map +1 -0
- package/dist/adminapi/models/cluster-metrics.d.ts +4 -2
- package/dist/adminapi/models/cluster-metrics.d.ts.map +1 -1
- package/dist/adminapi/models/create-clickhouse-account-request.d.ts +37 -0
- package/dist/adminapi/models/create-clickhouse-account-request.d.ts.map +1 -0
- package/dist/adminapi/models/create-clickhouse-account-request.js +16 -0
- package/dist/adminapi/models/create-clickhouse-account-request.js.map +1 -0
- package/dist/adminapi/models/dms-ob-parameter.d.ts +4 -2
- package/dist/adminapi/models/dms-ob-parameter.d.ts.map +1 -1
- package/dist/adminapi/models/engine-mapping.d.ts +7 -0
- package/dist/adminapi/models/engine-mapping.d.ts.map +1 -1
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.d.ts +49 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.d.ts.map +1 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.js +16 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +12 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +12 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts +31 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.js +16 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.js.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.d.ts +32 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.d.ts.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.js +16 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.js.map +1 -0
- package/dist/adminapi/models/provision-config.d.ts +13 -0
- package/dist/adminapi/models/provision-config.d.ts.map +1 -1
- package/dist/adminapi/models/replication-check-option.d.ts +25 -0
- package/dist/adminapi/models/replication-check-option.d.ts.map +1 -0
- package/dist/adminapi/models/replication-check-option.js +16 -0
- package/dist/adminapi/models/replication-check-option.js.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts +31 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js +16 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.d.ts +26 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.d.ts.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.js +16 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.js.map +1 -0
- package/dist/adminapi/models/scheduling-config.d.ts +14 -0
- package/dist/adminapi/models/scheduling-config.d.ts.map +1 -1
- package/dist/adminapi/models/system-component-scheduler-policy.d.ts +22 -0
- package/dist/adminapi/models/system-component-scheduler-policy.d.ts.map +1 -0
- package/dist/adminapi/models/system-component-scheduler-policy.js +26 -0
- package/dist/adminapi/models/system-component-scheduler-policy.js.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.d.ts +25 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.d.ts.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.js +16 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.js.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.d.ts +25 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.d.ts.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.js +16 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.js.map +1 -0
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/clickhouse-api.d.ts +995 -0
- package/dist/openapi/apis/clickhouse-api.d.ts.map +1 -0
- package/dist/openapi/apis/clickhouse-api.js +1107 -0
- package/dist/openapi/apis/clickhouse-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +951 -4
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +1104 -61
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/ck-account-type.d.ts +23 -0
- package/dist/openapi/models/ck-account-type.d.ts.map +1 -0
- package/dist/openapi/models/ck-account-type.js +27 -0
- package/dist/openapi/models/ck-account-type.js.map +1 -0
- package/dist/openapi/models/ck-account.d.ts +50 -0
- package/dist/openapi/models/ck-account.d.ts.map +1 -0
- package/dist/openapi/models/ck-account.js +16 -0
- package/dist/openapi/models/ck-account.js.map +1 -0
- package/dist/openapi/models/cluster-metrics.d.ts +4 -2
- package/dist/openapi/models/cluster-metrics.d.ts.map +1 -1
- package/dist/openapi/models/create-clickhouse-account-request.d.ts +37 -0
- package/dist/openapi/models/create-clickhouse-account-request.d.ts.map +1 -0
- package/dist/openapi/models/create-clickhouse-account-request.js +16 -0
- package/dist/openapi/models/create-clickhouse-account-request.js.map +1 -0
- package/dist/openapi/models/data-check-create.d.ts +6 -0
- package/dist/openapi/models/data-check-create.d.ts.map +1 -1
- package/dist/openapi/models/dms-ob-parameter.d.ts +4 -2
- package/dist/openapi/models/dms-ob-parameter.d.ts.map +1 -1
- package/dist/openapi/models/engine-mapping.d.ts +7 -0
- package/dist/openapi/models/engine-mapping.d.ts.map +1 -1
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.d.ts +49 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.d.ts.map +1 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.js +16 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.js.map +1 -0
- package/dist/openapi/models/index.d.ts +11 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +11 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts +31 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.js +16 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.js.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.d.ts +32 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.d.ts.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.js +16 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.js.map +1 -0
- package/dist/openapi/models/replication-check-option.d.ts +25 -0
- package/dist/openapi/models/replication-check-option.d.ts.map +1 -0
- package/dist/openapi/models/replication-check-option.js +16 -0
- package/dist/openapi/models/replication-check-option.js.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts +31 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js +16 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.d.ts +26 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.d.ts.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.js +16 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.js.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.d.ts +25 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.d.ts.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.js +16 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.js.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.d.ts +25 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.d.ts.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.js +16 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +13 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/clickhouse-api.ts +1735 -0
- package/src/adminapi/apis/shared-api.ts +2059 -394
- package/src/adminapi/models/ck-account-type.ts +32 -0
- package/src/adminapi/models/ck-account.ts +59 -0
- package/src/adminapi/models/cluster-metrics.ts +2 -2
- package/src/adminapi/models/create-clickhouse-account-request.ts +42 -0
- package/src/adminapi/models/dms-ob-parameter.ts +2 -2
- package/src/adminapi/models/engine-mapping.ts +9 -0
- package/src/adminapi/models/get-clickhouse-role-grants200-response-inner.ts +54 -0
- package/src/adminapi/models/index.ts +12 -0
- package/src/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.ts +36 -0
- package/src/adminapi/models/list-clickhouse-account-roles200-response.ts +39 -0
- package/src/adminapi/models/provision-config.ts +15 -0
- package/src/adminapi/models/replication-check-option.ts +30 -0
- package/src/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.ts +36 -0
- package/src/adminapi/models/revoke-clickhouse-role-privileges-request.ts +33 -0
- package/src/adminapi/models/scheduling-config.ts +18 -0
- package/src/adminapi/models/system-component-scheduler-policy.ts +31 -0
- package/src/adminapi/models/update-clickhouse-account-password-request.ts +30 -0
- package/src/adminapi/models/update-clickhouse-account-roles-request.ts +30 -0
- package/src/adminapi.yaml +713 -2
- package/src/openapi/.openapi-generator/FILES +12 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/clickhouse-api.ts +1735 -0
- package/src/openapi/apis/shared-api.ts +2059 -394
- package/src/openapi/models/ck-account-type.ts +32 -0
- package/src/openapi/models/ck-account.ts +59 -0
- package/src/openapi/models/cluster-metrics.ts +2 -2
- package/src/openapi/models/create-clickhouse-account-request.ts +42 -0
- package/src/openapi/models/data-check-create.ts +6 -0
- package/src/openapi/models/dms-ob-parameter.ts +2 -2
- package/src/openapi/models/engine-mapping.ts +9 -0
- package/src/openapi/models/get-clickhouse-role-grants200-response-inner.ts +54 -0
- package/src/openapi/models/index.ts +11 -0
- package/src/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.ts +36 -0
- package/src/openapi/models/list-clickhouse-account-roles200-response.ts +39 -0
- package/src/openapi/models/replication-check-option.ts +30 -0
- package/src/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.ts +36 -0
- package/src/openapi/models/revoke-clickhouse-role-privileges-request.ts +33 -0
- package/src/openapi/models/update-clickhouse-account-password-request.ts +30 -0
- package/src/openapi/models/update-clickhouse-account-roles-request.ts +30 -0
- package/src/openapi.yaml +699 -2
|
@@ -76,6 +76,8 @@ import type { BuildBackupObjRequest } from '../models';
|
|
|
76
76
|
// @ts-ignore
|
|
77
77
|
import type { CheckAPIKey } from '../models';
|
|
78
78
|
// @ts-ignore
|
|
79
|
+
import type { CkAccount } from '../models';
|
|
80
|
+
// @ts-ignore
|
|
79
81
|
import type { Class } from '../models';
|
|
80
82
|
// @ts-ignore
|
|
81
83
|
import type { Cluster } from '../models';
|
|
@@ -120,6 +122,8 @@ import type { ConsumerGroup } from '../models';
|
|
|
120
122
|
// @ts-ignore
|
|
121
123
|
import type { ConsumerGroupDescribe } from '../models';
|
|
122
124
|
// @ts-ignore
|
|
125
|
+
import type { CreateClickhouseAccountRequest } from '../models';
|
|
126
|
+
// @ts-ignore
|
|
123
127
|
import type { CreateIPWhitelistRequest } from '../models';
|
|
124
128
|
// @ts-ignore
|
|
125
129
|
import type { CreateTopicRequest } from '../models';
|
|
@@ -218,6 +222,8 @@ import type { FeatureList } from '../models';
|
|
|
218
222
|
// @ts-ignore
|
|
219
223
|
import type { FileEntryList } from '../models';
|
|
220
224
|
// @ts-ignore
|
|
225
|
+
import type { GetClickhouseRoleGrants200ResponseInner } from '../models';
|
|
226
|
+
// @ts-ignore
|
|
221
227
|
import type { HaHistoryList } from '../models';
|
|
222
228
|
// @ts-ignore
|
|
223
229
|
import type { ImportOpsType } from '../models';
|
|
@@ -246,6 +252,10 @@ import type { IpWhitelistList } from '../models';
|
|
|
246
252
|
// @ts-ignore
|
|
247
253
|
import type { KeyList } from '../models';
|
|
248
254
|
// @ts-ignore
|
|
255
|
+
import type { ListClickhouseAccountRoles200Response } from '../models';
|
|
256
|
+
// @ts-ignore
|
|
257
|
+
import type { ListClickhouseAccountRoles200ResponsePrivilegesInner } from '../models';
|
|
258
|
+
// @ts-ignore
|
|
249
259
|
import type { Llm } from '../models';
|
|
250
260
|
// @ts-ignore
|
|
251
261
|
import type { MetricsQueryType } from '../models';
|
|
@@ -364,6 +374,8 @@ import type { RestoreList } from '../models';
|
|
|
364
374
|
// @ts-ignore
|
|
365
375
|
import type { RestoreLog } from '../models';
|
|
366
376
|
// @ts-ignore
|
|
377
|
+
import type { RevokeClickhouseRolePrivilegesRequest } from '../models';
|
|
378
|
+
// @ts-ignore
|
|
367
379
|
import type { Role } from '../models';
|
|
368
380
|
// @ts-ignore
|
|
369
381
|
import type { RoleCreate } from '../models';
|
|
@@ -420,6 +432,10 @@ import type { URLCheck } from '../models';
|
|
|
420
432
|
// @ts-ignore
|
|
421
433
|
import type { UpdateBrokerConfigRequest } from '../models';
|
|
422
434
|
// @ts-ignore
|
|
435
|
+
import type { UpdateClickhouseAccountPasswordRequest } from '../models';
|
|
436
|
+
// @ts-ignore
|
|
437
|
+
import type { UpdateClickhouseAccountRolesRequest } from '../models';
|
|
438
|
+
// @ts-ignore
|
|
423
439
|
import type { UpdateTopicConfigRequest } from '../models';
|
|
424
440
|
/**
|
|
425
441
|
* SharedApi - axios parameter creator
|
|
@@ -1339,19 +1355,23 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1339
1355
|
},
|
|
1340
1356
|
/**
|
|
1341
1357
|
*
|
|
1342
|
-
* @summary Create
|
|
1343
|
-
* @param {string} orgName
|
|
1344
|
-
* @param {
|
|
1358
|
+
* @summary Create a ClickHouse account with optional roles
|
|
1359
|
+
* @param {string} orgName
|
|
1360
|
+
* @param {string} clusterName
|
|
1361
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
1345
1362
|
* @param {*} [options] Override http request option.
|
|
1346
1363
|
* @throws {RequiredError}
|
|
1347
1364
|
*/
|
|
1348
|
-
|
|
1365
|
+
createClickhouseAccount: async (orgName: string, clusterName: string, body: CreateClickhouseAccountRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1349
1366
|
// verify required parameter 'orgName' is not null or undefined
|
|
1350
|
-
assertParamExists('
|
|
1367
|
+
assertParamExists('createClickhouseAccount', 'orgName', orgName)
|
|
1368
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1369
|
+
assertParamExists('createClickhouseAccount', 'clusterName', clusterName)
|
|
1351
1370
|
// verify required parameter 'body' is not null or undefined
|
|
1352
|
-
assertParamExists('
|
|
1353
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters`
|
|
1354
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1371
|
+
assertParamExists('createClickhouseAccount', 'body', body)
|
|
1372
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1373
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1374
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1355
1375
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1356
1376
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1357
1377
|
let baseOptions;
|
|
@@ -1386,22 +1406,21 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1386
1406
|
},
|
|
1387
1407
|
/**
|
|
1388
1408
|
*
|
|
1389
|
-
* @summary Create
|
|
1390
|
-
* @param {string} orgName
|
|
1391
|
-
* @param {string} clusterName
|
|
1392
|
-
* @param {
|
|
1393
|
-
* @param {string} [component] name of the component
|
|
1409
|
+
* @summary Create a ClickHouse role with privileges
|
|
1410
|
+
* @param {string} orgName
|
|
1411
|
+
* @param {string} clusterName
|
|
1412
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
1394
1413
|
* @param {*} [options] Override http request option.
|
|
1395
1414
|
* @throws {RequiredError}
|
|
1396
1415
|
*/
|
|
1397
|
-
|
|
1416
|
+
createClickhouseRole: async (orgName: string, clusterName: string, body: ListClickhouseAccountRoles200Response, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1398
1417
|
// verify required parameter 'orgName' is not null or undefined
|
|
1399
|
-
assertParamExists('
|
|
1418
|
+
assertParamExists('createClickhouseRole', 'orgName', orgName)
|
|
1400
1419
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1401
|
-
assertParamExists('
|
|
1420
|
+
assertParamExists('createClickhouseRole', 'clusterName', clusterName)
|
|
1402
1421
|
// verify required parameter 'body' is not null or undefined
|
|
1403
|
-
assertParamExists('
|
|
1404
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
1422
|
+
assertParamExists('createClickhouseRole', 'body', body)
|
|
1423
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
1405
1424
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1406
1425
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1407
1426
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1422,10 +1441,6 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1422
1441
|
// authentication DigestAuth required
|
|
1423
1442
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1424
1443
|
|
|
1425
|
-
if (component !== undefined) {
|
|
1426
|
-
localVarQueryParameter['component'] = component;
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
1444
|
|
|
1430
1445
|
|
|
1431
1446
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1442,23 +1457,19 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1442
1457
|
},
|
|
1443
1458
|
/**
|
|
1444
1459
|
*
|
|
1445
|
-
* @summary
|
|
1460
|
+
* @summary Create new cluster
|
|
1446
1461
|
* @param {string} orgName name of the Org
|
|
1447
|
-
* @param {
|
|
1448
|
-
* @param {Datasource} datasource
|
|
1462
|
+
* @param {ClusterCreate} body
|
|
1449
1463
|
* @param {*} [options] Override http request option.
|
|
1450
1464
|
* @throws {RequiredError}
|
|
1451
1465
|
*/
|
|
1452
|
-
|
|
1466
|
+
createCluster: async (orgName: string, body: ClusterCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1453
1467
|
// verify required parameter 'orgName' is not null or undefined
|
|
1454
|
-
assertParamExists('
|
|
1455
|
-
// verify required parameter '
|
|
1456
|
-
assertParamExists('
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/createDS`
|
|
1460
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1461
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1468
|
+
assertParamExists('createCluster', 'orgName', orgName)
|
|
1469
|
+
// verify required parameter 'body' is not null or undefined
|
|
1470
|
+
assertParamExists('createCluster', 'body', body)
|
|
1471
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters`
|
|
1472
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
1462
1473
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1463
1474
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1464
1475
|
let baseOptions;
|
|
@@ -1484,7 +1495,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1484
1495
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1485
1496
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1486
1497
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1487
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1498
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1488
1499
|
|
|
1489
1500
|
return {
|
|
1490
1501
|
url: toPathString(localVarUrlObj),
|
|
@@ -1492,26 +1503,23 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1492
1503
|
};
|
|
1493
1504
|
},
|
|
1494
1505
|
/**
|
|
1495
|
-
*
|
|
1496
|
-
* @summary Create
|
|
1497
|
-
* @param {string} engineName name of the engine
|
|
1506
|
+
*
|
|
1507
|
+
* @summary Create backup
|
|
1498
1508
|
* @param {string} orgName name of the Org
|
|
1499
|
-
* @param {string} clusterName name of the
|
|
1500
|
-
* @param {
|
|
1509
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
1510
|
+
* @param {BackupCreate} body
|
|
1511
|
+
* @param {string} [component] name of the component
|
|
1501
1512
|
* @param {*} [options] Override http request option.
|
|
1502
1513
|
* @throws {RequiredError}
|
|
1503
1514
|
*/
|
|
1504
|
-
|
|
1505
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
1506
|
-
assertParamExists('createDatabase', 'engineName', engineName)
|
|
1515
|
+
createClusterBackup: async (orgName: string, clusterName: string, body: BackupCreate, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1507
1516
|
// verify required parameter 'orgName' is not null or undefined
|
|
1508
|
-
assertParamExists('
|
|
1517
|
+
assertParamExists('createClusterBackup', 'orgName', orgName)
|
|
1509
1518
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1510
|
-
assertParamExists('
|
|
1519
|
+
assertParamExists('createClusterBackup', 'clusterName', clusterName)
|
|
1511
1520
|
// verify required parameter 'body' is not null or undefined
|
|
1512
|
-
assertParamExists('
|
|
1513
|
-
const localVarPath = `/admin/v1/
|
|
1514
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1521
|
+
assertParamExists('createClusterBackup', 'body', body)
|
|
1522
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/backups`
|
|
1515
1523
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1516
1524
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1517
1525
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1532,6 +1540,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1532
1540
|
// authentication DigestAuth required
|
|
1533
1541
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1534
1542
|
|
|
1543
|
+
if (component !== undefined) {
|
|
1544
|
+
localVarQueryParameter['component'] = component;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1535
1547
|
|
|
1536
1548
|
|
|
1537
1549
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1547,22 +1559,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1547
1559
|
};
|
|
1548
1560
|
},
|
|
1549
1561
|
/**
|
|
1550
|
-
*
|
|
1551
|
-
* @summary
|
|
1562
|
+
*
|
|
1563
|
+
* @summary create the datasource
|
|
1552
1564
|
* @param {string} orgName name of the Org
|
|
1553
|
-
* @param {string} clusterName name of the
|
|
1554
|
-
* @param {
|
|
1565
|
+
* @param {string} clusterName name of the cluster
|
|
1566
|
+
* @param {Datasource} datasource
|
|
1555
1567
|
* @param {*} [options] Override http request option.
|
|
1556
1568
|
* @throws {RequiredError}
|
|
1557
1569
|
*/
|
|
1558
|
-
|
|
1570
|
+
createDataSourceV2: async (orgName: string, clusterName: string, datasource: Datasource, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1559
1571
|
// verify required parameter 'orgName' is not null or undefined
|
|
1560
|
-
assertParamExists('
|
|
1572
|
+
assertParamExists('createDataSourceV2', 'orgName', orgName)
|
|
1561
1573
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1562
|
-
assertParamExists('
|
|
1563
|
-
// verify required parameter '
|
|
1564
|
-
assertParamExists('
|
|
1565
|
-
const localVarPath = `/admin/v1/
|
|
1574
|
+
assertParamExists('createDataSourceV2', 'clusterName', clusterName)
|
|
1575
|
+
// verify required parameter 'datasource' is not null or undefined
|
|
1576
|
+
assertParamExists('createDataSourceV2', 'datasource', datasource)
|
|
1577
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/createDS`
|
|
1566
1578
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1567
1579
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1568
1580
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1590,7 +1602,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1590
1602
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1591
1603
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1592
1604
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1593
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1605
|
+
localVarRequestOptions.data = serializeDataIfNeeded(datasource, localVarRequestOptions, configuration)
|
|
1594
1606
|
|
|
1595
1607
|
return {
|
|
1596
1608
|
url: toPathString(localVarUrlObj),
|
|
@@ -1598,22 +1610,26 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1598
1610
|
};
|
|
1599
1611
|
},
|
|
1600
1612
|
/**
|
|
1601
|
-
*
|
|
1602
|
-
* @summary Create
|
|
1613
|
+
* create a database in cluster
|
|
1614
|
+
* @summary Create cluster database
|
|
1615
|
+
* @param {string} engineName name of the engine
|
|
1603
1616
|
* @param {string} orgName name of the Org
|
|
1604
1617
|
* @param {string} clusterName name of the Cluster
|
|
1605
|
-
* @param {
|
|
1618
|
+
* @param {Database} body
|
|
1606
1619
|
* @param {*} [options] Override http request option.
|
|
1607
1620
|
* @throws {RequiredError}
|
|
1608
1621
|
*/
|
|
1609
|
-
|
|
1622
|
+
createDatabase: async (engineName: string, orgName: string, clusterName: string, body: Database, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1623
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1624
|
+
assertParamExists('createDatabase', 'engineName', engineName)
|
|
1610
1625
|
// verify required parameter 'orgName' is not null or undefined
|
|
1611
|
-
assertParamExists('
|
|
1626
|
+
assertParamExists('createDatabase', 'orgName', orgName)
|
|
1612
1627
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1613
|
-
assertParamExists('
|
|
1628
|
+
assertParamExists('createDatabase', 'clusterName', clusterName)
|
|
1614
1629
|
// verify required parameter 'body' is not null or undefined
|
|
1615
|
-
assertParamExists('
|
|
1616
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
1630
|
+
assertParamExists('createDatabase', 'body', body)
|
|
1631
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/databases`
|
|
1632
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1617
1633
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1618
1634
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1619
1635
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1649,73 +1665,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1649
1665
|
};
|
|
1650
1666
|
},
|
|
1651
1667
|
/**
|
|
1652
|
-
*
|
|
1653
|
-
* @summary Create
|
|
1654
|
-
* @param {string} orgName Organization name
|
|
1655
|
-
* @param {string} clusterName Cluster name
|
|
1656
|
-
* @param {ImportTaskCreateRequest} importTaskCreateRequest Import task configuration including data source connection, object selection and import options
|
|
1657
|
-
* @param {*} [options] Override http request option.
|
|
1658
|
-
* @throws {RequiredError}
|
|
1659
|
-
*/
|
|
1660
|
-
createImportTask: async (orgName: string, clusterName: string, importTaskCreateRequest: ImportTaskCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1661
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
1662
|
-
assertParamExists('createImportTask', 'orgName', orgName)
|
|
1663
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
1664
|
-
assertParamExists('createImportTask', 'clusterName', clusterName)
|
|
1665
|
-
// verify required parameter 'importTaskCreateRequest' is not null or undefined
|
|
1666
|
-
assertParamExists('createImportTask', 'importTaskCreateRequest', importTaskCreateRequest)
|
|
1667
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/import`
|
|
1668
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1669
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1670
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1671
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1672
|
-
let baseOptions;
|
|
1673
|
-
if (configuration) {
|
|
1674
|
-
baseOptions = configuration.baseOptions;
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1678
|
-
const localVarHeaderParameter = {} as any;
|
|
1679
|
-
const localVarQueryParameter = {} as any;
|
|
1680
|
-
|
|
1681
|
-
// authentication BearerToken required
|
|
1682
|
-
// http bearer authentication required
|
|
1683
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1684
|
-
|
|
1685
|
-
// authentication DigestAuth required
|
|
1686
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1691
|
-
|
|
1692
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1693
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1694
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1695
|
-
localVarRequestOptions.data = serializeDataIfNeeded(importTaskCreateRequest, localVarRequestOptions, configuration)
|
|
1696
|
-
|
|
1697
|
-
return {
|
|
1698
|
-
url: toPathString(localVarUrlObj),
|
|
1699
|
-
options: localVarRequestOptions,
|
|
1700
|
-
};
|
|
1701
|
-
},
|
|
1702
|
-
/**
|
|
1703
|
-
* create an account in cluster
|
|
1704
|
-
* @summary Create cluster account
|
|
1668
|
+
* create an hive account
|
|
1669
|
+
* @summary Create Hive account
|
|
1705
1670
|
* @param {string} orgName name of the Org
|
|
1706
1671
|
* @param {string} clusterName name of the Cluster
|
|
1707
1672
|
* @param {Account} body
|
|
1708
1673
|
* @param {*} [options] Override http request option.
|
|
1709
1674
|
* @throws {RequiredError}
|
|
1710
1675
|
*/
|
|
1711
|
-
|
|
1676
|
+
createHiveAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1712
1677
|
// verify required parameter 'orgName' is not null or undefined
|
|
1713
|
-
assertParamExists('
|
|
1678
|
+
assertParamExists('createHiveAccount', 'orgName', orgName)
|
|
1714
1679
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1715
|
-
assertParamExists('
|
|
1680
|
+
assertParamExists('createHiveAccount', 'clusterName', clusterName)
|
|
1716
1681
|
// verify required parameter 'body' is not null or undefined
|
|
1717
|
-
assertParamExists('
|
|
1718
|
-
const localVarPath = `/admin/v1/data/
|
|
1682
|
+
assertParamExists('createHiveAccount', 'body', body)
|
|
1683
|
+
const localVarPath = `/admin/v1/data/hive/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1719
1684
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1720
1685
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1721
1686
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1752,72 +1717,225 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1752
1717
|
},
|
|
1753
1718
|
/**
|
|
1754
1719
|
*
|
|
1755
|
-
* @summary Create
|
|
1756
|
-
* @param {string} orgName The name of organization
|
|
1757
|
-
* @param {string} clusterName The name of cluster
|
|
1758
|
-
* @param {CreateTopicRequest} createTopicRequest
|
|
1759
|
-
* @param {*} [options] Override http request option.
|
|
1760
|
-
* @throws {RequiredError}
|
|
1761
|
-
*/
|
|
1762
|
-
createKafkaTopic: async (orgName: string, clusterName: string, createTopicRequest: CreateTopicRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1763
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
1764
|
-
assertParamExists('createKafkaTopic', 'orgName', orgName)
|
|
1765
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
1766
|
-
assertParamExists('createKafkaTopic', 'clusterName', clusterName)
|
|
1767
|
-
// verify required parameter 'createTopicRequest' is not null or undefined
|
|
1768
|
-
assertParamExists('createKafkaTopic', 'createTopicRequest', createTopicRequest)
|
|
1769
|
-
const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topics`
|
|
1770
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1771
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1772
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1773
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1774
|
-
let baseOptions;
|
|
1775
|
-
if (configuration) {
|
|
1776
|
-
baseOptions = configuration.baseOptions;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1780
|
-
const localVarHeaderParameter = {} as any;
|
|
1781
|
-
const localVarQueryParameter = {} as any;
|
|
1782
|
-
|
|
1783
|
-
// authentication BearerToken required
|
|
1784
|
-
// http bearer authentication required
|
|
1785
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1786
|
-
|
|
1787
|
-
// authentication DigestAuth required
|
|
1788
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1793
|
-
|
|
1794
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1795
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1796
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1797
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createTopicRequest, localVarRequestOptions, configuration)
|
|
1798
|
-
|
|
1799
|
-
return {
|
|
1800
|
-
url: toPathString(localVarUrlObj),
|
|
1801
|
-
options: localVarRequestOptions,
|
|
1802
|
-
};
|
|
1803
|
-
},
|
|
1804
|
-
/**
|
|
1805
|
-
* create an account in mongodb
|
|
1806
|
-
* @summary Create mongodb account
|
|
1720
|
+
* @summary Create IP whitelist
|
|
1807
1721
|
* @param {string} orgName name of the Org
|
|
1808
1722
|
* @param {string} clusterName name of the Cluster
|
|
1809
|
-
* @param {
|
|
1723
|
+
* @param {CreateIPWhitelistRequest} body
|
|
1810
1724
|
* @param {*} [options] Override http request option.
|
|
1811
1725
|
* @throws {RequiredError}
|
|
1812
1726
|
*/
|
|
1813
|
-
|
|
1727
|
+
createIPWhitelist: async (orgName: string, clusterName: string, body: CreateIPWhitelistRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1814
1728
|
// verify required parameter 'orgName' is not null or undefined
|
|
1815
|
-
assertParamExists('
|
|
1729
|
+
assertParamExists('createIPWhitelist', 'orgName', orgName)
|
|
1816
1730
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1817
|
-
assertParamExists('
|
|
1731
|
+
assertParamExists('createIPWhitelist', 'clusterName', clusterName)
|
|
1818
1732
|
// verify required parameter 'body' is not null or undefined
|
|
1819
|
-
assertParamExists('
|
|
1820
|
-
const localVarPath = `/admin/v1/
|
|
1733
|
+
assertParamExists('createIPWhitelist', 'body', body)
|
|
1734
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/ipWhitelist`
|
|
1735
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1736
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1737
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1738
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1739
|
+
let baseOptions;
|
|
1740
|
+
if (configuration) {
|
|
1741
|
+
baseOptions = configuration.baseOptions;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1745
|
+
const localVarHeaderParameter = {} as any;
|
|
1746
|
+
const localVarQueryParameter = {} as any;
|
|
1747
|
+
|
|
1748
|
+
// authentication BearerToken required
|
|
1749
|
+
// http bearer authentication required
|
|
1750
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1751
|
+
|
|
1752
|
+
// authentication DigestAuth required
|
|
1753
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1758
|
+
|
|
1759
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1760
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1761
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1762
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1763
|
+
|
|
1764
|
+
return {
|
|
1765
|
+
url: toPathString(localVarUrlObj),
|
|
1766
|
+
options: localVarRequestOptions,
|
|
1767
|
+
};
|
|
1768
|
+
},
|
|
1769
|
+
/**
|
|
1770
|
+
* Creates new data import task based on data source configuration and import options
|
|
1771
|
+
* @summary Create import task
|
|
1772
|
+
* @param {string} orgName Organization name
|
|
1773
|
+
* @param {string} clusterName Cluster name
|
|
1774
|
+
* @param {ImportTaskCreateRequest} importTaskCreateRequest Import task configuration including data source connection, object selection and import options
|
|
1775
|
+
* @param {*} [options] Override http request option.
|
|
1776
|
+
* @throws {RequiredError}
|
|
1777
|
+
*/
|
|
1778
|
+
createImportTask: async (orgName: string, clusterName: string, importTaskCreateRequest: ImportTaskCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1779
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1780
|
+
assertParamExists('createImportTask', 'orgName', orgName)
|
|
1781
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1782
|
+
assertParamExists('createImportTask', 'clusterName', clusterName)
|
|
1783
|
+
// verify required parameter 'importTaskCreateRequest' is not null or undefined
|
|
1784
|
+
assertParamExists('createImportTask', 'importTaskCreateRequest', importTaskCreateRequest)
|
|
1785
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/import`
|
|
1786
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1787
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1788
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1789
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1790
|
+
let baseOptions;
|
|
1791
|
+
if (configuration) {
|
|
1792
|
+
baseOptions = configuration.baseOptions;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1796
|
+
const localVarHeaderParameter = {} as any;
|
|
1797
|
+
const localVarQueryParameter = {} as any;
|
|
1798
|
+
|
|
1799
|
+
// authentication BearerToken required
|
|
1800
|
+
// http bearer authentication required
|
|
1801
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1802
|
+
|
|
1803
|
+
// authentication DigestAuth required
|
|
1804
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1805
|
+
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1809
|
+
|
|
1810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1812
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1813
|
+
localVarRequestOptions.data = serializeDataIfNeeded(importTaskCreateRequest, localVarRequestOptions, configuration)
|
|
1814
|
+
|
|
1815
|
+
return {
|
|
1816
|
+
url: toPathString(localVarUrlObj),
|
|
1817
|
+
options: localVarRequestOptions,
|
|
1818
|
+
};
|
|
1819
|
+
},
|
|
1820
|
+
/**
|
|
1821
|
+
* create an account in cluster
|
|
1822
|
+
* @summary Create cluster account
|
|
1823
|
+
* @param {string} orgName name of the Org
|
|
1824
|
+
* @param {string} clusterName name of the Cluster
|
|
1825
|
+
* @param {Account} body
|
|
1826
|
+
* @param {*} [options] Override http request option.
|
|
1827
|
+
* @throws {RequiredError}
|
|
1828
|
+
*/
|
|
1829
|
+
createKafkaAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1830
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1831
|
+
assertParamExists('createKafkaAccount', 'orgName', orgName)
|
|
1832
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1833
|
+
assertParamExists('createKafkaAccount', 'clusterName', clusterName)
|
|
1834
|
+
// verify required parameter 'body' is not null or undefined
|
|
1835
|
+
assertParamExists('createKafkaAccount', 'body', body)
|
|
1836
|
+
const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1837
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1838
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1839
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1840
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1841
|
+
let baseOptions;
|
|
1842
|
+
if (configuration) {
|
|
1843
|
+
baseOptions = configuration.baseOptions;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1847
|
+
const localVarHeaderParameter = {} as any;
|
|
1848
|
+
const localVarQueryParameter = {} as any;
|
|
1849
|
+
|
|
1850
|
+
// authentication BearerToken required
|
|
1851
|
+
// http bearer authentication required
|
|
1852
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1853
|
+
|
|
1854
|
+
// authentication DigestAuth required
|
|
1855
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1860
|
+
|
|
1861
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1862
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1863
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1864
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1865
|
+
|
|
1866
|
+
return {
|
|
1867
|
+
url: toPathString(localVarUrlObj),
|
|
1868
|
+
options: localVarRequestOptions,
|
|
1869
|
+
};
|
|
1870
|
+
},
|
|
1871
|
+
/**
|
|
1872
|
+
*
|
|
1873
|
+
* @summary Create new topic
|
|
1874
|
+
* @param {string} orgName The name of organization
|
|
1875
|
+
* @param {string} clusterName The name of cluster
|
|
1876
|
+
* @param {CreateTopicRequest} createTopicRequest
|
|
1877
|
+
* @param {*} [options] Override http request option.
|
|
1878
|
+
* @throws {RequiredError}
|
|
1879
|
+
*/
|
|
1880
|
+
createKafkaTopic: async (orgName: string, clusterName: string, createTopicRequest: CreateTopicRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1881
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1882
|
+
assertParamExists('createKafkaTopic', 'orgName', orgName)
|
|
1883
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1884
|
+
assertParamExists('createKafkaTopic', 'clusterName', clusterName)
|
|
1885
|
+
// verify required parameter 'createTopicRequest' is not null or undefined
|
|
1886
|
+
assertParamExists('createKafkaTopic', 'createTopicRequest', createTopicRequest)
|
|
1887
|
+
const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topics`
|
|
1888
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1889
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1890
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1891
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1892
|
+
let baseOptions;
|
|
1893
|
+
if (configuration) {
|
|
1894
|
+
baseOptions = configuration.baseOptions;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1898
|
+
const localVarHeaderParameter = {} as any;
|
|
1899
|
+
const localVarQueryParameter = {} as any;
|
|
1900
|
+
|
|
1901
|
+
// authentication BearerToken required
|
|
1902
|
+
// http bearer authentication required
|
|
1903
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1904
|
+
|
|
1905
|
+
// authentication DigestAuth required
|
|
1906
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1911
|
+
|
|
1912
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1913
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1914
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1915
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createTopicRequest, localVarRequestOptions, configuration)
|
|
1916
|
+
|
|
1917
|
+
return {
|
|
1918
|
+
url: toPathString(localVarUrlObj),
|
|
1919
|
+
options: localVarRequestOptions,
|
|
1920
|
+
};
|
|
1921
|
+
},
|
|
1922
|
+
/**
|
|
1923
|
+
* create an account in mongodb
|
|
1924
|
+
* @summary Create mongodb account
|
|
1925
|
+
* @param {string} orgName name of the Org
|
|
1926
|
+
* @param {string} clusterName name of the Cluster
|
|
1927
|
+
* @param {Account} body
|
|
1928
|
+
* @param {*} [options] Override http request option.
|
|
1929
|
+
* @throws {RequiredError}
|
|
1930
|
+
*/
|
|
1931
|
+
createMongoDBAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1932
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1933
|
+
assertParamExists('createMongoDBAccount', 'orgName', orgName)
|
|
1934
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1935
|
+
assertParamExists('createMongoDBAccount', 'clusterName', clusterName)
|
|
1936
|
+
// verify required parameter 'body' is not null or undefined
|
|
1937
|
+
assertParamExists('createMongoDBAccount', 'body', body)
|
|
1938
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1821
1939
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1822
1940
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1823
1941
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2552,74 +2670,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2552
2670
|
},
|
|
2553
2671
|
/**
|
|
2554
2672
|
*
|
|
2555
|
-
* @summary Delete
|
|
2556
|
-
* @param {string} orgName
|
|
2557
|
-
* @param {string} clusterName
|
|
2558
|
-
* @param {
|
|
2559
|
-
* @param {*} [options] Override http request option.
|
|
2560
|
-
* @throws {RequiredError}
|
|
2561
|
-
*/
|
|
2562
|
-
deleteCluster: async (orgName: string, clusterName: string, force?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2563
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
2564
|
-
assertParamExists('deleteCluster', 'orgName', orgName)
|
|
2565
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
2566
|
-
assertParamExists('deleteCluster', 'clusterName', clusterName)
|
|
2567
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}`
|
|
2568
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2569
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2570
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2571
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2572
|
-
let baseOptions;
|
|
2573
|
-
if (configuration) {
|
|
2574
|
-
baseOptions = configuration.baseOptions;
|
|
2575
|
-
}
|
|
2576
|
-
|
|
2577
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2578
|
-
const localVarHeaderParameter = {} as any;
|
|
2579
|
-
const localVarQueryParameter = {} as any;
|
|
2580
|
-
|
|
2581
|
-
// authentication BearerToken required
|
|
2582
|
-
// http bearer authentication required
|
|
2583
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2584
|
-
|
|
2585
|
-
// authentication DigestAuth required
|
|
2586
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2587
|
-
|
|
2588
|
-
if (force !== undefined) {
|
|
2589
|
-
localVarQueryParameter['force'] = force;
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2595
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2596
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2597
|
-
|
|
2598
|
-
return {
|
|
2599
|
-
url: toPathString(localVarUrlObj),
|
|
2600
|
-
options: localVarRequestOptions,
|
|
2601
|
-
};
|
|
2602
|
-
},
|
|
2603
|
-
/**
|
|
2604
|
-
*
|
|
2605
|
-
* @summary delete the datasource
|
|
2606
|
-
* @param {string} orgName name of the Org
|
|
2607
|
-
* @param {string} clusterName name of the cluster
|
|
2608
|
-
* @param {string} id id of the datasource
|
|
2673
|
+
* @summary Delete a ClickHouse account
|
|
2674
|
+
* @param {string} orgName
|
|
2675
|
+
* @param {string} clusterName
|
|
2676
|
+
* @param {string} accountName
|
|
2609
2677
|
* @param {*} [options] Override http request option.
|
|
2610
2678
|
* @throws {RequiredError}
|
|
2611
2679
|
*/
|
|
2612
|
-
|
|
2680
|
+
deleteClickhouseAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2613
2681
|
// verify required parameter 'orgName' is not null or undefined
|
|
2614
|
-
assertParamExists('
|
|
2682
|
+
assertParamExists('deleteClickhouseAccount', 'orgName', orgName)
|
|
2615
2683
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2616
|
-
assertParamExists('
|
|
2617
|
-
// verify required parameter '
|
|
2618
|
-
assertParamExists('
|
|
2619
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
2684
|
+
assertParamExists('deleteClickhouseAccount', 'clusterName', clusterName)
|
|
2685
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2686
|
+
assertParamExists('deleteClickhouseAccount', 'accountName', accountName)
|
|
2687
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
2620
2688
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2621
2689
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2622
|
-
.replace(`{${"
|
|
2690
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2623
2691
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2624
2692
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2625
2693
|
let baseOptions;
|
|
@@ -2650,29 +2718,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2650
2718
|
};
|
|
2651
2719
|
},
|
|
2652
2720
|
/**
|
|
2653
|
-
*
|
|
2654
|
-
* @summary Delete
|
|
2655
|
-
* @param {string}
|
|
2656
|
-
* @param {string}
|
|
2657
|
-
* @param {string}
|
|
2658
|
-
* @param {string} databaseName name of database
|
|
2721
|
+
*
|
|
2722
|
+
* @summary Delete a ClickHouse role
|
|
2723
|
+
* @param {string} orgName
|
|
2724
|
+
* @param {string} clusterName
|
|
2725
|
+
* @param {string} roleName
|
|
2659
2726
|
* @param {*} [options] Override http request option.
|
|
2660
2727
|
* @throws {RequiredError}
|
|
2661
2728
|
*/
|
|
2662
|
-
|
|
2663
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
2664
|
-
assertParamExists('deleteDatabase', 'engineName', engineName)
|
|
2729
|
+
deleteClickhouseRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2665
2730
|
// verify required parameter 'orgName' is not null or undefined
|
|
2666
|
-
assertParamExists('
|
|
2731
|
+
assertParamExists('deleteClickhouseRole', 'orgName', orgName)
|
|
2667
2732
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2668
|
-
assertParamExists('
|
|
2669
|
-
// verify required parameter '
|
|
2670
|
-
assertParamExists('
|
|
2671
|
-
const localVarPath = `/admin/v1/data/
|
|
2672
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2733
|
+
assertParamExists('deleteClickhouseRole', 'clusterName', clusterName)
|
|
2734
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
2735
|
+
assertParamExists('deleteClickhouseRole', 'roleName', roleName)
|
|
2736
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
2673
2737
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2674
2738
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2675
|
-
.replace(`{${"
|
|
2739
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
2676
2740
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2677
2741
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2678
2742
|
let baseOptions;
|
|
@@ -2704,24 +2768,21 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2704
2768
|
},
|
|
2705
2769
|
/**
|
|
2706
2770
|
*
|
|
2707
|
-
* @summary Delete
|
|
2708
|
-
* @param {string} orgName
|
|
2709
|
-
* @param {string} clusterName
|
|
2710
|
-
* @param {
|
|
2771
|
+
* @summary Delete cluster
|
|
2772
|
+
* @param {string} orgName name of the Org
|
|
2773
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
2774
|
+
* @param {boolean} [force] if it is true, the cluster will be deleted no matter what the termination policy is, and will not be moved to the recycle bin.
|
|
2711
2775
|
* @param {*} [options] Override http request option.
|
|
2712
2776
|
* @throws {RequiredError}
|
|
2713
2777
|
*/
|
|
2714
|
-
|
|
2778
|
+
deleteCluster: async (orgName: string, clusterName: string, force?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2715
2779
|
// verify required parameter 'orgName' is not null or undefined
|
|
2716
|
-
assertParamExists('
|
|
2780
|
+
assertParamExists('deleteCluster', 'orgName', orgName)
|
|
2717
2781
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2718
|
-
assertParamExists('
|
|
2719
|
-
|
|
2720
|
-
assertParamExists('deleteElasticsearchSecurityRole', 'roleName', roleName)
|
|
2721
|
-
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
2782
|
+
assertParamExists('deleteCluster', 'clusterName', clusterName)
|
|
2783
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}`
|
|
2722
2784
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2723
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2724
|
-
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
2785
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2725
2786
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2726
2787
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2727
2788
|
let baseOptions;
|
|
@@ -2740,6 +2801,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2740
2801
|
// authentication DigestAuth required
|
|
2741
2802
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2742
2803
|
|
|
2804
|
+
if (force !== undefined) {
|
|
2805
|
+
localVarQueryParameter['force'] = force;
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2743
2808
|
|
|
2744
2809
|
|
|
2745
2810
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2753,24 +2818,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2753
2818
|
},
|
|
2754
2819
|
/**
|
|
2755
2820
|
*
|
|
2756
|
-
* @summary
|
|
2757
|
-
* @param {string} orgName
|
|
2758
|
-
* @param {string} clusterName
|
|
2759
|
-
* @param {string}
|
|
2821
|
+
* @summary delete the datasource
|
|
2822
|
+
* @param {string} orgName name of the Org
|
|
2823
|
+
* @param {string} clusterName name of the cluster
|
|
2824
|
+
* @param {string} id id of the datasource
|
|
2760
2825
|
* @param {*} [options] Override http request option.
|
|
2761
2826
|
* @throws {RequiredError}
|
|
2762
2827
|
*/
|
|
2763
|
-
|
|
2828
|
+
deleteDataSourceV2: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2764
2829
|
// verify required parameter 'orgName' is not null or undefined
|
|
2765
|
-
assertParamExists('
|
|
2830
|
+
assertParamExists('deleteDataSourceV2', 'orgName', orgName)
|
|
2766
2831
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2767
|
-
assertParamExists('
|
|
2768
|
-
// verify required parameter '
|
|
2769
|
-
assertParamExists('
|
|
2770
|
-
const localVarPath = `/admin/v1/
|
|
2832
|
+
assertParamExists('deleteDataSourceV2', 'clusterName', clusterName)
|
|
2833
|
+
// verify required parameter 'id' is not null or undefined
|
|
2834
|
+
assertParamExists('deleteDataSourceV2', 'id', id)
|
|
2835
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}`
|
|
2771
2836
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2772
2837
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2773
|
-
.replace(`{${"
|
|
2838
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2774
2839
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2775
2840
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2776
2841
|
let baseOptions;
|
|
@@ -2801,25 +2866,29 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2801
2866
|
};
|
|
2802
2867
|
},
|
|
2803
2868
|
/**
|
|
2804
|
-
*
|
|
2805
|
-
* @summary Delete
|
|
2806
|
-
* @param {string}
|
|
2807
|
-
* @param {string}
|
|
2808
|
-
* @param {string}
|
|
2869
|
+
* delete a database in cluster
|
|
2870
|
+
* @summary Delete cluster database
|
|
2871
|
+
* @param {string} engineName name of the engine
|
|
2872
|
+
* @param {string} orgName name of the Org
|
|
2873
|
+
* @param {string} clusterName name of the Cluster
|
|
2874
|
+
* @param {string} databaseName name of database
|
|
2809
2875
|
* @param {*} [options] Override http request option.
|
|
2810
2876
|
* @throws {RequiredError}
|
|
2811
2877
|
*/
|
|
2812
|
-
|
|
2878
|
+
deleteDatabase: async (engineName: string, orgName: string, clusterName: string, databaseName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2879
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
2880
|
+
assertParamExists('deleteDatabase', 'engineName', engineName)
|
|
2813
2881
|
// verify required parameter 'orgName' is not null or undefined
|
|
2814
|
-
assertParamExists('
|
|
2882
|
+
assertParamExists('deleteDatabase', 'orgName', orgName)
|
|
2815
2883
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2816
|
-
assertParamExists('
|
|
2817
|
-
// verify required parameter '
|
|
2818
|
-
assertParamExists('
|
|
2819
|
-
const localVarPath = `/admin/v1/data/
|
|
2884
|
+
assertParamExists('deleteDatabase', 'clusterName', clusterName)
|
|
2885
|
+
// verify required parameter 'databaseName' is not null or undefined
|
|
2886
|
+
assertParamExists('deleteDatabase', 'databaseName', databaseName)
|
|
2887
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/databases/{databaseName}`
|
|
2888
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2820
2889
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2821
2890
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2822
|
-
.replace(`{${"
|
|
2891
|
+
.replace(`{${"databaseName"}}`, encodeURIComponent(String(databaseName)));
|
|
2823
2892
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2824
2893
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2825
2894
|
let baseOptions;
|
|
@@ -2850,25 +2919,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2850
2919
|
};
|
|
2851
2920
|
},
|
|
2852
2921
|
/**
|
|
2853
|
-
*
|
|
2854
|
-
* @summary Delete
|
|
2855
|
-
* @param {string} orgName
|
|
2856
|
-
* @param {string} clusterName
|
|
2857
|
-
* @param {string}
|
|
2922
|
+
*
|
|
2923
|
+
* @summary Delete Elasticsearch security role
|
|
2924
|
+
* @param {string} orgName
|
|
2925
|
+
* @param {string} clusterName
|
|
2926
|
+
* @param {string} roleName
|
|
2858
2927
|
* @param {*} [options] Override http request option.
|
|
2859
2928
|
* @throws {RequiredError}
|
|
2860
2929
|
*/
|
|
2861
|
-
|
|
2930
|
+
deleteElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2862
2931
|
// verify required parameter 'orgName' is not null or undefined
|
|
2863
|
-
assertParamExists('
|
|
2932
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'orgName', orgName)
|
|
2864
2933
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2865
|
-
assertParamExists('
|
|
2866
|
-
// verify required parameter '
|
|
2867
|
-
assertParamExists('
|
|
2868
|
-
const localVarPath = `/admin/v1/data/
|
|
2934
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'clusterName', clusterName)
|
|
2935
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
2936
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'roleName', roleName)
|
|
2937
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
2869
2938
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2870
2939
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2871
|
-
.replace(`{${"
|
|
2940
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
2872
2941
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2873
2942
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2874
2943
|
let baseOptions;
|
|
@@ -2900,24 +2969,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2900
2969
|
},
|
|
2901
2970
|
/**
|
|
2902
2971
|
*
|
|
2903
|
-
* @summary Delete
|
|
2904
|
-
* @param {string} orgName
|
|
2905
|
-
* @param {string} clusterName
|
|
2906
|
-
* @param {string}
|
|
2972
|
+
* @summary Delete Elasticsearch security role mapping
|
|
2973
|
+
* @param {string} orgName
|
|
2974
|
+
* @param {string} clusterName
|
|
2975
|
+
* @param {string} mappingName
|
|
2907
2976
|
* @param {*} [options] Override http request option.
|
|
2908
2977
|
* @throws {RequiredError}
|
|
2909
2978
|
*/
|
|
2910
|
-
|
|
2979
|
+
deleteElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2911
2980
|
// verify required parameter 'orgName' is not null or undefined
|
|
2912
|
-
assertParamExists('
|
|
2981
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'orgName', orgName)
|
|
2913
2982
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2914
|
-
assertParamExists('
|
|
2915
|
-
// verify required parameter '
|
|
2916
|
-
assertParamExists('
|
|
2917
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
2983
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
|
|
2984
|
+
// verify required parameter 'mappingName' is not null or undefined
|
|
2985
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
|
|
2986
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
|
|
2918
2987
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2919
2988
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2920
|
-
.replace(`{${"
|
|
2989
|
+
.replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
|
|
2921
2990
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2922
2991
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2923
2992
|
let baseOptions;
|
|
@@ -2948,25 +3017,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2948
3017
|
};
|
|
2949
3018
|
},
|
|
2950
3019
|
/**
|
|
2951
|
-
*
|
|
2952
|
-
* @summary Delete
|
|
2953
|
-
* @param {string} orgName
|
|
2954
|
-
* @param {string} clusterName
|
|
2955
|
-
* @param {string}
|
|
3020
|
+
*
|
|
3021
|
+
* @summary Delete Elasticsearch security user
|
|
3022
|
+
* @param {string} orgName
|
|
3023
|
+
* @param {string} clusterName
|
|
3024
|
+
* @param {string} username
|
|
2956
3025
|
* @param {*} [options] Override http request option.
|
|
2957
3026
|
* @throws {RequiredError}
|
|
2958
3027
|
*/
|
|
2959
|
-
|
|
3028
|
+
deleteElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2960
3029
|
// verify required parameter 'orgName' is not null or undefined
|
|
2961
|
-
assertParamExists('
|
|
3030
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'orgName', orgName)
|
|
2962
3031
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2963
|
-
assertParamExists('
|
|
2964
|
-
// verify required parameter '
|
|
2965
|
-
assertParamExists('
|
|
2966
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
3032
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'clusterName', clusterName)
|
|
3033
|
+
// verify required parameter 'username' is not null or undefined
|
|
3034
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'username', username)
|
|
3035
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
2967
3036
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2968
3037
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2969
|
-
.replace(`{${"
|
|
3038
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
2970
3039
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2971
3040
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2972
3041
|
let baseOptions;
|
|
@@ -2997,22 +3066,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2997
3066
|
};
|
|
2998
3067
|
},
|
|
2999
3068
|
/**
|
|
3000
|
-
* delete an account in cluster
|
|
3001
|
-
* @summary Delete
|
|
3002
|
-
* @param {string} orgName name of the
|
|
3003
|
-
* @param {string} clusterName name of the
|
|
3004
|
-
* @param {string} accountName name of the
|
|
3069
|
+
* delete an hive account in cluster
|
|
3070
|
+
* @summary Delete hive account
|
|
3071
|
+
* @param {string} orgName name of the organization
|
|
3072
|
+
* @param {string} clusterName name of the cluster
|
|
3073
|
+
* @param {string} accountName name of the account
|
|
3005
3074
|
* @param {*} [options] Override http request option.
|
|
3006
3075
|
* @throws {RequiredError}
|
|
3007
3076
|
*/
|
|
3008
|
-
|
|
3077
|
+
deleteHiveAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3009
3078
|
// verify required parameter 'orgName' is not null or undefined
|
|
3010
|
-
assertParamExists('
|
|
3079
|
+
assertParamExists('deleteHiveAccount', 'orgName', orgName)
|
|
3011
3080
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3012
|
-
assertParamExists('
|
|
3081
|
+
assertParamExists('deleteHiveAccount', 'clusterName', clusterName)
|
|
3013
3082
|
// verify required parameter 'accountName' is not null or undefined
|
|
3014
|
-
assertParamExists('
|
|
3015
|
-
const localVarPath = `/admin/v1/data/
|
|
3083
|
+
assertParamExists('deleteHiveAccount', 'accountName', accountName)
|
|
3084
|
+
const localVarPath = `/admin/v1/data/hive/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
3016
3085
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3017
3086
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3018
3087
|
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
@@ -3047,24 +3116,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3047
3116
|
},
|
|
3048
3117
|
/**
|
|
3049
3118
|
*
|
|
3050
|
-
* @summary Delete
|
|
3051
|
-
* @param {string} orgName
|
|
3052
|
-
* @param {string} clusterName
|
|
3053
|
-
* @param {string}
|
|
3119
|
+
* @summary Delete IP whitelist
|
|
3120
|
+
* @param {string} orgName name of the Org
|
|
3121
|
+
* @param {string} clusterName name of the Cluster
|
|
3122
|
+
* @param {string} ipWhitelistId ID of the IP whitelist
|
|
3054
3123
|
* @param {*} [options] Override http request option.
|
|
3055
3124
|
* @throws {RequiredError}
|
|
3056
3125
|
*/
|
|
3057
|
-
|
|
3126
|
+
deleteIPWhiteList: async (orgName: string, clusterName: string, ipWhitelistId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3058
3127
|
// verify required parameter 'orgName' is not null or undefined
|
|
3059
|
-
assertParamExists('
|
|
3128
|
+
assertParamExists('deleteIPWhiteList', 'orgName', orgName)
|
|
3060
3129
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3061
|
-
assertParamExists('
|
|
3062
|
-
// verify required parameter '
|
|
3063
|
-
assertParamExists('
|
|
3064
|
-
const localVarPath = `/admin/v1/
|
|
3130
|
+
assertParamExists('deleteIPWhiteList', 'clusterName', clusterName)
|
|
3131
|
+
// verify required parameter 'ipWhitelistId' is not null or undefined
|
|
3132
|
+
assertParamExists('deleteIPWhiteList', 'ipWhitelistId', ipWhitelistId)
|
|
3133
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/ipWhitelist/{ipWhitelistId}`
|
|
3065
3134
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3066
3135
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3067
|
-
.replace(`{${"
|
|
3136
|
+
.replace(`{${"ipWhitelistId"}}`, encodeURIComponent(String(ipWhitelistId)));
|
|
3068
3137
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3069
3138
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3070
3139
|
let baseOptions;
|
|
@@ -3095,25 +3164,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3095
3164
|
};
|
|
3096
3165
|
},
|
|
3097
3166
|
/**
|
|
3098
|
-
*
|
|
3099
|
-
* @summary Delete
|
|
3100
|
-
* @param {string} orgName
|
|
3101
|
-
* @param {string} clusterName
|
|
3102
|
-
* @param {string}
|
|
3167
|
+
* Stops and deletes specified import task, will clean up related Kubernetes resources
|
|
3168
|
+
* @summary Delete import task
|
|
3169
|
+
* @param {string} orgName Organization name
|
|
3170
|
+
* @param {string} clusterName Cluster name
|
|
3171
|
+
* @param {string} id Import task ID
|
|
3103
3172
|
* @param {*} [options] Override http request option.
|
|
3104
3173
|
* @throws {RequiredError}
|
|
3105
3174
|
*/
|
|
3106
|
-
|
|
3175
|
+
deleteImportTask: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3107
3176
|
// verify required parameter 'orgName' is not null or undefined
|
|
3108
|
-
assertParamExists('
|
|
3177
|
+
assertParamExists('deleteImportTask', 'orgName', orgName)
|
|
3109
3178
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3110
|
-
assertParamExists('
|
|
3111
|
-
// verify required parameter '
|
|
3112
|
-
assertParamExists('
|
|
3113
|
-
const localVarPath = `/admin/v1/
|
|
3179
|
+
assertParamExists('deleteImportTask', 'clusterName', clusterName)
|
|
3180
|
+
// verify required parameter 'id' is not null or undefined
|
|
3181
|
+
assertParamExists('deleteImportTask', 'id', id)
|
|
3182
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/import/{id}`
|
|
3114
3183
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3115
3184
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3116
|
-
.replace(`{${"
|
|
3185
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3117
3186
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3118
3187
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3119
3188
|
let baseOptions;
|
|
@@ -3144,25 +3213,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3144
3213
|
};
|
|
3145
3214
|
},
|
|
3146
3215
|
/**
|
|
3147
|
-
*
|
|
3148
|
-
* @summary Delete
|
|
3216
|
+
* delete an account in cluster
|
|
3217
|
+
* @summary Delete cluster account
|
|
3149
3218
|
* @param {string} orgName name of the Org
|
|
3150
3219
|
* @param {string} clusterName name of the Cluster
|
|
3151
|
-
* @param {string}
|
|
3220
|
+
* @param {string} accountName name of the Cluster
|
|
3152
3221
|
* @param {*} [options] Override http request option.
|
|
3153
3222
|
* @throws {RequiredError}
|
|
3154
3223
|
*/
|
|
3155
|
-
|
|
3224
|
+
deleteKafkaAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3156
3225
|
// verify required parameter 'orgName' is not null or undefined
|
|
3157
|
-
assertParamExists('
|
|
3226
|
+
assertParamExists('deleteKafkaAccount', 'orgName', orgName)
|
|
3158
3227
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3159
|
-
assertParamExists('
|
|
3160
|
-
// verify required parameter '
|
|
3161
|
-
assertParamExists('
|
|
3162
|
-
const localVarPath = `/admin/v1/data/
|
|
3228
|
+
assertParamExists('deleteKafkaAccount', 'clusterName', clusterName)
|
|
3229
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
3230
|
+
assertParamExists('deleteKafkaAccount', 'accountName', accountName)
|
|
3231
|
+
const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
3163
3232
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3164
3233
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3165
|
-
.replace(`{${"
|
|
3234
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
3166
3235
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3167
3236
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3168
3237
|
let baseOptions;
|
|
@@ -3193,25 +3262,172 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3193
3262
|
};
|
|
3194
3263
|
},
|
|
3195
3264
|
/**
|
|
3196
|
-
*
|
|
3197
|
-
* @summary Delete
|
|
3198
|
-
* @param {string} orgName name of
|
|
3199
|
-
* @param {string} clusterName name of
|
|
3200
|
-
* @param {string}
|
|
3265
|
+
*
|
|
3266
|
+
* @summary Delete consumer group
|
|
3267
|
+
* @param {string} orgName The name of organization
|
|
3268
|
+
* @param {string} clusterName The name of cluster
|
|
3269
|
+
* @param {string} groupId The id of consumer group
|
|
3201
3270
|
* @param {*} [options] Override http request option.
|
|
3202
3271
|
* @throws {RequiredError}
|
|
3203
3272
|
*/
|
|
3204
|
-
|
|
3273
|
+
deleteKafkaConsumerGroup: async (orgName: string, clusterName: string, groupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3205
3274
|
// verify required parameter 'orgName' is not null or undefined
|
|
3206
|
-
assertParamExists('
|
|
3275
|
+
assertParamExists('deleteKafkaConsumerGroup', 'orgName', orgName)
|
|
3207
3276
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3208
|
-
assertParamExists('
|
|
3209
|
-
// verify required parameter '
|
|
3210
|
-
assertParamExists('
|
|
3211
|
-
const localVarPath = `/admin/v1/data/
|
|
3277
|
+
assertParamExists('deleteKafkaConsumerGroup', 'clusterName', clusterName)
|
|
3278
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
3279
|
+
assertParamExists('deleteKafkaConsumerGroup', 'groupId', groupId)
|
|
3280
|
+
const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/consumer-groups/{groupId}`
|
|
3212
3281
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3213
3282
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3214
|
-
.replace(`{${"
|
|
3283
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
3284
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3285
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3286
|
+
let baseOptions;
|
|
3287
|
+
if (configuration) {
|
|
3288
|
+
baseOptions = configuration.baseOptions;
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3291
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3292
|
+
const localVarHeaderParameter = {} as any;
|
|
3293
|
+
const localVarQueryParameter = {} as any;
|
|
3294
|
+
|
|
3295
|
+
// authentication BearerToken required
|
|
3296
|
+
// http bearer authentication required
|
|
3297
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3298
|
+
|
|
3299
|
+
// authentication DigestAuth required
|
|
3300
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3301
|
+
|
|
3302
|
+
|
|
3303
|
+
|
|
3304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3306
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3307
|
+
|
|
3308
|
+
return {
|
|
3309
|
+
url: toPathString(localVarUrlObj),
|
|
3310
|
+
options: localVarRequestOptions,
|
|
3311
|
+
};
|
|
3312
|
+
},
|
|
3313
|
+
/**
|
|
3314
|
+
*
|
|
3315
|
+
* @summary Delete topic
|
|
3316
|
+
* @param {string} orgName The name of organization
|
|
3317
|
+
* @param {string} clusterName The name of cluster
|
|
3318
|
+
* @param {string} topic
|
|
3319
|
+
* @param {*} [options] Override http request option.
|
|
3320
|
+
* @throws {RequiredError}
|
|
3321
|
+
*/
|
|
3322
|
+
deleteKafkaTopic: async (orgName: string, clusterName: string, topic: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3323
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3324
|
+
assertParamExists('deleteKafkaTopic', 'orgName', orgName)
|
|
3325
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3326
|
+
assertParamExists('deleteKafkaTopic', 'clusterName', clusterName)
|
|
3327
|
+
// verify required parameter 'topic' is not null or undefined
|
|
3328
|
+
assertParamExists('deleteKafkaTopic', 'topic', topic)
|
|
3329
|
+
const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}`
|
|
3330
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3331
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3332
|
+
.replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
|
|
3333
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3334
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3335
|
+
let baseOptions;
|
|
3336
|
+
if (configuration) {
|
|
3337
|
+
baseOptions = configuration.baseOptions;
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3341
|
+
const localVarHeaderParameter = {} as any;
|
|
3342
|
+
const localVarQueryParameter = {} as any;
|
|
3343
|
+
|
|
3344
|
+
// authentication BearerToken required
|
|
3345
|
+
// http bearer authentication required
|
|
3346
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3347
|
+
|
|
3348
|
+
// authentication DigestAuth required
|
|
3349
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3350
|
+
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3355
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3356
|
+
|
|
3357
|
+
return {
|
|
3358
|
+
url: toPathString(localVarUrlObj),
|
|
3359
|
+
options: localVarRequestOptions,
|
|
3360
|
+
};
|
|
3361
|
+
},
|
|
3362
|
+
/**
|
|
3363
|
+
* Delete a Milvus native role.
|
|
3364
|
+
* @summary Delete Milvus role
|
|
3365
|
+
* @param {string} orgName name of the Org
|
|
3366
|
+
* @param {string} clusterName name of the Cluster
|
|
3367
|
+
* @param {string} roleName name of the Milvus role
|
|
3368
|
+
* @param {*} [options] Override http request option.
|
|
3369
|
+
* @throws {RequiredError}
|
|
3370
|
+
*/
|
|
3371
|
+
deleteMilvusRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3372
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3373
|
+
assertParamExists('deleteMilvusRole', 'orgName', orgName)
|
|
3374
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3375
|
+
assertParamExists('deleteMilvusRole', 'clusterName', clusterName)
|
|
3376
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
3377
|
+
assertParamExists('deleteMilvusRole', 'roleName', roleName)
|
|
3378
|
+
const localVarPath = `/admin/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
3379
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3380
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3381
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
3382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3383
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3384
|
+
let baseOptions;
|
|
3385
|
+
if (configuration) {
|
|
3386
|
+
baseOptions = configuration.baseOptions;
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3390
|
+
const localVarHeaderParameter = {} as any;
|
|
3391
|
+
const localVarQueryParameter = {} as any;
|
|
3392
|
+
|
|
3393
|
+
// authentication BearerToken required
|
|
3394
|
+
// http bearer authentication required
|
|
3395
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3396
|
+
|
|
3397
|
+
// authentication DigestAuth required
|
|
3398
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3399
|
+
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3403
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3404
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3405
|
+
|
|
3406
|
+
return {
|
|
3407
|
+
url: toPathString(localVarUrlObj),
|
|
3408
|
+
options: localVarRequestOptions,
|
|
3409
|
+
};
|
|
3410
|
+
},
|
|
3411
|
+
/**
|
|
3412
|
+
* delete an account in mongodb
|
|
3413
|
+
* @summary Delete mongodb account
|
|
3414
|
+
* @param {string} orgName name of the Org
|
|
3415
|
+
* @param {string} clusterName name of the Cluster
|
|
3416
|
+
* @param {string} accountName name of the Cluster
|
|
3417
|
+
* @param {*} [options] Override http request option.
|
|
3418
|
+
* @throws {RequiredError}
|
|
3419
|
+
*/
|
|
3420
|
+
deleteMongoDBAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3421
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3422
|
+
assertParamExists('deleteMongoDBAccount', 'orgName', orgName)
|
|
3423
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3424
|
+
assertParamExists('deleteMongoDBAccount', 'clusterName', clusterName)
|
|
3425
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
3426
|
+
assertParamExists('deleteMongoDBAccount', 'accountName', accountName)
|
|
3427
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
3428
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3429
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3430
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
3215
3431
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3216
3432
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3217
3433
|
let baseOptions;
|
|
@@ -4940,6 +5156,55 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
4940
5156
|
|
|
4941
5157
|
|
|
4942
5158
|
|
|
5159
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5160
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5161
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5162
|
+
|
|
5163
|
+
return {
|
|
5164
|
+
url: toPathString(localVarUrlObj),
|
|
5165
|
+
options: localVarRequestOptions,
|
|
5166
|
+
};
|
|
5167
|
+
},
|
|
5168
|
+
/**
|
|
5169
|
+
*
|
|
5170
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
5171
|
+
* @param {string} orgName
|
|
5172
|
+
* @param {string} clusterName
|
|
5173
|
+
* @param {string} roleName
|
|
5174
|
+
* @param {*} [options] Override http request option.
|
|
5175
|
+
* @throws {RequiredError}
|
|
5176
|
+
*/
|
|
5177
|
+
getClickhouseRoleGrants: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5178
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
5179
|
+
assertParamExists('getClickhouseRoleGrants', 'orgName', orgName)
|
|
5180
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5181
|
+
assertParamExists('getClickhouseRoleGrants', 'clusterName', clusterName)
|
|
5182
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
5183
|
+
assertParamExists('getClickhouseRoleGrants', 'roleName', roleName)
|
|
5184
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
5185
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5186
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
5187
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
5188
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5189
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5190
|
+
let baseOptions;
|
|
5191
|
+
if (configuration) {
|
|
5192
|
+
baseOptions = configuration.baseOptions;
|
|
5193
|
+
}
|
|
5194
|
+
|
|
5195
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5196
|
+
const localVarHeaderParameter = {} as any;
|
|
5197
|
+
const localVarQueryParameter = {} as any;
|
|
5198
|
+
|
|
5199
|
+
// authentication BearerToken required
|
|
5200
|
+
// http bearer authentication required
|
|
5201
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5202
|
+
|
|
5203
|
+
// authentication DigestAuth required
|
|
5204
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5205
|
+
|
|
5206
|
+
|
|
5207
|
+
|
|
4943
5208
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4944
5209
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4945
5210
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7676,6 +7941,61 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
7676
7941
|
options: localVarRequestOptions,
|
|
7677
7942
|
};
|
|
7678
7943
|
},
|
|
7944
|
+
/**
|
|
7945
|
+
*
|
|
7946
|
+
* @summary Grant privileges to a ClickHouse role
|
|
7947
|
+
* @param {string} orgName
|
|
7948
|
+
* @param {string} clusterName
|
|
7949
|
+
* @param {string} roleName
|
|
7950
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
7951
|
+
* @param {*} [options] Override http request option.
|
|
7952
|
+
* @throws {RequiredError}
|
|
7953
|
+
*/
|
|
7954
|
+
grantClickhouseRolePrivileges: async (orgName: string, clusterName: string, roleName: string, body: ListClickhouseAccountRoles200ResponsePrivilegesInner, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7955
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7956
|
+
assertParamExists('grantClickhouseRolePrivileges', 'orgName', orgName)
|
|
7957
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
7958
|
+
assertParamExists('grantClickhouseRolePrivileges', 'clusterName', clusterName)
|
|
7959
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
7960
|
+
assertParamExists('grantClickhouseRolePrivileges', 'roleName', roleName)
|
|
7961
|
+
// verify required parameter 'body' is not null or undefined
|
|
7962
|
+
assertParamExists('grantClickhouseRolePrivileges', 'body', body)
|
|
7963
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
7964
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7965
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
7966
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
7967
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7968
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7969
|
+
let baseOptions;
|
|
7970
|
+
if (configuration) {
|
|
7971
|
+
baseOptions = configuration.baseOptions;
|
|
7972
|
+
}
|
|
7973
|
+
|
|
7974
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7975
|
+
const localVarHeaderParameter = {} as any;
|
|
7976
|
+
const localVarQueryParameter = {} as any;
|
|
7977
|
+
|
|
7978
|
+
// authentication BearerToken required
|
|
7979
|
+
// http bearer authentication required
|
|
7980
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7981
|
+
|
|
7982
|
+
// authentication DigestAuth required
|
|
7983
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
7984
|
+
|
|
7985
|
+
|
|
7986
|
+
|
|
7987
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7988
|
+
|
|
7989
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7990
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7991
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7992
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
7993
|
+
|
|
7994
|
+
return {
|
|
7995
|
+
url: toPathString(localVarUrlObj),
|
|
7996
|
+
options: localVarRequestOptions,
|
|
7997
|
+
};
|
|
7998
|
+
},
|
|
7679
7999
|
/**
|
|
7680
8000
|
*
|
|
7681
8001
|
* @summary Horizontal scale cluster
|
|
@@ -8109,6 +8429,195 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8109
8429
|
|
|
8110
8430
|
|
|
8111
8431
|
|
|
8432
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8433
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8434
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8435
|
+
|
|
8436
|
+
return {
|
|
8437
|
+
url: toPathString(localVarUrlObj),
|
|
8438
|
+
options: localVarRequestOptions,
|
|
8439
|
+
};
|
|
8440
|
+
},
|
|
8441
|
+
/**
|
|
8442
|
+
*
|
|
8443
|
+
* @summary List the roles granted to a ClickHouse account
|
|
8444
|
+
* @param {string} orgName
|
|
8445
|
+
* @param {string} clusterName
|
|
8446
|
+
* @param {string} accountName
|
|
8447
|
+
* @param {*} [options] Override http request option.
|
|
8448
|
+
* @throws {RequiredError}
|
|
8449
|
+
*/
|
|
8450
|
+
listClickhouseAccountRoles: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8451
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8452
|
+
assertParamExists('listClickhouseAccountRoles', 'orgName', orgName)
|
|
8453
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8454
|
+
assertParamExists('listClickhouseAccountRoles', 'clusterName', clusterName)
|
|
8455
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
8456
|
+
assertParamExists('listClickhouseAccountRoles', 'accountName', accountName)
|
|
8457
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
8458
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8459
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
8460
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
8461
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8462
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8463
|
+
let baseOptions;
|
|
8464
|
+
if (configuration) {
|
|
8465
|
+
baseOptions = configuration.baseOptions;
|
|
8466
|
+
}
|
|
8467
|
+
|
|
8468
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8469
|
+
const localVarHeaderParameter = {} as any;
|
|
8470
|
+
const localVarQueryParameter = {} as any;
|
|
8471
|
+
|
|
8472
|
+
// authentication BearerToken required
|
|
8473
|
+
// http bearer authentication required
|
|
8474
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8475
|
+
|
|
8476
|
+
// authentication DigestAuth required
|
|
8477
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8478
|
+
|
|
8479
|
+
|
|
8480
|
+
|
|
8481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8483
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8484
|
+
|
|
8485
|
+
return {
|
|
8486
|
+
url: toPathString(localVarUrlObj),
|
|
8487
|
+
options: localVarRequestOptions,
|
|
8488
|
+
};
|
|
8489
|
+
},
|
|
8490
|
+
/**
|
|
8491
|
+
*
|
|
8492
|
+
* @summary List ClickHouse accounts
|
|
8493
|
+
* @param {string} orgName
|
|
8494
|
+
* @param {string} clusterName
|
|
8495
|
+
* @param {*} [options] Override http request option.
|
|
8496
|
+
* @throws {RequiredError}
|
|
8497
|
+
*/
|
|
8498
|
+
listClickhouseAccounts: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8499
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8500
|
+
assertParamExists('listClickhouseAccounts', 'orgName', orgName)
|
|
8501
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8502
|
+
assertParamExists('listClickhouseAccounts', 'clusterName', clusterName)
|
|
8503
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
8504
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8505
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
8506
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8507
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8508
|
+
let baseOptions;
|
|
8509
|
+
if (configuration) {
|
|
8510
|
+
baseOptions = configuration.baseOptions;
|
|
8511
|
+
}
|
|
8512
|
+
|
|
8513
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8514
|
+
const localVarHeaderParameter = {} as any;
|
|
8515
|
+
const localVarQueryParameter = {} as any;
|
|
8516
|
+
|
|
8517
|
+
// authentication BearerToken required
|
|
8518
|
+
// http bearer authentication required
|
|
8519
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8520
|
+
|
|
8521
|
+
// authentication DigestAuth required
|
|
8522
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8523
|
+
|
|
8524
|
+
|
|
8525
|
+
|
|
8526
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8527
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8528
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8529
|
+
|
|
8530
|
+
return {
|
|
8531
|
+
url: toPathString(localVarUrlObj),
|
|
8532
|
+
options: localVarRequestOptions,
|
|
8533
|
+
};
|
|
8534
|
+
},
|
|
8535
|
+
/**
|
|
8536
|
+
*
|
|
8537
|
+
* @summary List privileges supported by the ClickHouse server
|
|
8538
|
+
* @param {string} orgName
|
|
8539
|
+
* @param {string} clusterName
|
|
8540
|
+
* @param {*} [options] Override http request option.
|
|
8541
|
+
* @throws {RequiredError}
|
|
8542
|
+
*/
|
|
8543
|
+
listClickhousePrivileges: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8544
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8545
|
+
assertParamExists('listClickhousePrivileges', 'orgName', orgName)
|
|
8546
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8547
|
+
assertParamExists('listClickhousePrivileges', 'clusterName', clusterName)
|
|
8548
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/privileges`
|
|
8549
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8550
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
8551
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8552
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8553
|
+
let baseOptions;
|
|
8554
|
+
if (configuration) {
|
|
8555
|
+
baseOptions = configuration.baseOptions;
|
|
8556
|
+
}
|
|
8557
|
+
|
|
8558
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8559
|
+
const localVarHeaderParameter = {} as any;
|
|
8560
|
+
const localVarQueryParameter = {} as any;
|
|
8561
|
+
|
|
8562
|
+
// authentication BearerToken required
|
|
8563
|
+
// http bearer authentication required
|
|
8564
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8565
|
+
|
|
8566
|
+
// authentication DigestAuth required
|
|
8567
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8568
|
+
|
|
8569
|
+
|
|
8570
|
+
|
|
8571
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8572
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8573
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8574
|
+
|
|
8575
|
+
return {
|
|
8576
|
+
url: toPathString(localVarUrlObj),
|
|
8577
|
+
options: localVarRequestOptions,
|
|
8578
|
+
};
|
|
8579
|
+
},
|
|
8580
|
+
/**
|
|
8581
|
+
*
|
|
8582
|
+
* @summary List ClickHouse roles
|
|
8583
|
+
* @param {string} orgName
|
|
8584
|
+
* @param {string} clusterName
|
|
8585
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
8586
|
+
* @param {*} [options] Override http request option.
|
|
8587
|
+
* @throws {RequiredError}
|
|
8588
|
+
*/
|
|
8589
|
+
listClickhouseRoles: async (orgName: string, clusterName: string, forCreateUser?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8590
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8591
|
+
assertParamExists('listClickhouseRoles', 'orgName', orgName)
|
|
8592
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8593
|
+
assertParamExists('listClickhouseRoles', 'clusterName', clusterName)
|
|
8594
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
8595
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8596
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
8597
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8598
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8599
|
+
let baseOptions;
|
|
8600
|
+
if (configuration) {
|
|
8601
|
+
baseOptions = configuration.baseOptions;
|
|
8602
|
+
}
|
|
8603
|
+
|
|
8604
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8605
|
+
const localVarHeaderParameter = {} as any;
|
|
8606
|
+
const localVarQueryParameter = {} as any;
|
|
8607
|
+
|
|
8608
|
+
// authentication BearerToken required
|
|
8609
|
+
// http bearer authentication required
|
|
8610
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8611
|
+
|
|
8612
|
+
// authentication DigestAuth required
|
|
8613
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8614
|
+
|
|
8615
|
+
if (forCreateUser !== undefined) {
|
|
8616
|
+
localVarQueryParameter['forCreateUser'] = forCreateUser;
|
|
8617
|
+
}
|
|
8618
|
+
|
|
8619
|
+
|
|
8620
|
+
|
|
8112
8621
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8113
8622
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8114
8623
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13728,20 +14237,72 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13728
14237
|
},
|
|
13729
14238
|
/**
|
|
13730
14239
|
*
|
|
13731
|
-
* @summary Restore cluster from the Recycle Bin of the Org
|
|
13732
|
-
* @param {string} orgName name of the Org
|
|
13733
|
-
* @param {string} clusterName name of the cluster
|
|
14240
|
+
* @summary Restore cluster from the Recycle Bin of the Org
|
|
14241
|
+
* @param {string} orgName name of the Org
|
|
14242
|
+
* @param {string} clusterName name of the cluster
|
|
14243
|
+
* @param {*} [options] Override http request option.
|
|
14244
|
+
* @throws {RequiredError}
|
|
14245
|
+
*/
|
|
14246
|
+
restoreRecycleBinCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14247
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
14248
|
+
assertParamExists('restoreRecycleBinCluster', 'orgName', orgName)
|
|
14249
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
14250
|
+
assertParamExists('restoreRecycleBinCluster', 'clusterName', clusterName)
|
|
14251
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}/restore`
|
|
14252
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
14253
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
14254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14255
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14256
|
+
let baseOptions;
|
|
14257
|
+
if (configuration) {
|
|
14258
|
+
baseOptions = configuration.baseOptions;
|
|
14259
|
+
}
|
|
14260
|
+
|
|
14261
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14262
|
+
const localVarHeaderParameter = {} as any;
|
|
14263
|
+
const localVarQueryParameter = {} as any;
|
|
14264
|
+
|
|
14265
|
+
// authentication BearerToken required
|
|
14266
|
+
// http bearer authentication required
|
|
14267
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14268
|
+
|
|
14269
|
+
// authentication DigestAuth required
|
|
14270
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
14271
|
+
|
|
14272
|
+
|
|
14273
|
+
|
|
14274
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14276
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14277
|
+
|
|
14278
|
+
return {
|
|
14279
|
+
url: toPathString(localVarUrlObj),
|
|
14280
|
+
options: localVarRequestOptions,
|
|
14281
|
+
};
|
|
14282
|
+
},
|
|
14283
|
+
/**
|
|
14284
|
+
*
|
|
14285
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
14286
|
+
* @param {string} orgName
|
|
14287
|
+
* @param {string} clusterName
|
|
14288
|
+
* @param {string} roleName
|
|
14289
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
13734
14290
|
* @param {*} [options] Override http request option.
|
|
13735
14291
|
* @throws {RequiredError}
|
|
13736
14292
|
*/
|
|
13737
|
-
|
|
14293
|
+
revokeClickhouseRolePrivileges: async (orgName: string, clusterName: string, roleName: string, body: RevokeClickhouseRolePrivilegesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13738
14294
|
// verify required parameter 'orgName' is not null or undefined
|
|
13739
|
-
assertParamExists('
|
|
14295
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'orgName', orgName)
|
|
13740
14296
|
// verify required parameter 'clusterName' is not null or undefined
|
|
13741
|
-
assertParamExists('
|
|
13742
|
-
|
|
14297
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'clusterName', clusterName)
|
|
14298
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
14299
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'roleName', roleName)
|
|
14300
|
+
// verify required parameter 'body' is not null or undefined
|
|
14301
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'body', body)
|
|
14302
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
13743
14303
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13744
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
14304
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
14305
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
13745
14306
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13746
14307
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13747
14308
|
let baseOptions;
|
|
@@ -13749,7 +14310,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13749
14310
|
baseOptions = configuration.baseOptions;
|
|
13750
14311
|
}
|
|
13751
14312
|
|
|
13752
|
-
const localVarRequestOptions = { method: '
|
|
14313
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13753
14314
|
const localVarHeaderParameter = {} as any;
|
|
13754
14315
|
const localVarQueryParameter = {} as any;
|
|
13755
14316
|
|
|
@@ -13762,9 +14323,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13762
14323
|
|
|
13763
14324
|
|
|
13764
14325
|
|
|
14326
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14327
|
+
|
|
13765
14328
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13766
14329
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13767
14330
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14331
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
13768
14332
|
|
|
13769
14333
|
return {
|
|
13770
14334
|
url: toPathString(localVarUrlObj),
|
|
@@ -14705,6 +15269,116 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14705
15269
|
|
|
14706
15270
|
|
|
14707
15271
|
|
|
15272
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15273
|
+
|
|
15274
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15276
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15277
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
15278
|
+
|
|
15279
|
+
return {
|
|
15280
|
+
url: toPathString(localVarUrlObj),
|
|
15281
|
+
options: localVarRequestOptions,
|
|
15282
|
+
};
|
|
15283
|
+
},
|
|
15284
|
+
/**
|
|
15285
|
+
*
|
|
15286
|
+
* @summary Update a ClickHouse account password
|
|
15287
|
+
* @param {string} orgName
|
|
15288
|
+
* @param {string} clusterName
|
|
15289
|
+
* @param {string} accountName
|
|
15290
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
15291
|
+
* @param {*} [options] Override http request option.
|
|
15292
|
+
* @throws {RequiredError}
|
|
15293
|
+
*/
|
|
15294
|
+
updateClickhouseAccountPassword: async (orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15295
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
15296
|
+
assertParamExists('updateClickhouseAccountPassword', 'orgName', orgName)
|
|
15297
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
15298
|
+
assertParamExists('updateClickhouseAccountPassword', 'clusterName', clusterName)
|
|
15299
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
15300
|
+
assertParamExists('updateClickhouseAccountPassword', 'accountName', accountName)
|
|
15301
|
+
// verify required parameter 'body' is not null or undefined
|
|
15302
|
+
assertParamExists('updateClickhouseAccountPassword', 'body', body)
|
|
15303
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
15304
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
15305
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
15306
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
15307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15308
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15309
|
+
let baseOptions;
|
|
15310
|
+
if (configuration) {
|
|
15311
|
+
baseOptions = configuration.baseOptions;
|
|
15312
|
+
}
|
|
15313
|
+
|
|
15314
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
15315
|
+
const localVarHeaderParameter = {} as any;
|
|
15316
|
+
const localVarQueryParameter = {} as any;
|
|
15317
|
+
|
|
15318
|
+
// authentication BearerToken required
|
|
15319
|
+
// http bearer authentication required
|
|
15320
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15321
|
+
|
|
15322
|
+
// authentication DigestAuth required
|
|
15323
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
15324
|
+
|
|
15325
|
+
|
|
15326
|
+
|
|
15327
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15328
|
+
|
|
15329
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15330
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15331
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15332
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
15333
|
+
|
|
15334
|
+
return {
|
|
15335
|
+
url: toPathString(localVarUrlObj),
|
|
15336
|
+
options: localVarRequestOptions,
|
|
15337
|
+
};
|
|
15338
|
+
},
|
|
15339
|
+
/**
|
|
15340
|
+
*
|
|
15341
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
15342
|
+
* @param {string} orgName
|
|
15343
|
+
* @param {string} clusterName
|
|
15344
|
+
* @param {string} accountName
|
|
15345
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
15346
|
+
* @param {*} [options] Override http request option.
|
|
15347
|
+
* @throws {RequiredError}
|
|
15348
|
+
*/
|
|
15349
|
+
updateClickhouseAccountRoles: async (orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountRolesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15350
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
15351
|
+
assertParamExists('updateClickhouseAccountRoles', 'orgName', orgName)
|
|
15352
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
15353
|
+
assertParamExists('updateClickhouseAccountRoles', 'clusterName', clusterName)
|
|
15354
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
15355
|
+
assertParamExists('updateClickhouseAccountRoles', 'accountName', accountName)
|
|
15356
|
+
// verify required parameter 'body' is not null or undefined
|
|
15357
|
+
assertParamExists('updateClickhouseAccountRoles', 'body', body)
|
|
15358
|
+
const localVarPath = `/admin/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
15359
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
15360
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
15361
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
15362
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15363
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15364
|
+
let baseOptions;
|
|
15365
|
+
if (configuration) {
|
|
15366
|
+
baseOptions = configuration.baseOptions;
|
|
15367
|
+
}
|
|
15368
|
+
|
|
15369
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
15370
|
+
const localVarHeaderParameter = {} as any;
|
|
15371
|
+
const localVarQueryParameter = {} as any;
|
|
15372
|
+
|
|
15373
|
+
// authentication BearerToken required
|
|
15374
|
+
// http bearer authentication required
|
|
15375
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15376
|
+
|
|
15377
|
+
// authentication DigestAuth required
|
|
15378
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
15379
|
+
|
|
15380
|
+
|
|
15381
|
+
|
|
14708
15382
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14709
15383
|
|
|
14710
15384
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16313,6 +16987,36 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16313
16987
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.createBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
16314
16988
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16315
16989
|
},
|
|
16990
|
+
/**
|
|
16991
|
+
*
|
|
16992
|
+
* @summary Create a ClickHouse account with optional roles
|
|
16993
|
+
* @param {string} orgName
|
|
16994
|
+
* @param {string} clusterName
|
|
16995
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
16996
|
+
* @param {*} [options] Override http request option.
|
|
16997
|
+
* @throws {RequiredError}
|
|
16998
|
+
*/
|
|
16999
|
+
async createClickhouseAccount(orgName: string, clusterName: string, body: CreateClickhouseAccountRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17000
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseAccount(orgName, clusterName, body, options);
|
|
17001
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17002
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.createClickhouseAccount']?.[localVarOperationServerIndex]?.url;
|
|
17003
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17004
|
+
},
|
|
17005
|
+
/**
|
|
17006
|
+
*
|
|
17007
|
+
* @summary Create a ClickHouse role with privileges
|
|
17008
|
+
* @param {string} orgName
|
|
17009
|
+
* @param {string} clusterName
|
|
17010
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
17011
|
+
* @param {*} [options] Override http request option.
|
|
17012
|
+
* @throws {RequiredError}
|
|
17013
|
+
*/
|
|
17014
|
+
async createClickhouseRole(orgName: string, clusterName: string, body: ListClickhouseAccountRoles200Response, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseRole(orgName, clusterName, body, options);
|
|
17016
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17017
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.createClickhouseRole']?.[localVarOperationServerIndex]?.url;
|
|
17018
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17019
|
+
},
|
|
16316
17020
|
/**
|
|
16317
17021
|
*
|
|
16318
17022
|
* @summary Create new cluster
|
|
@@ -16672,6 +17376,36 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16672
17376
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
16673
17377
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16674
17378
|
},
|
|
17379
|
+
/**
|
|
17380
|
+
*
|
|
17381
|
+
* @summary Delete a ClickHouse account
|
|
17382
|
+
* @param {string} orgName
|
|
17383
|
+
* @param {string} clusterName
|
|
17384
|
+
* @param {string} accountName
|
|
17385
|
+
* @param {*} [options] Override http request option.
|
|
17386
|
+
* @throws {RequiredError}
|
|
17387
|
+
*/
|
|
17388
|
+
async deleteClickhouseAccount(orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseAccount(orgName, clusterName, accountName, options);
|
|
17390
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17391
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteClickhouseAccount']?.[localVarOperationServerIndex]?.url;
|
|
17392
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17393
|
+
},
|
|
17394
|
+
/**
|
|
17395
|
+
*
|
|
17396
|
+
* @summary Delete a ClickHouse role
|
|
17397
|
+
* @param {string} orgName
|
|
17398
|
+
* @param {string} clusterName
|
|
17399
|
+
* @param {string} roleName
|
|
17400
|
+
* @param {*} [options] Override http request option.
|
|
17401
|
+
* @throws {RequiredError}
|
|
17402
|
+
*/
|
|
17403
|
+
async deleteClickhouseRole(orgName: string, clusterName: string, roleName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseRole(orgName, clusterName, roleName, options);
|
|
17405
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17406
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteClickhouseRole']?.[localVarOperationServerIndex]?.url;
|
|
17407
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17408
|
+
},
|
|
16675
17409
|
/**
|
|
16676
17410
|
*
|
|
16677
17411
|
* @summary Delete cluster
|
|
@@ -17378,6 +18112,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17378
18112
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getBackupRepo']?.[localVarOperationServerIndex]?.url;
|
|
17379
18113
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17380
18114
|
},
|
|
18115
|
+
/**
|
|
18116
|
+
*
|
|
18117
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
18118
|
+
* @param {string} orgName
|
|
18119
|
+
* @param {string} clusterName
|
|
18120
|
+
* @param {string} roleName
|
|
18121
|
+
* @param {*} [options] Override http request option.
|
|
18122
|
+
* @throws {RequiredError}
|
|
18123
|
+
*/
|
|
18124
|
+
async getClickhouseRoleGrants(orgName: string, clusterName: string, roleName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetClickhouseRoleGrants200ResponseInner>>> {
|
|
18125
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClickhouseRoleGrants(orgName, clusterName, roleName, options);
|
|
18126
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18127
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.getClickhouseRoleGrants']?.[localVarOperationServerIndex]?.url;
|
|
18128
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18129
|
+
},
|
|
17381
18130
|
/**
|
|
17382
18131
|
*
|
|
17383
18132
|
* @summary Get cluster details
|
|
@@ -18173,6 +18922,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18173
18922
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getTenant']?.[localVarOperationServerIndex]?.url;
|
|
18174
18923
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18175
18924
|
},
|
|
18925
|
+
/**
|
|
18926
|
+
*
|
|
18927
|
+
* @summary Grant privileges to a ClickHouse role
|
|
18928
|
+
* @param {string} orgName
|
|
18929
|
+
* @param {string} clusterName
|
|
18930
|
+
* @param {string} roleName
|
|
18931
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
18932
|
+
* @param {*} [options] Override http request option.
|
|
18933
|
+
* @throws {RequiredError}
|
|
18934
|
+
*/
|
|
18935
|
+
async grantClickhouseRolePrivileges(orgName: string, clusterName: string, roleName: string, body: ListClickhouseAccountRoles200ResponsePrivilegesInner, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
18936
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.grantClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
18937
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18938
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.grantClickhouseRolePrivileges']?.[localVarOperationServerIndex]?.url;
|
|
18939
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18940
|
+
},
|
|
18176
18941
|
/**
|
|
18177
18942
|
*
|
|
18178
18943
|
* @summary Horizontal scale cluster
|
|
@@ -18305,6 +19070,64 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18305
19070
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClasses']?.[localVarOperationServerIndex]?.url;
|
|
18306
19071
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18307
19072
|
},
|
|
19073
|
+
/**
|
|
19074
|
+
*
|
|
19075
|
+
* @summary List the roles granted to a ClickHouse account
|
|
19076
|
+
* @param {string} orgName
|
|
19077
|
+
* @param {string} clusterName
|
|
19078
|
+
* @param {string} accountName
|
|
19079
|
+
* @param {*} [options] Override http request option.
|
|
19080
|
+
* @throws {RequiredError}
|
|
19081
|
+
*/
|
|
19082
|
+
async listClickhouseAccountRoles(orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClickhouseAccountRoles200Response>> {
|
|
19083
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccountRoles(orgName, clusterName, accountName, options);
|
|
19084
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19085
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClickhouseAccountRoles']?.[localVarOperationServerIndex]?.url;
|
|
19086
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19087
|
+
},
|
|
19088
|
+
/**
|
|
19089
|
+
*
|
|
19090
|
+
* @summary List ClickHouse accounts
|
|
19091
|
+
* @param {string} orgName
|
|
19092
|
+
* @param {string} clusterName
|
|
19093
|
+
* @param {*} [options] Override http request option.
|
|
19094
|
+
* @throws {RequiredError}
|
|
19095
|
+
*/
|
|
19096
|
+
async listClickhouseAccounts(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CkAccount>> {
|
|
19097
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccounts(orgName, clusterName, options);
|
|
19098
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19099
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClickhouseAccounts']?.[localVarOperationServerIndex]?.url;
|
|
19100
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19101
|
+
},
|
|
19102
|
+
/**
|
|
19103
|
+
*
|
|
19104
|
+
* @summary List privileges supported by the ClickHouse server
|
|
19105
|
+
* @param {string} orgName
|
|
19106
|
+
* @param {string} clusterName
|
|
19107
|
+
* @param {*} [options] Override http request option.
|
|
19108
|
+
* @throws {RequiredError}
|
|
19109
|
+
*/
|
|
19110
|
+
async listClickhousePrivileges(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
19111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhousePrivileges(orgName, clusterName, options);
|
|
19112
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19113
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClickhousePrivileges']?.[localVarOperationServerIndex]?.url;
|
|
19114
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19115
|
+
},
|
|
19116
|
+
/**
|
|
19117
|
+
*
|
|
19118
|
+
* @summary List ClickHouse roles
|
|
19119
|
+
* @param {string} orgName
|
|
19120
|
+
* @param {string} clusterName
|
|
19121
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
19122
|
+
* @param {*} [options] Override http request option.
|
|
19123
|
+
* @throws {RequiredError}
|
|
19124
|
+
*/
|
|
19125
|
+
async listClickhouseRoles(orgName: string, clusterName: string, forCreateUser?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ListClickhouseAccountRoles200Response>>> {
|
|
19126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseRoles(orgName, clusterName, forCreateUser, options);
|
|
19127
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19128
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClickhouseRoles']?.[localVarOperationServerIndex]?.url;
|
|
19129
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19130
|
+
},
|
|
18308
19131
|
/**
|
|
18309
19132
|
*
|
|
18310
19133
|
* @summary List clusters in the Org
|
|
@@ -19906,6 +20729,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
19906
20729
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.restoreRecycleBinCluster']?.[localVarOperationServerIndex]?.url;
|
|
19907
20730
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19908
20731
|
},
|
|
20732
|
+
/**
|
|
20733
|
+
*
|
|
20734
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
20735
|
+
* @param {string} orgName
|
|
20736
|
+
* @param {string} clusterName
|
|
20737
|
+
* @param {string} roleName
|
|
20738
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
20739
|
+
* @param {*} [options] Override http request option.
|
|
20740
|
+
* @throws {RequiredError}
|
|
20741
|
+
*/
|
|
20742
|
+
async revokeClickhouseRolePrivileges(orgName: string, clusterName: string, roleName: string, body: RevokeClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
20743
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revokeClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
20744
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20745
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.revokeClickhouseRolePrivileges']?.[localVarOperationServerIndex]?.url;
|
|
20746
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20747
|
+
},
|
|
19909
20748
|
/**
|
|
19910
20749
|
*
|
|
19911
20750
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -20186,6 +21025,38 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
20186
21025
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
20187
21026
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20188
21027
|
},
|
|
21028
|
+
/**
|
|
21029
|
+
*
|
|
21030
|
+
* @summary Update a ClickHouse account password
|
|
21031
|
+
* @param {string} orgName
|
|
21032
|
+
* @param {string} clusterName
|
|
21033
|
+
* @param {string} accountName
|
|
21034
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
21035
|
+
* @param {*} [options] Override http request option.
|
|
21036
|
+
* @throws {RequiredError}
|
|
21037
|
+
*/
|
|
21038
|
+
async updateClickhouseAccountPassword(orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
21039
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountPassword(orgName, clusterName, accountName, body, options);
|
|
21040
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21041
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateClickhouseAccountPassword']?.[localVarOperationServerIndex]?.url;
|
|
21042
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21043
|
+
},
|
|
21044
|
+
/**
|
|
21045
|
+
*
|
|
21046
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
21047
|
+
* @param {string} orgName
|
|
21048
|
+
* @param {string} clusterName
|
|
21049
|
+
* @param {string} accountName
|
|
21050
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
21051
|
+
* @param {*} [options] Override http request option.
|
|
21052
|
+
* @throws {RequiredError}
|
|
21053
|
+
*/
|
|
21054
|
+
async updateClickhouseAccountRoles(orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
21055
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountRoles(orgName, clusterName, accountName, body, options);
|
|
21056
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21057
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateClickhouseAccountRoles']?.[localVarOperationServerIndex]?.url;
|
|
21058
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21059
|
+
},
|
|
20189
21060
|
/**
|
|
20190
21061
|
*
|
|
20191
21062
|
* @summary Update the cluster license
|
|
@@ -20745,6 +21616,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
20745
21616
|
createBackupSchedule(requestParameters: SharedApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule> {
|
|
20746
21617
|
return localVarFp.createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20747
21618
|
},
|
|
21619
|
+
/**
|
|
21620
|
+
*
|
|
21621
|
+
* @summary Create a ClickHouse account with optional roles
|
|
21622
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
21623
|
+
* @param {*} [options] Override http request option.
|
|
21624
|
+
* @throws {RequiredError}
|
|
21625
|
+
*/
|
|
21626
|
+
createClickhouseAccount(requestParameters: SharedApiCreateClickhouseAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21627
|
+
return localVarFp.createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21628
|
+
},
|
|
21629
|
+
/**
|
|
21630
|
+
*
|
|
21631
|
+
* @summary Create a ClickHouse role with privileges
|
|
21632
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
21633
|
+
* @param {*} [options] Override http request option.
|
|
21634
|
+
* @throws {RequiredError}
|
|
21635
|
+
*/
|
|
21636
|
+
createClickhouseRole(requestParameters: SharedApiCreateClickhouseRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21637
|
+
return localVarFp.createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21638
|
+
},
|
|
20748
21639
|
/**
|
|
20749
21640
|
*
|
|
20750
21641
|
* @summary Create new cluster
|
|
@@ -20985,6 +21876,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
20985
21876
|
deleteBackupSchedule(requestParameters: SharedApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
20986
21877
|
return localVarFp.deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(axios, basePath));
|
|
20987
21878
|
},
|
|
21879
|
+
/**
|
|
21880
|
+
*
|
|
21881
|
+
* @summary Delete a ClickHouse account
|
|
21882
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
21883
|
+
* @param {*} [options] Override http request option.
|
|
21884
|
+
* @throws {RequiredError}
|
|
21885
|
+
*/
|
|
21886
|
+
deleteClickhouseAccount(requestParameters: SharedApiDeleteClickhouseAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21887
|
+
return localVarFp.deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
21888
|
+
},
|
|
21889
|
+
/**
|
|
21890
|
+
*
|
|
21891
|
+
* @summary Delete a ClickHouse role
|
|
21892
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
21893
|
+
* @param {*} [options] Override http request option.
|
|
21894
|
+
* @throws {RequiredError}
|
|
21895
|
+
*/
|
|
21896
|
+
deleteClickhouseRole(requestParameters: SharedApiDeleteClickhouseRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21897
|
+
return localVarFp.deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
21898
|
+
},
|
|
20988
21899
|
/**
|
|
20989
21900
|
*
|
|
20990
21901
|
* @summary Delete cluster
|
|
@@ -21436,6 +22347,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21436
22347
|
getBackupRepo(requestParameters: SharedApiGetBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupRepo> {
|
|
21437
22348
|
return localVarFp.getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
21438
22349
|
},
|
|
22350
|
+
/**
|
|
22351
|
+
*
|
|
22352
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
22353
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
22354
|
+
* @param {*} [options] Override http request option.
|
|
22355
|
+
* @throws {RequiredError}
|
|
22356
|
+
*/
|
|
22357
|
+
getClickhouseRoleGrants(requestParameters: SharedApiGetClickhouseRoleGrantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<GetClickhouseRoleGrants200ResponseInner>> {
|
|
22358
|
+
return localVarFp.getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
22359
|
+
},
|
|
21439
22360
|
/**
|
|
21440
22361
|
*
|
|
21441
22362
|
* @summary Get cluster details
|
|
@@ -21935,6 +22856,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21935
22856
|
getTenant(requestParameters: SharedApiGetTenantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tenant> {
|
|
21936
22857
|
return localVarFp.getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(axios, basePath));
|
|
21937
22858
|
},
|
|
22859
|
+
/**
|
|
22860
|
+
*
|
|
22861
|
+
* @summary Grant privileges to a ClickHouse role
|
|
22862
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
22863
|
+
* @param {*} [options] Override http request option.
|
|
22864
|
+
* @throws {RequiredError}
|
|
22865
|
+
*/
|
|
22866
|
+
grantClickhouseRolePrivileges(requestParameters: SharedApiGrantClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
22867
|
+
return localVarFp.grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
22868
|
+
},
|
|
21938
22869
|
/**
|
|
21939
22870
|
*
|
|
21940
22871
|
* @summary Horizontal scale cluster
|
|
@@ -22024,6 +22955,46 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22024
22955
|
listClasses(requestParameters: SharedApiListClassesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<Class>> {
|
|
22025
22956
|
return localVarFp.listClasses(requestParameters.engineName, options).then((request) => request(axios, basePath));
|
|
22026
22957
|
},
|
|
22958
|
+
/**
|
|
22959
|
+
*
|
|
22960
|
+
* @summary List the roles granted to a ClickHouse account
|
|
22961
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
22962
|
+
* @param {*} [options] Override http request option.
|
|
22963
|
+
* @throws {RequiredError}
|
|
22964
|
+
*/
|
|
22965
|
+
listClickhouseAccountRoles(requestParameters: SharedApiListClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListClickhouseAccountRoles200Response> {
|
|
22966
|
+
return localVarFp.listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
22967
|
+
},
|
|
22968
|
+
/**
|
|
22969
|
+
*
|
|
22970
|
+
* @summary List ClickHouse accounts
|
|
22971
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
22972
|
+
* @param {*} [options] Override http request option.
|
|
22973
|
+
* @throws {RequiredError}
|
|
22974
|
+
*/
|
|
22975
|
+
listClickhouseAccounts(requestParameters: SharedApiListClickhouseAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CkAccount> {
|
|
22976
|
+
return localVarFp.listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
22977
|
+
},
|
|
22978
|
+
/**
|
|
22979
|
+
*
|
|
22980
|
+
* @summary List privileges supported by the ClickHouse server
|
|
22981
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
22982
|
+
* @param {*} [options] Override http request option.
|
|
22983
|
+
* @throws {RequiredError}
|
|
22984
|
+
*/
|
|
22985
|
+
listClickhousePrivileges(requestParameters: SharedApiListClickhousePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
22986
|
+
return localVarFp.listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
22987
|
+
},
|
|
22988
|
+
/**
|
|
22989
|
+
*
|
|
22990
|
+
* @summary List ClickHouse roles
|
|
22991
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
22992
|
+
* @param {*} [options] Override http request option.
|
|
22993
|
+
* @throws {RequiredError}
|
|
22994
|
+
*/
|
|
22995
|
+
listClickhouseRoles(requestParameters: SharedApiListClickhouseRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ListClickhouseAccountRoles200Response>> {
|
|
22996
|
+
return localVarFp.listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(axios, basePath));
|
|
22997
|
+
},
|
|
22027
22998
|
/**
|
|
22028
22999
|
*
|
|
22029
23000
|
* @summary List clusters in the Org
|
|
@@ -23000,6 +23971,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23000
23971
|
restoreRecycleBinCluster(requestParameters: SharedApiRestoreRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
23001
23972
|
return localVarFp.restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
23002
23973
|
},
|
|
23974
|
+
/**
|
|
23975
|
+
*
|
|
23976
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
23977
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
23978
|
+
* @param {*} [options] Override http request option.
|
|
23979
|
+
* @throws {RequiredError}
|
|
23980
|
+
*/
|
|
23981
|
+
revokeClickhouseRolePrivileges(requestParameters: SharedApiRevokeClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
23982
|
+
return localVarFp.revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
23983
|
+
},
|
|
23003
23984
|
/**
|
|
23004
23985
|
*
|
|
23005
23986
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -23180,6 +24161,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23180
24161
|
updateBackupSchedule(requestParameters: SharedApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule> {
|
|
23181
24162
|
return localVarFp.updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
23182
24163
|
},
|
|
24164
|
+
/**
|
|
24165
|
+
*
|
|
24166
|
+
* @summary Update a ClickHouse account password
|
|
24167
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
24168
|
+
* @param {*} [options] Override http request option.
|
|
24169
|
+
* @throws {RequiredError}
|
|
24170
|
+
*/
|
|
24171
|
+
updateClickhouseAccountPassword(requestParameters: SharedApiUpdateClickhouseAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
24172
|
+
return localVarFp.updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
24173
|
+
},
|
|
24174
|
+
/**
|
|
24175
|
+
*
|
|
24176
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
24177
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
24178
|
+
* @param {*} [options] Override http request option.
|
|
24179
|
+
* @throws {RequiredError}
|
|
24180
|
+
*/
|
|
24181
|
+
updateClickhouseAccountRoles(requestParameters: SharedApiUpdateClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
24182
|
+
return localVarFp.updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
24183
|
+
},
|
|
23183
24184
|
/**
|
|
23184
24185
|
*
|
|
23185
24186
|
* @summary Update the cluster license
|
|
@@ -23598,6 +24599,26 @@ export interface SharedApiInterface {
|
|
|
23598
24599
|
*/
|
|
23599
24600
|
createBackupSchedule(requestParameters: SharedApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule>;
|
|
23600
24601
|
|
|
24602
|
+
/**
|
|
24603
|
+
*
|
|
24604
|
+
* @summary Create a ClickHouse account with optional roles
|
|
24605
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
24606
|
+
* @param {*} [options] Override http request option.
|
|
24607
|
+
* @throws {RequiredError}
|
|
24608
|
+
* @memberof SharedApiInterface
|
|
24609
|
+
*/
|
|
24610
|
+
createClickhouseAccount(requestParameters: SharedApiCreateClickhouseAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24611
|
+
|
|
24612
|
+
/**
|
|
24613
|
+
*
|
|
24614
|
+
* @summary Create a ClickHouse role with privileges
|
|
24615
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
24616
|
+
* @param {*} [options] Override http request option.
|
|
24617
|
+
* @throws {RequiredError}
|
|
24618
|
+
* @memberof SharedApiInterface
|
|
24619
|
+
*/
|
|
24620
|
+
createClickhouseRole(requestParameters: SharedApiCreateClickhouseRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24621
|
+
|
|
23601
24622
|
/**
|
|
23602
24623
|
*
|
|
23603
24624
|
* @summary Create new cluster
|
|
@@ -23838,6 +24859,26 @@ export interface SharedApiInterface {
|
|
|
23838
24859
|
*/
|
|
23839
24860
|
deleteBackupSchedule(requestParameters: SharedApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
23840
24861
|
|
|
24862
|
+
/**
|
|
24863
|
+
*
|
|
24864
|
+
* @summary Delete a ClickHouse account
|
|
24865
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
24866
|
+
* @param {*} [options] Override http request option.
|
|
24867
|
+
* @throws {RequiredError}
|
|
24868
|
+
* @memberof SharedApiInterface
|
|
24869
|
+
*/
|
|
24870
|
+
deleteClickhouseAccount(requestParameters: SharedApiDeleteClickhouseAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24871
|
+
|
|
24872
|
+
/**
|
|
24873
|
+
*
|
|
24874
|
+
* @summary Delete a ClickHouse role
|
|
24875
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
24876
|
+
* @param {*} [options] Override http request option.
|
|
24877
|
+
* @throws {RequiredError}
|
|
24878
|
+
* @memberof SharedApiInterface
|
|
24879
|
+
*/
|
|
24880
|
+
deleteClickhouseRole(requestParameters: SharedApiDeleteClickhouseRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24881
|
+
|
|
23841
24882
|
/**
|
|
23842
24883
|
*
|
|
23843
24884
|
* @summary Delete cluster
|
|
@@ -24289,6 +25330,16 @@ export interface SharedApiInterface {
|
|
|
24289
25330
|
*/
|
|
24290
25331
|
getBackupRepo(requestParameters: SharedApiGetBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupRepo>;
|
|
24291
25332
|
|
|
25333
|
+
/**
|
|
25334
|
+
*
|
|
25335
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
25336
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
25337
|
+
* @param {*} [options] Override http request option.
|
|
25338
|
+
* @throws {RequiredError}
|
|
25339
|
+
* @memberof SharedApiInterface
|
|
25340
|
+
*/
|
|
25341
|
+
getClickhouseRoleGrants(requestParameters: SharedApiGetClickhouseRoleGrantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<GetClickhouseRoleGrants200ResponseInner>>;
|
|
25342
|
+
|
|
24292
25343
|
/**
|
|
24293
25344
|
*
|
|
24294
25345
|
* @summary Get cluster details
|
|
@@ -24788,6 +25839,16 @@ export interface SharedApiInterface {
|
|
|
24788
25839
|
*/
|
|
24789
25840
|
getTenant(requestParameters: SharedApiGetTenantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tenant>;
|
|
24790
25841
|
|
|
25842
|
+
/**
|
|
25843
|
+
*
|
|
25844
|
+
* @summary Grant privileges to a ClickHouse role
|
|
25845
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
25846
|
+
* @param {*} [options] Override http request option.
|
|
25847
|
+
* @throws {RequiredError}
|
|
25848
|
+
* @memberof SharedApiInterface
|
|
25849
|
+
*/
|
|
25850
|
+
grantClickhouseRolePrivileges(requestParameters: SharedApiGrantClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
25851
|
+
|
|
24791
25852
|
/**
|
|
24792
25853
|
*
|
|
24793
25854
|
* @summary Horizontal scale cluster
|
|
@@ -24877,6 +25938,46 @@ export interface SharedApiInterface {
|
|
|
24877
25938
|
*/
|
|
24878
25939
|
listClasses(requestParameters?: SharedApiListClassesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Class>>;
|
|
24879
25940
|
|
|
25941
|
+
/**
|
|
25942
|
+
*
|
|
25943
|
+
* @summary List the roles granted to a ClickHouse account
|
|
25944
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
25945
|
+
* @param {*} [options] Override http request option.
|
|
25946
|
+
* @throws {RequiredError}
|
|
25947
|
+
* @memberof SharedApiInterface
|
|
25948
|
+
*/
|
|
25949
|
+
listClickhouseAccountRoles(requestParameters: SharedApiListClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListClickhouseAccountRoles200Response>;
|
|
25950
|
+
|
|
25951
|
+
/**
|
|
25952
|
+
*
|
|
25953
|
+
* @summary List ClickHouse accounts
|
|
25954
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
25955
|
+
* @param {*} [options] Override http request option.
|
|
25956
|
+
* @throws {RequiredError}
|
|
25957
|
+
* @memberof SharedApiInterface
|
|
25958
|
+
*/
|
|
25959
|
+
listClickhouseAccounts(requestParameters: SharedApiListClickhouseAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CkAccount>;
|
|
25960
|
+
|
|
25961
|
+
/**
|
|
25962
|
+
*
|
|
25963
|
+
* @summary List privileges supported by the ClickHouse server
|
|
25964
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
25965
|
+
* @param {*} [options] Override http request option.
|
|
25966
|
+
* @throws {RequiredError}
|
|
25967
|
+
* @memberof SharedApiInterface
|
|
25968
|
+
*/
|
|
25969
|
+
listClickhousePrivileges(requestParameters: SharedApiListClickhousePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
25970
|
+
|
|
25971
|
+
/**
|
|
25972
|
+
*
|
|
25973
|
+
* @summary List ClickHouse roles
|
|
25974
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
25975
|
+
* @param {*} [options] Override http request option.
|
|
25976
|
+
* @throws {RequiredError}
|
|
25977
|
+
* @memberof SharedApiInterface
|
|
25978
|
+
*/
|
|
25979
|
+
listClickhouseRoles(requestParameters: SharedApiListClickhouseRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ListClickhouseAccountRoles200Response>>;
|
|
25980
|
+
|
|
24880
25981
|
/**
|
|
24881
25982
|
*
|
|
24882
25983
|
* @summary List clusters in the Org
|
|
@@ -25853,6 +26954,16 @@ export interface SharedApiInterface {
|
|
|
25853
26954
|
*/
|
|
25854
26955
|
restoreRecycleBinCluster(requestParameters: SharedApiRestoreRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster>;
|
|
25855
26956
|
|
|
26957
|
+
/**
|
|
26958
|
+
*
|
|
26959
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
26960
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
26961
|
+
* @param {*} [options] Override http request option.
|
|
26962
|
+
* @throws {RequiredError}
|
|
26963
|
+
* @memberof SharedApiInterface
|
|
26964
|
+
*/
|
|
26965
|
+
revokeClickhouseRolePrivileges(requestParameters: SharedApiRevokeClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26966
|
+
|
|
25856
26967
|
/**
|
|
25857
26968
|
*
|
|
25858
26969
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -26033,6 +27144,26 @@ export interface SharedApiInterface {
|
|
|
26033
27144
|
*/
|
|
26034
27145
|
updateBackupSchedule(requestParameters: SharedApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule>;
|
|
26035
27146
|
|
|
27147
|
+
/**
|
|
27148
|
+
*
|
|
27149
|
+
* @summary Update a ClickHouse account password
|
|
27150
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
27151
|
+
* @param {*} [options] Override http request option.
|
|
27152
|
+
* @throws {RequiredError}
|
|
27153
|
+
* @memberof SharedApiInterface
|
|
27154
|
+
*/
|
|
27155
|
+
updateClickhouseAccountPassword(requestParameters: SharedApiUpdateClickhouseAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
27156
|
+
|
|
27157
|
+
/**
|
|
27158
|
+
*
|
|
27159
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
27160
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
27161
|
+
* @param {*} [options] Override http request option.
|
|
27162
|
+
* @throws {RequiredError}
|
|
27163
|
+
* @memberof SharedApiInterface
|
|
27164
|
+
*/
|
|
27165
|
+
updateClickhouseAccountRoles(requestParameters: SharedApiUpdateClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
27166
|
+
|
|
26036
27167
|
/**
|
|
26037
27168
|
*
|
|
26038
27169
|
* @summary Update the cluster license
|
|
@@ -26851,6 +27982,62 @@ export interface SharedApiCreateBackupScheduleRequest {
|
|
|
26851
27982
|
readonly body: BackupScheduleCreate
|
|
26852
27983
|
}
|
|
26853
27984
|
|
|
27985
|
+
/**
|
|
27986
|
+
* Request parameters for createClickhouseAccount operation in SharedApi.
|
|
27987
|
+
* @export
|
|
27988
|
+
* @interface SharedApiCreateClickhouseAccountRequest
|
|
27989
|
+
*/
|
|
27990
|
+
export interface SharedApiCreateClickhouseAccountRequest {
|
|
27991
|
+
/**
|
|
27992
|
+
*
|
|
27993
|
+
* @type {string}
|
|
27994
|
+
* @memberof SharedApiCreateClickhouseAccount
|
|
27995
|
+
*/
|
|
27996
|
+
readonly orgName: string
|
|
27997
|
+
|
|
27998
|
+
/**
|
|
27999
|
+
*
|
|
28000
|
+
* @type {string}
|
|
28001
|
+
* @memberof SharedApiCreateClickhouseAccount
|
|
28002
|
+
*/
|
|
28003
|
+
readonly clusterName: string
|
|
28004
|
+
|
|
28005
|
+
/**
|
|
28006
|
+
*
|
|
28007
|
+
* @type {CreateClickhouseAccountRequest}
|
|
28008
|
+
* @memberof SharedApiCreateClickhouseAccount
|
|
28009
|
+
*/
|
|
28010
|
+
readonly body: CreateClickhouseAccountRequest
|
|
28011
|
+
}
|
|
28012
|
+
|
|
28013
|
+
/**
|
|
28014
|
+
* Request parameters for createClickhouseRole operation in SharedApi.
|
|
28015
|
+
* @export
|
|
28016
|
+
* @interface SharedApiCreateClickhouseRoleRequest
|
|
28017
|
+
*/
|
|
28018
|
+
export interface SharedApiCreateClickhouseRoleRequest {
|
|
28019
|
+
/**
|
|
28020
|
+
*
|
|
28021
|
+
* @type {string}
|
|
28022
|
+
* @memberof SharedApiCreateClickhouseRole
|
|
28023
|
+
*/
|
|
28024
|
+
readonly orgName: string
|
|
28025
|
+
|
|
28026
|
+
/**
|
|
28027
|
+
*
|
|
28028
|
+
* @type {string}
|
|
28029
|
+
* @memberof SharedApiCreateClickhouseRole
|
|
28030
|
+
*/
|
|
28031
|
+
readonly clusterName: string
|
|
28032
|
+
|
|
28033
|
+
/**
|
|
28034
|
+
*
|
|
28035
|
+
* @type {ListClickhouseAccountRoles200Response}
|
|
28036
|
+
* @memberof SharedApiCreateClickhouseRole
|
|
28037
|
+
*/
|
|
28038
|
+
readonly body: ListClickhouseAccountRoles200Response
|
|
28039
|
+
}
|
|
28040
|
+
|
|
26854
28041
|
/**
|
|
26855
28042
|
* Request parameters for createCluster operation in SharedApi.
|
|
26856
28043
|
* @export
|
|
@@ -27516,6 +28703,62 @@ export interface SharedApiDeleteBackupScheduleRequest {
|
|
|
27516
28703
|
readonly scheduleName: string
|
|
27517
28704
|
}
|
|
27518
28705
|
|
|
28706
|
+
/**
|
|
28707
|
+
* Request parameters for deleteClickhouseAccount operation in SharedApi.
|
|
28708
|
+
* @export
|
|
28709
|
+
* @interface SharedApiDeleteClickhouseAccountRequest
|
|
28710
|
+
*/
|
|
28711
|
+
export interface SharedApiDeleteClickhouseAccountRequest {
|
|
28712
|
+
/**
|
|
28713
|
+
*
|
|
28714
|
+
* @type {string}
|
|
28715
|
+
* @memberof SharedApiDeleteClickhouseAccount
|
|
28716
|
+
*/
|
|
28717
|
+
readonly orgName: string
|
|
28718
|
+
|
|
28719
|
+
/**
|
|
28720
|
+
*
|
|
28721
|
+
* @type {string}
|
|
28722
|
+
* @memberof SharedApiDeleteClickhouseAccount
|
|
28723
|
+
*/
|
|
28724
|
+
readonly clusterName: string
|
|
28725
|
+
|
|
28726
|
+
/**
|
|
28727
|
+
*
|
|
28728
|
+
* @type {string}
|
|
28729
|
+
* @memberof SharedApiDeleteClickhouseAccount
|
|
28730
|
+
*/
|
|
28731
|
+
readonly accountName: string
|
|
28732
|
+
}
|
|
28733
|
+
|
|
28734
|
+
/**
|
|
28735
|
+
* Request parameters for deleteClickhouseRole operation in SharedApi.
|
|
28736
|
+
* @export
|
|
28737
|
+
* @interface SharedApiDeleteClickhouseRoleRequest
|
|
28738
|
+
*/
|
|
28739
|
+
export interface SharedApiDeleteClickhouseRoleRequest {
|
|
28740
|
+
/**
|
|
28741
|
+
*
|
|
28742
|
+
* @type {string}
|
|
28743
|
+
* @memberof SharedApiDeleteClickhouseRole
|
|
28744
|
+
*/
|
|
28745
|
+
readonly orgName: string
|
|
28746
|
+
|
|
28747
|
+
/**
|
|
28748
|
+
*
|
|
28749
|
+
* @type {string}
|
|
28750
|
+
* @memberof SharedApiDeleteClickhouseRole
|
|
28751
|
+
*/
|
|
28752
|
+
readonly clusterName: string
|
|
28753
|
+
|
|
28754
|
+
/**
|
|
28755
|
+
*
|
|
28756
|
+
* @type {string}
|
|
28757
|
+
* @memberof SharedApiDeleteClickhouseRole
|
|
28758
|
+
*/
|
|
28759
|
+
readonly roleName: string
|
|
28760
|
+
}
|
|
28761
|
+
|
|
27519
28762
|
/**
|
|
27520
28763
|
* Request parameters for deleteCluster operation in SharedApi.
|
|
27521
28764
|
* @export
|
|
@@ -28986,6 +30229,34 @@ export interface SharedApiGetBackupRepoRequest {
|
|
|
28986
30229
|
readonly orgName?: string
|
|
28987
30230
|
}
|
|
28988
30231
|
|
|
30232
|
+
/**
|
|
30233
|
+
* Request parameters for getClickhouseRoleGrants operation in SharedApi.
|
|
30234
|
+
* @export
|
|
30235
|
+
* @interface SharedApiGetClickhouseRoleGrantsRequest
|
|
30236
|
+
*/
|
|
30237
|
+
export interface SharedApiGetClickhouseRoleGrantsRequest {
|
|
30238
|
+
/**
|
|
30239
|
+
*
|
|
30240
|
+
* @type {string}
|
|
30241
|
+
* @memberof SharedApiGetClickhouseRoleGrants
|
|
30242
|
+
*/
|
|
30243
|
+
readonly orgName: string
|
|
30244
|
+
|
|
30245
|
+
/**
|
|
30246
|
+
*
|
|
30247
|
+
* @type {string}
|
|
30248
|
+
* @memberof SharedApiGetClickhouseRoleGrants
|
|
30249
|
+
*/
|
|
30250
|
+
readonly clusterName: string
|
|
30251
|
+
|
|
30252
|
+
/**
|
|
30253
|
+
*
|
|
30254
|
+
* @type {string}
|
|
30255
|
+
* @memberof SharedApiGetClickhouseRoleGrants
|
|
30256
|
+
*/
|
|
30257
|
+
readonly roleName: string
|
|
30258
|
+
}
|
|
30259
|
+
|
|
28989
30260
|
/**
|
|
28990
30261
|
* Request parameters for getCluster operation in SharedApi.
|
|
28991
30262
|
* @export
|
|
@@ -30708,6 +31979,41 @@ export interface SharedApiGetTenantRequest {
|
|
|
30708
31979
|
readonly tenantId: string
|
|
30709
31980
|
}
|
|
30710
31981
|
|
|
31982
|
+
/**
|
|
31983
|
+
* Request parameters for grantClickhouseRolePrivileges operation in SharedApi.
|
|
31984
|
+
* @export
|
|
31985
|
+
* @interface SharedApiGrantClickhouseRolePrivilegesRequest
|
|
31986
|
+
*/
|
|
31987
|
+
export interface SharedApiGrantClickhouseRolePrivilegesRequest {
|
|
31988
|
+
/**
|
|
31989
|
+
*
|
|
31990
|
+
* @type {string}
|
|
31991
|
+
* @memberof SharedApiGrantClickhouseRolePrivileges
|
|
31992
|
+
*/
|
|
31993
|
+
readonly orgName: string
|
|
31994
|
+
|
|
31995
|
+
/**
|
|
31996
|
+
*
|
|
31997
|
+
* @type {string}
|
|
31998
|
+
* @memberof SharedApiGrantClickhouseRolePrivileges
|
|
31999
|
+
*/
|
|
32000
|
+
readonly clusterName: string
|
|
32001
|
+
|
|
32002
|
+
/**
|
|
32003
|
+
*
|
|
32004
|
+
* @type {string}
|
|
32005
|
+
* @memberof SharedApiGrantClickhouseRolePrivileges
|
|
32006
|
+
*/
|
|
32007
|
+
readonly roleName: string
|
|
32008
|
+
|
|
32009
|
+
/**
|
|
32010
|
+
*
|
|
32011
|
+
* @type {ListClickhouseAccountRoles200ResponsePrivilegesInner}
|
|
32012
|
+
* @memberof SharedApiGrantClickhouseRolePrivileges
|
|
32013
|
+
*/
|
|
32014
|
+
readonly body: ListClickhouseAccountRoles200ResponsePrivilegesInner
|
|
32015
|
+
}
|
|
32016
|
+
|
|
30711
32017
|
/**
|
|
30712
32018
|
* Request parameters for horizontalScaleCluster operation in SharedApi.
|
|
30713
32019
|
* @export
|
|
@@ -30932,6 +32238,104 @@ export interface SharedApiListClassesRequest {
|
|
|
30932
32238
|
readonly engineName?: string
|
|
30933
32239
|
}
|
|
30934
32240
|
|
|
32241
|
+
/**
|
|
32242
|
+
* Request parameters for listClickhouseAccountRoles operation in SharedApi.
|
|
32243
|
+
* @export
|
|
32244
|
+
* @interface SharedApiListClickhouseAccountRolesRequest
|
|
32245
|
+
*/
|
|
32246
|
+
export interface SharedApiListClickhouseAccountRolesRequest {
|
|
32247
|
+
/**
|
|
32248
|
+
*
|
|
32249
|
+
* @type {string}
|
|
32250
|
+
* @memberof SharedApiListClickhouseAccountRoles
|
|
32251
|
+
*/
|
|
32252
|
+
readonly orgName: string
|
|
32253
|
+
|
|
32254
|
+
/**
|
|
32255
|
+
*
|
|
32256
|
+
* @type {string}
|
|
32257
|
+
* @memberof SharedApiListClickhouseAccountRoles
|
|
32258
|
+
*/
|
|
32259
|
+
readonly clusterName: string
|
|
32260
|
+
|
|
32261
|
+
/**
|
|
32262
|
+
*
|
|
32263
|
+
* @type {string}
|
|
32264
|
+
* @memberof SharedApiListClickhouseAccountRoles
|
|
32265
|
+
*/
|
|
32266
|
+
readonly accountName: string
|
|
32267
|
+
}
|
|
32268
|
+
|
|
32269
|
+
/**
|
|
32270
|
+
* Request parameters for listClickhouseAccounts operation in SharedApi.
|
|
32271
|
+
* @export
|
|
32272
|
+
* @interface SharedApiListClickhouseAccountsRequest
|
|
32273
|
+
*/
|
|
32274
|
+
export interface SharedApiListClickhouseAccountsRequest {
|
|
32275
|
+
/**
|
|
32276
|
+
*
|
|
32277
|
+
* @type {string}
|
|
32278
|
+
* @memberof SharedApiListClickhouseAccounts
|
|
32279
|
+
*/
|
|
32280
|
+
readonly orgName: string
|
|
32281
|
+
|
|
32282
|
+
/**
|
|
32283
|
+
*
|
|
32284
|
+
* @type {string}
|
|
32285
|
+
* @memberof SharedApiListClickhouseAccounts
|
|
32286
|
+
*/
|
|
32287
|
+
readonly clusterName: string
|
|
32288
|
+
}
|
|
32289
|
+
|
|
32290
|
+
/**
|
|
32291
|
+
* Request parameters for listClickhousePrivileges operation in SharedApi.
|
|
32292
|
+
* @export
|
|
32293
|
+
* @interface SharedApiListClickhousePrivilegesRequest
|
|
32294
|
+
*/
|
|
32295
|
+
export interface SharedApiListClickhousePrivilegesRequest {
|
|
32296
|
+
/**
|
|
32297
|
+
*
|
|
32298
|
+
* @type {string}
|
|
32299
|
+
* @memberof SharedApiListClickhousePrivileges
|
|
32300
|
+
*/
|
|
32301
|
+
readonly orgName: string
|
|
32302
|
+
|
|
32303
|
+
/**
|
|
32304
|
+
*
|
|
32305
|
+
* @type {string}
|
|
32306
|
+
* @memberof SharedApiListClickhousePrivileges
|
|
32307
|
+
*/
|
|
32308
|
+
readonly clusterName: string
|
|
32309
|
+
}
|
|
32310
|
+
|
|
32311
|
+
/**
|
|
32312
|
+
* Request parameters for listClickhouseRoles operation in SharedApi.
|
|
32313
|
+
* @export
|
|
32314
|
+
* @interface SharedApiListClickhouseRolesRequest
|
|
32315
|
+
*/
|
|
32316
|
+
export interface SharedApiListClickhouseRolesRequest {
|
|
32317
|
+
/**
|
|
32318
|
+
*
|
|
32319
|
+
* @type {string}
|
|
32320
|
+
* @memberof SharedApiListClickhouseRoles
|
|
32321
|
+
*/
|
|
32322
|
+
readonly orgName: string
|
|
32323
|
+
|
|
32324
|
+
/**
|
|
32325
|
+
*
|
|
32326
|
+
* @type {string}
|
|
32327
|
+
* @memberof SharedApiListClickhouseRoles
|
|
32328
|
+
*/
|
|
32329
|
+
readonly clusterName: string
|
|
32330
|
+
|
|
32331
|
+
/**
|
|
32332
|
+
* Whether to include built-in privilege roles for creating an account.
|
|
32333
|
+
* @type {boolean}
|
|
32334
|
+
* @memberof SharedApiListClickhouseRoles
|
|
32335
|
+
*/
|
|
32336
|
+
readonly forCreateUser?: boolean
|
|
32337
|
+
}
|
|
32338
|
+
|
|
30935
32339
|
/**
|
|
30936
32340
|
* Request parameters for listCluster operation in SharedApi.
|
|
30937
32341
|
* @export
|
|
@@ -34551,6 +35955,41 @@ export interface SharedApiRestoreRecycleBinClusterRequest {
|
|
|
34551
35955
|
readonly clusterName: string
|
|
34552
35956
|
}
|
|
34553
35957
|
|
|
35958
|
+
/**
|
|
35959
|
+
* Request parameters for revokeClickhouseRolePrivileges operation in SharedApi.
|
|
35960
|
+
* @export
|
|
35961
|
+
* @interface SharedApiRevokeClickhouseRolePrivilegesRequest
|
|
35962
|
+
*/
|
|
35963
|
+
export interface SharedApiRevokeClickhouseRolePrivilegesRequest {
|
|
35964
|
+
/**
|
|
35965
|
+
*
|
|
35966
|
+
* @type {string}
|
|
35967
|
+
* @memberof SharedApiRevokeClickhouseRolePrivileges
|
|
35968
|
+
*/
|
|
35969
|
+
readonly orgName: string
|
|
35970
|
+
|
|
35971
|
+
/**
|
|
35972
|
+
*
|
|
35973
|
+
* @type {string}
|
|
35974
|
+
* @memberof SharedApiRevokeClickhouseRolePrivileges
|
|
35975
|
+
*/
|
|
35976
|
+
readonly clusterName: string
|
|
35977
|
+
|
|
35978
|
+
/**
|
|
35979
|
+
*
|
|
35980
|
+
* @type {string}
|
|
35981
|
+
* @memberof SharedApiRevokeClickhouseRolePrivileges
|
|
35982
|
+
*/
|
|
35983
|
+
readonly roleName: string
|
|
35984
|
+
|
|
35985
|
+
/**
|
|
35986
|
+
*
|
|
35987
|
+
* @type {RevokeClickhouseRolePrivilegesRequest}
|
|
35988
|
+
* @memberof SharedApiRevokeClickhouseRolePrivileges
|
|
35989
|
+
*/
|
|
35990
|
+
readonly body: RevokeClickhouseRolePrivilegesRequest
|
|
35991
|
+
}
|
|
35992
|
+
|
|
34554
35993
|
/**
|
|
34555
35994
|
* Request parameters for setClusterAlertDisabled operation in SharedApi.
|
|
34556
35995
|
* @export
|
|
@@ -35125,6 +36564,76 @@ export interface SharedApiUpdateBackupScheduleRequest {
|
|
|
35125
36564
|
readonly body: BackupScheduleUpdate
|
|
35126
36565
|
}
|
|
35127
36566
|
|
|
36567
|
+
/**
|
|
36568
|
+
* Request parameters for updateClickhouseAccountPassword operation in SharedApi.
|
|
36569
|
+
* @export
|
|
36570
|
+
* @interface SharedApiUpdateClickhouseAccountPasswordRequest
|
|
36571
|
+
*/
|
|
36572
|
+
export interface SharedApiUpdateClickhouseAccountPasswordRequest {
|
|
36573
|
+
/**
|
|
36574
|
+
*
|
|
36575
|
+
* @type {string}
|
|
36576
|
+
* @memberof SharedApiUpdateClickhouseAccountPassword
|
|
36577
|
+
*/
|
|
36578
|
+
readonly orgName: string
|
|
36579
|
+
|
|
36580
|
+
/**
|
|
36581
|
+
*
|
|
36582
|
+
* @type {string}
|
|
36583
|
+
* @memberof SharedApiUpdateClickhouseAccountPassword
|
|
36584
|
+
*/
|
|
36585
|
+
readonly clusterName: string
|
|
36586
|
+
|
|
36587
|
+
/**
|
|
36588
|
+
*
|
|
36589
|
+
* @type {string}
|
|
36590
|
+
* @memberof SharedApiUpdateClickhouseAccountPassword
|
|
36591
|
+
*/
|
|
36592
|
+
readonly accountName: string
|
|
36593
|
+
|
|
36594
|
+
/**
|
|
36595
|
+
*
|
|
36596
|
+
* @type {UpdateClickhouseAccountPasswordRequest}
|
|
36597
|
+
* @memberof SharedApiUpdateClickhouseAccountPassword
|
|
36598
|
+
*/
|
|
36599
|
+
readonly body: UpdateClickhouseAccountPasswordRequest
|
|
36600
|
+
}
|
|
36601
|
+
|
|
36602
|
+
/**
|
|
36603
|
+
* Request parameters for updateClickhouseAccountRoles operation in SharedApi.
|
|
36604
|
+
* @export
|
|
36605
|
+
* @interface SharedApiUpdateClickhouseAccountRolesRequest
|
|
36606
|
+
*/
|
|
36607
|
+
export interface SharedApiUpdateClickhouseAccountRolesRequest {
|
|
36608
|
+
/**
|
|
36609
|
+
*
|
|
36610
|
+
* @type {string}
|
|
36611
|
+
* @memberof SharedApiUpdateClickhouseAccountRoles
|
|
36612
|
+
*/
|
|
36613
|
+
readonly orgName: string
|
|
36614
|
+
|
|
36615
|
+
/**
|
|
36616
|
+
*
|
|
36617
|
+
* @type {string}
|
|
36618
|
+
* @memberof SharedApiUpdateClickhouseAccountRoles
|
|
36619
|
+
*/
|
|
36620
|
+
readonly clusterName: string
|
|
36621
|
+
|
|
36622
|
+
/**
|
|
36623
|
+
*
|
|
36624
|
+
* @type {string}
|
|
36625
|
+
* @memberof SharedApiUpdateClickhouseAccountRoles
|
|
36626
|
+
*/
|
|
36627
|
+
readonly accountName: string
|
|
36628
|
+
|
|
36629
|
+
/**
|
|
36630
|
+
*
|
|
36631
|
+
* @type {UpdateClickhouseAccountRolesRequest}
|
|
36632
|
+
* @memberof SharedApiUpdateClickhouseAccountRoles
|
|
36633
|
+
*/
|
|
36634
|
+
readonly body: UpdateClickhouseAccountRolesRequest
|
|
36635
|
+
}
|
|
36636
|
+
|
|
35128
36637
|
/**
|
|
35129
36638
|
* Request parameters for updateClusterLicense operation in SharedApi.
|
|
35130
36639
|
* @export
|
|
@@ -36129,6 +37638,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36129
37638
|
return SharedApiFp(this.configuration).createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
36130
37639
|
}
|
|
36131
37640
|
|
|
37641
|
+
/**
|
|
37642
|
+
*
|
|
37643
|
+
* @summary Create a ClickHouse account with optional roles
|
|
37644
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
37645
|
+
* @param {*} [options] Override http request option.
|
|
37646
|
+
* @throws {RequiredError}
|
|
37647
|
+
* @memberof SharedApi
|
|
37648
|
+
*/
|
|
37649
|
+
public createClickhouseAccount(requestParameters: SharedApiCreateClickhouseAccountRequest, options?: RawAxiosRequestConfig) {
|
|
37650
|
+
return SharedApiFp(this.configuration).createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
37651
|
+
}
|
|
37652
|
+
|
|
37653
|
+
/**
|
|
37654
|
+
*
|
|
37655
|
+
* @summary Create a ClickHouse role with privileges
|
|
37656
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
37657
|
+
* @param {*} [options] Override http request option.
|
|
37658
|
+
* @throws {RequiredError}
|
|
37659
|
+
* @memberof SharedApi
|
|
37660
|
+
*/
|
|
37661
|
+
public createClickhouseRole(requestParameters: SharedApiCreateClickhouseRoleRequest, options?: RawAxiosRequestConfig) {
|
|
37662
|
+
return SharedApiFp(this.configuration).createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
37663
|
+
}
|
|
37664
|
+
|
|
36132
37665
|
/**
|
|
36133
37666
|
*
|
|
36134
37667
|
* @summary Create new cluster
|
|
@@ -36417,6 +37950,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36417
37950
|
return SharedApiFp(this.configuration).deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(this.axios, this.basePath));
|
|
36418
37951
|
}
|
|
36419
37952
|
|
|
37953
|
+
/**
|
|
37954
|
+
*
|
|
37955
|
+
* @summary Delete a ClickHouse account
|
|
37956
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
37957
|
+
* @param {*} [options] Override http request option.
|
|
37958
|
+
* @throws {RequiredError}
|
|
37959
|
+
* @memberof SharedApi
|
|
37960
|
+
*/
|
|
37961
|
+
public deleteClickhouseAccount(requestParameters: SharedApiDeleteClickhouseAccountRequest, options?: RawAxiosRequestConfig) {
|
|
37962
|
+
return SharedApiFp(this.configuration).deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
37963
|
+
}
|
|
37964
|
+
|
|
37965
|
+
/**
|
|
37966
|
+
*
|
|
37967
|
+
* @summary Delete a ClickHouse role
|
|
37968
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
37969
|
+
* @param {*} [options] Override http request option.
|
|
37970
|
+
* @throws {RequiredError}
|
|
37971
|
+
* @memberof SharedApi
|
|
37972
|
+
*/
|
|
37973
|
+
public deleteClickhouseRole(requestParameters: SharedApiDeleteClickhouseRoleRequest, options?: RawAxiosRequestConfig) {
|
|
37974
|
+
return SharedApiFp(this.configuration).deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
37975
|
+
}
|
|
37976
|
+
|
|
36420
37977
|
/**
|
|
36421
37978
|
*
|
|
36422
37979
|
* @summary Delete cluster
|
|
@@ -36958,6 +38515,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36958
38515
|
return SharedApiFp(this.configuration).getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
36959
38516
|
}
|
|
36960
38517
|
|
|
38518
|
+
/**
|
|
38519
|
+
*
|
|
38520
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
38521
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
38522
|
+
* @param {*} [options] Override http request option.
|
|
38523
|
+
* @throws {RequiredError}
|
|
38524
|
+
* @memberof SharedApi
|
|
38525
|
+
*/
|
|
38526
|
+
public getClickhouseRoleGrants(requestParameters: SharedApiGetClickhouseRoleGrantsRequest, options?: RawAxiosRequestConfig) {
|
|
38527
|
+
return SharedApiFp(this.configuration).getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
38528
|
+
}
|
|
38529
|
+
|
|
36961
38530
|
/**
|
|
36962
38531
|
*
|
|
36963
38532
|
* @summary Get cluster details
|
|
@@ -37557,6 +39126,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37557
39126
|
return SharedApiFp(this.configuration).getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
37558
39127
|
}
|
|
37559
39128
|
|
|
39129
|
+
/**
|
|
39130
|
+
*
|
|
39131
|
+
* @summary Grant privileges to a ClickHouse role
|
|
39132
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
39133
|
+
* @param {*} [options] Override http request option.
|
|
39134
|
+
* @throws {RequiredError}
|
|
39135
|
+
* @memberof SharedApi
|
|
39136
|
+
*/
|
|
39137
|
+
public grantClickhouseRolePrivileges(requestParameters: SharedApiGrantClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
39138
|
+
return SharedApiFp(this.configuration).grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
39139
|
+
}
|
|
39140
|
+
|
|
37560
39141
|
/**
|
|
37561
39142
|
*
|
|
37562
39143
|
* @summary Horizontal scale cluster
|
|
@@ -37664,6 +39245,54 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37664
39245
|
return SharedApiFp(this.configuration).listClasses(requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
|
|
37665
39246
|
}
|
|
37666
39247
|
|
|
39248
|
+
/**
|
|
39249
|
+
*
|
|
39250
|
+
* @summary List the roles granted to a ClickHouse account
|
|
39251
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
39252
|
+
* @param {*} [options] Override http request option.
|
|
39253
|
+
* @throws {RequiredError}
|
|
39254
|
+
* @memberof SharedApi
|
|
39255
|
+
*/
|
|
39256
|
+
public listClickhouseAccountRoles(requestParameters: SharedApiListClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig) {
|
|
39257
|
+
return SharedApiFp(this.configuration).listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
39258
|
+
}
|
|
39259
|
+
|
|
39260
|
+
/**
|
|
39261
|
+
*
|
|
39262
|
+
* @summary List ClickHouse accounts
|
|
39263
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
39264
|
+
* @param {*} [options] Override http request option.
|
|
39265
|
+
* @throws {RequiredError}
|
|
39266
|
+
* @memberof SharedApi
|
|
39267
|
+
*/
|
|
39268
|
+
public listClickhouseAccounts(requestParameters: SharedApiListClickhouseAccountsRequest, options?: RawAxiosRequestConfig) {
|
|
39269
|
+
return SharedApiFp(this.configuration).listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
39270
|
+
}
|
|
39271
|
+
|
|
39272
|
+
/**
|
|
39273
|
+
*
|
|
39274
|
+
* @summary List privileges supported by the ClickHouse server
|
|
39275
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
39276
|
+
* @param {*} [options] Override http request option.
|
|
39277
|
+
* @throws {RequiredError}
|
|
39278
|
+
* @memberof SharedApi
|
|
39279
|
+
*/
|
|
39280
|
+
public listClickhousePrivileges(requestParameters: SharedApiListClickhousePrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
39281
|
+
return SharedApiFp(this.configuration).listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
39282
|
+
}
|
|
39283
|
+
|
|
39284
|
+
/**
|
|
39285
|
+
*
|
|
39286
|
+
* @summary List ClickHouse roles
|
|
39287
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
39288
|
+
* @param {*} [options] Override http request option.
|
|
39289
|
+
* @throws {RequiredError}
|
|
39290
|
+
* @memberof SharedApi
|
|
39291
|
+
*/
|
|
39292
|
+
public listClickhouseRoles(requestParameters: SharedApiListClickhouseRolesRequest, options?: RawAxiosRequestConfig) {
|
|
39293
|
+
return SharedApiFp(this.configuration).listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(this.axios, this.basePath));
|
|
39294
|
+
}
|
|
39295
|
+
|
|
37667
39296
|
/**
|
|
37668
39297
|
*
|
|
37669
39298
|
* @summary List clusters in the Org
|
|
@@ -38836,6 +40465,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
38836
40465
|
return SharedApiFp(this.configuration).restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
38837
40466
|
}
|
|
38838
40467
|
|
|
40468
|
+
/**
|
|
40469
|
+
*
|
|
40470
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
40471
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
40472
|
+
* @param {*} [options] Override http request option.
|
|
40473
|
+
* @throws {RequiredError}
|
|
40474
|
+
* @memberof SharedApi
|
|
40475
|
+
*/
|
|
40476
|
+
public revokeClickhouseRolePrivileges(requestParameters: SharedApiRevokeClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
40477
|
+
return SharedApiFp(this.configuration).revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
40478
|
+
}
|
|
40479
|
+
|
|
38839
40480
|
/**
|
|
38840
40481
|
*
|
|
38841
40482
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -39052,6 +40693,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
39052
40693
|
return SharedApiFp(this.configuration).updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
39053
40694
|
}
|
|
39054
40695
|
|
|
40696
|
+
/**
|
|
40697
|
+
*
|
|
40698
|
+
* @summary Update a ClickHouse account password
|
|
40699
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
40700
|
+
* @param {*} [options] Override http request option.
|
|
40701
|
+
* @throws {RequiredError}
|
|
40702
|
+
* @memberof SharedApi
|
|
40703
|
+
*/
|
|
40704
|
+
public updateClickhouseAccountPassword(requestParameters: SharedApiUpdateClickhouseAccountPasswordRequest, options?: RawAxiosRequestConfig) {
|
|
40705
|
+
return SharedApiFp(this.configuration).updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
40706
|
+
}
|
|
40707
|
+
|
|
40708
|
+
/**
|
|
40709
|
+
*
|
|
40710
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
40711
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
40712
|
+
* @param {*} [options] Override http request option.
|
|
40713
|
+
* @throws {RequiredError}
|
|
40714
|
+
* @memberof SharedApi
|
|
40715
|
+
*/
|
|
40716
|
+
public updateClickhouseAccountRoles(requestParameters: SharedApiUpdateClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig) {
|
|
40717
|
+
return SharedApiFp(this.configuration).updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
40718
|
+
}
|
|
40719
|
+
|
|
39055
40720
|
/**
|
|
39056
40721
|
*
|
|
39057
40722
|
* @summary Update the cluster license
|