tencentcloud-sdk-nodejs-keewidb 4.0.534

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