kb-cloud-client-typescript 2.3.0-beta.0 → 2.3.0-beta.10
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/cluster-api.d.ts +36 -4
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +30 -10
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/load-balancer-api.d.ts +175 -0
- package/dist/adminapi/apis/load-balancer-api.d.ts.map +1 -1
- package/dist/adminapi/apis/load-balancer-api.js +213 -0
- package/dist/adminapi/apis/load-balancer-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +989 -10
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +1121 -58
- 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-list-item.d.ts +20 -0
- package/dist/adminapi/models/cluster-list-item.d.ts.map +1 -1
- 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 +15 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +15 -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/load-balancer-annotations.d.ts +35 -0
- package/dist/adminapi/models/load-balancer-annotations.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-annotations.js +16 -0
- package/dist/adminapi/models/load-balancer-annotations.js.map +1 -0
- package/dist/adminapi/models/load-balancer-config-update.d.ts +26 -0
- package/dist/adminapi/models/load-balancer-config-update.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-config-update.js +16 -0
- package/dist/adminapi/models/load-balancer-config-update.js.map +1 -0
- package/dist/adminapi/models/load-balancer-config.d.ts +32 -0
- package/dist/adminapi/models/load-balancer-config.d.ts.map +1 -0
- package/dist/adminapi/models/load-balancer-config.js +16 -0
- package/dist/adminapi/models/load-balancer-config.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/internalapi/apis/cluster-api.d.ts +18 -2
- package/dist/internalapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/internalapi/apis/cluster-api.js +15 -5
- package/dist/internalapi/apis/cluster-api.js.map +1 -1
- package/dist/internalapi/models/cluster-list-item.d.ts +20 -0
- package/dist/internalapi/models/cluster-list-item.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +1 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +1 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/tag.d.ts +37 -0
- package/dist/internalapi/models/tag.d.ts.map +1 -0
- package/dist/internalapi/models/tag.js +16 -0
- package/dist/internalapi/models/tag.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/cluster-api.d.ts +18 -2
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +15 -5
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +966 -3
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +1118 -65
- 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-list-item.d.ts +20 -0
- package/dist/openapi/models/cluster-list-item.d.ts.map +1 -1
- 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 +16 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/clickhouse-api.ts +1735 -0
- package/src/adminapi/apis/cluster-api.ts +62 -10
- package/src/adminapi/apis/load-balancer-api.ts +318 -0
- package/src/adminapi/apis/shared-api.ts +1971 -254
- package/src/adminapi/models/ck-account-type.ts +32 -0
- package/src/adminapi/models/ck-account.ts +59 -0
- package/src/adminapi/models/cluster-list-item.ts +24 -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 +15 -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/load-balancer-annotations.ts +36 -0
- package/src/adminapi/models/load-balancer-config-update.ts +33 -0
- package/src/adminapi/models/load-balancer-config.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 +1109 -244
- package/src/internalapi/.openapi-generator/FILES +1 -0
- package/src/internalapi/apis/cluster-api.ts +31 -5
- package/src/internalapi/models/cluster-list-item.ts +24 -0
- package/src/internalapi/models/index.ts +1 -0
- package/src/internalapi/models/tag.ts +42 -0
- package/src/internalapi.yaml +107 -66
- 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/cluster-api.ts +31 -5
- package/src/openapi/apis/shared-api.ts +2251 -560
- package/src/openapi/models/ck-account-type.ts +32 -0
- package/src/openapi/models/ck-account.ts +59 -0
- package/src/openapi/models/cluster-list-item.ts +24 -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 +806 -84
|
@@ -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,172 @@ 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)));
|
|
2691
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2692
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2693
|
+
let baseOptions;
|
|
2694
|
+
if (configuration) {
|
|
2695
|
+
baseOptions = configuration.baseOptions;
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2699
|
+
const localVarHeaderParameter = {} as any;
|
|
2700
|
+
const localVarQueryParameter = {} as any;
|
|
2701
|
+
|
|
2702
|
+
// authentication BearerToken required
|
|
2703
|
+
// http bearer authentication required
|
|
2704
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2705
|
+
|
|
2706
|
+
// authentication DigestAuth required
|
|
2707
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
|
|
2711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2713
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2714
|
+
|
|
2715
|
+
return {
|
|
2716
|
+
url: toPathString(localVarUrlObj),
|
|
2717
|
+
options: localVarRequestOptions,
|
|
2718
|
+
};
|
|
2719
|
+
},
|
|
2720
|
+
/**
|
|
2721
|
+
*
|
|
2722
|
+
* @summary Delete a ClickHouse role
|
|
2723
|
+
* @param {string} orgName
|
|
2724
|
+
* @param {string} clusterName
|
|
2725
|
+
* @param {string} roleName
|
|
2726
|
+
* @param {*} [options] Override http request option.
|
|
2727
|
+
* @throws {RequiredError}
|
|
2728
|
+
*/
|
|
2729
|
+
deleteClickhouseRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2730
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2731
|
+
assertParamExists('deleteClickhouseRole', 'orgName', orgName)
|
|
2732
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
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}`
|
|
2737
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2738
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2739
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
2740
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2741
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2742
|
+
let baseOptions;
|
|
2743
|
+
if (configuration) {
|
|
2744
|
+
baseOptions = configuration.baseOptions;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2748
|
+
const localVarHeaderParameter = {} as any;
|
|
2749
|
+
const localVarQueryParameter = {} as any;
|
|
2750
|
+
|
|
2751
|
+
// authentication BearerToken required
|
|
2752
|
+
// http bearer authentication required
|
|
2753
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2754
|
+
|
|
2755
|
+
// authentication DigestAuth required
|
|
2756
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
|
|
2760
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2761
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2762
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2763
|
+
|
|
2764
|
+
return {
|
|
2765
|
+
url: toPathString(localVarUrlObj),
|
|
2766
|
+
options: localVarRequestOptions,
|
|
2767
|
+
};
|
|
2768
|
+
},
|
|
2769
|
+
/**
|
|
2770
|
+
*
|
|
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.
|
|
2775
|
+
* @param {*} [options] Override http request option.
|
|
2776
|
+
* @throws {RequiredError}
|
|
2777
|
+
*/
|
|
2778
|
+
deleteCluster: async (orgName: string, clusterName: string, force?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2779
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2780
|
+
assertParamExists('deleteCluster', 'orgName', orgName)
|
|
2781
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2782
|
+
assertParamExists('deleteCluster', 'clusterName', clusterName)
|
|
2783
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}`
|
|
2784
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2785
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2787
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2788
|
+
let baseOptions;
|
|
2789
|
+
if (configuration) {
|
|
2790
|
+
baseOptions = configuration.baseOptions;
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2794
|
+
const localVarHeaderParameter = {} as any;
|
|
2795
|
+
const localVarQueryParameter = {} as any;
|
|
2796
|
+
|
|
2797
|
+
// authentication BearerToken required
|
|
2798
|
+
// http bearer authentication required
|
|
2799
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2800
|
+
|
|
2801
|
+
// authentication DigestAuth required
|
|
2802
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2803
|
+
|
|
2804
|
+
if (force !== undefined) {
|
|
2805
|
+
localVarQueryParameter['force'] = force;
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
|
|
2809
|
+
|
|
2810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2812
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2813
|
+
|
|
2814
|
+
return {
|
|
2815
|
+
url: toPathString(localVarUrlObj),
|
|
2816
|
+
options: localVarRequestOptions,
|
|
2817
|
+
};
|
|
2818
|
+
},
|
|
2819
|
+
/**
|
|
2820
|
+
*
|
|
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
|
|
2825
|
+
* @param {*} [options] Override http request option.
|
|
2826
|
+
* @throws {RequiredError}
|
|
2827
|
+
*/
|
|
2828
|
+
deleteDataSourceV2: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2829
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2830
|
+
assertParamExists('deleteDataSourceV2', 'orgName', orgName)
|
|
2831
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
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}`
|
|
2836
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2837
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2838
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2623
2839
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2624
2840
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2625
2841
|
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};
|
|
@@ -8131,10 +8640,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8131
8640
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
8132
8641
|
* @param {number} [licenseId] license id
|
|
8133
8642
|
* @param {string} [refClusterName] list clusters referenced by this cluster
|
|
8643
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
8644
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
8134
8645
|
* @param {*} [options] Override http request option.
|
|
8135
8646
|
* @throws {RequiredError}
|
|
8136
8647
|
*/
|
|
8137
|
-
listCluster: async (orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8648
|
+
listCluster: async (orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, endpointHost?: string, includeEndpoints?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8138
8649
|
// verify required parameter 'orgName' is not null or undefined
|
|
8139
8650
|
assertParamExists('listCluster', 'orgName', orgName)
|
|
8140
8651
|
const localVarPath = `/admin/v1/organizations/{orgName}/clusters`
|
|
@@ -8193,6 +8704,14 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8193
8704
|
localVarQueryParameter['refClusterName'] = refClusterName;
|
|
8194
8705
|
}
|
|
8195
8706
|
|
|
8707
|
+
if (endpointHost !== undefined) {
|
|
8708
|
+
localVarQueryParameter['endpointHost'] = endpointHost;
|
|
8709
|
+
}
|
|
8710
|
+
|
|
8711
|
+
if (includeEndpoints !== undefined) {
|
|
8712
|
+
localVarQueryParameter['includeEndpoints'] = includeEndpoints;
|
|
8713
|
+
}
|
|
8714
|
+
|
|
8196
8715
|
|
|
8197
8716
|
|
|
8198
8717
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -8255,10 +8774,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8255
8774
|
* @param {string} [orgName] Organization name, if envName is provided, orgName is required
|
|
8256
8775
|
* @param {string} [envName] Environment name
|
|
8257
8776
|
* @param {boolean} [withStatic] Whether to include static clusters
|
|
8777
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
8778
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
8258
8779
|
* @param {*} [options] Override http request option.
|
|
8259
8780
|
* @throws {RequiredError}
|
|
8260
8781
|
*/
|
|
8261
|
-
listClusters: async (orgName?: string, envName?: string, withStatic?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8782
|
+
listClusters: async (orgName?: string, envName?: string, withStatic?: boolean, endpointHost?: string, includeEndpoints?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8262
8783
|
const localVarPath = `/admin/v1/clusters`;
|
|
8263
8784
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8264
8785
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8290,6 +8811,14 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8290
8811
|
localVarQueryParameter['withStatic'] = withStatic;
|
|
8291
8812
|
}
|
|
8292
8813
|
|
|
8814
|
+
if (endpointHost !== undefined) {
|
|
8815
|
+
localVarQueryParameter['endpointHost'] = endpointHost;
|
|
8816
|
+
}
|
|
8817
|
+
|
|
8818
|
+
if (includeEndpoints !== undefined) {
|
|
8819
|
+
localVarQueryParameter['includeEndpoints'] = includeEndpoints;
|
|
8820
|
+
}
|
|
8821
|
+
|
|
8293
8822
|
|
|
8294
8823
|
|
|
8295
8824
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13751,6 +14280,61 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13751
14280
|
options: localVarRequestOptions,
|
|
13752
14281
|
};
|
|
13753
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
|
|
14290
|
+
* @param {*} [options] Override http request option.
|
|
14291
|
+
* @throws {RequiredError}
|
|
14292
|
+
*/
|
|
14293
|
+
revokeClickhouseRolePrivileges: async (orgName: string, clusterName: string, roleName: string, body: RevokeClickhouseRolePrivilegesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14294
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
14295
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'orgName', orgName)
|
|
14296
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
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`
|
|
14303
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
14304
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
14305
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
14306
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14307
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14308
|
+
let baseOptions;
|
|
14309
|
+
if (configuration) {
|
|
14310
|
+
baseOptions = configuration.baseOptions;
|
|
14311
|
+
}
|
|
14312
|
+
|
|
14313
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
14314
|
+
const localVarHeaderParameter = {} as any;
|
|
14315
|
+
const localVarQueryParameter = {} as any;
|
|
14316
|
+
|
|
14317
|
+
// authentication BearerToken required
|
|
14318
|
+
// http bearer authentication required
|
|
14319
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14320
|
+
|
|
14321
|
+
// authentication DigestAuth required
|
|
14322
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
14323
|
+
|
|
14324
|
+
|
|
14325
|
+
|
|
14326
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14327
|
+
|
|
14328
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14330
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14331
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
14332
|
+
|
|
14333
|
+
return {
|
|
14334
|
+
url: toPathString(localVarUrlObj),
|
|
14335
|
+
options: localVarRequestOptions,
|
|
14336
|
+
};
|
|
14337
|
+
},
|
|
13754
14338
|
/**
|
|
13755
14339
|
*
|
|
13756
14340
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -14685,6 +15269,116 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14685
15269
|
|
|
14686
15270
|
|
|
14687
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
|
+
|
|
14688
15382
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14689
15383
|
|
|
14690
15384
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16293,6 +16987,36 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16293
16987
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.createBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
16294
16988
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16295
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
|
+
},
|
|
16296
17020
|
/**
|
|
16297
17021
|
*
|
|
16298
17022
|
* @summary Create new cluster
|
|
@@ -16652,6 +17376,36 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16652
17376
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
16653
17377
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16654
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
|
+
},
|
|
16655
17409
|
/**
|
|
16656
17410
|
*
|
|
16657
17411
|
* @summary Delete cluster
|
|
@@ -17358,6 +18112,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17358
18112
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getBackupRepo']?.[localVarOperationServerIndex]?.url;
|
|
17359
18113
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17360
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
|
+
},
|
|
17361
18130
|
/**
|
|
17362
18131
|
*
|
|
17363
18132
|
* @summary Get cluster details
|
|
@@ -18153,6 +18922,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18153
18922
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getTenant']?.[localVarOperationServerIndex]?.url;
|
|
18154
18923
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18155
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
|
+
},
|
|
18156
18941
|
/**
|
|
18157
18942
|
*
|
|
18158
18943
|
* @summary Horizontal scale cluster
|
|
@@ -18285,6 +19070,64 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18285
19070
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClasses']?.[localVarOperationServerIndex]?.url;
|
|
18286
19071
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18287
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
|
+
},
|
|
18288
19131
|
/**
|
|
18289
19132
|
*
|
|
18290
19133
|
* @summary List clusters in the Org
|
|
@@ -18298,11 +19141,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18298
19141
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
18299
19142
|
* @param {number} [licenseId] license id
|
|
18300
19143
|
* @param {string} [refClusterName] list clusters referenced by this cluster
|
|
19144
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
19145
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
18301
19146
|
* @param {*} [options] Override http request option.
|
|
18302
19147
|
* @throws {RequiredError}
|
|
18303
19148
|
*/
|
|
18304
|
-
async listCluster(orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
|
|
18305
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options);
|
|
19149
|
+
async listCluster(orgName: string, clusterDefinition?: string, environmentName?: string, environmentType?: EnvironmentType, tagKey?: string, tagValue?: string, tagKeys?: Array<string>, tagValues?: Array<string>, licenseId?: number, refClusterName?: string, endpointHost?: string, includeEndpoints?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
|
|
19150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options);
|
|
18306
19151
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18307
19152
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.listCluster']?.[localVarOperationServerIndex]?.url;
|
|
18308
19153
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -18327,11 +19172,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18327
19172
|
* @param {string} [orgName] Organization name, if envName is provided, orgName is required
|
|
18328
19173
|
* @param {string} [envName] Environment name
|
|
18329
19174
|
* @param {boolean} [withStatic] Whether to include static clusters
|
|
19175
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
19176
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
18330
19177
|
* @param {*} [options] Override http request option.
|
|
18331
19178
|
* @throws {RequiredError}
|
|
18332
19179
|
*/
|
|
18333
|
-
async listClusters(orgName?: string, envName?: string, withStatic?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
|
|
18334
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listClusters(orgName, envName, withStatic, options);
|
|
19180
|
+
async listClusters(orgName?: string, envName?: string, withStatic?: boolean, endpointHost?: string, includeEndpoints?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterList>> {
|
|
19181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClusters(orgName, envName, withStatic, endpointHost, includeEndpoints, options);
|
|
18335
19182
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18336
19183
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClusters']?.[localVarOperationServerIndex]?.url;
|
|
18337
19184
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -19882,6 +20729,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
19882
20729
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.restoreRecycleBinCluster']?.[localVarOperationServerIndex]?.url;
|
|
19883
20730
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19884
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
|
+
},
|
|
19885
20748
|
/**
|
|
19886
20749
|
*
|
|
19887
20750
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -20162,6 +21025,38 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
20162
21025
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
20163
21026
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20164
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
|
+
},
|
|
20165
21060
|
/**
|
|
20166
21061
|
*
|
|
20167
21062
|
* @summary Update the cluster license
|
|
@@ -20721,6 +21616,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
20721
21616
|
createBackupSchedule(requestParameters: SharedApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule> {
|
|
20722
21617
|
return localVarFp.createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20723
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
|
+
},
|
|
20724
21639
|
/**
|
|
20725
21640
|
*
|
|
20726
21641
|
* @summary Create new cluster
|
|
@@ -20961,6 +21876,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
20961
21876
|
deleteBackupSchedule(requestParameters: SharedApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
20962
21877
|
return localVarFp.deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(axios, basePath));
|
|
20963
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
|
+
},
|
|
20964
21899
|
/**
|
|
20965
21900
|
*
|
|
20966
21901
|
* @summary Delete cluster
|
|
@@ -21412,6 +22347,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21412
22347
|
getBackupRepo(requestParameters: SharedApiGetBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupRepo> {
|
|
21413
22348
|
return localVarFp.getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(axios, basePath));
|
|
21414
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
|
+
},
|
|
21415
22360
|
/**
|
|
21416
22361
|
*
|
|
21417
22362
|
* @summary Get cluster details
|
|
@@ -21911,6 +22856,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21911
22856
|
getTenant(requestParameters: SharedApiGetTenantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tenant> {
|
|
21912
22857
|
return localVarFp.getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(axios, basePath));
|
|
21913
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
|
+
},
|
|
21914
22869
|
/**
|
|
21915
22870
|
*
|
|
21916
22871
|
* @summary Horizontal scale cluster
|
|
@@ -22000,6 +22955,46 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22000
22955
|
listClasses(requestParameters: SharedApiListClassesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<Class>> {
|
|
22001
22956
|
return localVarFp.listClasses(requestParameters.engineName, options).then((request) => request(axios, basePath));
|
|
22002
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
|
+
},
|
|
22003
22998
|
/**
|
|
22004
22999
|
*
|
|
22005
23000
|
* @summary List clusters in the Org
|
|
@@ -22008,7 +23003,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22008
23003
|
* @throws {RequiredError}
|
|
22009
23004
|
*/
|
|
22010
23005
|
listCluster(requestParameters: SharedApiListClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterList> {
|
|
22011
|
-
return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, options).then((request) => request(axios, basePath));
|
|
23006
|
+
return localVarFp.listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(axios, basePath));
|
|
22012
23007
|
},
|
|
22013
23008
|
/**
|
|
22014
23009
|
*
|
|
@@ -22028,7 +23023,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22028
23023
|
* @throws {RequiredError}
|
|
22029
23024
|
*/
|
|
22030
23025
|
listClusters(requestParameters: SharedApiListClustersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ClusterList> {
|
|
22031
|
-
return localVarFp.listClusters(requestParameters.orgName, requestParameters.envName, requestParameters.withStatic, options).then((request) => request(axios, basePath));
|
|
23026
|
+
return localVarFp.listClusters(requestParameters.orgName, requestParameters.envName, requestParameters.withStatic, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(axios, basePath));
|
|
22032
23027
|
},
|
|
22033
23028
|
/**
|
|
22034
23029
|
*
|
|
@@ -22976,6 +23971,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22976
23971
|
restoreRecycleBinCluster(requestParameters: SharedApiRestoreRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
22977
23972
|
return localVarFp.restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
22978
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
|
+
},
|
|
22979
23984
|
/**
|
|
22980
23985
|
*
|
|
22981
23986
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -23156,6 +24161,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23156
24161
|
updateBackupSchedule(requestParameters: SharedApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule> {
|
|
23157
24162
|
return localVarFp.updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
23158
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
|
+
},
|
|
23159
24184
|
/**
|
|
23160
24185
|
*
|
|
23161
24186
|
* @summary Update the cluster license
|
|
@@ -23574,6 +24599,26 @@ export interface SharedApiInterface {
|
|
|
23574
24599
|
*/
|
|
23575
24600
|
createBackupSchedule(requestParameters: SharedApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule>;
|
|
23576
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
|
+
|
|
23577
24622
|
/**
|
|
23578
24623
|
*
|
|
23579
24624
|
* @summary Create new cluster
|
|
@@ -23814,6 +24859,26 @@ export interface SharedApiInterface {
|
|
|
23814
24859
|
*/
|
|
23815
24860
|
deleteBackupSchedule(requestParameters: SharedApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
23816
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
|
+
|
|
23817
24882
|
/**
|
|
23818
24883
|
*
|
|
23819
24884
|
* @summary Delete cluster
|
|
@@ -24265,6 +25330,16 @@ export interface SharedApiInterface {
|
|
|
24265
25330
|
*/
|
|
24266
25331
|
getBackupRepo(requestParameters: SharedApiGetBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupRepo>;
|
|
24267
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
|
+
|
|
24268
25343
|
/**
|
|
24269
25344
|
*
|
|
24270
25345
|
* @summary Get cluster details
|
|
@@ -24764,6 +25839,16 @@ export interface SharedApiInterface {
|
|
|
24764
25839
|
*/
|
|
24765
25840
|
getTenant(requestParameters: SharedApiGetTenantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tenant>;
|
|
24766
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
|
+
|
|
24767
25852
|
/**
|
|
24768
25853
|
*
|
|
24769
25854
|
* @summary Horizontal scale cluster
|
|
@@ -24853,6 +25938,46 @@ export interface SharedApiInterface {
|
|
|
24853
25938
|
*/
|
|
24854
25939
|
listClasses(requestParameters?: SharedApiListClassesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Class>>;
|
|
24855
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
|
+
|
|
24856
25981
|
/**
|
|
24857
25982
|
*
|
|
24858
25983
|
* @summary List clusters in the Org
|
|
@@ -25829,6 +26954,16 @@ export interface SharedApiInterface {
|
|
|
25829
26954
|
*/
|
|
25830
26955
|
restoreRecycleBinCluster(requestParameters: SharedApiRestoreRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster>;
|
|
25831
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
|
+
|
|
25832
26967
|
/**
|
|
25833
26968
|
*
|
|
25834
26969
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -26009,6 +27144,26 @@ export interface SharedApiInterface {
|
|
|
26009
27144
|
*/
|
|
26010
27145
|
updateBackupSchedule(requestParameters: SharedApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule>;
|
|
26011
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
|
+
|
|
26012
27167
|
/**
|
|
26013
27168
|
*
|
|
26014
27169
|
* @summary Update the cluster license
|
|
@@ -26827,6 +27982,62 @@ export interface SharedApiCreateBackupScheduleRequest {
|
|
|
26827
27982
|
readonly body: BackupScheduleCreate
|
|
26828
27983
|
}
|
|
26829
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
|
+
|
|
26830
28041
|
/**
|
|
26831
28042
|
* Request parameters for createCluster operation in SharedApi.
|
|
26832
28043
|
* @export
|
|
@@ -27492,6 +28703,62 @@ export interface SharedApiDeleteBackupScheduleRequest {
|
|
|
27492
28703
|
readonly scheduleName: string
|
|
27493
28704
|
}
|
|
27494
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
|
+
|
|
27495
28762
|
/**
|
|
27496
28763
|
* Request parameters for deleteCluster operation in SharedApi.
|
|
27497
28764
|
* @export
|
|
@@ -28962,6 +30229,34 @@ export interface SharedApiGetBackupRepoRequest {
|
|
|
28962
30229
|
readonly orgName?: string
|
|
28963
30230
|
}
|
|
28964
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
|
+
|
|
28965
30260
|
/**
|
|
28966
30261
|
* Request parameters for getCluster operation in SharedApi.
|
|
28967
30262
|
* @export
|
|
@@ -30684,6 +31979,41 @@ export interface SharedApiGetTenantRequest {
|
|
|
30684
31979
|
readonly tenantId: string
|
|
30685
31980
|
}
|
|
30686
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
|
+
|
|
30687
32017
|
/**
|
|
30688
32018
|
* Request parameters for horizontalScaleCluster operation in SharedApi.
|
|
30689
32019
|
* @export
|
|
@@ -30908,6 +32238,104 @@ export interface SharedApiListClassesRequest {
|
|
|
30908
32238
|
readonly engineName?: string
|
|
30909
32239
|
}
|
|
30910
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
|
+
|
|
30911
32339
|
/**
|
|
30912
32340
|
* Request parameters for listCluster operation in SharedApi.
|
|
30913
32341
|
* @export
|
|
@@ -30983,6 +32411,20 @@ export interface SharedApiListClusterRequest {
|
|
|
30983
32411
|
* @memberof SharedApiListCluster
|
|
30984
32412
|
*/
|
|
30985
32413
|
readonly refClusterName?: string
|
|
32414
|
+
|
|
32415
|
+
/**
|
|
32416
|
+
* Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
32417
|
+
* @type {string}
|
|
32418
|
+
* @memberof SharedApiListCluster
|
|
32419
|
+
*/
|
|
32420
|
+
readonly endpointHost?: string
|
|
32421
|
+
|
|
32422
|
+
/**
|
|
32423
|
+
* Whether to include cached user-visible endpoints in each cluster item
|
|
32424
|
+
* @type {boolean}
|
|
32425
|
+
* @memberof SharedApiListCluster
|
|
32426
|
+
*/
|
|
32427
|
+
readonly includeEndpoints?: boolean
|
|
30986
32428
|
}
|
|
30987
32429
|
|
|
30988
32430
|
/**
|
|
@@ -31032,6 +32474,20 @@ export interface SharedApiListClustersRequest {
|
|
|
31032
32474
|
* @memberof SharedApiListClusters
|
|
31033
32475
|
*/
|
|
31034
32476
|
readonly withStatic?: boolean
|
|
32477
|
+
|
|
32478
|
+
/**
|
|
32479
|
+
* Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
32480
|
+
* @type {string}
|
|
32481
|
+
* @memberof SharedApiListClusters
|
|
32482
|
+
*/
|
|
32483
|
+
readonly endpointHost?: string
|
|
32484
|
+
|
|
32485
|
+
/**
|
|
32486
|
+
* Whether to include cached user-visible endpoints in each cluster item
|
|
32487
|
+
* @type {boolean}
|
|
32488
|
+
* @memberof SharedApiListClusters
|
|
32489
|
+
*/
|
|
32490
|
+
readonly includeEndpoints?: boolean
|
|
31035
32491
|
}
|
|
31036
32492
|
|
|
31037
32493
|
/**
|
|
@@ -34499,6 +35955,41 @@ export interface SharedApiRestoreRecycleBinClusterRequest {
|
|
|
34499
35955
|
readonly clusterName: string
|
|
34500
35956
|
}
|
|
34501
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
|
+
|
|
34502
35993
|
/**
|
|
34503
35994
|
* Request parameters for setClusterAlertDisabled operation in SharedApi.
|
|
34504
35995
|
* @export
|
|
@@ -35073,6 +36564,76 @@ export interface SharedApiUpdateBackupScheduleRequest {
|
|
|
35073
36564
|
readonly body: BackupScheduleUpdate
|
|
35074
36565
|
}
|
|
35075
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
|
+
|
|
35076
36637
|
/**
|
|
35077
36638
|
* Request parameters for updateClusterLicense operation in SharedApi.
|
|
35078
36639
|
* @export
|
|
@@ -36077,6 +37638,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36077
37638
|
return SharedApiFp(this.configuration).createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
36078
37639
|
}
|
|
36079
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
|
+
|
|
36080
37665
|
/**
|
|
36081
37666
|
*
|
|
36082
37667
|
* @summary Create new cluster
|
|
@@ -36365,6 +37950,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36365
37950
|
return SharedApiFp(this.configuration).deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(this.axios, this.basePath));
|
|
36366
37951
|
}
|
|
36367
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
|
+
|
|
36368
37977
|
/**
|
|
36369
37978
|
*
|
|
36370
37979
|
* @summary Delete cluster
|
|
@@ -36906,6 +38515,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36906
38515
|
return SharedApiFp(this.configuration).getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
|
|
36907
38516
|
}
|
|
36908
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
|
+
|
|
36909
38530
|
/**
|
|
36910
38531
|
*
|
|
36911
38532
|
* @summary Get cluster details
|
|
@@ -37505,6 +39126,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37505
39126
|
return SharedApiFp(this.configuration).getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
37506
39127
|
}
|
|
37507
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
|
+
|
|
37508
39141
|
/**
|
|
37509
39142
|
*
|
|
37510
39143
|
* @summary Horizontal scale cluster
|
|
@@ -37612,6 +39245,54 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37612
39245
|
return SharedApiFp(this.configuration).listClasses(requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
|
|
37613
39246
|
}
|
|
37614
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
|
+
|
|
37615
39296
|
/**
|
|
37616
39297
|
*
|
|
37617
39298
|
* @summary List clusters in the Org
|
|
@@ -37621,7 +39302,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37621
39302
|
* @memberof SharedApi
|
|
37622
39303
|
*/
|
|
37623
39304
|
public listCluster(requestParameters: SharedApiListClusterRequest, options?: RawAxiosRequestConfig) {
|
|
37624
|
-
return SharedApiFp(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, options).then((request) => request(this.axios, this.basePath));
|
|
39305
|
+
return SharedApiFp(this.configuration).listCluster(requestParameters.orgName, requestParameters.clusterDefinition, requestParameters.environmentName, requestParameters.environmentType, requestParameters.tagKey, requestParameters.tagValue, requestParameters.tagKeys, requestParameters.tagValues, requestParameters.licenseId, requestParameters.refClusterName, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(this.axios, this.basePath));
|
|
37625
39306
|
}
|
|
37626
39307
|
|
|
37627
39308
|
/**
|
|
@@ -37645,7 +39326,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37645
39326
|
* @memberof SharedApi
|
|
37646
39327
|
*/
|
|
37647
39328
|
public listClusters(requestParameters: SharedApiListClustersRequest = {}, options?: RawAxiosRequestConfig) {
|
|
37648
|
-
return SharedApiFp(this.configuration).listClusters(requestParameters.orgName, requestParameters.envName, requestParameters.withStatic, options).then((request) => request(this.axios, this.basePath));
|
|
39329
|
+
return SharedApiFp(this.configuration).listClusters(requestParameters.orgName, requestParameters.envName, requestParameters.withStatic, requestParameters.endpointHost, requestParameters.includeEndpoints, options).then((request) => request(this.axios, this.basePath));
|
|
37649
39330
|
}
|
|
37650
39331
|
|
|
37651
39332
|
/**
|
|
@@ -38784,6 +40465,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
38784
40465
|
return SharedApiFp(this.configuration).restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
38785
40466
|
}
|
|
38786
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
|
+
|
|
38787
40480
|
/**
|
|
38788
40481
|
*
|
|
38789
40482
|
* @summary Set cluster alert disabled or enabled
|
|
@@ -39000,6 +40693,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
39000
40693
|
return SharedApiFp(this.configuration).updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
39001
40694
|
}
|
|
39002
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
|
+
|
|
39003
40720
|
/**
|
|
39004
40721
|
*
|
|
39005
40722
|
* @summary Update the cluster license
|