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
|
@@ -78,6 +78,8 @@ import type { Broker } from '../models';
|
|
|
78
78
|
// @ts-ignore
|
|
79
79
|
import type { BuildBackupObjRequest } from '../models';
|
|
80
80
|
// @ts-ignore
|
|
81
|
+
import type { CkAccount } from '../models';
|
|
82
|
+
// @ts-ignore
|
|
81
83
|
import type { Cluster } from '../models';
|
|
82
84
|
// @ts-ignore
|
|
83
85
|
import type { ClusterBackupMethod } 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';
|
|
@@ -210,6 +214,8 @@ import type { FeatureList } from '../models';
|
|
|
210
214
|
// @ts-ignore
|
|
211
215
|
import type { FileEntryList } from '../models';
|
|
212
216
|
// @ts-ignore
|
|
217
|
+
import type { GetClickhouseRoleGrants200ResponseInner } from '../models';
|
|
218
|
+
// @ts-ignore
|
|
213
219
|
import type { HaHistoryList } from '../models';
|
|
214
220
|
// @ts-ignore
|
|
215
221
|
import type { ImportOpsType } from '../models';
|
|
@@ -236,6 +242,10 @@ import type { IpWhitelist } from '../models';
|
|
|
236
242
|
// @ts-ignore
|
|
237
243
|
import type { IpWhitelistList } from '../models';
|
|
238
244
|
// @ts-ignore
|
|
245
|
+
import type { ListClickhouseAccountRoles200Response } from '../models';
|
|
246
|
+
// @ts-ignore
|
|
247
|
+
import type { ListClickhouseAccountRoles200ResponsePrivilegesInner } from '../models';
|
|
248
|
+
// @ts-ignore
|
|
239
249
|
import type { MetricsQueryType } from '../models';
|
|
240
250
|
// @ts-ignore
|
|
241
251
|
import type { MilvusAccountPassword } from '../models';
|
|
@@ -350,6 +360,8 @@ import type { RestoreList } from '../models';
|
|
|
350
360
|
// @ts-ignore
|
|
351
361
|
import type { RestoreLog } from '../models';
|
|
352
362
|
// @ts-ignore
|
|
363
|
+
import type { RevokeClickhouseRolePrivilegesRequest } from '../models';
|
|
364
|
+
// @ts-ignore
|
|
353
365
|
import type { Role } from '../models';
|
|
354
366
|
// @ts-ignore
|
|
355
367
|
import type { RoleCreate } from '../models';
|
|
@@ -404,6 +416,10 @@ import type { TopicOffset } from '../models';
|
|
|
404
416
|
// @ts-ignore
|
|
405
417
|
import type { UpdateBrokerConfigRequest } from '../models';
|
|
406
418
|
// @ts-ignore
|
|
419
|
+
import type { UpdateClickhouseAccountPasswordRequest } from '../models';
|
|
420
|
+
// @ts-ignore
|
|
421
|
+
import type { UpdateClickhouseAccountRolesRequest } from '../models';
|
|
422
|
+
// @ts-ignore
|
|
407
423
|
import type { UpdateTopicConfigRequest } from '../models';
|
|
408
424
|
/**
|
|
409
425
|
* SharedApi - axios parameter creator
|
|
@@ -1244,19 +1260,23 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1244
1260
|
},
|
|
1245
1261
|
/**
|
|
1246
1262
|
*
|
|
1247
|
-
* @summary Create
|
|
1248
|
-
* @param {string} orgName
|
|
1249
|
-
* @param {
|
|
1263
|
+
* @summary Create a ClickHouse account with optional roles
|
|
1264
|
+
* @param {string} orgName
|
|
1265
|
+
* @param {string} clusterName
|
|
1266
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
1250
1267
|
* @param {*} [options] Override http request option.
|
|
1251
1268
|
* @throws {RequiredError}
|
|
1252
1269
|
*/
|
|
1253
|
-
|
|
1270
|
+
createClickhouseAccount: async (orgName: string, clusterName: string, body: CreateClickhouseAccountRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1254
1271
|
// verify required parameter 'orgName' is not null or undefined
|
|
1255
|
-
assertParamExists('
|
|
1272
|
+
assertParamExists('createClickhouseAccount', 'orgName', orgName)
|
|
1273
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1274
|
+
assertParamExists('createClickhouseAccount', 'clusterName', clusterName)
|
|
1256
1275
|
// verify required parameter 'body' is not null or undefined
|
|
1257
|
-
assertParamExists('
|
|
1258
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters`
|
|
1259
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1276
|
+
assertParamExists('createClickhouseAccount', 'body', body)
|
|
1277
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1278
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1279
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1260
1280
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1261
1281
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1262
1282
|
let baseOptions;
|
|
@@ -1291,22 +1311,21 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1291
1311
|
},
|
|
1292
1312
|
/**
|
|
1293
1313
|
*
|
|
1294
|
-
* @summary Create
|
|
1295
|
-
* @param {string} orgName
|
|
1296
|
-
* @param {string} clusterName
|
|
1297
|
-
* @param {
|
|
1298
|
-
* @param {string} [component] name of the component
|
|
1314
|
+
* @summary Create a ClickHouse role with privileges
|
|
1315
|
+
* @param {string} orgName
|
|
1316
|
+
* @param {string} clusterName
|
|
1317
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
1299
1318
|
* @param {*} [options] Override http request option.
|
|
1300
1319
|
* @throws {RequiredError}
|
|
1301
1320
|
*/
|
|
1302
|
-
|
|
1321
|
+
createClickhouseRole: async (orgName: string, clusterName: string, body: ListClickhouseAccountRoles200Response, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1303
1322
|
// verify required parameter 'orgName' is not null or undefined
|
|
1304
|
-
assertParamExists('
|
|
1323
|
+
assertParamExists('createClickhouseRole', 'orgName', orgName)
|
|
1305
1324
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1306
|
-
assertParamExists('
|
|
1325
|
+
assertParamExists('createClickhouseRole', 'clusterName', clusterName)
|
|
1307
1326
|
// verify required parameter 'body' is not null or undefined
|
|
1308
|
-
assertParamExists('
|
|
1309
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
1327
|
+
assertParamExists('createClickhouseRole', 'body', body)
|
|
1328
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
1310
1329
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1311
1330
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1312
1331
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1327,10 +1346,6 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1327
1346
|
// authentication DigestAuth required
|
|
1328
1347
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1329
1348
|
|
|
1330
|
-
if (component !== undefined) {
|
|
1331
|
-
localVarQueryParameter['component'] = component;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
1349
|
|
|
1335
1350
|
|
|
1336
1351
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1347,23 +1362,19 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1347
1362
|
},
|
|
1348
1363
|
/**
|
|
1349
1364
|
*
|
|
1350
|
-
* @summary
|
|
1365
|
+
* @summary Create new cluster
|
|
1351
1366
|
* @param {string} orgName name of the Org
|
|
1352
|
-
* @param {
|
|
1353
|
-
* @param {Datasource} datasource
|
|
1367
|
+
* @param {ClusterCreate} body
|
|
1354
1368
|
* @param {*} [options] Override http request option.
|
|
1355
1369
|
* @throws {RequiredError}
|
|
1356
1370
|
*/
|
|
1357
|
-
|
|
1371
|
+
createCluster: async (orgName: string, body: ClusterCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1358
1372
|
// verify required parameter 'orgName' is not null or undefined
|
|
1359
|
-
assertParamExists('
|
|
1360
|
-
// verify required parameter '
|
|
1361
|
-
assertParamExists('
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/createDS`
|
|
1365
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1366
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1373
|
+
assertParamExists('createCluster', 'orgName', orgName)
|
|
1374
|
+
// verify required parameter 'body' is not null or undefined
|
|
1375
|
+
assertParamExists('createCluster', 'body', body)
|
|
1376
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters`
|
|
1377
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
|
|
1367
1378
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1368
1379
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1369
1380
|
let baseOptions;
|
|
@@ -1389,7 +1400,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1389
1400
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1390
1401
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1391
1402
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1392
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1403
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1393
1404
|
|
|
1394
1405
|
return {
|
|
1395
1406
|
url: toPathString(localVarUrlObj),
|
|
@@ -1397,26 +1408,23 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1397
1408
|
};
|
|
1398
1409
|
},
|
|
1399
1410
|
/**
|
|
1400
|
-
*
|
|
1401
|
-
* @summary Create
|
|
1402
|
-
* @param {string} engineName name of the engine
|
|
1411
|
+
*
|
|
1412
|
+
* @summary Create backup
|
|
1403
1413
|
* @param {string} orgName name of the Org
|
|
1404
|
-
* @param {string} clusterName name of the
|
|
1405
|
-
* @param {
|
|
1414
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
1415
|
+
* @param {BackupCreate} body
|
|
1416
|
+
* @param {string} [component] name of the component
|
|
1406
1417
|
* @param {*} [options] Override http request option.
|
|
1407
1418
|
* @throws {RequiredError}
|
|
1408
1419
|
*/
|
|
1409
|
-
|
|
1410
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
1411
|
-
assertParamExists('createDatabase', 'engineName', engineName)
|
|
1420
|
+
createClusterBackup: async (orgName: string, clusterName: string, body: BackupCreate, component?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1412
1421
|
// verify required parameter 'orgName' is not null or undefined
|
|
1413
|
-
assertParamExists('
|
|
1422
|
+
assertParamExists('createClusterBackup', 'orgName', orgName)
|
|
1414
1423
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1415
|
-
assertParamExists('
|
|
1424
|
+
assertParamExists('createClusterBackup', 'clusterName', clusterName)
|
|
1416
1425
|
// verify required parameter 'body' is not null or undefined
|
|
1417
|
-
assertParamExists('
|
|
1418
|
-
const localVarPath = `/api/v1/
|
|
1419
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1426
|
+
assertParamExists('createClusterBackup', 'body', body)
|
|
1427
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/backups`
|
|
1420
1428
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1421
1429
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1422
1430
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1437,6 +1445,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1437
1445
|
// authentication DigestAuth required
|
|
1438
1446
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1439
1447
|
|
|
1448
|
+
if (component !== undefined) {
|
|
1449
|
+
localVarQueryParameter['component'] = component;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1440
1452
|
|
|
1441
1453
|
|
|
1442
1454
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -1452,22 +1464,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1452
1464
|
};
|
|
1453
1465
|
},
|
|
1454
1466
|
/**
|
|
1455
|
-
*
|
|
1456
|
-
* @summary
|
|
1467
|
+
*
|
|
1468
|
+
* @summary create the datasource
|
|
1457
1469
|
* @param {string} orgName name of the Org
|
|
1458
|
-
* @param {string} clusterName name of the
|
|
1459
|
-
* @param {
|
|
1470
|
+
* @param {string} clusterName name of the cluster
|
|
1471
|
+
* @param {Datasource} datasource
|
|
1460
1472
|
* @param {*} [options] Override http request option.
|
|
1461
1473
|
* @throws {RequiredError}
|
|
1462
1474
|
*/
|
|
1463
|
-
|
|
1475
|
+
createDataSourceV2: async (orgName: string, clusterName: string, datasource: Datasource, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1464
1476
|
// verify required parameter 'orgName' is not null or undefined
|
|
1465
|
-
assertParamExists('
|
|
1477
|
+
assertParamExists('createDataSourceV2', 'orgName', orgName)
|
|
1466
1478
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1467
|
-
assertParamExists('
|
|
1468
|
-
// verify required parameter '
|
|
1469
|
-
assertParamExists('
|
|
1470
|
-
const localVarPath = `/api/v1/
|
|
1479
|
+
assertParamExists('createDataSourceV2', 'clusterName', clusterName)
|
|
1480
|
+
// verify required parameter 'datasource' is not null or undefined
|
|
1481
|
+
assertParamExists('createDataSourceV2', 'datasource', datasource)
|
|
1482
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/createDS`
|
|
1471
1483
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1472
1484
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1473
1485
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1495,7 +1507,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1495
1507
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1496
1508
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1497
1509
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1498
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1510
|
+
localVarRequestOptions.data = serializeDataIfNeeded(datasource, localVarRequestOptions, configuration)
|
|
1499
1511
|
|
|
1500
1512
|
return {
|
|
1501
1513
|
url: toPathString(localVarUrlObj),
|
|
@@ -1503,22 +1515,26 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1503
1515
|
};
|
|
1504
1516
|
},
|
|
1505
1517
|
/**
|
|
1506
|
-
*
|
|
1507
|
-
* @summary Create
|
|
1518
|
+
* create a database in cluster
|
|
1519
|
+
* @summary Create cluster database
|
|
1520
|
+
* @param {string} engineName name of the engine
|
|
1508
1521
|
* @param {string} orgName name of the Org
|
|
1509
1522
|
* @param {string} clusterName name of the Cluster
|
|
1510
|
-
* @param {
|
|
1523
|
+
* @param {Database} body
|
|
1511
1524
|
* @param {*} [options] Override http request option.
|
|
1512
1525
|
* @throws {RequiredError}
|
|
1513
1526
|
*/
|
|
1514
|
-
|
|
1527
|
+
createDatabase: async (engineName: string, orgName: string, clusterName: string, body: Database, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1528
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
1529
|
+
assertParamExists('createDatabase', 'engineName', engineName)
|
|
1515
1530
|
// verify required parameter 'orgName' is not null or undefined
|
|
1516
|
-
assertParamExists('
|
|
1531
|
+
assertParamExists('createDatabase', 'orgName', orgName)
|
|
1517
1532
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1518
|
-
assertParamExists('
|
|
1533
|
+
assertParamExists('createDatabase', 'clusterName', clusterName)
|
|
1519
1534
|
// verify required parameter 'body' is not null or undefined
|
|
1520
|
-
assertParamExists('
|
|
1521
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
1535
|
+
assertParamExists('createDatabase', 'body', body)
|
|
1536
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/databases`
|
|
1537
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
1522
1538
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1523
1539
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1524
1540
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1554,73 +1570,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1554
1570
|
};
|
|
1555
1571
|
},
|
|
1556
1572
|
/**
|
|
1557
|
-
*
|
|
1558
|
-
* @summary Create
|
|
1559
|
-
* @param {string} orgName Organization name
|
|
1560
|
-
* @param {string} clusterName Cluster name
|
|
1561
|
-
* @param {ImportTaskCreateRequest} importTaskCreateRequest Import task configuration including data source connection, object selection and import options
|
|
1562
|
-
* @param {*} [options] Override http request option.
|
|
1563
|
-
* @throws {RequiredError}
|
|
1564
|
-
*/
|
|
1565
|
-
createImportTask: async (orgName: string, clusterName: string, importTaskCreateRequest: ImportTaskCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1566
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
1567
|
-
assertParamExists('createImportTask', 'orgName', orgName)
|
|
1568
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
1569
|
-
assertParamExists('createImportTask', 'clusterName', clusterName)
|
|
1570
|
-
// verify required parameter 'importTaskCreateRequest' is not null or undefined
|
|
1571
|
-
assertParamExists('createImportTask', 'importTaskCreateRequest', importTaskCreateRequest)
|
|
1572
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/import`
|
|
1573
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1574
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1575
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1576
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1577
|
-
let baseOptions;
|
|
1578
|
-
if (configuration) {
|
|
1579
|
-
baseOptions = configuration.baseOptions;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1583
|
-
const localVarHeaderParameter = {} as any;
|
|
1584
|
-
const localVarQueryParameter = {} as any;
|
|
1585
|
-
|
|
1586
|
-
// authentication BearerToken required
|
|
1587
|
-
// http bearer authentication required
|
|
1588
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1589
|
-
|
|
1590
|
-
// authentication DigestAuth required
|
|
1591
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1596
|
-
|
|
1597
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1598
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1599
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1600
|
-
localVarRequestOptions.data = serializeDataIfNeeded(importTaskCreateRequest, localVarRequestOptions, configuration)
|
|
1601
|
-
|
|
1602
|
-
return {
|
|
1603
|
-
url: toPathString(localVarUrlObj),
|
|
1604
|
-
options: localVarRequestOptions,
|
|
1605
|
-
};
|
|
1606
|
-
},
|
|
1607
|
-
/**
|
|
1608
|
-
* create an account in cluster
|
|
1609
|
-
* @summary Create cluster account
|
|
1573
|
+
* create an hive account
|
|
1574
|
+
* @summary Create Hive account
|
|
1610
1575
|
* @param {string} orgName name of the Org
|
|
1611
1576
|
* @param {string} clusterName name of the Cluster
|
|
1612
1577
|
* @param {Account} body
|
|
1613
1578
|
* @param {*} [options] Override http request option.
|
|
1614
1579
|
* @throws {RequiredError}
|
|
1615
1580
|
*/
|
|
1616
|
-
|
|
1581
|
+
createHiveAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1617
1582
|
// verify required parameter 'orgName' is not null or undefined
|
|
1618
|
-
assertParamExists('
|
|
1583
|
+
assertParamExists('createHiveAccount', 'orgName', orgName)
|
|
1619
1584
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1620
|
-
assertParamExists('
|
|
1585
|
+
assertParamExists('createHiveAccount', 'clusterName', clusterName)
|
|
1621
1586
|
// verify required parameter 'body' is not null or undefined
|
|
1622
|
-
assertParamExists('
|
|
1623
|
-
const localVarPath = `/api/v1/data/
|
|
1587
|
+
assertParamExists('createHiveAccount', 'body', body)
|
|
1588
|
+
const localVarPath = `/api/v1/data/hive/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1624
1589
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1625
1590
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1626
1591
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1657,72 +1622,225 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
1657
1622
|
},
|
|
1658
1623
|
/**
|
|
1659
1624
|
*
|
|
1660
|
-
* @summary Create
|
|
1661
|
-
* @param {string} orgName The name of organization
|
|
1662
|
-
* @param {string} clusterName The name of cluster
|
|
1663
|
-
* @param {CreateTopicRequest} createTopicRequest
|
|
1664
|
-
* @param {*} [options] Override http request option.
|
|
1665
|
-
* @throws {RequiredError}
|
|
1666
|
-
*/
|
|
1667
|
-
createKafkaTopic: async (orgName: string, clusterName: string, createTopicRequest: CreateTopicRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1668
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
1669
|
-
assertParamExists('createKafkaTopic', 'orgName', orgName)
|
|
1670
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
1671
|
-
assertParamExists('createKafkaTopic', 'clusterName', clusterName)
|
|
1672
|
-
// verify required parameter 'createTopicRequest' is not null or undefined
|
|
1673
|
-
assertParamExists('createKafkaTopic', 'createTopicRequest', createTopicRequest)
|
|
1674
|
-
const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topics`
|
|
1675
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1676
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1677
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1678
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1679
|
-
let baseOptions;
|
|
1680
|
-
if (configuration) {
|
|
1681
|
-
baseOptions = configuration.baseOptions;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1685
|
-
const localVarHeaderParameter = {} as any;
|
|
1686
|
-
const localVarQueryParameter = {} as any;
|
|
1687
|
-
|
|
1688
|
-
// authentication BearerToken required
|
|
1689
|
-
// http bearer authentication required
|
|
1690
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1691
|
-
|
|
1692
|
-
// authentication DigestAuth required
|
|
1693
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1698
|
-
|
|
1699
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1700
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1701
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1702
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createTopicRequest, localVarRequestOptions, configuration)
|
|
1703
|
-
|
|
1704
|
-
return {
|
|
1705
|
-
url: toPathString(localVarUrlObj),
|
|
1706
|
-
options: localVarRequestOptions,
|
|
1707
|
-
};
|
|
1708
|
-
},
|
|
1709
|
-
/**
|
|
1710
|
-
* create an account in mongodb
|
|
1711
|
-
* @summary Create mongodb account
|
|
1625
|
+
* @summary Create IP whitelist
|
|
1712
1626
|
* @param {string} orgName name of the Org
|
|
1713
1627
|
* @param {string} clusterName name of the Cluster
|
|
1714
|
-
* @param {
|
|
1628
|
+
* @param {CreateIPWhitelistRequest} body
|
|
1715
1629
|
* @param {*} [options] Override http request option.
|
|
1716
1630
|
* @throws {RequiredError}
|
|
1717
1631
|
*/
|
|
1718
|
-
|
|
1632
|
+
createIPWhitelist: async (orgName: string, clusterName: string, body: CreateIPWhitelistRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1719
1633
|
// verify required parameter 'orgName' is not null or undefined
|
|
1720
|
-
assertParamExists('
|
|
1634
|
+
assertParamExists('createIPWhitelist', 'orgName', orgName)
|
|
1721
1635
|
// verify required parameter 'clusterName' is not null or undefined
|
|
1722
|
-
assertParamExists('
|
|
1636
|
+
assertParamExists('createIPWhitelist', 'clusterName', clusterName)
|
|
1723
1637
|
// verify required parameter 'body' is not null or undefined
|
|
1724
|
-
assertParamExists('
|
|
1725
|
-
const localVarPath = `/api/v1/
|
|
1638
|
+
assertParamExists('createIPWhitelist', 'body', body)
|
|
1639
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/ipWhitelist`
|
|
1640
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1641
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1642
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1643
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1644
|
+
let baseOptions;
|
|
1645
|
+
if (configuration) {
|
|
1646
|
+
baseOptions = configuration.baseOptions;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1650
|
+
const localVarHeaderParameter = {} as any;
|
|
1651
|
+
const localVarQueryParameter = {} as any;
|
|
1652
|
+
|
|
1653
|
+
// authentication BearerToken required
|
|
1654
|
+
// http bearer authentication required
|
|
1655
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1656
|
+
|
|
1657
|
+
// authentication DigestAuth required
|
|
1658
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1663
|
+
|
|
1664
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1665
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1666
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1667
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1668
|
+
|
|
1669
|
+
return {
|
|
1670
|
+
url: toPathString(localVarUrlObj),
|
|
1671
|
+
options: localVarRequestOptions,
|
|
1672
|
+
};
|
|
1673
|
+
},
|
|
1674
|
+
/**
|
|
1675
|
+
* Creates new data import task based on data source configuration and import options
|
|
1676
|
+
* @summary Create import task
|
|
1677
|
+
* @param {string} orgName Organization name
|
|
1678
|
+
* @param {string} clusterName Cluster name
|
|
1679
|
+
* @param {ImportTaskCreateRequest} importTaskCreateRequest Import task configuration including data source connection, object selection and import options
|
|
1680
|
+
* @param {*} [options] Override http request option.
|
|
1681
|
+
* @throws {RequiredError}
|
|
1682
|
+
*/
|
|
1683
|
+
createImportTask: async (orgName: string, clusterName: string, importTaskCreateRequest: ImportTaskCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1684
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1685
|
+
assertParamExists('createImportTask', 'orgName', orgName)
|
|
1686
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1687
|
+
assertParamExists('createImportTask', 'clusterName', clusterName)
|
|
1688
|
+
// verify required parameter 'importTaskCreateRequest' is not null or undefined
|
|
1689
|
+
assertParamExists('createImportTask', 'importTaskCreateRequest', importTaskCreateRequest)
|
|
1690
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/import`
|
|
1691
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1692
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1693
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1694
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1695
|
+
let baseOptions;
|
|
1696
|
+
if (configuration) {
|
|
1697
|
+
baseOptions = configuration.baseOptions;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1701
|
+
const localVarHeaderParameter = {} as any;
|
|
1702
|
+
const localVarQueryParameter = {} as any;
|
|
1703
|
+
|
|
1704
|
+
// authentication BearerToken required
|
|
1705
|
+
// http bearer authentication required
|
|
1706
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1707
|
+
|
|
1708
|
+
// authentication DigestAuth required
|
|
1709
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1714
|
+
|
|
1715
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1716
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1717
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1718
|
+
localVarRequestOptions.data = serializeDataIfNeeded(importTaskCreateRequest, localVarRequestOptions, configuration)
|
|
1719
|
+
|
|
1720
|
+
return {
|
|
1721
|
+
url: toPathString(localVarUrlObj),
|
|
1722
|
+
options: localVarRequestOptions,
|
|
1723
|
+
};
|
|
1724
|
+
},
|
|
1725
|
+
/**
|
|
1726
|
+
* create an account in cluster
|
|
1727
|
+
* @summary Create cluster account
|
|
1728
|
+
* @param {string} orgName name of the Org
|
|
1729
|
+
* @param {string} clusterName name of the Cluster
|
|
1730
|
+
* @param {Account} body
|
|
1731
|
+
* @param {*} [options] Override http request option.
|
|
1732
|
+
* @throws {RequiredError}
|
|
1733
|
+
*/
|
|
1734
|
+
createKafkaAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1735
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1736
|
+
assertParamExists('createKafkaAccount', 'orgName', orgName)
|
|
1737
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1738
|
+
assertParamExists('createKafkaAccount', 'clusterName', clusterName)
|
|
1739
|
+
// verify required parameter 'body' is not null or undefined
|
|
1740
|
+
assertParamExists('createKafkaAccount', 'body', body)
|
|
1741
|
+
const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1742
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1743
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1744
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1745
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1746
|
+
let baseOptions;
|
|
1747
|
+
if (configuration) {
|
|
1748
|
+
baseOptions = configuration.baseOptions;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1752
|
+
const localVarHeaderParameter = {} as any;
|
|
1753
|
+
const localVarQueryParameter = {} as any;
|
|
1754
|
+
|
|
1755
|
+
// authentication BearerToken required
|
|
1756
|
+
// http bearer authentication required
|
|
1757
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1758
|
+
|
|
1759
|
+
// authentication DigestAuth required
|
|
1760
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1765
|
+
|
|
1766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1768
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1769
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1770
|
+
|
|
1771
|
+
return {
|
|
1772
|
+
url: toPathString(localVarUrlObj),
|
|
1773
|
+
options: localVarRequestOptions,
|
|
1774
|
+
};
|
|
1775
|
+
},
|
|
1776
|
+
/**
|
|
1777
|
+
*
|
|
1778
|
+
* @summary Create new topic
|
|
1779
|
+
* @param {string} orgName The name of organization
|
|
1780
|
+
* @param {string} clusterName The name of cluster
|
|
1781
|
+
* @param {CreateTopicRequest} createTopicRequest
|
|
1782
|
+
* @param {*} [options] Override http request option.
|
|
1783
|
+
* @throws {RequiredError}
|
|
1784
|
+
*/
|
|
1785
|
+
createKafkaTopic: async (orgName: string, clusterName: string, createTopicRequest: CreateTopicRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1786
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1787
|
+
assertParamExists('createKafkaTopic', 'orgName', orgName)
|
|
1788
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1789
|
+
assertParamExists('createKafkaTopic', 'clusterName', clusterName)
|
|
1790
|
+
// verify required parameter 'createTopicRequest' is not null or undefined
|
|
1791
|
+
assertParamExists('createKafkaTopic', 'createTopicRequest', createTopicRequest)
|
|
1792
|
+
const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topics`
|
|
1793
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1794
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1795
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1796
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1797
|
+
let baseOptions;
|
|
1798
|
+
if (configuration) {
|
|
1799
|
+
baseOptions = configuration.baseOptions;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1803
|
+
const localVarHeaderParameter = {} as any;
|
|
1804
|
+
const localVarQueryParameter = {} as any;
|
|
1805
|
+
|
|
1806
|
+
// authentication BearerToken required
|
|
1807
|
+
// http bearer authentication required
|
|
1808
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1809
|
+
|
|
1810
|
+
// authentication DigestAuth required
|
|
1811
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1816
|
+
|
|
1817
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1818
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1819
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1820
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createTopicRequest, localVarRequestOptions, configuration)
|
|
1821
|
+
|
|
1822
|
+
return {
|
|
1823
|
+
url: toPathString(localVarUrlObj),
|
|
1824
|
+
options: localVarRequestOptions,
|
|
1825
|
+
};
|
|
1826
|
+
},
|
|
1827
|
+
/**
|
|
1828
|
+
* create an account in mongodb
|
|
1829
|
+
* @summary Create mongodb account
|
|
1830
|
+
* @param {string} orgName name of the Org
|
|
1831
|
+
* @param {string} clusterName name of the Cluster
|
|
1832
|
+
* @param {Account} body
|
|
1833
|
+
* @param {*} [options] Override http request option.
|
|
1834
|
+
* @throws {RequiredError}
|
|
1835
|
+
*/
|
|
1836
|
+
createMongoDBAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1837
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1838
|
+
assertParamExists('createMongoDBAccount', 'orgName', orgName)
|
|
1839
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1840
|
+
assertParamExists('createMongoDBAccount', 'clusterName', clusterName)
|
|
1841
|
+
// verify required parameter 'body' is not null or undefined
|
|
1842
|
+
assertParamExists('createMongoDBAccount', 'body', body)
|
|
1843
|
+
const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
1726
1844
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1727
1845
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
1728
1846
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2592,74 +2710,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2592
2710
|
},
|
|
2593
2711
|
/**
|
|
2594
2712
|
*
|
|
2595
|
-
* @summary Delete
|
|
2596
|
-
* @param {string} orgName
|
|
2597
|
-
* @param {string} clusterName
|
|
2598
|
-
* @param {
|
|
2599
|
-
* @param {*} [options] Override http request option.
|
|
2600
|
-
* @throws {RequiredError}
|
|
2601
|
-
*/
|
|
2602
|
-
deleteCluster: async (orgName: string, clusterName: string, force?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2603
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
2604
|
-
assertParamExists('deleteCluster', 'orgName', orgName)
|
|
2605
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
2606
|
-
assertParamExists('deleteCluster', 'clusterName', clusterName)
|
|
2607
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}`
|
|
2608
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2609
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2610
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2611
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2612
|
-
let baseOptions;
|
|
2613
|
-
if (configuration) {
|
|
2614
|
-
baseOptions = configuration.baseOptions;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2618
|
-
const localVarHeaderParameter = {} as any;
|
|
2619
|
-
const localVarQueryParameter = {} as any;
|
|
2620
|
-
|
|
2621
|
-
// authentication BearerToken required
|
|
2622
|
-
// http bearer authentication required
|
|
2623
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2624
|
-
|
|
2625
|
-
// authentication DigestAuth required
|
|
2626
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2627
|
-
|
|
2628
|
-
if (force !== undefined) {
|
|
2629
|
-
localVarQueryParameter['force'] = force;
|
|
2630
|
-
}
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2635
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2636
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2637
|
-
|
|
2638
|
-
return {
|
|
2639
|
-
url: toPathString(localVarUrlObj),
|
|
2640
|
-
options: localVarRequestOptions,
|
|
2641
|
-
};
|
|
2642
|
-
},
|
|
2643
|
-
/**
|
|
2644
|
-
*
|
|
2645
|
-
* @summary delete the datasource
|
|
2646
|
-
* @param {string} orgName name of the Org
|
|
2647
|
-
* @param {string} clusterName name of the cluster
|
|
2648
|
-
* @param {string} id id of the datasource
|
|
2713
|
+
* @summary Delete a ClickHouse account
|
|
2714
|
+
* @param {string} orgName
|
|
2715
|
+
* @param {string} clusterName
|
|
2716
|
+
* @param {string} accountName
|
|
2649
2717
|
* @param {*} [options] Override http request option.
|
|
2650
2718
|
* @throws {RequiredError}
|
|
2651
2719
|
*/
|
|
2652
|
-
|
|
2720
|
+
deleteClickhouseAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2653
2721
|
// verify required parameter 'orgName' is not null or undefined
|
|
2654
|
-
assertParamExists('
|
|
2722
|
+
assertParamExists('deleteClickhouseAccount', 'orgName', orgName)
|
|
2655
2723
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2656
|
-
assertParamExists('
|
|
2657
|
-
// verify required parameter '
|
|
2658
|
-
assertParamExists('
|
|
2659
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
2724
|
+
assertParamExists('deleteClickhouseAccount', 'clusterName', clusterName)
|
|
2725
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
2726
|
+
assertParamExists('deleteClickhouseAccount', 'accountName', accountName)
|
|
2727
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
2660
2728
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2661
2729
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2662
|
-
.replace(`{${"
|
|
2730
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
2663
2731
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2664
2732
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2665
2733
|
let baseOptions;
|
|
@@ -2690,29 +2758,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2690
2758
|
};
|
|
2691
2759
|
},
|
|
2692
2760
|
/**
|
|
2693
|
-
*
|
|
2694
|
-
* @summary Delete
|
|
2695
|
-
* @param {string}
|
|
2696
|
-
* @param {string}
|
|
2697
|
-
* @param {string}
|
|
2698
|
-
* @param {string} databaseName name of database
|
|
2761
|
+
*
|
|
2762
|
+
* @summary Delete a ClickHouse role
|
|
2763
|
+
* @param {string} orgName
|
|
2764
|
+
* @param {string} clusterName
|
|
2765
|
+
* @param {string} roleName
|
|
2699
2766
|
* @param {*} [options] Override http request option.
|
|
2700
2767
|
* @throws {RequiredError}
|
|
2701
2768
|
*/
|
|
2702
|
-
|
|
2703
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
2704
|
-
assertParamExists('deleteDatabase', 'engineName', engineName)
|
|
2769
|
+
deleteClickhouseRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2705
2770
|
// verify required parameter 'orgName' is not null or undefined
|
|
2706
|
-
assertParamExists('
|
|
2771
|
+
assertParamExists('deleteClickhouseRole', 'orgName', orgName)
|
|
2707
2772
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2708
|
-
assertParamExists('
|
|
2709
|
-
// verify required parameter '
|
|
2710
|
-
assertParamExists('
|
|
2711
|
-
const localVarPath = `/api/v1/data/
|
|
2712
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2773
|
+
assertParamExists('deleteClickhouseRole', 'clusterName', clusterName)
|
|
2774
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
2775
|
+
assertParamExists('deleteClickhouseRole', 'roleName', roleName)
|
|
2776
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
2713
2777
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2714
2778
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2715
|
-
.replace(`{${"
|
|
2779
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
2716
2780
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2717
2781
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2718
2782
|
let baseOptions;
|
|
@@ -2744,24 +2808,21 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2744
2808
|
},
|
|
2745
2809
|
/**
|
|
2746
2810
|
*
|
|
2747
|
-
* @summary Delete
|
|
2748
|
-
* @param {string} orgName
|
|
2749
|
-
* @param {string} clusterName
|
|
2750
|
-
* @param {
|
|
2811
|
+
* @summary Delete cluster
|
|
2812
|
+
* @param {string} orgName name of the Org
|
|
2813
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
2814
|
+
* @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.
|
|
2751
2815
|
* @param {*} [options] Override http request option.
|
|
2752
2816
|
* @throws {RequiredError}
|
|
2753
2817
|
*/
|
|
2754
|
-
|
|
2818
|
+
deleteCluster: async (orgName: string, clusterName: string, force?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2755
2819
|
// verify required parameter 'orgName' is not null or undefined
|
|
2756
|
-
assertParamExists('
|
|
2820
|
+
assertParamExists('deleteCluster', 'orgName', orgName)
|
|
2757
2821
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2758
|
-
assertParamExists('
|
|
2759
|
-
|
|
2760
|
-
assertParamExists('deleteElasticsearchSecurityRole', 'roleName', roleName)
|
|
2761
|
-
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
2822
|
+
assertParamExists('deleteCluster', 'clusterName', clusterName)
|
|
2823
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}`
|
|
2762
2824
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2763
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2764
|
-
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
2825
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2765
2826
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2766
2827
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2767
2828
|
let baseOptions;
|
|
@@ -2780,6 +2841,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2780
2841
|
// authentication DigestAuth required
|
|
2781
2842
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2782
2843
|
|
|
2844
|
+
if (force !== undefined) {
|
|
2845
|
+
localVarQueryParameter['force'] = force;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2783
2848
|
|
|
2784
2849
|
|
|
2785
2850
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2793,24 +2858,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2793
2858
|
},
|
|
2794
2859
|
/**
|
|
2795
2860
|
*
|
|
2796
|
-
* @summary
|
|
2797
|
-
* @param {string} orgName
|
|
2798
|
-
* @param {string} clusterName
|
|
2799
|
-
* @param {string}
|
|
2861
|
+
* @summary delete the datasource
|
|
2862
|
+
* @param {string} orgName name of the Org
|
|
2863
|
+
* @param {string} clusterName name of the cluster
|
|
2864
|
+
* @param {string} id id of the datasource
|
|
2800
2865
|
* @param {*} [options] Override http request option.
|
|
2801
2866
|
* @throws {RequiredError}
|
|
2802
2867
|
*/
|
|
2803
|
-
|
|
2868
|
+
deleteDataSourceV2: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2804
2869
|
// verify required parameter 'orgName' is not null or undefined
|
|
2805
|
-
assertParamExists('
|
|
2870
|
+
assertParamExists('deleteDataSourceV2', 'orgName', orgName)
|
|
2806
2871
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2807
|
-
assertParamExists('
|
|
2808
|
-
// verify required parameter '
|
|
2809
|
-
assertParamExists('
|
|
2810
|
-
const localVarPath = `/api/v1/
|
|
2872
|
+
assertParamExists('deleteDataSourceV2', 'clusterName', clusterName)
|
|
2873
|
+
// verify required parameter 'id' is not null or undefined
|
|
2874
|
+
assertParamExists('deleteDataSourceV2', 'id', id)
|
|
2875
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}`
|
|
2811
2876
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2812
2877
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2813
|
-
.replace(`{${"
|
|
2878
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2814
2879
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2815
2880
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2816
2881
|
let baseOptions;
|
|
@@ -2841,25 +2906,29 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2841
2906
|
};
|
|
2842
2907
|
},
|
|
2843
2908
|
/**
|
|
2844
|
-
*
|
|
2845
|
-
* @summary Delete
|
|
2846
|
-
* @param {string}
|
|
2847
|
-
* @param {string}
|
|
2848
|
-
* @param {string}
|
|
2909
|
+
* delete a database in cluster
|
|
2910
|
+
* @summary Delete cluster database
|
|
2911
|
+
* @param {string} engineName name of the engine
|
|
2912
|
+
* @param {string} orgName name of the Org
|
|
2913
|
+
* @param {string} clusterName name of the Cluster
|
|
2914
|
+
* @param {string} databaseName name of database
|
|
2849
2915
|
* @param {*} [options] Override http request option.
|
|
2850
2916
|
* @throws {RequiredError}
|
|
2851
2917
|
*/
|
|
2852
|
-
|
|
2918
|
+
deleteDatabase: async (engineName: string, orgName: string, clusterName: string, databaseName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2919
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
2920
|
+
assertParamExists('deleteDatabase', 'engineName', engineName)
|
|
2853
2921
|
// verify required parameter 'orgName' is not null or undefined
|
|
2854
|
-
assertParamExists('
|
|
2922
|
+
assertParamExists('deleteDatabase', 'orgName', orgName)
|
|
2855
2923
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2856
|
-
assertParamExists('
|
|
2857
|
-
// verify required parameter '
|
|
2858
|
-
assertParamExists('
|
|
2859
|
-
const localVarPath = `/api/v1/data/
|
|
2924
|
+
assertParamExists('deleteDatabase', 'clusterName', clusterName)
|
|
2925
|
+
// verify required parameter 'databaseName' is not null or undefined
|
|
2926
|
+
assertParamExists('deleteDatabase', 'databaseName', databaseName)
|
|
2927
|
+
const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/databases/{databaseName}`
|
|
2928
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
2860
2929
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2861
2930
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2862
|
-
.replace(`{${"
|
|
2931
|
+
.replace(`{${"databaseName"}}`, encodeURIComponent(String(databaseName)));
|
|
2863
2932
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2864
2933
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2865
2934
|
let baseOptions;
|
|
@@ -2890,25 +2959,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2890
2959
|
};
|
|
2891
2960
|
},
|
|
2892
2961
|
/**
|
|
2893
|
-
*
|
|
2894
|
-
* @summary Delete
|
|
2895
|
-
* @param {string} orgName
|
|
2896
|
-
* @param {string} clusterName
|
|
2897
|
-
* @param {string}
|
|
2962
|
+
*
|
|
2963
|
+
* @summary Delete Elasticsearch security role
|
|
2964
|
+
* @param {string} orgName
|
|
2965
|
+
* @param {string} clusterName
|
|
2966
|
+
* @param {string} roleName
|
|
2898
2967
|
* @param {*} [options] Override http request option.
|
|
2899
2968
|
* @throws {RequiredError}
|
|
2900
2969
|
*/
|
|
2901
|
-
|
|
2970
|
+
deleteElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2902
2971
|
// verify required parameter 'orgName' is not null or undefined
|
|
2903
|
-
assertParamExists('
|
|
2972
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'orgName', orgName)
|
|
2904
2973
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2905
|
-
assertParamExists('
|
|
2906
|
-
// verify required parameter '
|
|
2907
|
-
assertParamExists('
|
|
2908
|
-
const localVarPath = `/api/v1/data/
|
|
2974
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'clusterName', clusterName)
|
|
2975
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
2976
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'roleName', roleName)
|
|
2977
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
2909
2978
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2910
2979
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2911
|
-
.replace(`{${"
|
|
2980
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
2912
2981
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2913
2982
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2914
2983
|
let baseOptions;
|
|
@@ -2940,24 +3009,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2940
3009
|
},
|
|
2941
3010
|
/**
|
|
2942
3011
|
*
|
|
2943
|
-
* @summary Delete
|
|
2944
|
-
* @param {string} orgName
|
|
2945
|
-
* @param {string} clusterName
|
|
2946
|
-
* @param {string}
|
|
3012
|
+
* @summary Delete Elasticsearch security role mapping
|
|
3013
|
+
* @param {string} orgName
|
|
3014
|
+
* @param {string} clusterName
|
|
3015
|
+
* @param {string} mappingName
|
|
2947
3016
|
* @param {*} [options] Override http request option.
|
|
2948
3017
|
* @throws {RequiredError}
|
|
2949
3018
|
*/
|
|
2950
|
-
|
|
3019
|
+
deleteElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2951
3020
|
// verify required parameter 'orgName' is not null or undefined
|
|
2952
|
-
assertParamExists('
|
|
3021
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'orgName', orgName)
|
|
2953
3022
|
// verify required parameter 'clusterName' is not null or undefined
|
|
2954
|
-
assertParamExists('
|
|
2955
|
-
// verify required parameter '
|
|
2956
|
-
assertParamExists('
|
|
2957
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
3023
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
|
|
3024
|
+
// verify required parameter 'mappingName' is not null or undefined
|
|
3025
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
|
|
3026
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
|
|
2958
3027
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2959
3028
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2960
|
-
.replace(`{${"
|
|
3029
|
+
.replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
|
|
2961
3030
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2962
3031
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2963
3032
|
let baseOptions;
|
|
@@ -2988,25 +3057,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
2988
3057
|
};
|
|
2989
3058
|
},
|
|
2990
3059
|
/**
|
|
2991
|
-
*
|
|
2992
|
-
* @summary Delete
|
|
2993
|
-
* @param {string} orgName
|
|
2994
|
-
* @param {string} clusterName
|
|
2995
|
-
* @param {string}
|
|
3060
|
+
*
|
|
3061
|
+
* @summary Delete Elasticsearch security user
|
|
3062
|
+
* @param {string} orgName
|
|
3063
|
+
* @param {string} clusterName
|
|
3064
|
+
* @param {string} username
|
|
2996
3065
|
* @param {*} [options] Override http request option.
|
|
2997
3066
|
* @throws {RequiredError}
|
|
2998
3067
|
*/
|
|
2999
|
-
|
|
3068
|
+
deleteElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3000
3069
|
// verify required parameter 'orgName' is not null or undefined
|
|
3001
|
-
assertParamExists('
|
|
3070
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'orgName', orgName)
|
|
3002
3071
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3003
|
-
assertParamExists('
|
|
3004
|
-
// verify required parameter '
|
|
3005
|
-
assertParamExists('
|
|
3006
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
3072
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'clusterName', clusterName)
|
|
3073
|
+
// verify required parameter 'username' is not null or undefined
|
|
3074
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'username', username)
|
|
3075
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
3007
3076
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3008
3077
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3009
|
-
.replace(`{${"
|
|
3078
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
3010
3079
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3011
3080
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3012
3081
|
let baseOptions;
|
|
@@ -3037,22 +3106,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3037
3106
|
};
|
|
3038
3107
|
},
|
|
3039
3108
|
/**
|
|
3040
|
-
* delete an account in cluster
|
|
3041
|
-
* @summary Delete
|
|
3042
|
-
* @param {string} orgName name of the
|
|
3043
|
-
* @param {string} clusterName name of the
|
|
3044
|
-
* @param {string} accountName name of the
|
|
3109
|
+
* delete an hive account in cluster
|
|
3110
|
+
* @summary Delete hive account
|
|
3111
|
+
* @param {string} orgName name of the organization
|
|
3112
|
+
* @param {string} clusterName name of the cluster
|
|
3113
|
+
* @param {string} accountName name of the account
|
|
3045
3114
|
* @param {*} [options] Override http request option.
|
|
3046
3115
|
* @throws {RequiredError}
|
|
3047
3116
|
*/
|
|
3048
|
-
|
|
3117
|
+
deleteHiveAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3049
3118
|
// verify required parameter 'orgName' is not null or undefined
|
|
3050
|
-
assertParamExists('
|
|
3119
|
+
assertParamExists('deleteHiveAccount', 'orgName', orgName)
|
|
3051
3120
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3052
|
-
assertParamExists('
|
|
3121
|
+
assertParamExists('deleteHiveAccount', 'clusterName', clusterName)
|
|
3053
3122
|
// verify required parameter 'accountName' is not null or undefined
|
|
3054
|
-
assertParamExists('
|
|
3055
|
-
const localVarPath = `/api/v1/data/
|
|
3123
|
+
assertParamExists('deleteHiveAccount', 'accountName', accountName)
|
|
3124
|
+
const localVarPath = `/api/v1/data/hive/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
3056
3125
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3057
3126
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3058
3127
|
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
@@ -3087,24 +3156,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3087
3156
|
},
|
|
3088
3157
|
/**
|
|
3089
3158
|
*
|
|
3090
|
-
* @summary Delete
|
|
3091
|
-
* @param {string} orgName
|
|
3092
|
-
* @param {string} clusterName
|
|
3093
|
-
* @param {string}
|
|
3159
|
+
* @summary Delete IP whitelist
|
|
3160
|
+
* @param {string} orgName name of the Org
|
|
3161
|
+
* @param {string} clusterName name of the Cluster
|
|
3162
|
+
* @param {string} ipWhitelistId ID of the IP whitelist
|
|
3094
3163
|
* @param {*} [options] Override http request option.
|
|
3095
3164
|
* @throws {RequiredError}
|
|
3096
3165
|
*/
|
|
3097
|
-
|
|
3166
|
+
deleteIPWhiteList: async (orgName: string, clusterName: string, ipWhitelistId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3098
3167
|
// verify required parameter 'orgName' is not null or undefined
|
|
3099
|
-
assertParamExists('
|
|
3168
|
+
assertParamExists('deleteIPWhiteList', 'orgName', orgName)
|
|
3100
3169
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3101
|
-
assertParamExists('
|
|
3102
|
-
// verify required parameter '
|
|
3103
|
-
assertParamExists('
|
|
3104
|
-
const localVarPath = `/api/v1/
|
|
3170
|
+
assertParamExists('deleteIPWhiteList', 'clusterName', clusterName)
|
|
3171
|
+
// verify required parameter 'ipWhitelistId' is not null or undefined
|
|
3172
|
+
assertParamExists('deleteIPWhiteList', 'ipWhitelistId', ipWhitelistId)
|
|
3173
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/ipWhitelist/{ipWhitelistId}`
|
|
3105
3174
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3106
3175
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3107
|
-
.replace(`{${"
|
|
3176
|
+
.replace(`{${"ipWhitelistId"}}`, encodeURIComponent(String(ipWhitelistId)));
|
|
3108
3177
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3109
3178
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3110
3179
|
let baseOptions;
|
|
@@ -3135,25 +3204,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3135
3204
|
};
|
|
3136
3205
|
},
|
|
3137
3206
|
/**
|
|
3138
|
-
*
|
|
3139
|
-
* @summary Delete
|
|
3140
|
-
* @param {string} orgName
|
|
3141
|
-
* @param {string} clusterName
|
|
3142
|
-
* @param {string}
|
|
3207
|
+
* Stops and deletes specified import task, will clean up related Kubernetes resources
|
|
3208
|
+
* @summary Delete import task
|
|
3209
|
+
* @param {string} orgName Organization name
|
|
3210
|
+
* @param {string} clusterName Cluster name
|
|
3211
|
+
* @param {string} id Import task ID
|
|
3143
3212
|
* @param {*} [options] Override http request option.
|
|
3144
3213
|
* @throws {RequiredError}
|
|
3145
3214
|
*/
|
|
3146
|
-
|
|
3215
|
+
deleteImportTask: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3147
3216
|
// verify required parameter 'orgName' is not null or undefined
|
|
3148
|
-
assertParamExists('
|
|
3217
|
+
assertParamExists('deleteImportTask', 'orgName', orgName)
|
|
3149
3218
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3150
|
-
assertParamExists('
|
|
3151
|
-
// verify required parameter '
|
|
3152
|
-
assertParamExists('
|
|
3153
|
-
const localVarPath = `/api/v1/
|
|
3219
|
+
assertParamExists('deleteImportTask', 'clusterName', clusterName)
|
|
3220
|
+
// verify required parameter 'id' is not null or undefined
|
|
3221
|
+
assertParamExists('deleteImportTask', 'id', id)
|
|
3222
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/import/{id}`
|
|
3154
3223
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3155
3224
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3156
|
-
.replace(`{${"
|
|
3225
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3157
3226
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3158
3227
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3159
3228
|
let baseOptions;
|
|
@@ -3184,25 +3253,25 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3184
3253
|
};
|
|
3185
3254
|
},
|
|
3186
3255
|
/**
|
|
3187
|
-
*
|
|
3188
|
-
* @summary Delete
|
|
3256
|
+
* delete an account in cluster
|
|
3257
|
+
* @summary Delete cluster account
|
|
3189
3258
|
* @param {string} orgName name of the Org
|
|
3190
3259
|
* @param {string} clusterName name of the Cluster
|
|
3191
|
-
* @param {string}
|
|
3260
|
+
* @param {string} accountName name of the Cluster
|
|
3192
3261
|
* @param {*} [options] Override http request option.
|
|
3193
3262
|
* @throws {RequiredError}
|
|
3194
3263
|
*/
|
|
3195
|
-
|
|
3264
|
+
deleteKafkaAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3196
3265
|
// verify required parameter 'orgName' is not null or undefined
|
|
3197
|
-
assertParamExists('
|
|
3266
|
+
assertParamExists('deleteKafkaAccount', 'orgName', orgName)
|
|
3198
3267
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3199
|
-
assertParamExists('
|
|
3200
|
-
// verify required parameter '
|
|
3201
|
-
assertParamExists('
|
|
3202
|
-
const localVarPath = `/api/v1/data/
|
|
3268
|
+
assertParamExists('deleteKafkaAccount', 'clusterName', clusterName)
|
|
3269
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
3270
|
+
assertParamExists('deleteKafkaAccount', 'accountName', accountName)
|
|
3271
|
+
const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
3203
3272
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3204
3273
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3205
|
-
.replace(`{${"
|
|
3274
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
3206
3275
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3207
3276
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3208
3277
|
let baseOptions;
|
|
@@ -3233,25 +3302,172 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3233
3302
|
};
|
|
3234
3303
|
},
|
|
3235
3304
|
/**
|
|
3236
|
-
*
|
|
3237
|
-
* @summary Delete
|
|
3238
|
-
* @param {string} orgName name of
|
|
3239
|
-
* @param {string} clusterName name of
|
|
3240
|
-
* @param {string}
|
|
3305
|
+
*
|
|
3306
|
+
* @summary Delete consumer group
|
|
3307
|
+
* @param {string} orgName The name of organization
|
|
3308
|
+
* @param {string} clusterName The name of cluster
|
|
3309
|
+
* @param {string} groupId The id of consumer group
|
|
3241
3310
|
* @param {*} [options] Override http request option.
|
|
3242
3311
|
* @throws {RequiredError}
|
|
3243
3312
|
*/
|
|
3244
|
-
|
|
3313
|
+
deleteKafkaConsumerGroup: async (orgName: string, clusterName: string, groupId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3245
3314
|
// verify required parameter 'orgName' is not null or undefined
|
|
3246
|
-
assertParamExists('
|
|
3315
|
+
assertParamExists('deleteKafkaConsumerGroup', 'orgName', orgName)
|
|
3247
3316
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3248
|
-
assertParamExists('
|
|
3249
|
-
// verify required parameter '
|
|
3250
|
-
assertParamExists('
|
|
3251
|
-
const localVarPath = `/api/v1/data/
|
|
3317
|
+
assertParamExists('deleteKafkaConsumerGroup', 'clusterName', clusterName)
|
|
3318
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
3319
|
+
assertParamExists('deleteKafkaConsumerGroup', 'groupId', groupId)
|
|
3320
|
+
const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/consumer-groups/{groupId}`
|
|
3252
3321
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3253
3322
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3254
|
-
.replace(`{${"
|
|
3323
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
3324
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3325
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3326
|
+
let baseOptions;
|
|
3327
|
+
if (configuration) {
|
|
3328
|
+
baseOptions = configuration.baseOptions;
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3331
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3332
|
+
const localVarHeaderParameter = {} as any;
|
|
3333
|
+
const localVarQueryParameter = {} as any;
|
|
3334
|
+
|
|
3335
|
+
// authentication BearerToken required
|
|
3336
|
+
// http bearer authentication required
|
|
3337
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3338
|
+
|
|
3339
|
+
// authentication DigestAuth required
|
|
3340
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3341
|
+
|
|
3342
|
+
|
|
3343
|
+
|
|
3344
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3345
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3346
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3347
|
+
|
|
3348
|
+
return {
|
|
3349
|
+
url: toPathString(localVarUrlObj),
|
|
3350
|
+
options: localVarRequestOptions,
|
|
3351
|
+
};
|
|
3352
|
+
},
|
|
3353
|
+
/**
|
|
3354
|
+
*
|
|
3355
|
+
* @summary Delete topic
|
|
3356
|
+
* @param {string} orgName The name of organization
|
|
3357
|
+
* @param {string} clusterName The name of cluster
|
|
3358
|
+
* @param {string} topic
|
|
3359
|
+
* @param {*} [options] Override http request option.
|
|
3360
|
+
* @throws {RequiredError}
|
|
3361
|
+
*/
|
|
3362
|
+
deleteKafkaTopic: async (orgName: string, clusterName: string, topic: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3363
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3364
|
+
assertParamExists('deleteKafkaTopic', 'orgName', orgName)
|
|
3365
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3366
|
+
assertParamExists('deleteKafkaTopic', 'clusterName', clusterName)
|
|
3367
|
+
// verify required parameter 'topic' is not null or undefined
|
|
3368
|
+
assertParamExists('deleteKafkaTopic', 'topic', topic)
|
|
3369
|
+
const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}`
|
|
3370
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3371
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3372
|
+
.replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
|
|
3373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3374
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3375
|
+
let baseOptions;
|
|
3376
|
+
if (configuration) {
|
|
3377
|
+
baseOptions = configuration.baseOptions;
|
|
3378
|
+
}
|
|
3379
|
+
|
|
3380
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3381
|
+
const localVarHeaderParameter = {} as any;
|
|
3382
|
+
const localVarQueryParameter = {} as any;
|
|
3383
|
+
|
|
3384
|
+
// authentication BearerToken required
|
|
3385
|
+
// http bearer authentication required
|
|
3386
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3387
|
+
|
|
3388
|
+
// authentication DigestAuth required
|
|
3389
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
|
|
3393
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3395
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3396
|
+
|
|
3397
|
+
return {
|
|
3398
|
+
url: toPathString(localVarUrlObj),
|
|
3399
|
+
options: localVarRequestOptions,
|
|
3400
|
+
};
|
|
3401
|
+
},
|
|
3402
|
+
/**
|
|
3403
|
+
* Delete a Milvus native role.
|
|
3404
|
+
* @summary Delete Milvus role
|
|
3405
|
+
* @param {string} orgName name of the Org
|
|
3406
|
+
* @param {string} clusterName name of the Cluster
|
|
3407
|
+
* @param {string} roleName name of the Milvus role
|
|
3408
|
+
* @param {*} [options] Override http request option.
|
|
3409
|
+
* @throws {RequiredError}
|
|
3410
|
+
*/
|
|
3411
|
+
deleteMilvusRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3412
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3413
|
+
assertParamExists('deleteMilvusRole', 'orgName', orgName)
|
|
3414
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3415
|
+
assertParamExists('deleteMilvusRole', 'clusterName', clusterName)
|
|
3416
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
3417
|
+
assertParamExists('deleteMilvusRole', 'roleName', roleName)
|
|
3418
|
+
const localVarPath = `/api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
3419
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3420
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3421
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
3422
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3423
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3424
|
+
let baseOptions;
|
|
3425
|
+
if (configuration) {
|
|
3426
|
+
baseOptions = configuration.baseOptions;
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3430
|
+
const localVarHeaderParameter = {} as any;
|
|
3431
|
+
const localVarQueryParameter = {} as any;
|
|
3432
|
+
|
|
3433
|
+
// authentication BearerToken required
|
|
3434
|
+
// http bearer authentication required
|
|
3435
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3436
|
+
|
|
3437
|
+
// authentication DigestAuth required
|
|
3438
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3439
|
+
|
|
3440
|
+
|
|
3441
|
+
|
|
3442
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3443
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3444
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3445
|
+
|
|
3446
|
+
return {
|
|
3447
|
+
url: toPathString(localVarUrlObj),
|
|
3448
|
+
options: localVarRequestOptions,
|
|
3449
|
+
};
|
|
3450
|
+
},
|
|
3451
|
+
/**
|
|
3452
|
+
* delete an account in mongodb
|
|
3453
|
+
* @summary Delete mongodb account
|
|
3454
|
+
* @param {string} orgName name of the Org
|
|
3455
|
+
* @param {string} clusterName name of the Cluster
|
|
3456
|
+
* @param {string} accountName name of the Cluster
|
|
3457
|
+
* @param {*} [options] Override http request option.
|
|
3458
|
+
* @throws {RequiredError}
|
|
3459
|
+
*/
|
|
3460
|
+
deleteMongoDBAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3461
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3462
|
+
assertParamExists('deleteMongoDBAccount', 'orgName', orgName)
|
|
3463
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3464
|
+
assertParamExists('deleteMongoDBAccount', 'clusterName', clusterName)
|
|
3465
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
3466
|
+
assertParamExists('deleteMongoDBAccount', 'accountName', accountName)
|
|
3467
|
+
const localVarPath = `/api/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
3468
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3469
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3470
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
3255
3471
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3256
3472
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3257
3473
|
let baseOptions;
|
|
@@ -5222,6 +5438,55 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5222
5438
|
|
|
5223
5439
|
|
|
5224
5440
|
|
|
5441
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5442
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5443
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5444
|
+
|
|
5445
|
+
return {
|
|
5446
|
+
url: toPathString(localVarUrlObj),
|
|
5447
|
+
options: localVarRequestOptions,
|
|
5448
|
+
};
|
|
5449
|
+
},
|
|
5450
|
+
/**
|
|
5451
|
+
*
|
|
5452
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
5453
|
+
* @param {string} orgName
|
|
5454
|
+
* @param {string} clusterName
|
|
5455
|
+
* @param {string} roleName
|
|
5456
|
+
* @param {*} [options] Override http request option.
|
|
5457
|
+
* @throws {RequiredError}
|
|
5458
|
+
*/
|
|
5459
|
+
getClickhouseRoleGrants: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5460
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
5461
|
+
assertParamExists('getClickhouseRoleGrants', 'orgName', orgName)
|
|
5462
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5463
|
+
assertParamExists('getClickhouseRoleGrants', 'clusterName', clusterName)
|
|
5464
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
5465
|
+
assertParamExists('getClickhouseRoleGrants', 'roleName', roleName)
|
|
5466
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
5467
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5468
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
5469
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
5470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5472
|
+
let baseOptions;
|
|
5473
|
+
if (configuration) {
|
|
5474
|
+
baseOptions = configuration.baseOptions;
|
|
5475
|
+
}
|
|
5476
|
+
|
|
5477
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5478
|
+
const localVarHeaderParameter = {} as any;
|
|
5479
|
+
const localVarQueryParameter = {} as any;
|
|
5480
|
+
|
|
5481
|
+
// authentication BearerToken required
|
|
5482
|
+
// http bearer authentication required
|
|
5483
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5484
|
+
|
|
5485
|
+
// authentication DigestAuth required
|
|
5486
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5487
|
+
|
|
5488
|
+
|
|
5489
|
+
|
|
5225
5490
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5226
5491
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5227
5492
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7912,6 +8177,61 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
7912
8177
|
options: localVarRequestOptions,
|
|
7913
8178
|
};
|
|
7914
8179
|
},
|
|
8180
|
+
/**
|
|
8181
|
+
*
|
|
8182
|
+
* @summary Grant privileges to a ClickHouse role
|
|
8183
|
+
* @param {string} orgName
|
|
8184
|
+
* @param {string} clusterName
|
|
8185
|
+
* @param {string} roleName
|
|
8186
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
8187
|
+
* @param {*} [options] Override http request option.
|
|
8188
|
+
* @throws {RequiredError}
|
|
8189
|
+
*/
|
|
8190
|
+
grantClickhouseRolePrivileges: async (orgName: string, clusterName: string, roleName: string, body: ListClickhouseAccountRoles200ResponsePrivilegesInner, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8191
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8192
|
+
assertParamExists('grantClickhouseRolePrivileges', 'orgName', orgName)
|
|
8193
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8194
|
+
assertParamExists('grantClickhouseRolePrivileges', 'clusterName', clusterName)
|
|
8195
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
8196
|
+
assertParamExists('grantClickhouseRolePrivileges', 'roleName', roleName)
|
|
8197
|
+
// verify required parameter 'body' is not null or undefined
|
|
8198
|
+
assertParamExists('grantClickhouseRolePrivileges', 'body', body)
|
|
8199
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
8200
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8201
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
8202
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
8203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8204
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8205
|
+
let baseOptions;
|
|
8206
|
+
if (configuration) {
|
|
8207
|
+
baseOptions = configuration.baseOptions;
|
|
8208
|
+
}
|
|
8209
|
+
|
|
8210
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8211
|
+
const localVarHeaderParameter = {} as any;
|
|
8212
|
+
const localVarQueryParameter = {} as any;
|
|
8213
|
+
|
|
8214
|
+
// authentication BearerToken required
|
|
8215
|
+
// http bearer authentication required
|
|
8216
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8217
|
+
|
|
8218
|
+
// authentication DigestAuth required
|
|
8219
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8220
|
+
|
|
8221
|
+
|
|
8222
|
+
|
|
8223
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8224
|
+
|
|
8225
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8227
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8228
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
8229
|
+
|
|
8230
|
+
return {
|
|
8231
|
+
url: toPathString(localVarUrlObj),
|
|
8232
|
+
options: localVarRequestOptions,
|
|
8233
|
+
};
|
|
8234
|
+
},
|
|
7915
8235
|
/**
|
|
7916
8236
|
*
|
|
7917
8237
|
* @summary Horizontal scale cluster
|
|
@@ -8266,6 +8586,195 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8266
8586
|
|
|
8267
8587
|
|
|
8268
8588
|
|
|
8589
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8591
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8592
|
+
|
|
8593
|
+
return {
|
|
8594
|
+
url: toPathString(localVarUrlObj),
|
|
8595
|
+
options: localVarRequestOptions,
|
|
8596
|
+
};
|
|
8597
|
+
},
|
|
8598
|
+
/**
|
|
8599
|
+
*
|
|
8600
|
+
* @summary List the roles granted to a ClickHouse account
|
|
8601
|
+
* @param {string} orgName
|
|
8602
|
+
* @param {string} clusterName
|
|
8603
|
+
* @param {string} accountName
|
|
8604
|
+
* @param {*} [options] Override http request option.
|
|
8605
|
+
* @throws {RequiredError}
|
|
8606
|
+
*/
|
|
8607
|
+
listClickhouseAccountRoles: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8608
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8609
|
+
assertParamExists('listClickhouseAccountRoles', 'orgName', orgName)
|
|
8610
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8611
|
+
assertParamExists('listClickhouseAccountRoles', 'clusterName', clusterName)
|
|
8612
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
8613
|
+
assertParamExists('listClickhouseAccountRoles', 'accountName', accountName)
|
|
8614
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
8615
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8616
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
8617
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
8618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8619
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8620
|
+
let baseOptions;
|
|
8621
|
+
if (configuration) {
|
|
8622
|
+
baseOptions = configuration.baseOptions;
|
|
8623
|
+
}
|
|
8624
|
+
|
|
8625
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8626
|
+
const localVarHeaderParameter = {} as any;
|
|
8627
|
+
const localVarQueryParameter = {} as any;
|
|
8628
|
+
|
|
8629
|
+
// authentication BearerToken required
|
|
8630
|
+
// http bearer authentication required
|
|
8631
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8632
|
+
|
|
8633
|
+
// authentication DigestAuth required
|
|
8634
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8635
|
+
|
|
8636
|
+
|
|
8637
|
+
|
|
8638
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8639
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8640
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8641
|
+
|
|
8642
|
+
return {
|
|
8643
|
+
url: toPathString(localVarUrlObj),
|
|
8644
|
+
options: localVarRequestOptions,
|
|
8645
|
+
};
|
|
8646
|
+
},
|
|
8647
|
+
/**
|
|
8648
|
+
*
|
|
8649
|
+
* @summary List ClickHouse accounts
|
|
8650
|
+
* @param {string} orgName
|
|
8651
|
+
* @param {string} clusterName
|
|
8652
|
+
* @param {*} [options] Override http request option.
|
|
8653
|
+
* @throws {RequiredError}
|
|
8654
|
+
*/
|
|
8655
|
+
listClickhouseAccounts: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8656
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8657
|
+
assertParamExists('listClickhouseAccounts', 'orgName', orgName)
|
|
8658
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8659
|
+
assertParamExists('listClickhouseAccounts', 'clusterName', clusterName)
|
|
8660
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
8661
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8662
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
8663
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8664
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8665
|
+
let baseOptions;
|
|
8666
|
+
if (configuration) {
|
|
8667
|
+
baseOptions = configuration.baseOptions;
|
|
8668
|
+
}
|
|
8669
|
+
|
|
8670
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8671
|
+
const localVarHeaderParameter = {} as any;
|
|
8672
|
+
const localVarQueryParameter = {} as any;
|
|
8673
|
+
|
|
8674
|
+
// authentication BearerToken required
|
|
8675
|
+
// http bearer authentication required
|
|
8676
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8677
|
+
|
|
8678
|
+
// authentication DigestAuth required
|
|
8679
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8680
|
+
|
|
8681
|
+
|
|
8682
|
+
|
|
8683
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8684
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8685
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8686
|
+
|
|
8687
|
+
return {
|
|
8688
|
+
url: toPathString(localVarUrlObj),
|
|
8689
|
+
options: localVarRequestOptions,
|
|
8690
|
+
};
|
|
8691
|
+
},
|
|
8692
|
+
/**
|
|
8693
|
+
*
|
|
8694
|
+
* @summary List privileges supported by the ClickHouse server
|
|
8695
|
+
* @param {string} orgName
|
|
8696
|
+
* @param {string} clusterName
|
|
8697
|
+
* @param {*} [options] Override http request option.
|
|
8698
|
+
* @throws {RequiredError}
|
|
8699
|
+
*/
|
|
8700
|
+
listClickhousePrivileges: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8701
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8702
|
+
assertParamExists('listClickhousePrivileges', 'orgName', orgName)
|
|
8703
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8704
|
+
assertParamExists('listClickhousePrivileges', 'clusterName', clusterName)
|
|
8705
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/privileges`
|
|
8706
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8707
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
8708
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8709
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8710
|
+
let baseOptions;
|
|
8711
|
+
if (configuration) {
|
|
8712
|
+
baseOptions = configuration.baseOptions;
|
|
8713
|
+
}
|
|
8714
|
+
|
|
8715
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8716
|
+
const localVarHeaderParameter = {} as any;
|
|
8717
|
+
const localVarQueryParameter = {} as any;
|
|
8718
|
+
|
|
8719
|
+
// authentication BearerToken required
|
|
8720
|
+
// http bearer authentication required
|
|
8721
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8722
|
+
|
|
8723
|
+
// authentication DigestAuth required
|
|
8724
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8725
|
+
|
|
8726
|
+
|
|
8727
|
+
|
|
8728
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8730
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8731
|
+
|
|
8732
|
+
return {
|
|
8733
|
+
url: toPathString(localVarUrlObj),
|
|
8734
|
+
options: localVarRequestOptions,
|
|
8735
|
+
};
|
|
8736
|
+
},
|
|
8737
|
+
/**
|
|
8738
|
+
*
|
|
8739
|
+
* @summary List ClickHouse roles
|
|
8740
|
+
* @param {string} orgName
|
|
8741
|
+
* @param {string} clusterName
|
|
8742
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
8743
|
+
* @param {*} [options] Override http request option.
|
|
8744
|
+
* @throws {RequiredError}
|
|
8745
|
+
*/
|
|
8746
|
+
listClickhouseRoles: async (orgName: string, clusterName: string, forCreateUser?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8747
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
8748
|
+
assertParamExists('listClickhouseRoles', 'orgName', orgName)
|
|
8749
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8750
|
+
assertParamExists('listClickhouseRoles', 'clusterName', clusterName)
|
|
8751
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
8752
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
8753
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
8754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8756
|
+
let baseOptions;
|
|
8757
|
+
if (configuration) {
|
|
8758
|
+
baseOptions = configuration.baseOptions;
|
|
8759
|
+
}
|
|
8760
|
+
|
|
8761
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
8762
|
+
const localVarHeaderParameter = {} as any;
|
|
8763
|
+
const localVarQueryParameter = {} as any;
|
|
8764
|
+
|
|
8765
|
+
// authentication BearerToken required
|
|
8766
|
+
// http bearer authentication required
|
|
8767
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8768
|
+
|
|
8769
|
+
// authentication DigestAuth required
|
|
8770
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
8771
|
+
|
|
8772
|
+
if (forCreateUser !== undefined) {
|
|
8773
|
+
localVarQueryParameter['forCreateUser'] = forCreateUser;
|
|
8774
|
+
}
|
|
8775
|
+
|
|
8776
|
+
|
|
8777
|
+
|
|
8269
8778
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8270
8779
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8271
8780
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8288,10 +8797,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8288
8797
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
8289
8798
|
* @param {number} [licenseId] license id
|
|
8290
8799
|
* @param {string} [refClusterName] list clusters referenced by this cluster
|
|
8800
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
8801
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
8291
8802
|
* @param {*} [options] Override http request option.
|
|
8292
8803
|
* @throws {RequiredError}
|
|
8293
8804
|
*/
|
|
8294
|
-
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> => {
|
|
8805
|
+
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> => {
|
|
8295
8806
|
// verify required parameter 'orgName' is not null or undefined
|
|
8296
8807
|
assertParamExists('listCluster', 'orgName', orgName)
|
|
8297
8808
|
const localVarPath = `/api/v1/organizations/{orgName}/clusters`
|
|
@@ -8350,6 +8861,14 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8350
8861
|
localVarQueryParameter['refClusterName'] = refClusterName;
|
|
8351
8862
|
}
|
|
8352
8863
|
|
|
8864
|
+
if (endpointHost !== undefined) {
|
|
8865
|
+
localVarQueryParameter['endpointHost'] = endpointHost;
|
|
8866
|
+
}
|
|
8867
|
+
|
|
8868
|
+
if (includeEndpoints !== undefined) {
|
|
8869
|
+
localVarQueryParameter['includeEndpoints'] = includeEndpoints;
|
|
8870
|
+
}
|
|
8871
|
+
|
|
8353
8872
|
|
|
8354
8873
|
|
|
8355
8874
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13476,31 +13995,134 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13476
13995
|
},
|
|
13477
13996
|
/**
|
|
13478
13997
|
*
|
|
13479
|
-
* @summary Reset consumer offset of topic
|
|
13480
|
-
* @param {string} orgName The name of organization
|
|
13481
|
-
* @param {string} clusterName The name of cluster
|
|
13482
|
-
* @param {string} topic The name of topic
|
|
13483
|
-
* @param {string} groupId The id of consumer group
|
|
13484
|
-
* @param {ResetOffsetRequest} resetOffsetRequest
|
|
13998
|
+
* @summary Reset consumer offset of topic
|
|
13999
|
+
* @param {string} orgName The name of organization
|
|
14000
|
+
* @param {string} clusterName The name of cluster
|
|
14001
|
+
* @param {string} topic The name of topic
|
|
14002
|
+
* @param {string} groupId The id of consumer group
|
|
14003
|
+
* @param {ResetOffsetRequest} resetOffsetRequest
|
|
14004
|
+
* @param {*} [options] Override http request option.
|
|
14005
|
+
* @throws {RequiredError}
|
|
14006
|
+
*/
|
|
14007
|
+
resetKafkaTopicConsumerOffset: async (orgName: string, clusterName: string, topic: string, groupId: string, resetOffsetRequest: ResetOffsetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14008
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
14009
|
+
assertParamExists('resetKafkaTopicConsumerOffset', 'orgName', orgName)
|
|
14010
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
14011
|
+
assertParamExists('resetKafkaTopicConsumerOffset', 'clusterName', clusterName)
|
|
14012
|
+
// verify required parameter 'topic' is not null or undefined
|
|
14013
|
+
assertParamExists('resetKafkaTopicConsumerOffset', 'topic', topic)
|
|
14014
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
14015
|
+
assertParamExists('resetKafkaTopicConsumerOffset', 'groupId', groupId)
|
|
14016
|
+
// verify required parameter 'resetOffsetRequest' is not null or undefined
|
|
14017
|
+
assertParamExists('resetKafkaTopicConsumerOffset', 'resetOffsetRequest', resetOffsetRequest)
|
|
14018
|
+
const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/consumer-groups/{groupId}/offsets`
|
|
14019
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
14020
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
14021
|
+
.replace(`{${"topic"}}`, encodeURIComponent(String(topic)))
|
|
14022
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
14023
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14024
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14025
|
+
let baseOptions;
|
|
14026
|
+
if (configuration) {
|
|
14027
|
+
baseOptions = configuration.baseOptions;
|
|
14028
|
+
}
|
|
14029
|
+
|
|
14030
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
14031
|
+
const localVarHeaderParameter = {} as any;
|
|
14032
|
+
const localVarQueryParameter = {} as any;
|
|
14033
|
+
|
|
14034
|
+
// authentication BearerToken required
|
|
14035
|
+
// http bearer authentication required
|
|
14036
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14037
|
+
|
|
14038
|
+
// authentication DigestAuth required
|
|
14039
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
14040
|
+
|
|
14041
|
+
|
|
14042
|
+
|
|
14043
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14044
|
+
|
|
14045
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14046
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14047
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14048
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetOffsetRequest, localVarRequestOptions, configuration)
|
|
14049
|
+
|
|
14050
|
+
return {
|
|
14051
|
+
url: toPathString(localVarUrlObj),
|
|
14052
|
+
options: localVarRequestOptions,
|
|
14053
|
+
};
|
|
14054
|
+
},
|
|
14055
|
+
/**
|
|
14056
|
+
*
|
|
14057
|
+
* @summary Restart cluster
|
|
14058
|
+
* @param {string} orgName name of the Org
|
|
14059
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
14060
|
+
* @param {OpsRestart} body
|
|
14061
|
+
* @param {*} [options] Override http request option.
|
|
14062
|
+
* @throws {RequiredError}
|
|
14063
|
+
*/
|
|
14064
|
+
restartCluster: async (orgName: string, clusterName: string, body: OpsRestart, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14065
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
14066
|
+
assertParamExists('restartCluster', 'orgName', orgName)
|
|
14067
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
14068
|
+
assertParamExists('restartCluster', 'clusterName', clusterName)
|
|
14069
|
+
// verify required parameter 'body' is not null or undefined
|
|
14070
|
+
assertParamExists('restartCluster', 'body', body)
|
|
14071
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/restart`
|
|
14072
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
14073
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
14074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14075
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14076
|
+
let baseOptions;
|
|
14077
|
+
if (configuration) {
|
|
14078
|
+
baseOptions = configuration.baseOptions;
|
|
14079
|
+
}
|
|
14080
|
+
|
|
14081
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14082
|
+
const localVarHeaderParameter = {} as any;
|
|
14083
|
+
const localVarQueryParameter = {} as any;
|
|
14084
|
+
|
|
14085
|
+
// authentication BearerToken required
|
|
14086
|
+
// http bearer authentication required
|
|
14087
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14088
|
+
|
|
14089
|
+
// authentication DigestAuth required
|
|
14090
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
14091
|
+
|
|
14092
|
+
|
|
14093
|
+
|
|
14094
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14095
|
+
|
|
14096
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14097
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14098
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14099
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
14100
|
+
|
|
14101
|
+
return {
|
|
14102
|
+
url: toPathString(localVarUrlObj),
|
|
14103
|
+
options: localVarRequestOptions,
|
|
14104
|
+
};
|
|
14105
|
+
},
|
|
14106
|
+
/**
|
|
14107
|
+
*
|
|
14108
|
+
* @summary Restart instance of cluster
|
|
14109
|
+
* @param {string} orgName name of the Org
|
|
14110
|
+
* @param {string} clusterName name of the Cluster
|
|
14111
|
+
* @param {string} instanceName name of the instance
|
|
13485
14112
|
* @param {*} [options] Override http request option.
|
|
13486
14113
|
* @throws {RequiredError}
|
|
13487
14114
|
*/
|
|
13488
|
-
|
|
14115
|
+
restartInstance: async (orgName: string, clusterName: string, instanceName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13489
14116
|
// verify required parameter 'orgName' is not null or undefined
|
|
13490
|
-
assertParamExists('
|
|
14117
|
+
assertParamExists('restartInstance', 'orgName', orgName)
|
|
13491
14118
|
// verify required parameter 'clusterName' is not null or undefined
|
|
13492
|
-
assertParamExists('
|
|
13493
|
-
// verify required parameter '
|
|
13494
|
-
assertParamExists('
|
|
13495
|
-
|
|
13496
|
-
assertParamExists('resetKafkaTopicConsumerOffset', 'groupId', groupId)
|
|
13497
|
-
// verify required parameter 'resetOffsetRequest' is not null or undefined
|
|
13498
|
-
assertParamExists('resetKafkaTopicConsumerOffset', 'resetOffsetRequest', resetOffsetRequest)
|
|
13499
|
-
const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/consumer-groups/{groupId}/offsets`
|
|
14119
|
+
assertParamExists('restartInstance', 'clusterName', clusterName)
|
|
14120
|
+
// verify required parameter 'instanceName' is not null or undefined
|
|
14121
|
+
assertParamExists('restartInstance', 'instanceName', instanceName)
|
|
14122
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/instances/{instanceName}/restart`
|
|
13500
14123
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13501
14124
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
13502
|
-
.replace(`{${"
|
|
13503
|
-
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
14125
|
+
.replace(`{${"instanceName"}}`, encodeURIComponent(String(instanceName)));
|
|
13504
14126
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13505
14127
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13506
14128
|
let baseOptions;
|
|
@@ -13508,7 +14130,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13508
14130
|
baseOptions = configuration.baseOptions;
|
|
13509
14131
|
}
|
|
13510
14132
|
|
|
13511
|
-
const localVarRequestOptions = { method: '
|
|
14133
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13512
14134
|
const localVarHeaderParameter = {} as any;
|
|
13513
14135
|
const localVarQueryParameter = {} as any;
|
|
13514
14136
|
|
|
@@ -13521,12 +14143,9 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13521
14143
|
|
|
13522
14144
|
|
|
13523
14145
|
|
|
13524
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13525
|
-
|
|
13526
14146
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13527
14147
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13528
14148
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13529
|
-
localVarRequestOptions.data = serializeDataIfNeeded(resetOffsetRequest, localVarRequestOptions, configuration)
|
|
13530
14149
|
|
|
13531
14150
|
return {
|
|
13532
14151
|
url: toPathString(localVarUrlObj),
|
|
@@ -13535,21 +14154,18 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13535
14154
|
},
|
|
13536
14155
|
/**
|
|
13537
14156
|
*
|
|
13538
|
-
* @summary
|
|
14157
|
+
* @summary Restore cluster from the Recycle Bin of the Org
|
|
13539
14158
|
* @param {string} orgName name of the Org
|
|
13540
|
-
* @param {string} clusterName name of the
|
|
13541
|
-
* @param {OpsRestart} body
|
|
14159
|
+
* @param {string} clusterName name of the cluster
|
|
13542
14160
|
* @param {*} [options] Override http request option.
|
|
13543
14161
|
* @throws {RequiredError}
|
|
13544
14162
|
*/
|
|
13545
|
-
|
|
14163
|
+
restoreRecycleBinCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13546
14164
|
// verify required parameter 'orgName' is not null or undefined
|
|
13547
|
-
assertParamExists('
|
|
14165
|
+
assertParamExists('restoreRecycleBinCluster', 'orgName', orgName)
|
|
13548
14166
|
// verify required parameter 'clusterName' is not null or undefined
|
|
13549
|
-
assertParamExists('
|
|
13550
|
-
|
|
13551
|
-
assertParamExists('restartCluster', 'body', body)
|
|
13552
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/restart`
|
|
14167
|
+
assertParamExists('restoreRecycleBinCluster', 'clusterName', clusterName)
|
|
14168
|
+
const localVarPath = `/api/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}/restore`
|
|
13553
14169
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13554
14170
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
13555
14171
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13572,12 +14188,9 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13572
14188
|
|
|
13573
14189
|
|
|
13574
14190
|
|
|
13575
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13576
|
-
|
|
13577
14191
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13578
14192
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13579
14193
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13580
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
13581
14194
|
|
|
13582
14195
|
return {
|
|
13583
14196
|
url: toPathString(localVarUrlObj),
|
|
@@ -13586,24 +14199,27 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13586
14199
|
},
|
|
13587
14200
|
/**
|
|
13588
14201
|
*
|
|
13589
|
-
* @summary
|
|
13590
|
-
* @param {string} orgName
|
|
13591
|
-
* @param {string} clusterName
|
|
13592
|
-
* @param {string}
|
|
14202
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
14203
|
+
* @param {string} orgName
|
|
14204
|
+
* @param {string} clusterName
|
|
14205
|
+
* @param {string} roleName
|
|
14206
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
13593
14207
|
* @param {*} [options] Override http request option.
|
|
13594
14208
|
* @throws {RequiredError}
|
|
13595
14209
|
*/
|
|
13596
|
-
|
|
14210
|
+
revokeClickhouseRolePrivileges: async (orgName: string, clusterName: string, roleName: string, body: RevokeClickhouseRolePrivilegesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13597
14211
|
// verify required parameter 'orgName' is not null or undefined
|
|
13598
|
-
assertParamExists('
|
|
14212
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'orgName', orgName)
|
|
13599
14213
|
// verify required parameter 'clusterName' is not null or undefined
|
|
13600
|
-
assertParamExists('
|
|
13601
|
-
// verify required parameter '
|
|
13602
|
-
assertParamExists('
|
|
13603
|
-
|
|
14214
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'clusterName', clusterName)
|
|
14215
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
14216
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'roleName', roleName)
|
|
14217
|
+
// verify required parameter 'body' is not null or undefined
|
|
14218
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'body', body)
|
|
14219
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}/privileges`
|
|
13604
14220
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13605
14221
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
13606
|
-
.replace(`{${"
|
|
14222
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
13607
14223
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13608
14224
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13609
14225
|
let baseOptions;
|
|
@@ -13611,7 +14227,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13611
14227
|
baseOptions = configuration.baseOptions;
|
|
13612
14228
|
}
|
|
13613
14229
|
|
|
13614
|
-
const localVarRequestOptions = { method: '
|
|
14230
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13615
14231
|
const localVarHeaderParameter = {} as any;
|
|
13616
14232
|
const localVarQueryParameter = {} as any;
|
|
13617
14233
|
|
|
@@ -13624,54 +14240,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13624
14240
|
|
|
13625
14241
|
|
|
13626
14242
|
|
|
13627
|
-
|
|
13628
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13629
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13630
|
-
|
|
13631
|
-
return {
|
|
13632
|
-
url: toPathString(localVarUrlObj),
|
|
13633
|
-
options: localVarRequestOptions,
|
|
13634
|
-
};
|
|
13635
|
-
},
|
|
13636
|
-
/**
|
|
13637
|
-
*
|
|
13638
|
-
* @summary Restore cluster from the Recycle Bin of the Org
|
|
13639
|
-
* @param {string} orgName name of the Org
|
|
13640
|
-
* @param {string} clusterName name of the cluster
|
|
13641
|
-
* @param {*} [options] Override http request option.
|
|
13642
|
-
* @throws {RequiredError}
|
|
13643
|
-
*/
|
|
13644
|
-
restoreRecycleBinCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13645
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
13646
|
-
assertParamExists('restoreRecycleBinCluster', 'orgName', orgName)
|
|
13647
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
13648
|
-
assertParamExists('restoreRecycleBinCluster', 'clusterName', clusterName)
|
|
13649
|
-
const localVarPath = `/api/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}/restore`
|
|
13650
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13651
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
13652
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13653
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13654
|
-
let baseOptions;
|
|
13655
|
-
if (configuration) {
|
|
13656
|
-
baseOptions = configuration.baseOptions;
|
|
13657
|
-
}
|
|
13658
|
-
|
|
13659
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13660
|
-
const localVarHeaderParameter = {} as any;
|
|
13661
|
-
const localVarQueryParameter = {} as any;
|
|
13662
|
-
|
|
13663
|
-
// authentication BearerToken required
|
|
13664
|
-
// http bearer authentication required
|
|
13665
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13666
|
-
|
|
13667
|
-
// authentication DigestAuth required
|
|
13668
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
13669
|
-
|
|
14243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13670
14244
|
|
|
13671
|
-
|
|
13672
14245
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13673
14246
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13674
14247
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14248
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
13675
14249
|
|
|
13676
14250
|
return {
|
|
13677
14251
|
url: toPathString(localVarUrlObj),
|
|
@@ -14612,75 +15186,189 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14612
15186
|
},
|
|
14613
15187
|
/**
|
|
14614
15188
|
*
|
|
14615
|
-
* @summary Update alert rule
|
|
14616
|
-
* @param {string} orgName name of the Org
|
|
14617
|
-
* @param {string} alertName id of the alert rules
|
|
14618
|
-
* @param {AlertRule} body
|
|
14619
|
-
* @param {*} [options] Override http request option.
|
|
14620
|
-
* @throws {RequiredError}
|
|
14621
|
-
*/
|
|
14622
|
-
updateAlertRule: async (orgName: string, alertName: string, body: AlertRule, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14623
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
14624
|
-
assertParamExists('updateAlertRule', 'orgName', orgName)
|
|
14625
|
-
// verify required parameter 'alertName' is not null or undefined
|
|
14626
|
-
assertParamExists('updateAlertRule', 'alertName', alertName)
|
|
14627
|
-
// verify required parameter 'body' is not null or undefined
|
|
14628
|
-
assertParamExists('updateAlertRule', 'body', body)
|
|
14629
|
-
const localVarPath = `/api/v1/organizations/{orgName}/alerts/rules/{alertName}`
|
|
14630
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
14631
|
-
.replace(`{${"alertName"}}`, encodeURIComponent(String(alertName)));
|
|
14632
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14633
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14634
|
-
let baseOptions;
|
|
14635
|
-
if (configuration) {
|
|
14636
|
-
baseOptions = configuration.baseOptions;
|
|
14637
|
-
}
|
|
14638
|
-
|
|
14639
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
14640
|
-
const localVarHeaderParameter = {} as any;
|
|
14641
|
-
const localVarQueryParameter = {} as any;
|
|
14642
|
-
|
|
14643
|
-
// authentication BearerToken required
|
|
14644
|
-
// http bearer authentication required
|
|
14645
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14646
|
-
|
|
14647
|
-
// authentication DigestAuth required
|
|
14648
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14653
|
-
|
|
14654
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14655
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14656
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14657
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
14658
|
-
|
|
14659
|
-
return {
|
|
14660
|
-
url: toPathString(localVarUrlObj),
|
|
14661
|
-
options: localVarRequestOptions,
|
|
14662
|
-
};
|
|
14663
|
-
},
|
|
14664
|
-
/**
|
|
14665
|
-
* partially update the specified Backup Policy
|
|
14666
|
-
* @summary Update backup policy
|
|
14667
|
-
* @param {string} orgName name of the Org
|
|
14668
|
-
* @param {string} clusterName name of the KubeBlocks cluster
|
|
14669
|
-
* @param {BackupPolicy} body
|
|
14670
|
-
* @param {boolean} [useVolumeSnapshot] use volume snapshot to back up
|
|
15189
|
+
* @summary Update alert rule
|
|
15190
|
+
* @param {string} orgName name of the Org
|
|
15191
|
+
* @param {string} alertName id of the alert rules
|
|
15192
|
+
* @param {AlertRule} body
|
|
15193
|
+
* @param {*} [options] Override http request option.
|
|
15194
|
+
* @throws {RequiredError}
|
|
15195
|
+
*/
|
|
15196
|
+
updateAlertRule: async (orgName: string, alertName: string, body: AlertRule, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15197
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
15198
|
+
assertParamExists('updateAlertRule', 'orgName', orgName)
|
|
15199
|
+
// verify required parameter 'alertName' is not null or undefined
|
|
15200
|
+
assertParamExists('updateAlertRule', 'alertName', alertName)
|
|
15201
|
+
// verify required parameter 'body' is not null or undefined
|
|
15202
|
+
assertParamExists('updateAlertRule', 'body', body)
|
|
15203
|
+
const localVarPath = `/api/v1/organizations/{orgName}/alerts/rules/{alertName}`
|
|
15204
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
15205
|
+
.replace(`{${"alertName"}}`, encodeURIComponent(String(alertName)));
|
|
15206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15208
|
+
let baseOptions;
|
|
15209
|
+
if (configuration) {
|
|
15210
|
+
baseOptions = configuration.baseOptions;
|
|
15211
|
+
}
|
|
15212
|
+
|
|
15213
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
15214
|
+
const localVarHeaderParameter = {} as any;
|
|
15215
|
+
const localVarQueryParameter = {} as any;
|
|
15216
|
+
|
|
15217
|
+
// authentication BearerToken required
|
|
15218
|
+
// http bearer authentication required
|
|
15219
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15220
|
+
|
|
15221
|
+
// authentication DigestAuth required
|
|
15222
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
15223
|
+
|
|
15224
|
+
|
|
15225
|
+
|
|
15226
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15227
|
+
|
|
15228
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15229
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15230
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15231
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
15232
|
+
|
|
15233
|
+
return {
|
|
15234
|
+
url: toPathString(localVarUrlObj),
|
|
15235
|
+
options: localVarRequestOptions,
|
|
15236
|
+
};
|
|
15237
|
+
},
|
|
15238
|
+
/**
|
|
15239
|
+
* partially update the specified Backup Policy
|
|
15240
|
+
* @summary Update backup policy
|
|
15241
|
+
* @param {string} orgName name of the Org
|
|
15242
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
15243
|
+
* @param {BackupPolicy} body
|
|
15244
|
+
* @param {boolean} [useVolumeSnapshot] use volume snapshot to back up
|
|
15245
|
+
* @param {*} [options] Override http request option.
|
|
15246
|
+
* @throws {RequiredError}
|
|
15247
|
+
*/
|
|
15248
|
+
updateBackupPolicy: async (orgName: string, clusterName: string, body: BackupPolicy, useVolumeSnapshot?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15249
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
15250
|
+
assertParamExists('updateBackupPolicy', 'orgName', orgName)
|
|
15251
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
15252
|
+
assertParamExists('updateBackupPolicy', 'clusterName', clusterName)
|
|
15253
|
+
// verify required parameter 'body' is not null or undefined
|
|
15254
|
+
assertParamExists('updateBackupPolicy', 'body', body)
|
|
15255
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/backupPolicy`
|
|
15256
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
15257
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
15258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15259
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15260
|
+
let baseOptions;
|
|
15261
|
+
if (configuration) {
|
|
15262
|
+
baseOptions = configuration.baseOptions;
|
|
15263
|
+
}
|
|
15264
|
+
|
|
15265
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
15266
|
+
const localVarHeaderParameter = {} as any;
|
|
15267
|
+
const localVarQueryParameter = {} as any;
|
|
15268
|
+
|
|
15269
|
+
// authentication BearerToken required
|
|
15270
|
+
// http bearer authentication required
|
|
15271
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15272
|
+
|
|
15273
|
+
// authentication DigestAuth required
|
|
15274
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
15275
|
+
|
|
15276
|
+
if (useVolumeSnapshot !== undefined) {
|
|
15277
|
+
localVarQueryParameter['useVolumeSnapshot'] = useVolumeSnapshot;
|
|
15278
|
+
}
|
|
15279
|
+
|
|
15280
|
+
|
|
15281
|
+
|
|
15282
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15283
|
+
|
|
15284
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15285
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15286
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15287
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
15288
|
+
|
|
15289
|
+
return {
|
|
15290
|
+
url: toPathString(localVarUrlObj),
|
|
15291
|
+
options: localVarRequestOptions,
|
|
15292
|
+
};
|
|
15293
|
+
},
|
|
15294
|
+
/**
|
|
15295
|
+
*
|
|
15296
|
+
* @summary Update backup schedule
|
|
15297
|
+
* @param {string} orgName name of the org
|
|
15298
|
+
* @param {string} clusterName name of the cluster
|
|
15299
|
+
* @param {string} scheduleName name of the backup schedule
|
|
15300
|
+
* @param {BackupScheduleUpdate} body
|
|
15301
|
+
* @param {*} [options] Override http request option.
|
|
15302
|
+
* @throws {RequiredError}
|
|
15303
|
+
*/
|
|
15304
|
+
updateBackupSchedule: async (orgName: string, clusterName: string, scheduleName: string, body: BackupScheduleUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15305
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
15306
|
+
assertParamExists('updateBackupSchedule', 'orgName', orgName)
|
|
15307
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
15308
|
+
assertParamExists('updateBackupSchedule', 'clusterName', clusterName)
|
|
15309
|
+
// verify required parameter 'scheduleName' is not null or undefined
|
|
15310
|
+
assertParamExists('updateBackupSchedule', 'scheduleName', scheduleName)
|
|
15311
|
+
// verify required parameter 'body' is not null or undefined
|
|
15312
|
+
assertParamExists('updateBackupSchedule', 'body', body)
|
|
15313
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/backupSchedules/{scheduleName}`
|
|
15314
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
15315
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
15316
|
+
.replace(`{${"scheduleName"}}`, encodeURIComponent(String(scheduleName)));
|
|
15317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15319
|
+
let baseOptions;
|
|
15320
|
+
if (configuration) {
|
|
15321
|
+
baseOptions = configuration.baseOptions;
|
|
15322
|
+
}
|
|
15323
|
+
|
|
15324
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
15325
|
+
const localVarHeaderParameter = {} as any;
|
|
15326
|
+
const localVarQueryParameter = {} as any;
|
|
15327
|
+
|
|
15328
|
+
// authentication BearerToken required
|
|
15329
|
+
// http bearer authentication required
|
|
15330
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15331
|
+
|
|
15332
|
+
// authentication DigestAuth required
|
|
15333
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
15334
|
+
|
|
15335
|
+
|
|
15336
|
+
|
|
15337
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15338
|
+
|
|
15339
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15341
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15342
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
15343
|
+
|
|
15344
|
+
return {
|
|
15345
|
+
url: toPathString(localVarUrlObj),
|
|
15346
|
+
options: localVarRequestOptions,
|
|
15347
|
+
};
|
|
15348
|
+
},
|
|
15349
|
+
/**
|
|
15350
|
+
*
|
|
15351
|
+
* @summary Update a ClickHouse account password
|
|
15352
|
+
* @param {string} orgName
|
|
15353
|
+
* @param {string} clusterName
|
|
15354
|
+
* @param {string} accountName
|
|
15355
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
14671
15356
|
* @param {*} [options] Override http request option.
|
|
14672
15357
|
* @throws {RequiredError}
|
|
14673
15358
|
*/
|
|
14674
|
-
|
|
15359
|
+
updateClickhouseAccountPassword: async (orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14675
15360
|
// verify required parameter 'orgName' is not null or undefined
|
|
14676
|
-
assertParamExists('
|
|
15361
|
+
assertParamExists('updateClickhouseAccountPassword', 'orgName', orgName)
|
|
14677
15362
|
// verify required parameter 'clusterName' is not null or undefined
|
|
14678
|
-
assertParamExists('
|
|
15363
|
+
assertParamExists('updateClickhouseAccountPassword', 'clusterName', clusterName)
|
|
15364
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
15365
|
+
assertParamExists('updateClickhouseAccountPassword', 'accountName', accountName)
|
|
14679
15366
|
// verify required parameter 'body' is not null or undefined
|
|
14680
|
-
assertParamExists('
|
|
14681
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
15367
|
+
assertParamExists('updateClickhouseAccountPassword', 'body', body)
|
|
15368
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
14682
15369
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
14683
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
15370
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
15371
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
14684
15372
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14685
15373
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14686
15374
|
let baseOptions;
|
|
@@ -14699,10 +15387,6 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14699
15387
|
// authentication DigestAuth required
|
|
14700
15388
|
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
14701
15389
|
|
|
14702
|
-
if (useVolumeSnapshot !== undefined) {
|
|
14703
|
-
localVarQueryParameter['useVolumeSnapshot'] = useVolumeSnapshot;
|
|
14704
|
-
}
|
|
14705
|
-
|
|
14706
15390
|
|
|
14707
15391
|
|
|
14708
15392
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -14719,27 +15403,27 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14719
15403
|
},
|
|
14720
15404
|
/**
|
|
14721
15405
|
*
|
|
14722
|
-
* @summary Update
|
|
14723
|
-
* @param {string} orgName
|
|
14724
|
-
* @param {string} clusterName
|
|
14725
|
-
* @param {string}
|
|
14726
|
-
* @param {
|
|
15406
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
15407
|
+
* @param {string} orgName
|
|
15408
|
+
* @param {string} clusterName
|
|
15409
|
+
* @param {string} accountName
|
|
15410
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
14727
15411
|
* @param {*} [options] Override http request option.
|
|
14728
15412
|
* @throws {RequiredError}
|
|
14729
15413
|
*/
|
|
14730
|
-
|
|
15414
|
+
updateClickhouseAccountRoles: async (orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountRolesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14731
15415
|
// verify required parameter 'orgName' is not null or undefined
|
|
14732
|
-
assertParamExists('
|
|
15416
|
+
assertParamExists('updateClickhouseAccountRoles', 'orgName', orgName)
|
|
14733
15417
|
// verify required parameter 'clusterName' is not null or undefined
|
|
14734
|
-
assertParamExists('
|
|
14735
|
-
// verify required parameter '
|
|
14736
|
-
assertParamExists('
|
|
15418
|
+
assertParamExists('updateClickhouseAccountRoles', 'clusterName', clusterName)
|
|
15419
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
15420
|
+
assertParamExists('updateClickhouseAccountRoles', 'accountName', accountName)
|
|
14737
15421
|
// verify required parameter 'body' is not null or undefined
|
|
14738
|
-
assertParamExists('
|
|
14739
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
15422
|
+
assertParamExists('updateClickhouseAccountRoles', 'body', body)
|
|
15423
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
14740
15424
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
14741
15425
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
14742
|
-
.replace(`{${"
|
|
15426
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
14743
15427
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14744
15428
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14745
15429
|
let baseOptions;
|
|
@@ -14747,7 +15431,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14747
15431
|
baseOptions = configuration.baseOptions;
|
|
14748
15432
|
}
|
|
14749
15433
|
|
|
14750
|
-
const localVarRequestOptions = { method: '
|
|
15434
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
14751
15435
|
const localVarHeaderParameter = {} as any;
|
|
14752
15436
|
const localVarQueryParameter = {} as any;
|
|
14753
15437
|
|
|
@@ -16338,6 +17022,36 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16338
17022
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.createBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
16339
17023
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16340
17024
|
},
|
|
17025
|
+
/**
|
|
17026
|
+
*
|
|
17027
|
+
* @summary Create a ClickHouse account with optional roles
|
|
17028
|
+
* @param {string} orgName
|
|
17029
|
+
* @param {string} clusterName
|
|
17030
|
+
* @param {CreateClickhouseAccountRequest} body
|
|
17031
|
+
* @param {*} [options] Override http request option.
|
|
17032
|
+
* @throws {RequiredError}
|
|
17033
|
+
*/
|
|
17034
|
+
async createClickhouseAccount(orgName: string, clusterName: string, body: CreateClickhouseAccountRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17035
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseAccount(orgName, clusterName, body, options);
|
|
17036
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17037
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.createClickhouseAccount']?.[localVarOperationServerIndex]?.url;
|
|
17038
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17039
|
+
},
|
|
17040
|
+
/**
|
|
17041
|
+
*
|
|
17042
|
+
* @summary Create a ClickHouse role with privileges
|
|
17043
|
+
* @param {string} orgName
|
|
17044
|
+
* @param {string} clusterName
|
|
17045
|
+
* @param {ListClickhouseAccountRoles200Response} body
|
|
17046
|
+
* @param {*} [options] Override http request option.
|
|
17047
|
+
* @throws {RequiredError}
|
|
17048
|
+
*/
|
|
17049
|
+
async createClickhouseRole(orgName: string, clusterName: string, body: ListClickhouseAccountRoles200Response, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17050
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClickhouseRole(orgName, clusterName, body, options);
|
|
17051
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17052
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.createClickhouseRole']?.[localVarOperationServerIndex]?.url;
|
|
17053
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17054
|
+
},
|
|
16341
17055
|
/**
|
|
16342
17056
|
*
|
|
16343
17057
|
* @summary Create new cluster
|
|
@@ -16739,6 +17453,36 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16739
17453
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
16740
17454
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16741
17455
|
},
|
|
17456
|
+
/**
|
|
17457
|
+
*
|
|
17458
|
+
* @summary Delete a ClickHouse account
|
|
17459
|
+
* @param {string} orgName
|
|
17460
|
+
* @param {string} clusterName
|
|
17461
|
+
* @param {string} accountName
|
|
17462
|
+
* @param {*} [options] Override http request option.
|
|
17463
|
+
* @throws {RequiredError}
|
|
17464
|
+
*/
|
|
17465
|
+
async deleteClickhouseAccount(orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseAccount(orgName, clusterName, accountName, options);
|
|
17467
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17468
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteClickhouseAccount']?.[localVarOperationServerIndex]?.url;
|
|
17469
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17470
|
+
},
|
|
17471
|
+
/**
|
|
17472
|
+
*
|
|
17473
|
+
* @summary Delete a ClickHouse role
|
|
17474
|
+
* @param {string} orgName
|
|
17475
|
+
* @param {string} clusterName
|
|
17476
|
+
* @param {string} roleName
|
|
17477
|
+
* @param {*} [options] Override http request option.
|
|
17478
|
+
* @throws {RequiredError}
|
|
17479
|
+
*/
|
|
17480
|
+
async deleteClickhouseRole(orgName: string, clusterName: string, roleName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
17481
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClickhouseRole(orgName, clusterName, roleName, options);
|
|
17482
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17483
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteClickhouseRole']?.[localVarOperationServerIndex]?.url;
|
|
17484
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17485
|
+
},
|
|
16742
17486
|
/**
|
|
16743
17487
|
*
|
|
16744
17488
|
* @summary Delete cluster
|
|
@@ -17507,6 +18251,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17507
18251
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getBackupMethod']?.[localVarOperationServerIndex]?.url;
|
|
17508
18252
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17509
18253
|
},
|
|
18254
|
+
/**
|
|
18255
|
+
*
|
|
18256
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
18257
|
+
* @param {string} orgName
|
|
18258
|
+
* @param {string} clusterName
|
|
18259
|
+
* @param {string} roleName
|
|
18260
|
+
* @param {*} [options] Override http request option.
|
|
18261
|
+
* @throws {RequiredError}
|
|
18262
|
+
*/
|
|
18263
|
+
async getClickhouseRoleGrants(orgName: string, clusterName: string, roleName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetClickhouseRoleGrants200ResponseInner>>> {
|
|
18264
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClickhouseRoleGrants(orgName, clusterName, roleName, options);
|
|
18265
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18266
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.getClickhouseRoleGrants']?.[localVarOperationServerIndex]?.url;
|
|
18267
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18268
|
+
},
|
|
17510
18269
|
/**
|
|
17511
18270
|
*
|
|
17512
18271
|
* @summary Get cluster details
|
|
@@ -18288,6 +19047,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18288
19047
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getTenant']?.[localVarOperationServerIndex]?.url;
|
|
18289
19048
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18290
19049
|
},
|
|
19050
|
+
/**
|
|
19051
|
+
*
|
|
19052
|
+
* @summary Grant privileges to a ClickHouse role
|
|
19053
|
+
* @param {string} orgName
|
|
19054
|
+
* @param {string} clusterName
|
|
19055
|
+
* @param {string} roleName
|
|
19056
|
+
* @param {ListClickhouseAccountRoles200ResponsePrivilegesInner} body
|
|
19057
|
+
* @param {*} [options] Override http request option.
|
|
19058
|
+
* @throws {RequiredError}
|
|
19059
|
+
*/
|
|
19060
|
+
async grantClickhouseRolePrivileges(orgName: string, clusterName: string, roleName: string, body: ListClickhouseAccountRoles200ResponsePrivilegesInner, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
19061
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.grantClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
19062
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19063
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.grantClickhouseRolePrivileges']?.[localVarOperationServerIndex]?.url;
|
|
19064
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19065
|
+
},
|
|
18291
19066
|
/**
|
|
18292
19067
|
*
|
|
18293
19068
|
* @summary Horizontal scale cluster
|
|
@@ -18395,6 +19170,64 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18395
19170
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.listBackupSchedules']?.[localVarOperationServerIndex]?.url;
|
|
18396
19171
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18397
19172
|
},
|
|
19173
|
+
/**
|
|
19174
|
+
*
|
|
19175
|
+
* @summary List the roles granted to a ClickHouse account
|
|
19176
|
+
* @param {string} orgName
|
|
19177
|
+
* @param {string} clusterName
|
|
19178
|
+
* @param {string} accountName
|
|
19179
|
+
* @param {*} [options] Override http request option.
|
|
19180
|
+
* @throws {RequiredError}
|
|
19181
|
+
*/
|
|
19182
|
+
async listClickhouseAccountRoles(orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClickhouseAccountRoles200Response>> {
|
|
19183
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccountRoles(orgName, clusterName, accountName, options);
|
|
19184
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19185
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClickhouseAccountRoles']?.[localVarOperationServerIndex]?.url;
|
|
19186
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19187
|
+
},
|
|
19188
|
+
/**
|
|
19189
|
+
*
|
|
19190
|
+
* @summary List ClickHouse accounts
|
|
19191
|
+
* @param {string} orgName
|
|
19192
|
+
* @param {string} clusterName
|
|
19193
|
+
* @param {*} [options] Override http request option.
|
|
19194
|
+
* @throws {RequiredError}
|
|
19195
|
+
*/
|
|
19196
|
+
async listClickhouseAccounts(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CkAccount>> {
|
|
19197
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseAccounts(orgName, clusterName, options);
|
|
19198
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19199
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClickhouseAccounts']?.[localVarOperationServerIndex]?.url;
|
|
19200
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19201
|
+
},
|
|
19202
|
+
/**
|
|
19203
|
+
*
|
|
19204
|
+
* @summary List privileges supported by the ClickHouse server
|
|
19205
|
+
* @param {string} orgName
|
|
19206
|
+
* @param {string} clusterName
|
|
19207
|
+
* @param {*} [options] Override http request option.
|
|
19208
|
+
* @throws {RequiredError}
|
|
19209
|
+
*/
|
|
19210
|
+
async listClickhousePrivileges(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
19211
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhousePrivileges(orgName, clusterName, options);
|
|
19212
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19213
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClickhousePrivileges']?.[localVarOperationServerIndex]?.url;
|
|
19214
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19215
|
+
},
|
|
19216
|
+
/**
|
|
19217
|
+
*
|
|
19218
|
+
* @summary List ClickHouse roles
|
|
19219
|
+
* @param {string} orgName
|
|
19220
|
+
* @param {string} clusterName
|
|
19221
|
+
* @param {boolean} [forCreateUser] Whether to include built-in privilege roles for creating an account.
|
|
19222
|
+
* @param {*} [options] Override http request option.
|
|
19223
|
+
* @throws {RequiredError}
|
|
19224
|
+
*/
|
|
19225
|
+
async listClickhouseRoles(orgName: string, clusterName: string, forCreateUser?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ListClickhouseAccountRoles200Response>>> {
|
|
19226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClickhouseRoles(orgName, clusterName, forCreateUser, options);
|
|
19227
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19228
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.listClickhouseRoles']?.[localVarOperationServerIndex]?.url;
|
|
19229
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19230
|
+
},
|
|
18398
19231
|
/**
|
|
18399
19232
|
*
|
|
18400
19233
|
* @summary List clusters in the Org
|
|
@@ -18408,11 +19241,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18408
19241
|
* @param {Array<string>} [tagValues] A list of tags\' values corresponding to the tagKeys
|
|
18409
19242
|
* @param {number} [licenseId] license id
|
|
18410
19243
|
* @param {string} [refClusterName] list clusters referenced by this cluster
|
|
19244
|
+
* @param {string} [endpointHost] Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
19245
|
+
* @param {boolean} [includeEndpoints] Whether to include cached user-visible endpoints in each cluster item
|
|
18411
19246
|
* @param {*} [options] Override http request option.
|
|
18412
19247
|
* @throws {RequiredError}
|
|
18413
19248
|
*/
|
|
18414
|
-
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>> {
|
|
18415
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, options);
|
|
19249
|
+
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>> {
|
|
19250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCluster(orgName, clusterDefinition, environmentName, environmentType, tagKey, tagValue, tagKeys, tagValues, licenseId, refClusterName, endpointHost, includeEndpoints, options);
|
|
18416
19251
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18417
19252
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.listCluster']?.[localVarOperationServerIndex]?.url;
|
|
18418
19253
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -19923,6 +20758,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
19923
20758
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.restoreRecycleBinCluster']?.[localVarOperationServerIndex]?.url;
|
|
19924
20759
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19925
20760
|
},
|
|
20761
|
+
/**
|
|
20762
|
+
*
|
|
20763
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
20764
|
+
* @param {string} orgName
|
|
20765
|
+
* @param {string} clusterName
|
|
20766
|
+
* @param {string} roleName
|
|
20767
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
20768
|
+
* @param {*} [options] Override http request option.
|
|
20769
|
+
* @throws {RequiredError}
|
|
20770
|
+
*/
|
|
20771
|
+
async revokeClickhouseRolePrivileges(orgName: string, clusterName: string, roleName: string, body: RevokeClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
20772
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revokeClickhouseRolePrivileges(orgName, clusterName, roleName, body, options);
|
|
20773
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20774
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.revokeClickhouseRolePrivileges']?.[localVarOperationServerIndex]?.url;
|
|
20775
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20776
|
+
},
|
|
19926
20777
|
/**
|
|
19927
20778
|
*
|
|
19928
20779
|
* @summary Set alert config
|
|
@@ -20247,6 +21098,38 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
20247
21098
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
20248
21099
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20249
21100
|
},
|
|
21101
|
+
/**
|
|
21102
|
+
*
|
|
21103
|
+
* @summary Update a ClickHouse account password
|
|
21104
|
+
* @param {string} orgName
|
|
21105
|
+
* @param {string} clusterName
|
|
21106
|
+
* @param {string} accountName
|
|
21107
|
+
* @param {UpdateClickhouseAccountPasswordRequest} body
|
|
21108
|
+
* @param {*} [options] Override http request option.
|
|
21109
|
+
* @throws {RequiredError}
|
|
21110
|
+
*/
|
|
21111
|
+
async updateClickhouseAccountPassword(orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
21112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountPassword(orgName, clusterName, accountName, body, options);
|
|
21113
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21114
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateClickhouseAccountPassword']?.[localVarOperationServerIndex]?.url;
|
|
21115
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21116
|
+
},
|
|
21117
|
+
/**
|
|
21118
|
+
*
|
|
21119
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
21120
|
+
* @param {string} orgName
|
|
21121
|
+
* @param {string} clusterName
|
|
21122
|
+
* @param {string} accountName
|
|
21123
|
+
* @param {UpdateClickhouseAccountRolesRequest} body
|
|
21124
|
+
* @param {*} [options] Override http request option.
|
|
21125
|
+
* @throws {RequiredError}
|
|
21126
|
+
*/
|
|
21127
|
+
async updateClickhouseAccountRoles(orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
21128
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClickhouseAccountRoles(orgName, clusterName, accountName, body, options);
|
|
21129
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21130
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateClickhouseAccountRoles']?.[localVarOperationServerIndex]?.url;
|
|
21131
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21132
|
+
},
|
|
20250
21133
|
/**
|
|
20251
21134
|
*
|
|
20252
21135
|
* @summary Update the cluster license
|
|
@@ -20777,6 +21660,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
20777
21660
|
createBackupSchedule(requestParameters: SharedApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule> {
|
|
20778
21661
|
return localVarFp.createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20779
21662
|
},
|
|
21663
|
+
/**
|
|
21664
|
+
*
|
|
21665
|
+
* @summary Create a ClickHouse account with optional roles
|
|
21666
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
21667
|
+
* @param {*} [options] Override http request option.
|
|
21668
|
+
* @throws {RequiredError}
|
|
21669
|
+
*/
|
|
21670
|
+
createClickhouseAccount(requestParameters: SharedApiCreateClickhouseAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21671
|
+
return localVarFp.createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21672
|
+
},
|
|
21673
|
+
/**
|
|
21674
|
+
*
|
|
21675
|
+
* @summary Create a ClickHouse role with privileges
|
|
21676
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
21677
|
+
* @param {*} [options] Override http request option.
|
|
21678
|
+
* @throws {RequiredError}
|
|
21679
|
+
*/
|
|
21680
|
+
createClickhouseRole(requestParameters: SharedApiCreateClickhouseRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21681
|
+
return localVarFp.createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
21682
|
+
},
|
|
20780
21683
|
/**
|
|
20781
21684
|
*
|
|
20782
21685
|
* @summary Create new cluster
|
|
@@ -21047,6 +21950,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21047
21950
|
deleteBackupSchedule(requestParameters: SharedApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21048
21951
|
return localVarFp.deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(axios, basePath));
|
|
21049
21952
|
},
|
|
21953
|
+
/**
|
|
21954
|
+
*
|
|
21955
|
+
* @summary Delete a ClickHouse account
|
|
21956
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
21957
|
+
* @param {*} [options] Override http request option.
|
|
21958
|
+
* @throws {RequiredError}
|
|
21959
|
+
*/
|
|
21960
|
+
deleteClickhouseAccount(requestParameters: SharedApiDeleteClickhouseAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21961
|
+
return localVarFp.deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
21962
|
+
},
|
|
21963
|
+
/**
|
|
21964
|
+
*
|
|
21965
|
+
* @summary Delete a ClickHouse role
|
|
21966
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
21967
|
+
* @param {*} [options] Override http request option.
|
|
21968
|
+
* @throws {RequiredError}
|
|
21969
|
+
*/
|
|
21970
|
+
deleteClickhouseRole(requestParameters: SharedApiDeleteClickhouseRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21971
|
+
return localVarFp.deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
21972
|
+
},
|
|
21050
21973
|
/**
|
|
21051
21974
|
*
|
|
21052
21975
|
* @summary Delete cluster
|
|
@@ -21527,6 +22450,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21527
22450
|
getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod> {
|
|
21528
22451
|
return localVarFp.getBackupMethod(requestParameters.orgName, requestParameters.engineName, requestParameters.clusterID, requestParameters.enablePITR, requestParameters.withRebuildInstance, requestParameters.withRestoreCluster, requestParameters.withHScale, requestParameters.component, requestParameters.mode, options).then((request) => request(axios, basePath));
|
|
21529
22452
|
},
|
|
22453
|
+
/**
|
|
22454
|
+
*
|
|
22455
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
22456
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
22457
|
+
* @param {*} [options] Override http request option.
|
|
22458
|
+
* @throws {RequiredError}
|
|
22459
|
+
*/
|
|
22460
|
+
getClickhouseRoleGrants(requestParameters: SharedApiGetClickhouseRoleGrantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<GetClickhouseRoleGrants200ResponseInner>> {
|
|
22461
|
+
return localVarFp.getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
22462
|
+
},
|
|
21530
22463
|
/**
|
|
21531
22464
|
*
|
|
21532
22465
|
* @summary Get cluster details
|
|
@@ -22016,6 +22949,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22016
22949
|
getTenant(requestParameters: SharedApiGetTenantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tenant> {
|
|
22017
22950
|
return localVarFp.getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(axios, basePath));
|
|
22018
22951
|
},
|
|
22952
|
+
/**
|
|
22953
|
+
*
|
|
22954
|
+
* @summary Grant privileges to a ClickHouse role
|
|
22955
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
22956
|
+
* @param {*} [options] Override http request option.
|
|
22957
|
+
* @throws {RequiredError}
|
|
22958
|
+
*/
|
|
22959
|
+
grantClickhouseRolePrivileges(requestParameters: SharedApiGrantClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
22960
|
+
return localVarFp.grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
22961
|
+
},
|
|
22019
22962
|
/**
|
|
22020
22963
|
*
|
|
22021
22964
|
* @summary Horizontal scale cluster
|
|
@@ -22086,6 +23029,46 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22086
23029
|
listBackupSchedules(requestParameters: SharedApiListBackupSchedulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupScheduleList> {
|
|
22087
23030
|
return localVarFp.listBackupSchedules(requestParameters.orgName, requestParameters.clusterName, requestParameters.backupMethod, options).then((request) => request(axios, basePath));
|
|
22088
23031
|
},
|
|
23032
|
+
/**
|
|
23033
|
+
*
|
|
23034
|
+
* @summary List the roles granted to a ClickHouse account
|
|
23035
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
23036
|
+
* @param {*} [options] Override http request option.
|
|
23037
|
+
* @throws {RequiredError}
|
|
23038
|
+
*/
|
|
23039
|
+
listClickhouseAccountRoles(requestParameters: SharedApiListClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListClickhouseAccountRoles200Response> {
|
|
23040
|
+
return localVarFp.listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
23041
|
+
},
|
|
23042
|
+
/**
|
|
23043
|
+
*
|
|
23044
|
+
* @summary List ClickHouse accounts
|
|
23045
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
23046
|
+
* @param {*} [options] Override http request option.
|
|
23047
|
+
* @throws {RequiredError}
|
|
23048
|
+
*/
|
|
23049
|
+
listClickhouseAccounts(requestParameters: SharedApiListClickhouseAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CkAccount> {
|
|
23050
|
+
return localVarFp.listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
23051
|
+
},
|
|
23052
|
+
/**
|
|
23053
|
+
*
|
|
23054
|
+
* @summary List privileges supported by the ClickHouse server
|
|
23055
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
23056
|
+
* @param {*} [options] Override http request option.
|
|
23057
|
+
* @throws {RequiredError}
|
|
23058
|
+
*/
|
|
23059
|
+
listClickhousePrivileges(requestParameters: SharedApiListClickhousePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
23060
|
+
return localVarFp.listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
23061
|
+
},
|
|
23062
|
+
/**
|
|
23063
|
+
*
|
|
23064
|
+
* @summary List ClickHouse roles
|
|
23065
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
23066
|
+
* @param {*} [options] Override http request option.
|
|
23067
|
+
* @throws {RequiredError}
|
|
23068
|
+
*/
|
|
23069
|
+
listClickhouseRoles(requestParameters: SharedApiListClickhouseRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ListClickhouseAccountRoles200Response>> {
|
|
23070
|
+
return localVarFp.listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(axios, basePath));
|
|
23071
|
+
},
|
|
22089
23072
|
/**
|
|
22090
23073
|
*
|
|
22091
23074
|
* @summary List clusters in the Org
|
|
@@ -22094,7 +23077,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22094
23077
|
* @throws {RequiredError}
|
|
22095
23078
|
*/
|
|
22096
23079
|
listCluster(requestParameters: SharedApiListClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterList> {
|
|
22097
|
-
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));
|
|
23080
|
+
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));
|
|
22098
23081
|
},
|
|
22099
23082
|
/**
|
|
22100
23083
|
*
|
|
@@ -23013,6 +23996,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23013
23996
|
restoreRecycleBinCluster(requestParameters: SharedApiRestoreRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
23014
23997
|
return localVarFp.restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
23015
23998
|
},
|
|
23999
|
+
/**
|
|
24000
|
+
*
|
|
24001
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
24002
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
24003
|
+
* @param {*} [options] Override http request option.
|
|
24004
|
+
* @throws {RequiredError}
|
|
24005
|
+
*/
|
|
24006
|
+
revokeClickhouseRolePrivileges(requestParameters: SharedApiRevokeClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
24007
|
+
return localVarFp.revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
24008
|
+
},
|
|
23016
24009
|
/**
|
|
23017
24010
|
*
|
|
23018
24011
|
* @summary Set alert config
|
|
@@ -23223,6 +24216,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23223
24216
|
updateBackupSchedule(requestParameters: SharedApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule> {
|
|
23224
24217
|
return localVarFp.updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
23225
24218
|
},
|
|
24219
|
+
/**
|
|
24220
|
+
*
|
|
24221
|
+
* @summary Update a ClickHouse account password
|
|
24222
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
24223
|
+
* @param {*} [options] Override http request option.
|
|
24224
|
+
* @throws {RequiredError}
|
|
24225
|
+
*/
|
|
24226
|
+
updateClickhouseAccountPassword(requestParameters: SharedApiUpdateClickhouseAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
24227
|
+
return localVarFp.updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
24228
|
+
},
|
|
24229
|
+
/**
|
|
24230
|
+
*
|
|
24231
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
24232
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
24233
|
+
* @param {*} [options] Override http request option.
|
|
24234
|
+
* @throws {RequiredError}
|
|
24235
|
+
*/
|
|
24236
|
+
updateClickhouseAccountRoles(requestParameters: SharedApiUpdateClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
24237
|
+
return localVarFp.updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
24238
|
+
},
|
|
23226
24239
|
/**
|
|
23227
24240
|
*
|
|
23228
24241
|
* @summary Update the cluster license
|
|
@@ -23612,6 +24625,26 @@ export interface SharedApiInterface {
|
|
|
23612
24625
|
*/
|
|
23613
24626
|
createBackupSchedule(requestParameters: SharedApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule>;
|
|
23614
24627
|
|
|
24628
|
+
/**
|
|
24629
|
+
*
|
|
24630
|
+
* @summary Create a ClickHouse account with optional roles
|
|
24631
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
24632
|
+
* @param {*} [options] Override http request option.
|
|
24633
|
+
* @throws {RequiredError}
|
|
24634
|
+
* @memberof SharedApiInterface
|
|
24635
|
+
*/
|
|
24636
|
+
createClickhouseAccount(requestParameters: SharedApiCreateClickhouseAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24637
|
+
|
|
24638
|
+
/**
|
|
24639
|
+
*
|
|
24640
|
+
* @summary Create a ClickHouse role with privileges
|
|
24641
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
24642
|
+
* @param {*} [options] Override http request option.
|
|
24643
|
+
* @throws {RequiredError}
|
|
24644
|
+
* @memberof SharedApiInterface
|
|
24645
|
+
*/
|
|
24646
|
+
createClickhouseRole(requestParameters: SharedApiCreateClickhouseRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24647
|
+
|
|
23615
24648
|
/**
|
|
23616
24649
|
*
|
|
23617
24650
|
* @summary Create new cluster
|
|
@@ -23882,6 +24915,26 @@ export interface SharedApiInterface {
|
|
|
23882
24915
|
*/
|
|
23883
24916
|
deleteBackupSchedule(requestParameters: SharedApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
23884
24917
|
|
|
24918
|
+
/**
|
|
24919
|
+
*
|
|
24920
|
+
* @summary Delete a ClickHouse account
|
|
24921
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
24922
|
+
* @param {*} [options] Override http request option.
|
|
24923
|
+
* @throws {RequiredError}
|
|
24924
|
+
* @memberof SharedApiInterface
|
|
24925
|
+
*/
|
|
24926
|
+
deleteClickhouseAccount(requestParameters: SharedApiDeleteClickhouseAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24927
|
+
|
|
24928
|
+
/**
|
|
24929
|
+
*
|
|
24930
|
+
* @summary Delete a ClickHouse role
|
|
24931
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
24932
|
+
* @param {*} [options] Override http request option.
|
|
24933
|
+
* @throws {RequiredError}
|
|
24934
|
+
* @memberof SharedApiInterface
|
|
24935
|
+
*/
|
|
24936
|
+
deleteClickhouseRole(requestParameters: SharedApiDeleteClickhouseRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
24937
|
+
|
|
23885
24938
|
/**
|
|
23886
24939
|
*
|
|
23887
24940
|
* @summary Delete cluster
|
|
@@ -24362,6 +25415,16 @@ export interface SharedApiInterface {
|
|
|
24362
25415
|
*/
|
|
24363
25416
|
getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod>;
|
|
24364
25417
|
|
|
25418
|
+
/**
|
|
25419
|
+
*
|
|
25420
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
25421
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
25422
|
+
* @param {*} [options] Override http request option.
|
|
25423
|
+
* @throws {RequiredError}
|
|
25424
|
+
* @memberof SharedApiInterface
|
|
25425
|
+
*/
|
|
25426
|
+
getClickhouseRoleGrants(requestParameters: SharedApiGetClickhouseRoleGrantsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<GetClickhouseRoleGrants200ResponseInner>>;
|
|
25427
|
+
|
|
24365
25428
|
/**
|
|
24366
25429
|
*
|
|
24367
25430
|
* @summary Get cluster details
|
|
@@ -24851,6 +25914,16 @@ export interface SharedApiInterface {
|
|
|
24851
25914
|
*/
|
|
24852
25915
|
getTenant(requestParameters: SharedApiGetTenantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tenant>;
|
|
24853
25916
|
|
|
25917
|
+
/**
|
|
25918
|
+
*
|
|
25919
|
+
* @summary Grant privileges to a ClickHouse role
|
|
25920
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
25921
|
+
* @param {*} [options] Override http request option.
|
|
25922
|
+
* @throws {RequiredError}
|
|
25923
|
+
* @memberof SharedApiInterface
|
|
25924
|
+
*/
|
|
25925
|
+
grantClickhouseRolePrivileges(requestParameters: SharedApiGrantClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
25926
|
+
|
|
24854
25927
|
/**
|
|
24855
25928
|
*
|
|
24856
25929
|
* @summary Horizontal scale cluster
|
|
@@ -24921,6 +25994,46 @@ export interface SharedApiInterface {
|
|
|
24921
25994
|
*/
|
|
24922
25995
|
listBackupSchedules(requestParameters: SharedApiListBackupSchedulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupScheduleList>;
|
|
24923
25996
|
|
|
25997
|
+
/**
|
|
25998
|
+
*
|
|
25999
|
+
* @summary List the roles granted to a ClickHouse account
|
|
26000
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
26001
|
+
* @param {*} [options] Override http request option.
|
|
26002
|
+
* @throws {RequiredError}
|
|
26003
|
+
* @memberof SharedApiInterface
|
|
26004
|
+
*/
|
|
26005
|
+
listClickhouseAccountRoles(requestParameters: SharedApiListClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListClickhouseAccountRoles200Response>;
|
|
26006
|
+
|
|
26007
|
+
/**
|
|
26008
|
+
*
|
|
26009
|
+
* @summary List ClickHouse accounts
|
|
26010
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
26011
|
+
* @param {*} [options] Override http request option.
|
|
26012
|
+
* @throws {RequiredError}
|
|
26013
|
+
* @memberof SharedApiInterface
|
|
26014
|
+
*/
|
|
26015
|
+
listClickhouseAccounts(requestParameters: SharedApiListClickhouseAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CkAccount>;
|
|
26016
|
+
|
|
26017
|
+
/**
|
|
26018
|
+
*
|
|
26019
|
+
* @summary List privileges supported by the ClickHouse server
|
|
26020
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
26021
|
+
* @param {*} [options] Override http request option.
|
|
26022
|
+
* @throws {RequiredError}
|
|
26023
|
+
* @memberof SharedApiInterface
|
|
26024
|
+
*/
|
|
26025
|
+
listClickhousePrivileges(requestParameters: SharedApiListClickhousePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
26026
|
+
|
|
26027
|
+
/**
|
|
26028
|
+
*
|
|
26029
|
+
* @summary List ClickHouse roles
|
|
26030
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
26031
|
+
* @param {*} [options] Override http request option.
|
|
26032
|
+
* @throws {RequiredError}
|
|
26033
|
+
* @memberof SharedApiInterface
|
|
26034
|
+
*/
|
|
26035
|
+
listClickhouseRoles(requestParameters: SharedApiListClickhouseRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ListClickhouseAccountRoles200Response>>;
|
|
26036
|
+
|
|
24924
26037
|
/**
|
|
24925
26038
|
*
|
|
24926
26039
|
* @summary List clusters in the Org
|
|
@@ -25848,6 +26961,16 @@ export interface SharedApiInterface {
|
|
|
25848
26961
|
*/
|
|
25849
26962
|
restoreRecycleBinCluster(requestParameters: SharedApiRestoreRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster>;
|
|
25850
26963
|
|
|
26964
|
+
/**
|
|
26965
|
+
*
|
|
26966
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
26967
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
26968
|
+
* @param {*} [options] Override http request option.
|
|
26969
|
+
* @throws {RequiredError}
|
|
26970
|
+
* @memberof SharedApiInterface
|
|
26971
|
+
*/
|
|
26972
|
+
revokeClickhouseRolePrivileges(requestParameters: SharedApiRevokeClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
26973
|
+
|
|
25851
26974
|
/**
|
|
25852
26975
|
*
|
|
25853
26976
|
* @summary Set alert config
|
|
@@ -26058,6 +27181,26 @@ export interface SharedApiInterface {
|
|
|
26058
27181
|
*/
|
|
26059
27182
|
updateBackupSchedule(requestParameters: SharedApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule>;
|
|
26060
27183
|
|
|
27184
|
+
/**
|
|
27185
|
+
*
|
|
27186
|
+
* @summary Update a ClickHouse account password
|
|
27187
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
27188
|
+
* @param {*} [options] Override http request option.
|
|
27189
|
+
* @throws {RequiredError}
|
|
27190
|
+
* @memberof SharedApiInterface
|
|
27191
|
+
*/
|
|
27192
|
+
updateClickhouseAccountPassword(requestParameters: SharedApiUpdateClickhouseAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
27193
|
+
|
|
27194
|
+
/**
|
|
27195
|
+
*
|
|
27196
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
27197
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
27198
|
+
* @param {*} [options] Override http request option.
|
|
27199
|
+
* @throws {RequiredError}
|
|
27200
|
+
* @memberof SharedApiInterface
|
|
27201
|
+
*/
|
|
27202
|
+
updateClickhouseAccountRoles(requestParameters: SharedApiUpdateClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
27203
|
+
|
|
26061
27204
|
/**
|
|
26062
27205
|
*
|
|
26063
27206
|
* @summary Update the cluster license
|
|
@@ -26904,6 +28047,62 @@ export interface SharedApiCreateBackupScheduleRequest {
|
|
|
26904
28047
|
readonly body: BackupScheduleCreate
|
|
26905
28048
|
}
|
|
26906
28049
|
|
|
28050
|
+
/**
|
|
28051
|
+
* Request parameters for createClickhouseAccount operation in SharedApi.
|
|
28052
|
+
* @export
|
|
28053
|
+
* @interface SharedApiCreateClickhouseAccountRequest
|
|
28054
|
+
*/
|
|
28055
|
+
export interface SharedApiCreateClickhouseAccountRequest {
|
|
28056
|
+
/**
|
|
28057
|
+
*
|
|
28058
|
+
* @type {string}
|
|
28059
|
+
* @memberof SharedApiCreateClickhouseAccount
|
|
28060
|
+
*/
|
|
28061
|
+
readonly orgName: string
|
|
28062
|
+
|
|
28063
|
+
/**
|
|
28064
|
+
*
|
|
28065
|
+
* @type {string}
|
|
28066
|
+
* @memberof SharedApiCreateClickhouseAccount
|
|
28067
|
+
*/
|
|
28068
|
+
readonly clusterName: string
|
|
28069
|
+
|
|
28070
|
+
/**
|
|
28071
|
+
*
|
|
28072
|
+
* @type {CreateClickhouseAccountRequest}
|
|
28073
|
+
* @memberof SharedApiCreateClickhouseAccount
|
|
28074
|
+
*/
|
|
28075
|
+
readonly body: CreateClickhouseAccountRequest
|
|
28076
|
+
}
|
|
28077
|
+
|
|
28078
|
+
/**
|
|
28079
|
+
* Request parameters for createClickhouseRole operation in SharedApi.
|
|
28080
|
+
* @export
|
|
28081
|
+
* @interface SharedApiCreateClickhouseRoleRequest
|
|
28082
|
+
*/
|
|
28083
|
+
export interface SharedApiCreateClickhouseRoleRequest {
|
|
28084
|
+
/**
|
|
28085
|
+
*
|
|
28086
|
+
* @type {string}
|
|
28087
|
+
* @memberof SharedApiCreateClickhouseRole
|
|
28088
|
+
*/
|
|
28089
|
+
readonly orgName: string
|
|
28090
|
+
|
|
28091
|
+
/**
|
|
28092
|
+
*
|
|
28093
|
+
* @type {string}
|
|
28094
|
+
* @memberof SharedApiCreateClickhouseRole
|
|
28095
|
+
*/
|
|
28096
|
+
readonly clusterName: string
|
|
28097
|
+
|
|
28098
|
+
/**
|
|
28099
|
+
*
|
|
28100
|
+
* @type {ListClickhouseAccountRoles200Response}
|
|
28101
|
+
* @memberof SharedApiCreateClickhouseRole
|
|
28102
|
+
*/
|
|
28103
|
+
readonly body: ListClickhouseAccountRoles200Response
|
|
28104
|
+
}
|
|
28105
|
+
|
|
26907
28106
|
/**
|
|
26908
28107
|
* Request parameters for createCluster operation in SharedApi.
|
|
26909
28108
|
* @export
|
|
@@ -27632,6 +28831,62 @@ export interface SharedApiDeleteBackupScheduleRequest {
|
|
|
27632
28831
|
readonly scheduleName: string
|
|
27633
28832
|
}
|
|
27634
28833
|
|
|
28834
|
+
/**
|
|
28835
|
+
* Request parameters for deleteClickhouseAccount operation in SharedApi.
|
|
28836
|
+
* @export
|
|
28837
|
+
* @interface SharedApiDeleteClickhouseAccountRequest
|
|
28838
|
+
*/
|
|
28839
|
+
export interface SharedApiDeleteClickhouseAccountRequest {
|
|
28840
|
+
/**
|
|
28841
|
+
*
|
|
28842
|
+
* @type {string}
|
|
28843
|
+
* @memberof SharedApiDeleteClickhouseAccount
|
|
28844
|
+
*/
|
|
28845
|
+
readonly orgName: string
|
|
28846
|
+
|
|
28847
|
+
/**
|
|
28848
|
+
*
|
|
28849
|
+
* @type {string}
|
|
28850
|
+
* @memberof SharedApiDeleteClickhouseAccount
|
|
28851
|
+
*/
|
|
28852
|
+
readonly clusterName: string
|
|
28853
|
+
|
|
28854
|
+
/**
|
|
28855
|
+
*
|
|
28856
|
+
* @type {string}
|
|
28857
|
+
* @memberof SharedApiDeleteClickhouseAccount
|
|
28858
|
+
*/
|
|
28859
|
+
readonly accountName: string
|
|
28860
|
+
}
|
|
28861
|
+
|
|
28862
|
+
/**
|
|
28863
|
+
* Request parameters for deleteClickhouseRole operation in SharedApi.
|
|
28864
|
+
* @export
|
|
28865
|
+
* @interface SharedApiDeleteClickhouseRoleRequest
|
|
28866
|
+
*/
|
|
28867
|
+
export interface SharedApiDeleteClickhouseRoleRequest {
|
|
28868
|
+
/**
|
|
28869
|
+
*
|
|
28870
|
+
* @type {string}
|
|
28871
|
+
* @memberof SharedApiDeleteClickhouseRole
|
|
28872
|
+
*/
|
|
28873
|
+
readonly orgName: string
|
|
28874
|
+
|
|
28875
|
+
/**
|
|
28876
|
+
*
|
|
28877
|
+
* @type {string}
|
|
28878
|
+
* @memberof SharedApiDeleteClickhouseRole
|
|
28879
|
+
*/
|
|
28880
|
+
readonly clusterName: string
|
|
28881
|
+
|
|
28882
|
+
/**
|
|
28883
|
+
*
|
|
28884
|
+
* @type {string}
|
|
28885
|
+
* @memberof SharedApiDeleteClickhouseRole
|
|
28886
|
+
*/
|
|
28887
|
+
readonly roleName: string
|
|
28888
|
+
}
|
|
28889
|
+
|
|
27635
28890
|
/**
|
|
27636
28891
|
* Request parameters for deleteCluster operation in SharedApi.
|
|
27637
28892
|
* @export
|
|
@@ -29312,6 +30567,34 @@ export interface SharedApiGetBackupMethodRequest {
|
|
|
29312
30567
|
readonly mode?: string
|
|
29313
30568
|
}
|
|
29314
30569
|
|
|
30570
|
+
/**
|
|
30571
|
+
* Request parameters for getClickhouseRoleGrants operation in SharedApi.
|
|
30572
|
+
* @export
|
|
30573
|
+
* @interface SharedApiGetClickhouseRoleGrantsRequest
|
|
30574
|
+
*/
|
|
30575
|
+
export interface SharedApiGetClickhouseRoleGrantsRequest {
|
|
30576
|
+
/**
|
|
30577
|
+
*
|
|
30578
|
+
* @type {string}
|
|
30579
|
+
* @memberof SharedApiGetClickhouseRoleGrants
|
|
30580
|
+
*/
|
|
30581
|
+
readonly orgName: string
|
|
30582
|
+
|
|
30583
|
+
/**
|
|
30584
|
+
*
|
|
30585
|
+
* @type {string}
|
|
30586
|
+
* @memberof SharedApiGetClickhouseRoleGrants
|
|
30587
|
+
*/
|
|
30588
|
+
readonly clusterName: string
|
|
30589
|
+
|
|
30590
|
+
/**
|
|
30591
|
+
*
|
|
30592
|
+
* @type {string}
|
|
30593
|
+
* @memberof SharedApiGetClickhouseRoleGrants
|
|
30594
|
+
*/
|
|
30595
|
+
readonly roleName: string
|
|
30596
|
+
}
|
|
30597
|
+
|
|
29315
30598
|
/**
|
|
29316
30599
|
* Request parameters for getCluster operation in SharedApi.
|
|
29317
30600
|
* @export
|
|
@@ -31013,6 +32296,41 @@ export interface SharedApiGetTenantRequest {
|
|
|
31013
32296
|
readonly tenantId: string
|
|
31014
32297
|
}
|
|
31015
32298
|
|
|
32299
|
+
/**
|
|
32300
|
+
* Request parameters for grantClickhouseRolePrivileges operation in SharedApi.
|
|
32301
|
+
* @export
|
|
32302
|
+
* @interface SharedApiGrantClickhouseRolePrivilegesRequest
|
|
32303
|
+
*/
|
|
32304
|
+
export interface SharedApiGrantClickhouseRolePrivilegesRequest {
|
|
32305
|
+
/**
|
|
32306
|
+
*
|
|
32307
|
+
* @type {string}
|
|
32308
|
+
* @memberof SharedApiGrantClickhouseRolePrivileges
|
|
32309
|
+
*/
|
|
32310
|
+
readonly orgName: string
|
|
32311
|
+
|
|
32312
|
+
/**
|
|
32313
|
+
*
|
|
32314
|
+
* @type {string}
|
|
32315
|
+
* @memberof SharedApiGrantClickhouseRolePrivileges
|
|
32316
|
+
*/
|
|
32317
|
+
readonly clusterName: string
|
|
32318
|
+
|
|
32319
|
+
/**
|
|
32320
|
+
*
|
|
32321
|
+
* @type {string}
|
|
32322
|
+
* @memberof SharedApiGrantClickhouseRolePrivileges
|
|
32323
|
+
*/
|
|
32324
|
+
readonly roleName: string
|
|
32325
|
+
|
|
32326
|
+
/**
|
|
32327
|
+
*
|
|
32328
|
+
* @type {ListClickhouseAccountRoles200ResponsePrivilegesInner}
|
|
32329
|
+
* @memberof SharedApiGrantClickhouseRolePrivileges
|
|
32330
|
+
*/
|
|
32331
|
+
readonly body: ListClickhouseAccountRoles200ResponsePrivilegesInner
|
|
32332
|
+
}
|
|
32333
|
+
|
|
31016
32334
|
/**
|
|
31017
32335
|
* Request parameters for horizontalScaleCluster operation in SharedApi.
|
|
31018
32336
|
* @export
|
|
@@ -31223,6 +32541,104 @@ export interface SharedApiListBackupSchedulesRequest {
|
|
|
31223
32541
|
readonly backupMethod?: string
|
|
31224
32542
|
}
|
|
31225
32543
|
|
|
32544
|
+
/**
|
|
32545
|
+
* Request parameters for listClickhouseAccountRoles operation in SharedApi.
|
|
32546
|
+
* @export
|
|
32547
|
+
* @interface SharedApiListClickhouseAccountRolesRequest
|
|
32548
|
+
*/
|
|
32549
|
+
export interface SharedApiListClickhouseAccountRolesRequest {
|
|
32550
|
+
/**
|
|
32551
|
+
*
|
|
32552
|
+
* @type {string}
|
|
32553
|
+
* @memberof SharedApiListClickhouseAccountRoles
|
|
32554
|
+
*/
|
|
32555
|
+
readonly orgName: string
|
|
32556
|
+
|
|
32557
|
+
/**
|
|
32558
|
+
*
|
|
32559
|
+
* @type {string}
|
|
32560
|
+
* @memberof SharedApiListClickhouseAccountRoles
|
|
32561
|
+
*/
|
|
32562
|
+
readonly clusterName: string
|
|
32563
|
+
|
|
32564
|
+
/**
|
|
32565
|
+
*
|
|
32566
|
+
* @type {string}
|
|
32567
|
+
* @memberof SharedApiListClickhouseAccountRoles
|
|
32568
|
+
*/
|
|
32569
|
+
readonly accountName: string
|
|
32570
|
+
}
|
|
32571
|
+
|
|
32572
|
+
/**
|
|
32573
|
+
* Request parameters for listClickhouseAccounts operation in SharedApi.
|
|
32574
|
+
* @export
|
|
32575
|
+
* @interface SharedApiListClickhouseAccountsRequest
|
|
32576
|
+
*/
|
|
32577
|
+
export interface SharedApiListClickhouseAccountsRequest {
|
|
32578
|
+
/**
|
|
32579
|
+
*
|
|
32580
|
+
* @type {string}
|
|
32581
|
+
* @memberof SharedApiListClickhouseAccounts
|
|
32582
|
+
*/
|
|
32583
|
+
readonly orgName: string
|
|
32584
|
+
|
|
32585
|
+
/**
|
|
32586
|
+
*
|
|
32587
|
+
* @type {string}
|
|
32588
|
+
* @memberof SharedApiListClickhouseAccounts
|
|
32589
|
+
*/
|
|
32590
|
+
readonly clusterName: string
|
|
32591
|
+
}
|
|
32592
|
+
|
|
32593
|
+
/**
|
|
32594
|
+
* Request parameters for listClickhousePrivileges operation in SharedApi.
|
|
32595
|
+
* @export
|
|
32596
|
+
* @interface SharedApiListClickhousePrivilegesRequest
|
|
32597
|
+
*/
|
|
32598
|
+
export interface SharedApiListClickhousePrivilegesRequest {
|
|
32599
|
+
/**
|
|
32600
|
+
*
|
|
32601
|
+
* @type {string}
|
|
32602
|
+
* @memberof SharedApiListClickhousePrivileges
|
|
32603
|
+
*/
|
|
32604
|
+
readonly orgName: string
|
|
32605
|
+
|
|
32606
|
+
/**
|
|
32607
|
+
*
|
|
32608
|
+
* @type {string}
|
|
32609
|
+
* @memberof SharedApiListClickhousePrivileges
|
|
32610
|
+
*/
|
|
32611
|
+
readonly clusterName: string
|
|
32612
|
+
}
|
|
32613
|
+
|
|
32614
|
+
/**
|
|
32615
|
+
* Request parameters for listClickhouseRoles operation in SharedApi.
|
|
32616
|
+
* @export
|
|
32617
|
+
* @interface SharedApiListClickhouseRolesRequest
|
|
32618
|
+
*/
|
|
32619
|
+
export interface SharedApiListClickhouseRolesRequest {
|
|
32620
|
+
/**
|
|
32621
|
+
*
|
|
32622
|
+
* @type {string}
|
|
32623
|
+
* @memberof SharedApiListClickhouseRoles
|
|
32624
|
+
*/
|
|
32625
|
+
readonly orgName: string
|
|
32626
|
+
|
|
32627
|
+
/**
|
|
32628
|
+
*
|
|
32629
|
+
* @type {string}
|
|
32630
|
+
* @memberof SharedApiListClickhouseRoles
|
|
32631
|
+
*/
|
|
32632
|
+
readonly clusterName: string
|
|
32633
|
+
|
|
32634
|
+
/**
|
|
32635
|
+
* Whether to include built-in privilege roles for creating an account.
|
|
32636
|
+
* @type {boolean}
|
|
32637
|
+
* @memberof SharedApiListClickhouseRoles
|
|
32638
|
+
*/
|
|
32639
|
+
readonly forCreateUser?: boolean
|
|
32640
|
+
}
|
|
32641
|
+
|
|
31226
32642
|
/**
|
|
31227
32643
|
* Request parameters for listCluster operation in SharedApi.
|
|
31228
32644
|
* @export
|
|
@@ -31298,6 +32714,20 @@ export interface SharedApiListClusterRequest {
|
|
|
31298
32714
|
* @memberof SharedApiListCluster
|
|
31299
32715
|
*/
|
|
31300
32716
|
readonly refClusterName?: string
|
|
32717
|
+
|
|
32718
|
+
/**
|
|
32719
|
+
* Case-insensitive substring to match against the host part of cached cluster endpoints
|
|
32720
|
+
* @type {string}
|
|
32721
|
+
* @memberof SharedApiListCluster
|
|
32722
|
+
*/
|
|
32723
|
+
readonly endpointHost?: string
|
|
32724
|
+
|
|
32725
|
+
/**
|
|
32726
|
+
* Whether to include cached user-visible endpoints in each cluster item
|
|
32727
|
+
* @type {boolean}
|
|
32728
|
+
* @memberof SharedApiListCluster
|
|
32729
|
+
*/
|
|
32730
|
+
readonly includeEndpoints?: boolean
|
|
31301
32731
|
}
|
|
31302
32732
|
|
|
31303
32733
|
/**
|
|
@@ -34723,6 +36153,41 @@ export interface SharedApiRestoreRecycleBinClusterRequest {
|
|
|
34723
36153
|
readonly clusterName: string
|
|
34724
36154
|
}
|
|
34725
36155
|
|
|
36156
|
+
/**
|
|
36157
|
+
* Request parameters for revokeClickhouseRolePrivileges operation in SharedApi.
|
|
36158
|
+
* @export
|
|
36159
|
+
* @interface SharedApiRevokeClickhouseRolePrivilegesRequest
|
|
36160
|
+
*/
|
|
36161
|
+
export interface SharedApiRevokeClickhouseRolePrivilegesRequest {
|
|
36162
|
+
/**
|
|
36163
|
+
*
|
|
36164
|
+
* @type {string}
|
|
36165
|
+
* @memberof SharedApiRevokeClickhouseRolePrivileges
|
|
36166
|
+
*/
|
|
36167
|
+
readonly orgName: string
|
|
36168
|
+
|
|
36169
|
+
/**
|
|
36170
|
+
*
|
|
36171
|
+
* @type {string}
|
|
36172
|
+
* @memberof SharedApiRevokeClickhouseRolePrivileges
|
|
36173
|
+
*/
|
|
36174
|
+
readonly clusterName: string
|
|
36175
|
+
|
|
36176
|
+
/**
|
|
36177
|
+
*
|
|
36178
|
+
* @type {string}
|
|
36179
|
+
* @memberof SharedApiRevokeClickhouseRolePrivileges
|
|
36180
|
+
*/
|
|
36181
|
+
readonly roleName: string
|
|
36182
|
+
|
|
36183
|
+
/**
|
|
36184
|
+
*
|
|
36185
|
+
* @type {RevokeClickhouseRolePrivilegesRequest}
|
|
36186
|
+
* @memberof SharedApiRevokeClickhouseRolePrivileges
|
|
36187
|
+
*/
|
|
36188
|
+
readonly body: RevokeClickhouseRolePrivilegesRequest
|
|
36189
|
+
}
|
|
36190
|
+
|
|
34726
36191
|
/**
|
|
34727
36192
|
* Request parameters for setAlertConfig operation in SharedApi.
|
|
34728
36193
|
* @export
|
|
@@ -35374,6 +36839,76 @@ export interface SharedApiUpdateBackupScheduleRequest {
|
|
|
35374
36839
|
readonly body: BackupScheduleUpdate
|
|
35375
36840
|
}
|
|
35376
36841
|
|
|
36842
|
+
/**
|
|
36843
|
+
* Request parameters for updateClickhouseAccountPassword operation in SharedApi.
|
|
36844
|
+
* @export
|
|
36845
|
+
* @interface SharedApiUpdateClickhouseAccountPasswordRequest
|
|
36846
|
+
*/
|
|
36847
|
+
export interface SharedApiUpdateClickhouseAccountPasswordRequest {
|
|
36848
|
+
/**
|
|
36849
|
+
*
|
|
36850
|
+
* @type {string}
|
|
36851
|
+
* @memberof SharedApiUpdateClickhouseAccountPassword
|
|
36852
|
+
*/
|
|
36853
|
+
readonly orgName: string
|
|
36854
|
+
|
|
36855
|
+
/**
|
|
36856
|
+
*
|
|
36857
|
+
* @type {string}
|
|
36858
|
+
* @memberof SharedApiUpdateClickhouseAccountPassword
|
|
36859
|
+
*/
|
|
36860
|
+
readonly clusterName: string
|
|
36861
|
+
|
|
36862
|
+
/**
|
|
36863
|
+
*
|
|
36864
|
+
* @type {string}
|
|
36865
|
+
* @memberof SharedApiUpdateClickhouseAccountPassword
|
|
36866
|
+
*/
|
|
36867
|
+
readonly accountName: string
|
|
36868
|
+
|
|
36869
|
+
/**
|
|
36870
|
+
*
|
|
36871
|
+
* @type {UpdateClickhouseAccountPasswordRequest}
|
|
36872
|
+
* @memberof SharedApiUpdateClickhouseAccountPassword
|
|
36873
|
+
*/
|
|
36874
|
+
readonly body: UpdateClickhouseAccountPasswordRequest
|
|
36875
|
+
}
|
|
36876
|
+
|
|
36877
|
+
/**
|
|
36878
|
+
* Request parameters for updateClickhouseAccountRoles operation in SharedApi.
|
|
36879
|
+
* @export
|
|
36880
|
+
* @interface SharedApiUpdateClickhouseAccountRolesRequest
|
|
36881
|
+
*/
|
|
36882
|
+
export interface SharedApiUpdateClickhouseAccountRolesRequest {
|
|
36883
|
+
/**
|
|
36884
|
+
*
|
|
36885
|
+
* @type {string}
|
|
36886
|
+
* @memberof SharedApiUpdateClickhouseAccountRoles
|
|
36887
|
+
*/
|
|
36888
|
+
readonly orgName: string
|
|
36889
|
+
|
|
36890
|
+
/**
|
|
36891
|
+
*
|
|
36892
|
+
* @type {string}
|
|
36893
|
+
* @memberof SharedApiUpdateClickhouseAccountRoles
|
|
36894
|
+
*/
|
|
36895
|
+
readonly clusterName: string
|
|
36896
|
+
|
|
36897
|
+
/**
|
|
36898
|
+
*
|
|
36899
|
+
* @type {string}
|
|
36900
|
+
* @memberof SharedApiUpdateClickhouseAccountRoles
|
|
36901
|
+
*/
|
|
36902
|
+
readonly accountName: string
|
|
36903
|
+
|
|
36904
|
+
/**
|
|
36905
|
+
*
|
|
36906
|
+
* @type {UpdateClickhouseAccountRolesRequest}
|
|
36907
|
+
* @memberof SharedApiUpdateClickhouseAccountRoles
|
|
36908
|
+
*/
|
|
36909
|
+
readonly body: UpdateClickhouseAccountRolesRequest
|
|
36910
|
+
}
|
|
36911
|
+
|
|
35377
36912
|
/**
|
|
35378
36913
|
* Request parameters for updateClusterLicense operation in SharedApi.
|
|
35379
36914
|
* @export
|
|
@@ -36343,6 +37878,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36343
37878
|
return SharedApiFp(this.configuration).createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
36344
37879
|
}
|
|
36345
37880
|
|
|
37881
|
+
/**
|
|
37882
|
+
*
|
|
37883
|
+
* @summary Create a ClickHouse account with optional roles
|
|
37884
|
+
* @param {SharedApiCreateClickhouseAccountRequest} requestParameters Request parameters.
|
|
37885
|
+
* @param {*} [options] Override http request option.
|
|
37886
|
+
* @throws {RequiredError}
|
|
37887
|
+
* @memberof SharedApi
|
|
37888
|
+
*/
|
|
37889
|
+
public createClickhouseAccount(requestParameters: SharedApiCreateClickhouseAccountRequest, options?: RawAxiosRequestConfig) {
|
|
37890
|
+
return SharedApiFp(this.configuration).createClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
37891
|
+
}
|
|
37892
|
+
|
|
37893
|
+
/**
|
|
37894
|
+
*
|
|
37895
|
+
* @summary Create a ClickHouse role with privileges
|
|
37896
|
+
* @param {SharedApiCreateClickhouseRoleRequest} requestParameters Request parameters.
|
|
37897
|
+
* @param {*} [options] Override http request option.
|
|
37898
|
+
* @throws {RequiredError}
|
|
37899
|
+
* @memberof SharedApi
|
|
37900
|
+
*/
|
|
37901
|
+
public createClickhouseRole(requestParameters: SharedApiCreateClickhouseRoleRequest, options?: RawAxiosRequestConfig) {
|
|
37902
|
+
return SharedApiFp(this.configuration).createClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
37903
|
+
}
|
|
37904
|
+
|
|
36346
37905
|
/**
|
|
36347
37906
|
*
|
|
36348
37907
|
* @summary Create new cluster
|
|
@@ -36667,6 +38226,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36667
38226
|
return SharedApiFp(this.configuration).deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(this.axios, this.basePath));
|
|
36668
38227
|
}
|
|
36669
38228
|
|
|
38229
|
+
/**
|
|
38230
|
+
*
|
|
38231
|
+
* @summary Delete a ClickHouse account
|
|
38232
|
+
* @param {SharedApiDeleteClickhouseAccountRequest} requestParameters Request parameters.
|
|
38233
|
+
* @param {*} [options] Override http request option.
|
|
38234
|
+
* @throws {RequiredError}
|
|
38235
|
+
* @memberof SharedApi
|
|
38236
|
+
*/
|
|
38237
|
+
public deleteClickhouseAccount(requestParameters: SharedApiDeleteClickhouseAccountRequest, options?: RawAxiosRequestConfig) {
|
|
38238
|
+
return SharedApiFp(this.configuration).deleteClickhouseAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
38239
|
+
}
|
|
38240
|
+
|
|
38241
|
+
/**
|
|
38242
|
+
*
|
|
38243
|
+
* @summary Delete a ClickHouse role
|
|
38244
|
+
* @param {SharedApiDeleteClickhouseRoleRequest} requestParameters Request parameters.
|
|
38245
|
+
* @param {*} [options] Override http request option.
|
|
38246
|
+
* @throws {RequiredError}
|
|
38247
|
+
* @memberof SharedApi
|
|
38248
|
+
*/
|
|
38249
|
+
public deleteClickhouseRole(requestParameters: SharedApiDeleteClickhouseRoleRequest, options?: RawAxiosRequestConfig) {
|
|
38250
|
+
return SharedApiFp(this.configuration).deleteClickhouseRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
38251
|
+
}
|
|
38252
|
+
|
|
36670
38253
|
/**
|
|
36671
38254
|
*
|
|
36672
38255
|
* @summary Delete cluster
|
|
@@ -37243,6 +38826,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37243
38826
|
return SharedApiFp(this.configuration).getBackupMethod(requestParameters.orgName, requestParameters.engineName, requestParameters.clusterID, requestParameters.enablePITR, requestParameters.withRebuildInstance, requestParameters.withRestoreCluster, requestParameters.withHScale, requestParameters.component, requestParameters.mode, options).then((request) => request(this.axios, this.basePath));
|
|
37244
38827
|
}
|
|
37245
38828
|
|
|
38829
|
+
/**
|
|
38830
|
+
*
|
|
38831
|
+
* @summary Get the grants (privileges) of a ClickHouse role
|
|
38832
|
+
* @param {SharedApiGetClickhouseRoleGrantsRequest} requestParameters Request parameters.
|
|
38833
|
+
* @param {*} [options] Override http request option.
|
|
38834
|
+
* @throws {RequiredError}
|
|
38835
|
+
* @memberof SharedApi
|
|
38836
|
+
*/
|
|
38837
|
+
public getClickhouseRoleGrants(requestParameters: SharedApiGetClickhouseRoleGrantsRequest, options?: RawAxiosRequestConfig) {
|
|
38838
|
+
return SharedApiFp(this.configuration).getClickhouseRoleGrants(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
38839
|
+
}
|
|
38840
|
+
|
|
37246
38841
|
/**
|
|
37247
38842
|
*
|
|
37248
38843
|
* @summary Get cluster details
|
|
@@ -37830,6 +39425,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37830
39425
|
return SharedApiFp(this.configuration).getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
37831
39426
|
}
|
|
37832
39427
|
|
|
39428
|
+
/**
|
|
39429
|
+
*
|
|
39430
|
+
* @summary Grant privileges to a ClickHouse role
|
|
39431
|
+
* @param {SharedApiGrantClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
39432
|
+
* @param {*} [options] Override http request option.
|
|
39433
|
+
* @throws {RequiredError}
|
|
39434
|
+
* @memberof SharedApi
|
|
39435
|
+
*/
|
|
39436
|
+
public grantClickhouseRolePrivileges(requestParameters: SharedApiGrantClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
39437
|
+
return SharedApiFp(this.configuration).grantClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
39438
|
+
}
|
|
39439
|
+
|
|
37833
39440
|
/**
|
|
37834
39441
|
*
|
|
37835
39442
|
* @summary Horizontal scale cluster
|
|
@@ -37914,6 +39521,54 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37914
39521
|
return SharedApiFp(this.configuration).listBackupSchedules(requestParameters.orgName, requestParameters.clusterName, requestParameters.backupMethod, options).then((request) => request(this.axios, this.basePath));
|
|
37915
39522
|
}
|
|
37916
39523
|
|
|
39524
|
+
/**
|
|
39525
|
+
*
|
|
39526
|
+
* @summary List the roles granted to a ClickHouse account
|
|
39527
|
+
* @param {SharedApiListClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
39528
|
+
* @param {*} [options] Override http request option.
|
|
39529
|
+
* @throws {RequiredError}
|
|
39530
|
+
* @memberof SharedApi
|
|
39531
|
+
*/
|
|
39532
|
+
public listClickhouseAccountRoles(requestParameters: SharedApiListClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig) {
|
|
39533
|
+
return SharedApiFp(this.configuration).listClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
39534
|
+
}
|
|
39535
|
+
|
|
39536
|
+
/**
|
|
39537
|
+
*
|
|
39538
|
+
* @summary List ClickHouse accounts
|
|
39539
|
+
* @param {SharedApiListClickhouseAccountsRequest} requestParameters Request parameters.
|
|
39540
|
+
* @param {*} [options] Override http request option.
|
|
39541
|
+
* @throws {RequiredError}
|
|
39542
|
+
* @memberof SharedApi
|
|
39543
|
+
*/
|
|
39544
|
+
public listClickhouseAccounts(requestParameters: SharedApiListClickhouseAccountsRequest, options?: RawAxiosRequestConfig) {
|
|
39545
|
+
return SharedApiFp(this.configuration).listClickhouseAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
39546
|
+
}
|
|
39547
|
+
|
|
39548
|
+
/**
|
|
39549
|
+
*
|
|
39550
|
+
* @summary List privileges supported by the ClickHouse server
|
|
39551
|
+
* @param {SharedApiListClickhousePrivilegesRequest} requestParameters Request parameters.
|
|
39552
|
+
* @param {*} [options] Override http request option.
|
|
39553
|
+
* @throws {RequiredError}
|
|
39554
|
+
* @memberof SharedApi
|
|
39555
|
+
*/
|
|
39556
|
+
public listClickhousePrivileges(requestParameters: SharedApiListClickhousePrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
39557
|
+
return SharedApiFp(this.configuration).listClickhousePrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
39558
|
+
}
|
|
39559
|
+
|
|
39560
|
+
/**
|
|
39561
|
+
*
|
|
39562
|
+
* @summary List ClickHouse roles
|
|
39563
|
+
* @param {SharedApiListClickhouseRolesRequest} requestParameters Request parameters.
|
|
39564
|
+
* @param {*} [options] Override http request option.
|
|
39565
|
+
* @throws {RequiredError}
|
|
39566
|
+
* @memberof SharedApi
|
|
39567
|
+
*/
|
|
39568
|
+
public listClickhouseRoles(requestParameters: SharedApiListClickhouseRolesRequest, options?: RawAxiosRequestConfig) {
|
|
39569
|
+
return SharedApiFp(this.configuration).listClickhouseRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.forCreateUser, options).then((request) => request(this.axios, this.basePath));
|
|
39570
|
+
}
|
|
39571
|
+
|
|
37917
39572
|
/**
|
|
37918
39573
|
*
|
|
37919
39574
|
* @summary List clusters in the Org
|
|
@@ -37923,7 +39578,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37923
39578
|
* @memberof SharedApi
|
|
37924
39579
|
*/
|
|
37925
39580
|
public listCluster(requestParameters: SharedApiListClusterRequest, options?: RawAxiosRequestConfig) {
|
|
37926
|
-
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));
|
|
39581
|
+
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));
|
|
37927
39582
|
}
|
|
37928
39583
|
|
|
37929
39584
|
/**
|
|
@@ -39027,6 +40682,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
39027
40682
|
return SharedApiFp(this.configuration).restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
39028
40683
|
}
|
|
39029
40684
|
|
|
40685
|
+
/**
|
|
40686
|
+
*
|
|
40687
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
40688
|
+
* @param {SharedApiRevokeClickhouseRolePrivilegesRequest} requestParameters Request parameters.
|
|
40689
|
+
* @param {*} [options] Override http request option.
|
|
40690
|
+
* @throws {RequiredError}
|
|
40691
|
+
* @memberof SharedApi
|
|
40692
|
+
*/
|
|
40693
|
+
public revokeClickhouseRolePrivileges(requestParameters: SharedApiRevokeClickhouseRolePrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
40694
|
+
return SharedApiFp(this.configuration).revokeClickhouseRolePrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
40695
|
+
}
|
|
40696
|
+
|
|
39030
40697
|
/**
|
|
39031
40698
|
*
|
|
39032
40699
|
* @summary Set alert config
|
|
@@ -39279,6 +40946,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
39279
40946
|
return SharedApiFp(this.configuration).updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
39280
40947
|
}
|
|
39281
40948
|
|
|
40949
|
+
/**
|
|
40950
|
+
*
|
|
40951
|
+
* @summary Update a ClickHouse account password
|
|
40952
|
+
* @param {SharedApiUpdateClickhouseAccountPasswordRequest} requestParameters Request parameters.
|
|
40953
|
+
* @param {*} [options] Override http request option.
|
|
40954
|
+
* @throws {RequiredError}
|
|
40955
|
+
* @memberof SharedApi
|
|
40956
|
+
*/
|
|
40957
|
+
public updateClickhouseAccountPassword(requestParameters: SharedApiUpdateClickhouseAccountPasswordRequest, options?: RawAxiosRequestConfig) {
|
|
40958
|
+
return SharedApiFp(this.configuration).updateClickhouseAccountPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
40959
|
+
}
|
|
40960
|
+
|
|
40961
|
+
/**
|
|
40962
|
+
*
|
|
40963
|
+
* @summary Update the roles granted to a ClickHouse account
|
|
40964
|
+
* @param {SharedApiUpdateClickhouseAccountRolesRequest} requestParameters Request parameters.
|
|
40965
|
+
* @param {*} [options] Override http request option.
|
|
40966
|
+
* @throws {RequiredError}
|
|
40967
|
+
* @memberof SharedApi
|
|
40968
|
+
*/
|
|
40969
|
+
public updateClickhouseAccountRoles(requestParameters: SharedApiUpdateClickhouseAccountRolesRequest, options?: RawAxiosRequestConfig) {
|
|
40970
|
+
return SharedApiFp(this.configuration).updateClickhouseAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
40971
|
+
}
|
|
40972
|
+
|
|
39282
40973
|
/**
|
|
39283
40974
|
*
|
|
39284
40975
|
* @summary Update the cluster license
|