tencentcloud-sdk-nodejs-keewidb 4.0.1047 → 4.1.36

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.
@@ -1,514 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- /*
3
- * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
- import {
20
- ModifyInstanceParamsResponse,
21
- ModifyAutoBackupConfigResponse,
22
- TaskInfoDetail,
23
- CreateInstancesRequest,
24
- ModifyNetworkConfigResponse,
25
- DescribeInstanceBinlogsRequest,
26
- Inbound,
27
- AssociateSecurityGroupsRequest,
28
- DescribeTaskListResponse,
29
- ModifyInstanceRequest,
30
- RenewInstanceResponse,
31
- CreateBackupManuallyResponse,
32
- DescribeDBSecurityGroupsResponse,
33
- RedisNodeInfo,
34
- ModifyAutoBackupConfigRequest,
35
- ProxyNodeInfo,
36
- DestroyPostpaidInstanceRequest,
37
- InstanceProxySlowlogDetail,
38
- ResetPasswordResponse,
39
- ClearInstanceRequest,
40
- RegionConf,
41
- RenewInstanceRequest,
42
- CreateBackupManuallyRequest,
43
- DescribeInstanceParamRecordsResponse,
44
- InstanceMultiParam,
45
- DescribeInstanceDealDetailRequest,
46
- DestroyPrepaidInstanceRequest,
47
- InstanceIntegerParam,
48
- InstanceTagInfo,
49
- DestroyPostpaidInstanceResponse,
50
- ModifyInstanceResponse,
51
- NodeInfo,
52
- ModifyDBInstanceSecurityGroupsResponse,
53
- DescribeTendisSlowLogResponse,
54
- DescribeProductInfoResponse,
55
- BackupInfo,
56
- DescribeDBSecurityGroupsRequest,
57
- ChangeInstanceMasterRequest,
58
- DescribeProjectSecurityGroupsResponse,
59
- DescribeInstanceBackupsResponse,
60
- DescribeInstanceReplicasResponse,
61
- StartUpInstanceResponse,
62
- InstanceTextParam,
63
- InstanceParamHistory,
64
- DescribeInstanceParamRecordsRequest,
65
- DescribeTaskListRequest,
66
- CreateInstancesResponse,
67
- KeeWiDBNode,
68
- DescribeConnectionConfigResponse,
69
- BinlogInfo,
70
- ModifyNetworkConfigRequest,
71
- DescribeInstanceParamsRequest,
72
- CleanUpInstanceResponse,
73
- ModifyDBInstanceSecurityGroupsRequest,
74
- ZoneCapacityConf,
75
- Outbound,
76
- DescribeAutoBackupConfigResponse,
77
- DescribeProjectSecurityGroupsRequest,
78
- SecurityGroup,
79
- StartUpInstanceRequest,
80
- DescribeMaintenanceWindowResponse,
81
- ResetPasswordRequest,
82
- ProductConf,
83
- ModifyConnectionConfigRequest,
84
- TradeDealDetail,
85
- ResourceTag,
86
- AssociateSecurityGroupsResponse,
87
- ReplicaGroup,
88
- InstanceInfo,
89
- CleanUpInstanceRequest,
90
- DescribeInstanceDealDetailResponse,
91
- DescribeInstancesRequest,
92
- DescribeTaskInfoResponse,
93
- DescribeAutoBackupConfigRequest,
94
- InstanceEnumParam,
95
- UpgradeInstanceResponse,
96
- DescribeInstancesResponse,
97
- DescribeTaskInfoRequest,
98
- ModifyConnectionConfigResponse,
99
- ModifyMaintenanceWindowResponse,
100
- DescribeInstanceReplicasRequest,
101
- DestroyPrepaidInstanceResponse,
102
- InstanceNodeInfo,
103
- TendisSlowLogDetail,
104
- DescribeConnectionConfigRequest,
105
- ModifyInstanceParamsRequest,
106
- DescribeInstanceNodeInfoRequest,
107
- DescribeMaintenanceWindowRequest,
108
- DescribeTendisSlowLogRequest,
109
- DescribeProxySlowLogRequest,
110
- DescribeProxySlowLogResponse,
111
- DescribeProductInfoRequest,
112
- DescribeInstanceParamsResponse,
113
- DisassociateSecurityGroupsRequest,
114
- ModifyMaintenanceWindowRequest,
115
- DescribeInstanceBackupsRequest,
116
- ClearInstanceResponse,
117
- ChangeInstanceMasterResponse,
118
- UpgradeInstanceRequest,
119
- DescribeInstanceNodeInfoResponse,
120
- InstanceParam,
121
- DisassociateSecurityGroupsResponse,
122
- DescribeInstanceBinlogsResponse,
123
- } from "./keewidb_models"
124
-
125
- /**
126
- * keewidb client
127
- * @class
128
- */
129
- export class Client extends TencentCloudCommon.AbstractClient {
130
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
131
- super("keewidb.tencentcloudapi.com", "2022-03-08", clientConfig)
132
- }
133
-
134
- /**
135
- * 本接口(DescribeInstanceNodeInfo)查询实例节点信息。
136
- */
137
- async DescribeInstanceNodeInfo(
138
- req: DescribeInstanceNodeInfoRequest,
139
- cb?: (error: string, rep: DescribeInstanceNodeInfoResponse) => void
140
- ): Promise<DescribeInstanceNodeInfoResponse> {
141
- return this.request("DescribeInstanceNodeInfo", req, cb)
142
- }
143
-
144
- /**
145
- * 本接口(ModifyMaintenanceWindow)修改实例维护时间窗时间。
146
- */
147
- async ModifyMaintenanceWindow(
148
- req: ModifyMaintenanceWindowRequest,
149
- cb?: (error: string, rep: ModifyMaintenanceWindowResponse) => void
150
- ): Promise<ModifyMaintenanceWindowResponse> {
151
- return this.request("ModifyMaintenanceWindow", req, cb)
152
- }
153
-
154
- /**
155
- * 本接口(DescribeTaskList)用于查询任务列表信息。
156
- */
157
- async DescribeTaskList(
158
- req: DescribeTaskListRequest,
159
- cb?: (error: string, rep: DescribeTaskListResponse) => void
160
- ): Promise<DescribeTaskListResponse> {
161
- return this.request("DescribeTaskList", req, cb)
162
- }
163
-
164
- /**
165
- * 本接口(CleanUpInstance)用于立即下线回收站已隔离的实例。
166
- */
167
- async CleanUpInstance(
168
- req: CleanUpInstanceRequest,
169
- cb?: (error: string, rep: CleanUpInstanceResponse) => void
170
- ): Promise<CleanUpInstanceResponse> {
171
- return this.request("CleanUpInstance", req, cb)
172
- }
173
-
174
- /**
175
- * 本接口(DescribeMaintenanceWindow)用于查询实例维护时间窗。
176
- */
177
- async DescribeMaintenanceWindow(
178
- req: DescribeMaintenanceWindowRequest,
179
- cb?: (error: string, rep: DescribeMaintenanceWindowResponse) => void
180
- ): Promise<DescribeMaintenanceWindowResponse> {
181
- return this.request("DescribeMaintenanceWindow", req, cb)
182
- }
183
-
184
- /**
185
- * 本接口(DescribeInstanceBackups)用于查询实例全量备份列表。
186
- */
187
- async DescribeInstanceBackups(
188
- req: DescribeInstanceBackupsRequest,
189
- cb?: (error: string, rep: DescribeInstanceBackupsResponse) => void
190
- ): Promise<DescribeInstanceBackupsResponse> {
191
- return this.request("DescribeInstanceBackups", req, cb)
192
- }
193
-
194
- /**
195
- * 本接口(ModifyNetworkConfig)用于修改实例网络配置。
196
- */
197
- async ModifyNetworkConfig(
198
- req: ModifyNetworkConfigRequest,
199
- cb?: (error: string, rep: ModifyNetworkConfigResponse) => void
200
- ): Promise<ModifyNetworkConfigResponse> {
201
- return this.request("ModifyNetworkConfig", req, cb)
202
- }
203
-
204
- /**
205
- * 本接口(ModifyAutoBackupConfig)用于修改自动备份配置。
206
- */
207
- async ModifyAutoBackupConfig(
208
- req: ModifyAutoBackupConfigRequest,
209
- cb?: (error: string, rep: ModifyAutoBackupConfigResponse) => void
210
- ): Promise<ModifyAutoBackupConfigResponse> {
211
- return this.request("ModifyAutoBackupConfig", req, cb)
212
- }
213
-
214
- /**
215
- * 本接口(ResetPassword)用于重置数据库访问密码。
216
- */
217
- async ResetPassword(
218
- req: ResetPasswordRequest,
219
- cb?: (error: string, rep: ResetPasswordResponse) => void
220
- ): Promise<ResetPasswordResponse> {
221
- return this.request("ResetPassword", req, cb)
222
- }
223
-
224
- /**
225
- * 本接口(DescribeInstances)可以根据地域、网络、实例id、标签、计费方式等条件,搜索查询实例列表。
226
- */
227
- async DescribeInstances(
228
- req: DescribeInstancesRequest,
229
- cb?: (error: string, rep: DescribeInstancesResponse) => void
230
- ): Promise<DescribeInstancesResponse> {
231
- return this.request("DescribeInstances", req, cb)
232
- }
233
-
234
- /**
235
- * 本接口(DescribeConnectionConfig)用于查询实例连接配置,包括出流量和入流量带宽、最大连接数限制。
236
- */
237
- async DescribeConnectionConfig(
238
- req: DescribeConnectionConfigRequest,
239
- cb?: (error: string, rep: DescribeConnectionConfigResponse) => void
240
- ): Promise<DescribeConnectionConfigResponse> {
241
- return this.request("DescribeConnectionConfig", req, cb)
242
- }
243
-
244
- /**
245
- * 本接口(DescribeInstanceBinlogs)用于查询增量备份列表。
246
- */
247
- async DescribeInstanceBinlogs(
248
- req: DescribeInstanceBinlogsRequest,
249
- cb?: (error: string, rep: DescribeInstanceBinlogsResponse) => void
250
- ): Promise<DescribeInstanceBinlogsResponse> {
251
- return this.request("DescribeInstanceBinlogs", req, cb)
252
- }
253
-
254
- /**
255
- * 本接口(DescribeAutoBackupConfig)用于获取自动备份配置。
256
- */
257
- async DescribeAutoBackupConfig(
258
- req: DescribeAutoBackupConfigRequest,
259
- cb?: (error: string, rep: DescribeAutoBackupConfigResponse) => void
260
- ): Promise<DescribeAutoBackupConfigResponse> {
261
- return this.request("DescribeAutoBackupConfig", req, cb)
262
- }
263
-
264
- /**
265
- * 本接口(ChangeInstanceMaster)用于将副本节点提升为主节点。
266
- */
267
- async ChangeInstanceMaster(
268
- req: ChangeInstanceMasterRequest,
269
- cb?: (error: string, rep: ChangeInstanceMasterResponse) => void
270
- ): Promise<ChangeInstanceMasterResponse> {
271
- return this.request("ChangeInstanceMaster", req, cb)
272
- }
273
-
274
- /**
275
- * 创建数据库实例
276
- */
277
- async CreateInstances(
278
- req: CreateInstancesRequest,
279
- cb?: (error: string, rep: CreateInstancesResponse) => void
280
- ): Promise<CreateInstancesResponse> {
281
- return this.request("CreateInstances", req, cb)
282
- }
283
-
284
- /**
285
- * 本接口(RenewInstance)用于为包年包月计费实例续费。
286
- */
287
- async RenewInstance(
288
- req: RenewInstanceRequest,
289
- cb?: (error: string, rep: RenewInstanceResponse) => void
290
- ): Promise<RenewInstanceResponse> {
291
- return this.request("RenewInstance", req, cb)
292
- }
293
-
294
- /**
295
- * 本接口(DescribeTaskInfo)用于查询异步任务结果。
296
- */
297
- async DescribeTaskInfo(
298
- req: DescribeTaskInfoRequest,
299
- cb?: (error: string, rep: DescribeTaskInfoResponse) => void
300
- ): Promise<DescribeTaskInfoResponse> {
301
- return this.request("DescribeTaskInfo", req, cb)
302
- }
303
-
304
- /**
305
- * 本接口(DescribeProxySlowLog)用于查询代理(Proxy)慢日志。
306
- */
307
- async DescribeProxySlowLog(
308
- req: DescribeProxySlowLogRequest,
309
- cb?: (error: string, rep: DescribeProxySlowLogResponse) => void
310
- ): Promise<DescribeProxySlowLogResponse> {
311
- return this.request("DescribeProxySlowLog", req, cb)
312
- }
313
-
314
- /**
315
- * 本接口(DescribeProjectSecurityGroups)用于查询项目的安全组详情。
316
- */
317
- async DescribeProjectSecurityGroups(
318
- req: DescribeProjectSecurityGroupsRequest,
319
- cb?: (error: string, rep: DescribeProjectSecurityGroupsResponse) => void
320
- ): Promise<DescribeProjectSecurityGroupsResponse> {
321
- return this.request("DescribeProjectSecurityGroups", req, cb)
322
- }
323
-
324
- /**
325
- * 本接口(DescribeTendisSlowLog)用于查询实例慢日志。
326
- */
327
- async DescribeTendisSlowLog(
328
- req: DescribeTendisSlowLogRequest,
329
- cb?: (error: string, rep: DescribeTendisSlowLogResponse) => void
330
- ): Promise<DescribeTendisSlowLogResponse> {
331
- return this.request("DescribeTendisSlowLog", req, cb)
332
- }
333
-
334
- /**
335
- * 本接口 (AssociateSecurityGroups) 用于安全组批量绑定多个指定实例。
336
- */
337
- async AssociateSecurityGroups(
338
- req: AssociateSecurityGroupsRequest,
339
- cb?: (error: string, rep: AssociateSecurityGroupsResponse) => void
340
- ): Promise<AssociateSecurityGroupsResponse> {
341
- return this.request("AssociateSecurityGroups", req, cb)
342
- }
343
-
344
- /**
345
- * 本接口(ModifyInstanceParams)用于修改实例参数配置。
346
- */
347
- async ModifyInstanceParams(
348
- req: ModifyInstanceParamsRequest,
349
- cb?: (error: string, rep: ModifyInstanceParamsResponse) => void
350
- ): Promise<ModifyInstanceParamsResponse> {
351
- return this.request("ModifyInstanceParams", req, cb)
352
- }
353
-
354
- /**
355
- * 本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
356
- */
357
- async ModifyDBInstanceSecurityGroups(
358
- req: ModifyDBInstanceSecurityGroupsRequest,
359
- cb?: (error: string, rep: ModifyDBInstanceSecurityGroupsResponse) => void
360
- ): Promise<ModifyDBInstanceSecurityGroupsResponse> {
361
- return this.request("ModifyDBInstanceSecurityGroups", req, cb)
362
- }
363
-
364
- /**
365
- * 本接口(DescribeInstanceParams)用于查询实例的参数列表。
366
- */
367
- async DescribeInstanceParams(
368
- req: DescribeInstanceParamsRequest,
369
- cb?: (error: string, rep: DescribeInstanceParamsResponse) => void
370
- ): Promise<DescribeInstanceParamsResponse> {
371
- return this.request("DescribeInstanceParams", req, cb)
372
- }
373
-
374
- /**
375
- * 本接口(DescribeInstanceReplicas)用于获取实例副本节点信息。
376
- */
377
- async DescribeInstanceReplicas(
378
- req: DescribeInstanceReplicasRequest,
379
- cb?: (error: string, rep: DescribeInstanceReplicasResponse) => void
380
- ): Promise<DescribeInstanceReplicasResponse> {
381
- return this.request("DescribeInstanceReplicas", req, cb)
382
- }
383
-
384
- /**
385
- * 本接口(ModifyConnectionConfig)用于修改实例的连接配置,包括带宽和最大连接数。
386
- */
387
- async ModifyConnectionConfig(
388
- req: ModifyConnectionConfigRequest,
389
- cb?: (error: string, rep: ModifyConnectionConfigResponse) => void
390
- ): Promise<ModifyConnectionConfigResponse> {
391
- return this.request("ModifyConnectionConfig", req, cb)
392
- }
393
-
394
- /**
395
- * 本接口查询指定可用区和实例类型下keewidb 的售卖规格, 如果用户不在购买白名单中,将不能查询该可用区或该类型的售卖规格详情。申请购买某地域白名单可以提交工单
396
- */
397
- async DescribeProductInfo(
398
- req?: DescribeProductInfoRequest,
399
- cb?: (error: string, rep: DescribeProductInfoResponse) => void
400
- ): Promise<DescribeProductInfoResponse> {
401
- return this.request("DescribeProductInfo", req, cb)
402
- }
403
-
404
- /**
405
- * 本接口(UpgradeInstance)用于对实例进行配置变更。
406
- */
407
- async UpgradeInstance(
408
- req: UpgradeInstanceRequest,
409
- cb?: (error: string, rep: UpgradeInstanceResponse) => void
410
- ): Promise<UpgradeInstanceResponse> {
411
- return this.request("UpgradeInstance", req, cb)
412
- }
413
-
414
- /**
415
- * 本接口(DescribeDBSecurityGroups)用于查询实例的安全组详情。
416
- */
417
- async DescribeDBSecurityGroups(
418
- req: DescribeDBSecurityGroupsRequest,
419
- cb?: (error: string, rep: DescribeDBSecurityGroupsResponse) => void
420
- ): Promise<DescribeDBSecurityGroupsResponse> {
421
- return this.request("DescribeDBSecurityGroups", req, cb)
422
- }
423
-
424
- /**
425
- * 手动发起备份
426
- */
427
- async CreateBackupManually(
428
- req: CreateBackupManuallyRequest,
429
- cb?: (error: string, rep: CreateBackupManuallyResponse) => void
430
- ): Promise<CreateBackupManuallyResponse> {
431
- return this.request("CreateBackupManually", req, cb)
432
- }
433
-
434
- /**
435
- * 本接口(DestroyPrepaidInstance)用于退还包年包月计费实例。
436
- */
437
- async DestroyPrepaidInstance(
438
- req: DestroyPrepaidInstanceRequest,
439
- cb?: (error: string, rep: DestroyPrepaidInstanceResponse) => void
440
- ): Promise<DestroyPrepaidInstanceResponse> {
441
- return this.request("DestroyPrepaidInstance", req, cb)
442
- }
443
-
444
- /**
445
- * 本接口(DescribeInstanceParamRecords)查询参数配置修改历史列表。
446
- */
447
- async DescribeInstanceParamRecords(
448
- req: DescribeInstanceParamRecordsRequest,
449
- cb?: (error: string, rep: DescribeInstanceParamRecordsResponse) => void
450
- ): Promise<DescribeInstanceParamRecordsResponse> {
451
- return this.request("DescribeInstanceParamRecords", req, cb)
452
- }
453
-
454
- /**
455
- * 本接口(ClearInstance)用于清空实例数据。
456
- > **说明**:在清空数据流程中,系统将自动进行数据备份,耗时较长,请您耐心等待并提前做好时间规划。
457
- */
458
- async ClearInstance(
459
- req: ClearInstanceRequest,
460
- cb?: (error: string, rep: ClearInstanceResponse) => void
461
- ): Promise<ClearInstanceResponse> {
462
- return this.request("ClearInstance", req, cb)
463
- }
464
-
465
- /**
466
- * 本接口(DescribeInstanceDealDetail)用于查询预付费订单信息。
467
- */
468
- async DescribeInstanceDealDetail(
469
- req: DescribeInstanceDealDetailRequest,
470
- cb?: (error: string, rep: DescribeInstanceDealDetailResponse) => void
471
- ): Promise<DescribeInstanceDealDetailResponse> {
472
- return this.request("DescribeInstanceDealDetail", req, cb)
473
- }
474
-
475
- /**
476
- * 本接口(DestroyPostpaidInstance)用于退还按量计费实例。
477
- */
478
- async DestroyPostpaidInstance(
479
- req: DestroyPostpaidInstanceRequest,
480
- cb?: (error: string, rep: DestroyPostpaidInstanceResponse) => void
481
- ): Promise<DestroyPostpaidInstanceResponse> {
482
- return this.request("DestroyPostpaidInstance", req, cb)
483
- }
484
-
485
- /**
486
- * 本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
487
- */
488
- async DisassociateSecurityGroups(
489
- req: DisassociateSecurityGroupsRequest,
490
- cb?: (error: string, rep: DisassociateSecurityGroupsResponse) => void
491
- ): Promise<DisassociateSecurityGroupsResponse> {
492
- return this.request("DisassociateSecurityGroups", req, cb)
493
- }
494
-
495
- /**
496
- * 本接口(ModifyInstance)用于修改实例相关信息。
497
- */
498
- async ModifyInstance(
499
- req: ModifyInstanceRequest,
500
- cb?: (error: string, rep: ModifyInstanceResponse) => void
501
- ): Promise<ModifyInstanceResponse> {
502
- return this.request("ModifyInstance", req, cb)
503
- }
504
-
505
- /**
506
- * 本接口(StartUpInstance)用于按量计费实例解隔离
507
- */
508
- async StartUpInstance(
509
- req: StartUpInstanceRequest,
510
- cb?: (error: string, rep: StartUpInstanceResponse) => void
511
- ): Promise<StartUpInstanceResponse> {
512
- return this.request("StartUpInstance", req, cb)
513
- }
514
- }