kb-cloud-client-typescript 2.3.0-beta.1 → 2.3.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/clickhouse-api.d.ts +995 -0
- package/dist/adminapi/apis/clickhouse-api.d.ts.map +1 -0
- package/dist/adminapi/apis/clickhouse-api.js +1107 -0
- package/dist/adminapi/apis/clickhouse-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +951 -4
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +1095 -52
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/ck-account-type.d.ts +23 -0
- package/dist/adminapi/models/ck-account-type.d.ts.map +1 -0
- package/dist/adminapi/models/ck-account-type.js +27 -0
- package/dist/adminapi/models/ck-account-type.js.map +1 -0
- package/dist/adminapi/models/ck-account.d.ts +50 -0
- package/dist/adminapi/models/ck-account.d.ts.map +1 -0
- package/dist/adminapi/models/ck-account.js +16 -0
- package/dist/adminapi/models/ck-account.js.map +1 -0
- package/dist/adminapi/models/cluster-metrics.d.ts +4 -2
- package/dist/adminapi/models/cluster-metrics.d.ts.map +1 -1
- package/dist/adminapi/models/create-clickhouse-account-request.d.ts +37 -0
- package/dist/adminapi/models/create-clickhouse-account-request.d.ts.map +1 -0
- package/dist/adminapi/models/create-clickhouse-account-request.js +16 -0
- package/dist/adminapi/models/create-clickhouse-account-request.js.map +1 -0
- package/dist/adminapi/models/dms-ob-parameter.d.ts +4 -2
- package/dist/adminapi/models/dms-ob-parameter.d.ts.map +1 -1
- package/dist/adminapi/models/engine-mapping.d.ts +7 -0
- package/dist/adminapi/models/engine-mapping.d.ts.map +1 -1
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.d.ts +49 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.d.ts.map +1 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.js +16 -0
- package/dist/adminapi/models/get-clickhouse-role-grants200-response-inner.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +12 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +12 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts +31 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.js +16 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.js.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.d.ts +32 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.d.ts.map +1 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.js +16 -0
- package/dist/adminapi/models/list-clickhouse-account-roles200-response.js.map +1 -0
- package/dist/adminapi/models/provision-config.d.ts +13 -0
- package/dist/adminapi/models/provision-config.d.ts.map +1 -1
- package/dist/adminapi/models/replication-check-option.d.ts +25 -0
- package/dist/adminapi/models/replication-check-option.d.ts.map +1 -0
- package/dist/adminapi/models/replication-check-option.js +16 -0
- package/dist/adminapi/models/replication-check-option.js.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts +31 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js +16 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.d.ts +26 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.d.ts.map +1 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.js +16 -0
- package/dist/adminapi/models/revoke-clickhouse-role-privileges-request.js.map +1 -0
- package/dist/adminapi/models/scheduling-config.d.ts +14 -0
- package/dist/adminapi/models/scheduling-config.d.ts.map +1 -1
- package/dist/adminapi/models/system-component-scheduler-policy.d.ts +22 -0
- package/dist/adminapi/models/system-component-scheduler-policy.d.ts.map +1 -0
- package/dist/adminapi/models/system-component-scheduler-policy.js +26 -0
- package/dist/adminapi/models/system-component-scheduler-policy.js.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.d.ts +25 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.d.ts.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.js +16 -0
- package/dist/adminapi/models/update-clickhouse-account-password-request.js.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.d.ts +25 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.d.ts.map +1 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.js +16 -0
- package/dist/adminapi/models/update-clickhouse-account-roles-request.js.map +1 -0
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/clickhouse-api.d.ts +995 -0
- package/dist/openapi/apis/clickhouse-api.d.ts.map +1 -0
- package/dist/openapi/apis/clickhouse-api.js +1107 -0
- package/dist/openapi/apis/clickhouse-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +951 -4
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +1104 -61
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/ck-account-type.d.ts +23 -0
- package/dist/openapi/models/ck-account-type.d.ts.map +1 -0
- package/dist/openapi/models/ck-account-type.js +27 -0
- package/dist/openapi/models/ck-account-type.js.map +1 -0
- package/dist/openapi/models/ck-account.d.ts +50 -0
- package/dist/openapi/models/ck-account.d.ts.map +1 -0
- package/dist/openapi/models/ck-account.js +16 -0
- package/dist/openapi/models/ck-account.js.map +1 -0
- package/dist/openapi/models/cluster-metrics.d.ts +4 -2
- package/dist/openapi/models/cluster-metrics.d.ts.map +1 -1
- package/dist/openapi/models/create-clickhouse-account-request.d.ts +37 -0
- package/dist/openapi/models/create-clickhouse-account-request.d.ts.map +1 -0
- package/dist/openapi/models/create-clickhouse-account-request.js +16 -0
- package/dist/openapi/models/create-clickhouse-account-request.js.map +1 -0
- package/dist/openapi/models/data-check-create.d.ts +6 -0
- package/dist/openapi/models/data-check-create.d.ts.map +1 -1
- package/dist/openapi/models/dms-ob-parameter.d.ts +4 -2
- package/dist/openapi/models/dms-ob-parameter.d.ts.map +1 -1
- package/dist/openapi/models/engine-mapping.d.ts +7 -0
- package/dist/openapi/models/engine-mapping.d.ts.map +1 -1
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.d.ts +49 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.d.ts.map +1 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.js +16 -0
- package/dist/openapi/models/get-clickhouse-role-grants200-response-inner.js.map +1 -0
- package/dist/openapi/models/index.d.ts +11 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +11 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts +31 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.d.ts.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.js +16 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.js.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.d.ts +32 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.d.ts.map +1 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.js +16 -0
- package/dist/openapi/models/list-clickhouse-account-roles200-response.js.map +1 -0
- package/dist/openapi/models/replication-check-option.d.ts +25 -0
- package/dist/openapi/models/replication-check-option.d.ts.map +1 -0
- package/dist/openapi/models/replication-check-option.js +16 -0
- package/dist/openapi/models/replication-check-option.js.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts +31 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.d.ts.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js +16 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.js.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.d.ts +26 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.d.ts.map +1 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.js +16 -0
- package/dist/openapi/models/revoke-clickhouse-role-privileges-request.js.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.d.ts +25 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.d.ts.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.js +16 -0
- package/dist/openapi/models/update-clickhouse-account-password-request.js.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.d.ts +25 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.d.ts.map +1 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.js +16 -0
- package/dist/openapi/models/update-clickhouse-account-roles-request.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +13 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/clickhouse-api.ts +1735 -0
- package/src/adminapi/apis/shared-api.ts +2059 -394
- package/src/adminapi/models/ck-account-type.ts +32 -0
- package/src/adminapi/models/ck-account.ts +59 -0
- package/src/adminapi/models/cluster-metrics.ts +2 -2
- package/src/adminapi/models/create-clickhouse-account-request.ts +42 -0
- package/src/adminapi/models/dms-ob-parameter.ts +2 -2
- package/src/adminapi/models/engine-mapping.ts +9 -0
- package/src/adminapi/models/get-clickhouse-role-grants200-response-inner.ts +54 -0
- package/src/adminapi/models/index.ts +12 -0
- package/src/adminapi/models/list-clickhouse-account-roles200-response-privileges-inner.ts +36 -0
- package/src/adminapi/models/list-clickhouse-account-roles200-response.ts +39 -0
- package/src/adminapi/models/provision-config.ts +15 -0
- package/src/adminapi/models/replication-check-option.ts +30 -0
- package/src/adminapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.ts +36 -0
- package/src/adminapi/models/revoke-clickhouse-role-privileges-request.ts +33 -0
- package/src/adminapi/models/scheduling-config.ts +18 -0
- package/src/adminapi/models/system-component-scheduler-policy.ts +31 -0
- package/src/adminapi/models/update-clickhouse-account-password-request.ts +30 -0
- package/src/adminapi/models/update-clickhouse-account-roles-request.ts +30 -0
- package/src/adminapi.yaml +713 -2
- package/src/openapi/.openapi-generator/FILES +12 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/clickhouse-api.ts +1735 -0
- package/src/openapi/apis/shared-api.ts +2059 -394
- package/src/openapi/models/ck-account-type.ts +32 -0
- package/src/openapi/models/ck-account.ts +59 -0
- package/src/openapi/models/cluster-metrics.ts +2 -2
- package/src/openapi/models/create-clickhouse-account-request.ts +42 -0
- package/src/openapi/models/data-check-create.ts +6 -0
- package/src/openapi/models/dms-ob-parameter.ts +2 -2
- package/src/openapi/models/engine-mapping.ts +9 -0
- package/src/openapi/models/get-clickhouse-role-grants200-response-inner.ts +54 -0
- package/src/openapi/models/index.ts +11 -0
- package/src/openapi/models/list-clickhouse-account-roles200-response-privileges-inner.ts +36 -0
- package/src/openapi/models/list-clickhouse-account-roles200-response.ts +39 -0
- package/src/openapi/models/replication-check-option.ts +30 -0
- package/src/openapi/models/revoke-clickhouse-role-privileges-request-privileges-inner.ts +36 -0
- package/src/openapi/models/revoke-clickhouse-role-privileges-request.ts +33 -0
- package/src/openapi/models/update-clickhouse-account-password-request.ts +30 -0
- package/src/openapi/models/update-clickhouse-account-roles-request.ts +30 -0
- package/src/openapi.yaml +699 -2
|
@@ -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};
|
|
@@ -13645,20 +14154,72 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13645
14154
|
},
|
|
13646
14155
|
/**
|
|
13647
14156
|
*
|
|
13648
|
-
* @summary Restore cluster from the Recycle Bin of the Org
|
|
13649
|
-
* @param {string} orgName name of the Org
|
|
13650
|
-
* @param {string} clusterName name of the cluster
|
|
14157
|
+
* @summary Restore cluster from the Recycle Bin of the Org
|
|
14158
|
+
* @param {string} orgName name of the Org
|
|
14159
|
+
* @param {string} clusterName name of the cluster
|
|
14160
|
+
* @param {*} [options] Override http request option.
|
|
14161
|
+
* @throws {RequiredError}
|
|
14162
|
+
*/
|
|
14163
|
+
restoreRecycleBinCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14164
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
14165
|
+
assertParamExists('restoreRecycleBinCluster', 'orgName', orgName)
|
|
14166
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
14167
|
+
assertParamExists('restoreRecycleBinCluster', 'clusterName', clusterName)
|
|
14168
|
+
const localVarPath = `/api/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}/restore`
|
|
14169
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
14170
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
14171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14173
|
+
let baseOptions;
|
|
14174
|
+
if (configuration) {
|
|
14175
|
+
baseOptions = configuration.baseOptions;
|
|
14176
|
+
}
|
|
14177
|
+
|
|
14178
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
14179
|
+
const localVarHeaderParameter = {} as any;
|
|
14180
|
+
const localVarQueryParameter = {} as any;
|
|
14181
|
+
|
|
14182
|
+
// authentication BearerToken required
|
|
14183
|
+
// http bearer authentication required
|
|
14184
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14185
|
+
|
|
14186
|
+
// authentication DigestAuth required
|
|
14187
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
14188
|
+
|
|
14189
|
+
|
|
14190
|
+
|
|
14191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14193
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14194
|
+
|
|
14195
|
+
return {
|
|
14196
|
+
url: toPathString(localVarUrlObj),
|
|
14197
|
+
options: localVarRequestOptions,
|
|
14198
|
+
};
|
|
14199
|
+
},
|
|
14200
|
+
/**
|
|
14201
|
+
*
|
|
14202
|
+
* @summary Revoke privileges from a ClickHouse role
|
|
14203
|
+
* @param {string} orgName
|
|
14204
|
+
* @param {string} clusterName
|
|
14205
|
+
* @param {string} roleName
|
|
14206
|
+
* @param {RevokeClickhouseRolePrivilegesRequest} body
|
|
13651
14207
|
* @param {*} [options] Override http request option.
|
|
13652
14208
|
* @throws {RequiredError}
|
|
13653
14209
|
*/
|
|
13654
|
-
|
|
14210
|
+
revokeClickhouseRolePrivileges: async (orgName: string, clusterName: string, roleName: string, body: RevokeClickhouseRolePrivilegesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13655
14211
|
// verify required parameter 'orgName' is not null or undefined
|
|
13656
|
-
assertParamExists('
|
|
14212
|
+
assertParamExists('revokeClickhouseRolePrivileges', 'orgName', orgName)
|
|
13657
14213
|
// verify required parameter 'clusterName' is not null or undefined
|
|
13658
|
-
assertParamExists('
|
|
13659
|
-
|
|
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`
|
|
13660
14220
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13661
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
14221
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
14222
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
13662
14223
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13663
14224
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13664
14225
|
let baseOptions;
|
|
@@ -13666,7 +14227,7 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13666
14227
|
baseOptions = configuration.baseOptions;
|
|
13667
14228
|
}
|
|
13668
14229
|
|
|
13669
|
-
const localVarRequestOptions = { method: '
|
|
14230
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13670
14231
|
const localVarHeaderParameter = {} as any;
|
|
13671
14232
|
const localVarQueryParameter = {} as any;
|
|
13672
14233
|
|
|
@@ -13679,9 +14240,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13679
14240
|
|
|
13680
14241
|
|
|
13681
14242
|
|
|
14243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14244
|
+
|
|
13682
14245
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13683
14246
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13684
14247
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14248
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
13685
14249
|
|
|
13686
14250
|
return {
|
|
13687
14251
|
url: toPathString(localVarUrlObj),
|
|
@@ -14770,6 +15334,116 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14770
15334
|
|
|
14771
15335
|
|
|
14772
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
|
|
15356
|
+
* @param {*} [options] Override http request option.
|
|
15357
|
+
* @throws {RequiredError}
|
|
15358
|
+
*/
|
|
15359
|
+
updateClickhouseAccountPassword: async (orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15360
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
15361
|
+
assertParamExists('updateClickhouseAccountPassword', 'orgName', orgName)
|
|
15362
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
15363
|
+
assertParamExists('updateClickhouseAccountPassword', 'clusterName', clusterName)
|
|
15364
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
15365
|
+
assertParamExists('updateClickhouseAccountPassword', 'accountName', accountName)
|
|
15366
|
+
// verify required parameter 'body' is not null or undefined
|
|
15367
|
+
assertParamExists('updateClickhouseAccountPassword', 'body', body)
|
|
15368
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}`
|
|
15369
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
15370
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
15371
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
15372
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15373
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15374
|
+
let baseOptions;
|
|
15375
|
+
if (configuration) {
|
|
15376
|
+
baseOptions = configuration.baseOptions;
|
|
15377
|
+
}
|
|
15378
|
+
|
|
15379
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
15380
|
+
const localVarHeaderParameter = {} as any;
|
|
15381
|
+
const localVarQueryParameter = {} as any;
|
|
15382
|
+
|
|
15383
|
+
// authentication BearerToken required
|
|
15384
|
+
// http bearer authentication required
|
|
15385
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15386
|
+
|
|
15387
|
+
// authentication DigestAuth required
|
|
15388
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
15389
|
+
|
|
15390
|
+
|
|
15391
|
+
|
|
15392
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15393
|
+
|
|
15394
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15395
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15396
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15397
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
15398
|
+
|
|
15399
|
+
return {
|
|
15400
|
+
url: toPathString(localVarUrlObj),
|
|
15401
|
+
options: localVarRequestOptions,
|
|
15402
|
+
};
|
|
15403
|
+
},
|
|
15404
|
+
/**
|
|
15405
|
+
*
|
|
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
|
|
15411
|
+
* @param {*} [options] Override http request option.
|
|
15412
|
+
* @throws {RequiredError}
|
|
15413
|
+
*/
|
|
15414
|
+
updateClickhouseAccountRoles: async (orgName: string, clusterName: string, accountName: string, body: UpdateClickhouseAccountRolesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15415
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
15416
|
+
assertParamExists('updateClickhouseAccountRoles', 'orgName', orgName)
|
|
15417
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
15418
|
+
assertParamExists('updateClickhouseAccountRoles', 'clusterName', clusterName)
|
|
15419
|
+
// verify required parameter 'accountName' is not null or undefined
|
|
15420
|
+
assertParamExists('updateClickhouseAccountRoles', 'accountName', accountName)
|
|
15421
|
+
// verify required parameter 'body' is not null or undefined
|
|
15422
|
+
assertParamExists('updateClickhouseAccountRoles', 'body', body)
|
|
15423
|
+
const localVarPath = `/api/v1/data/clickhouse/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/roles`
|
|
15424
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
15425
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
15426
|
+
.replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
|
|
15427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15429
|
+
let baseOptions;
|
|
15430
|
+
if (configuration) {
|
|
15431
|
+
baseOptions = configuration.baseOptions;
|
|
15432
|
+
}
|
|
15433
|
+
|
|
15434
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
15435
|
+
const localVarHeaderParameter = {} as any;
|
|
15436
|
+
const localVarQueryParameter = {} as any;
|
|
15437
|
+
|
|
15438
|
+
// authentication BearerToken required
|
|
15439
|
+
// http bearer authentication required
|
|
15440
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15441
|
+
|
|
15442
|
+
// authentication DigestAuth required
|
|
15443
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
15444
|
+
|
|
15445
|
+
|
|
15446
|
+
|
|
14773
15447
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14774
15448
|
|
|
14775
15449
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16348,6 +17022,36 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16348
17022
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.createBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
16349
17023
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16350
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
|
+
},
|
|
16351
17055
|
/**
|
|
16352
17056
|
*
|
|
16353
17057
|
* @summary Create new cluster
|
|
@@ -16749,6 +17453,36 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
16749
17453
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.deleteBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
16750
17454
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16751
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
|
+
},
|
|
16752
17486
|
/**
|
|
16753
17487
|
*
|
|
16754
17488
|
* @summary Delete cluster
|
|
@@ -17517,6 +18251,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
17517
18251
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getBackupMethod']?.[localVarOperationServerIndex]?.url;
|
|
17518
18252
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17519
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
|
+
},
|
|
17520
18269
|
/**
|
|
17521
18270
|
*
|
|
17522
18271
|
* @summary Get cluster details
|
|
@@ -18298,6 +19047,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18298
19047
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getTenant']?.[localVarOperationServerIndex]?.url;
|
|
18299
19048
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18300
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
|
+
},
|
|
18301
19066
|
/**
|
|
18302
19067
|
*
|
|
18303
19068
|
* @summary Horizontal scale cluster
|
|
@@ -18405,6 +19170,64 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
18405
19170
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.listBackupSchedules']?.[localVarOperationServerIndex]?.url;
|
|
18406
19171
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18407
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
|
+
},
|
|
18408
19231
|
/**
|
|
18409
19232
|
*
|
|
18410
19233
|
* @summary List clusters in the Org
|
|
@@ -19935,6 +20758,22 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
19935
20758
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.restoreRecycleBinCluster']?.[localVarOperationServerIndex]?.url;
|
|
19936
20759
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19937
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
|
+
},
|
|
19938
20777
|
/**
|
|
19939
20778
|
*
|
|
19940
20779
|
* @summary Set alert config
|
|
@@ -20259,6 +21098,38 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
20259
21098
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.updateBackupSchedule']?.[localVarOperationServerIndex]?.url;
|
|
20260
21099
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20261
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
|
+
},
|
|
20262
21133
|
/**
|
|
20263
21134
|
*
|
|
20264
21135
|
* @summary Update the cluster license
|
|
@@ -20789,6 +21660,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
20789
21660
|
createBackupSchedule(requestParameters: SharedApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule> {
|
|
20790
21661
|
return localVarFp.createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
20791
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
|
+
},
|
|
20792
21683
|
/**
|
|
20793
21684
|
*
|
|
20794
21685
|
* @summary Create new cluster
|
|
@@ -21059,6 +21950,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21059
21950
|
deleteBackupSchedule(requestParameters: SharedApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
21060
21951
|
return localVarFp.deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(axios, basePath));
|
|
21061
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
|
+
},
|
|
21062
21973
|
/**
|
|
21063
21974
|
*
|
|
21064
21975
|
* @summary Delete cluster
|
|
@@ -21539,6 +22450,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
21539
22450
|
getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod> {
|
|
21540
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));
|
|
21541
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
|
+
},
|
|
21542
22463
|
/**
|
|
21543
22464
|
*
|
|
21544
22465
|
* @summary Get cluster details
|
|
@@ -22028,6 +22949,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22028
22949
|
getTenant(requestParameters: SharedApiGetTenantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tenant> {
|
|
22029
22950
|
return localVarFp.getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(axios, basePath));
|
|
22030
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
|
+
},
|
|
22031
22962
|
/**
|
|
22032
22963
|
*
|
|
22033
22964
|
* @summary Horizontal scale cluster
|
|
@@ -22098,6 +23029,46 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
22098
23029
|
listBackupSchedules(requestParameters: SharedApiListBackupSchedulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupScheduleList> {
|
|
22099
23030
|
return localVarFp.listBackupSchedules(requestParameters.orgName, requestParameters.clusterName, requestParameters.backupMethod, options).then((request) => request(axios, basePath));
|
|
22100
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
|
+
},
|
|
22101
23072
|
/**
|
|
22102
23073
|
*
|
|
22103
23074
|
* @summary List clusters in the Org
|
|
@@ -23025,6 +23996,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23025
23996
|
restoreRecycleBinCluster(requestParameters: SharedApiRestoreRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
23026
23997
|
return localVarFp.restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
23027
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
|
+
},
|
|
23028
24009
|
/**
|
|
23029
24010
|
*
|
|
23030
24011
|
* @summary Set alert config
|
|
@@ -23235,6 +24216,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
23235
24216
|
updateBackupSchedule(requestParameters: SharedApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule> {
|
|
23236
24217
|
return localVarFp.updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
23237
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
|
+
},
|
|
23238
24239
|
/**
|
|
23239
24240
|
*
|
|
23240
24241
|
* @summary Update the cluster license
|
|
@@ -23624,6 +24625,26 @@ export interface SharedApiInterface {
|
|
|
23624
24625
|
*/
|
|
23625
24626
|
createBackupSchedule(requestParameters: SharedApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule>;
|
|
23626
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
|
+
|
|
23627
24648
|
/**
|
|
23628
24649
|
*
|
|
23629
24650
|
* @summary Create new cluster
|
|
@@ -23894,6 +24915,26 @@ export interface SharedApiInterface {
|
|
|
23894
24915
|
*/
|
|
23895
24916
|
deleteBackupSchedule(requestParameters: SharedApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
23896
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
|
+
|
|
23897
24938
|
/**
|
|
23898
24939
|
*
|
|
23899
24940
|
* @summary Delete cluster
|
|
@@ -24374,6 +25415,16 @@ export interface SharedApiInterface {
|
|
|
24374
25415
|
*/
|
|
24375
25416
|
getBackupMethod(requestParameters: SharedApiGetBackupMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterBackupMethod>;
|
|
24376
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
|
+
|
|
24377
25428
|
/**
|
|
24378
25429
|
*
|
|
24379
25430
|
* @summary Get cluster details
|
|
@@ -24863,6 +25914,16 @@ export interface SharedApiInterface {
|
|
|
24863
25914
|
*/
|
|
24864
25915
|
getTenant(requestParameters: SharedApiGetTenantRequest, options?: RawAxiosRequestConfig): AxiosPromise<Tenant>;
|
|
24865
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
|
+
|
|
24866
25927
|
/**
|
|
24867
25928
|
*
|
|
24868
25929
|
* @summary Horizontal scale cluster
|
|
@@ -24933,6 +25994,46 @@ export interface SharedApiInterface {
|
|
|
24933
25994
|
*/
|
|
24934
25995
|
listBackupSchedules(requestParameters: SharedApiListBackupSchedulesRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupScheduleList>;
|
|
24935
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
|
+
|
|
24936
26037
|
/**
|
|
24937
26038
|
*
|
|
24938
26039
|
* @summary List clusters in the Org
|
|
@@ -25860,6 +26961,16 @@ export interface SharedApiInterface {
|
|
|
25860
26961
|
*/
|
|
25861
26962
|
restoreRecycleBinCluster(requestParameters: SharedApiRestoreRecycleBinClusterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster>;
|
|
25862
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
|
+
|
|
25863
26974
|
/**
|
|
25864
26975
|
*
|
|
25865
26976
|
* @summary Set alert config
|
|
@@ -26070,6 +27181,26 @@ export interface SharedApiInterface {
|
|
|
26070
27181
|
*/
|
|
26071
27182
|
updateBackupSchedule(requestParameters: SharedApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BackupSchedule>;
|
|
26072
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
|
+
|
|
26073
27204
|
/**
|
|
26074
27205
|
*
|
|
26075
27206
|
* @summary Update the cluster license
|
|
@@ -26916,6 +28047,62 @@ export interface SharedApiCreateBackupScheduleRequest {
|
|
|
26916
28047
|
readonly body: BackupScheduleCreate
|
|
26917
28048
|
}
|
|
26918
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
|
+
|
|
26919
28106
|
/**
|
|
26920
28107
|
* Request parameters for createCluster operation in SharedApi.
|
|
26921
28108
|
* @export
|
|
@@ -27644,6 +28831,62 @@ export interface SharedApiDeleteBackupScheduleRequest {
|
|
|
27644
28831
|
readonly scheduleName: string
|
|
27645
28832
|
}
|
|
27646
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
|
+
|
|
27647
28890
|
/**
|
|
27648
28891
|
* Request parameters for deleteCluster operation in SharedApi.
|
|
27649
28892
|
* @export
|
|
@@ -29324,6 +30567,34 @@ export interface SharedApiGetBackupMethodRequest {
|
|
|
29324
30567
|
readonly mode?: string
|
|
29325
30568
|
}
|
|
29326
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
|
+
|
|
29327
30598
|
/**
|
|
29328
30599
|
* Request parameters for getCluster operation in SharedApi.
|
|
29329
30600
|
* @export
|
|
@@ -31025,6 +32296,41 @@ export interface SharedApiGetTenantRequest {
|
|
|
31025
32296
|
readonly tenantId: string
|
|
31026
32297
|
}
|
|
31027
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
|
+
|
|
31028
32334
|
/**
|
|
31029
32335
|
* Request parameters for horizontalScaleCluster operation in SharedApi.
|
|
31030
32336
|
* @export
|
|
@@ -31235,6 +32541,104 @@ export interface SharedApiListBackupSchedulesRequest {
|
|
|
31235
32541
|
readonly backupMethod?: string
|
|
31236
32542
|
}
|
|
31237
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
|
+
|
|
31238
32642
|
/**
|
|
31239
32643
|
* Request parameters for listCluster operation in SharedApi.
|
|
31240
32644
|
* @export
|
|
@@ -34749,6 +36153,41 @@ export interface SharedApiRestoreRecycleBinClusterRequest {
|
|
|
34749
36153
|
readonly clusterName: string
|
|
34750
36154
|
}
|
|
34751
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
|
+
|
|
34752
36191
|
/**
|
|
34753
36192
|
* Request parameters for setAlertConfig operation in SharedApi.
|
|
34754
36193
|
* @export
|
|
@@ -35400,6 +36839,76 @@ export interface SharedApiUpdateBackupScheduleRequest {
|
|
|
35400
36839
|
readonly body: BackupScheduleUpdate
|
|
35401
36840
|
}
|
|
35402
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
|
+
|
|
35403
36912
|
/**
|
|
35404
36913
|
* Request parameters for updateClusterLicense operation in SharedApi.
|
|
35405
36914
|
* @export
|
|
@@ -36369,6 +37878,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36369
37878
|
return SharedApiFp(this.configuration).createBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
36370
37879
|
}
|
|
36371
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
|
+
|
|
36372
37905
|
/**
|
|
36373
37906
|
*
|
|
36374
37907
|
* @summary Create new cluster
|
|
@@ -36693,6 +38226,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
36693
38226
|
return SharedApiFp(this.configuration).deleteBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, options).then((request) => request(this.axios, this.basePath));
|
|
36694
38227
|
}
|
|
36695
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
|
+
|
|
36696
38253
|
/**
|
|
36697
38254
|
*
|
|
36698
38255
|
* @summary Delete cluster
|
|
@@ -37269,6 +38826,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37269
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));
|
|
37270
38827
|
}
|
|
37271
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
|
+
|
|
37272
38841
|
/**
|
|
37273
38842
|
*
|
|
37274
38843
|
* @summary Get cluster details
|
|
@@ -37856,6 +39425,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37856
39425
|
return SharedApiFp(this.configuration).getTenant(requestParameters.orgName, requestParameters.clusterName, requestParameters.tenantId, options).then((request) => request(this.axios, this.basePath));
|
|
37857
39426
|
}
|
|
37858
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
|
+
|
|
37859
39440
|
/**
|
|
37860
39441
|
*
|
|
37861
39442
|
* @summary Horizontal scale cluster
|
|
@@ -37940,6 +39521,54 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
37940
39521
|
return SharedApiFp(this.configuration).listBackupSchedules(requestParameters.orgName, requestParameters.clusterName, requestParameters.backupMethod, options).then((request) => request(this.axios, this.basePath));
|
|
37941
39522
|
}
|
|
37942
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
|
+
|
|
37943
39572
|
/**
|
|
37944
39573
|
*
|
|
37945
39574
|
* @summary List clusters in the Org
|
|
@@ -39053,6 +40682,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
39053
40682
|
return SharedApiFp(this.configuration).restoreRecycleBinCluster(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
39054
40683
|
}
|
|
39055
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
|
+
|
|
39056
40697
|
/**
|
|
39057
40698
|
*
|
|
39058
40699
|
* @summary Set alert config
|
|
@@ -39305,6 +40946,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
39305
40946
|
return SharedApiFp(this.configuration).updateBackupSchedule(requestParameters.orgName, requestParameters.clusterName, requestParameters.scheduleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
39306
40947
|
}
|
|
39307
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
|
+
|
|
39308
40973
|
/**
|
|
39309
40974
|
*
|
|
39310
40975
|
* @summary Update the cluster license
|