/
DcdbClient.java
860 lines (780 loc) · 39.3 KB
/
DcdbClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.dcdb.v20180411;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.dcdb.v20180411.models.*;
public class DcdbClient extends AbstractClient{
private static String endpoint = "dcdb.tencentcloudapi.com";
private static String service = "dcdb";
private static String version = "2018-04-11";
public DcdbClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public DcdbClient(Credential credential, String region, ClientProfile profile) {
super(DcdbClient.endpoint, DcdbClient.version, credential, region, profile);
}
/**
*解隔离TDSQL按量计费实例
* @param req ActiveHourDCDBInstanceRequest
* @return ActiveHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public ActiveHourDCDBInstanceResponse ActiveHourDCDBInstance(ActiveHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ActiveHourDCDBInstance", ActiveHourDCDBInstanceResponse.class);
}
/**
*本接口 (AssociateSecurityGroups) 用于安全组批量绑定云资源。
* @param req AssociateSecurityGroupsRequest
* @return AssociateSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public AssociateSecurityGroupsResponse AssociateSecurityGroups(AssociateSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssociateSecurityGroups", AssociateSecurityGroupsResponse.class);
}
/**
*取消DCN同步
* @param req CancelDcnJobRequest
* @return CancelDcnJobResponse
* @throws TencentCloudSDKException
*/
public CancelDcnJobResponse CancelDcnJob(CancelDcnJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CancelDcnJob", CancelDcnJobResponse.class);
}
/**
*本接口(CloneAccount)用于克隆实例账户。
* @param req CloneAccountRequest
* @return CloneAccountResponse
* @throws TencentCloudSDKException
*/
public CloneAccountResponse CloneAccount(CloneAccountRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CloneAccount", CloneAccountResponse.class);
}
/**
*本接口(CloseDBExtranetAccess)用于关闭云数据库实例的外网访问。关闭外网访问后,外网地址将不可访问,查询实例列表接口将不返回对应实例的外网域名和端口信息。
* @param req CloseDBExtranetAccessRequest
* @return CloseDBExtranetAccessResponse
* @throws TencentCloudSDKException
*/
public CloseDBExtranetAccessResponse CloseDBExtranetAccess(CloseDBExtranetAccessRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CloseDBExtranetAccess", CloseDBExtranetAccessResponse.class);
}
/**
*本接口(CopyAccountPrivileges)用于复制云数据库账号的权限。
注意:相同用户名,不同Host是不同的账号,Readonly属性相同的账号之间才能复制权限。
* @param req CopyAccountPrivilegesRequest
* @return CopyAccountPrivilegesResponse
* @throws TencentCloudSDKException
*/
public CopyAccountPrivilegesResponse CopyAccountPrivileges(CopyAccountPrivilegesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CopyAccountPrivileges", CopyAccountPrivilegesResponse.class);
}
/**
*本接口(CreateAccount)用于创建云数据库账号。一个实例可以创建多个不同的账号,相同的用户名+不同的host是不同的账号。
* @param req CreateAccountRequest
* @return CreateAccountResponse
* @throws TencentCloudSDKException
*/
public CreateAccountResponse CreateAccount(CreateAccountRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAccount", CreateAccountResponse.class);
}
/**
*本接口(CreateDCDBInstance)用于创建包年包月的TDSQL实例,可通过传入实例规格、数据库版本号、购买时长等信息创建云数据库实例。
* @param req CreateDCDBInstanceRequest
* @return CreateDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateDCDBInstanceResponse CreateDCDBInstance(CreateDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDCDBInstance", CreateDCDBInstanceResponse.class);
}
/**
*创建TDSQL独享集群实例
* @param req CreateDedicatedClusterDCDBInstanceRequest
* @return CreateDedicatedClusterDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateDedicatedClusterDCDBInstanceResponse CreateDedicatedClusterDCDBInstance(CreateDedicatedClusterDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDedicatedClusterDCDBInstance", CreateDedicatedClusterDCDBInstanceResponse.class);
}
/**
*创建TDSQL按量计费实例
* @param req CreateHourDCDBInstanceRequest
* @return CreateHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateHourDCDBInstanceResponse CreateHourDCDBInstance(CreateHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateHourDCDBInstance", CreateHourDCDBInstanceResponse.class);
}
/**
*回档TDSQL实例
* @param req CreateTmpDCDBInstanceRequest
* @return CreateTmpDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateTmpDCDBInstanceResponse CreateTmpDCDBInstance(CreateTmpDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateTmpDCDBInstance", CreateTmpDCDBInstanceResponse.class);
}
/**
*本接口(DeleteAccount)用于删除云数据库账号。用户名+host唯一确定一个账号。
* @param req DeleteAccountRequest
* @return DeleteAccountResponse
* @throws TencentCloudSDKException
*/
public DeleteAccountResponse DeleteAccount(DeleteAccountRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAccount", DeleteAccountResponse.class);
}
/**
*本接口(DescribeAccountPrivileges)用于查询云数据库账号权限。
注意:注意:相同用户名,不同Host是不同的账号。
* @param req DescribeAccountPrivilegesRequest
* @return DescribeAccountPrivilegesResponse
* @throws TencentCloudSDKException
*/
public DescribeAccountPrivilegesResponse DescribeAccountPrivileges(DescribeAccountPrivilegesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAccountPrivileges", DescribeAccountPrivilegesResponse.class);
}
/**
*本接口(DescribeAccounts)用于查询指定云数据库实例的账号列表。
* @param req DescribeAccountsRequest
* @return DescribeAccountsResponse
* @throws TencentCloudSDKException
*/
public DescribeAccountsResponse DescribeAccounts(DescribeAccountsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAccounts", DescribeAccountsResponse.class);
}
/**
*本接口(DescribeBackupFiles)用于查看备份文件列表。
* @param req DescribeBackupFilesRequest
* @return DescribeBackupFilesResponse
* @throws TencentCloudSDKException
*/
public DescribeBackupFilesResponse DescribeBackupFiles(DescribeBackupFilesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBackupFiles", DescribeBackupFilesResponse.class);
}
/**
*本接口(DescribeDBEncryptAttributes)用于查询实例数据加密状态。
* @param req DescribeDBEncryptAttributesRequest
* @return DescribeDBEncryptAttributesResponse
* @throws TencentCloudSDKException
*/
public DescribeDBEncryptAttributesResponse DescribeDBEncryptAttributes(DescribeDBEncryptAttributesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBEncryptAttributes", DescribeDBEncryptAttributesResponse.class);
}
/**
*本接口(DescribeDBLogFiles)用于获取数据库的各种日志列表,包括冷备、binlog、errlog和slowlog。
* @param req DescribeDBLogFilesRequest
* @return DescribeDBLogFilesResponse
* @throws TencentCloudSDKException
*/
public DescribeDBLogFilesResponse DescribeDBLogFiles(DescribeDBLogFilesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBLogFiles", DescribeDBLogFilesResponse.class);
}
/**
*本接口(DescribeDBParameters)用于获取数据库的当前参数设置。
* @param req DescribeDBParametersRequest
* @return DescribeDBParametersResponse
* @throws TencentCloudSDKException
*/
public DescribeDBParametersResponse DescribeDBParameters(DescribeDBParametersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBParameters", DescribeDBParametersResponse.class);
}
/**
*本接口(DescribeDBSecurityGroups)用于查询实例安全组信息
* @param req DescribeDBSecurityGroupsRequest
* @return DescribeDBSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(DescribeDBSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBSecurityGroups", DescribeDBSecurityGroupsResponse.class);
}
/**
*本接口(DescribeDBSlowLogs)用于查询慢查询日志列表。
* @param req DescribeDBSlowLogsRequest
* @return DescribeDBSlowLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeDBSlowLogsResponse DescribeDBSlowLogs(DescribeDBSlowLogsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBSlowLogs", DescribeDBSlowLogsResponse.class);
}
/**
*本接口(DescribeDBSyncMode)用于查询云数据库实例的同步模式。
* @param req DescribeDBSyncModeRequest
* @return DescribeDBSyncModeResponse
* @throws TencentCloudSDKException
*/
public DescribeDBSyncModeResponse DescribeDBSyncMode(DescribeDBSyncModeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBSyncMode", DescribeDBSyncModeResponse.class);
}
/**
*本接口(DescribeDBTmpInstances)用于获取实例回档生成的临时实例
* @param req DescribeDBTmpInstancesRequest
* @return DescribeDBTmpInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeDBTmpInstancesResponse DescribeDBTmpInstances(DescribeDBTmpInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBTmpInstances", DescribeDBTmpInstancesResponse.class);
}
/**
*本接口(DescribeDCDBInstanceDetail)用于获取TDSQL实例详情
* @param req DescribeDCDBInstanceDetailRequest
* @return DescribeDCDBInstanceDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBInstanceDetailResponse DescribeDCDBInstanceDetail(DescribeDCDBInstanceDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBInstanceDetail", DescribeDCDBInstanceDetailResponse.class);
}
/**
*本接口(DescribeDCDBInstanceNodeInfo)用于获取实例节点信息
* @param req DescribeDCDBInstanceNodeInfoRequest
* @return DescribeDCDBInstanceNodeInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBInstanceNodeInfoResponse DescribeDCDBInstanceNodeInfo(DescribeDCDBInstanceNodeInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBInstanceNodeInfo", DescribeDCDBInstanceNodeInfoResponse.class);
}
/**
*查询云数据库实例列表,支持通过项目ID、实例ID、内网地址、实例名称等来筛选实例。
如果不指定任何筛选条件,则默认返回10条实例记录,单次请求最多支持返回100条实例记录。
* @param req DescribeDCDBInstancesRequest
* @return DescribeDCDBInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBInstancesResponse DescribeDCDBInstances(DescribeDCDBInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBInstances", DescribeDCDBInstancesResponse.class);
}
/**
*本接口(DescribeDCDBPrice)用于在购买实例前,查询实例的价格。
* @param req DescribeDCDBPriceRequest
* @return DescribeDCDBPriceResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBPriceResponse DescribeDCDBPrice(DescribeDCDBPriceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBPrice", DescribeDCDBPriceResponse.class);
}
/**
*本接口(DescribeDCDBRenewalPrice)用于在续费分布式数据库实例时,查询续费的价格。
* @param req DescribeDCDBRenewalPriceRequest
* @return DescribeDCDBRenewalPriceResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBRenewalPriceResponse DescribeDCDBRenewalPrice(DescribeDCDBRenewalPriceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBRenewalPrice", DescribeDCDBRenewalPriceResponse.class);
}
/**
*本接口(DescribeDCDBSaleInfo)用于查询分布式数据库可售卖的地域和可用区信息。
* @param req DescribeDCDBSaleInfoRequest
* @return DescribeDCDBSaleInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBSaleInfoResponse DescribeDCDBSaleInfo(DescribeDCDBSaleInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBSaleInfo", DescribeDCDBSaleInfoResponse.class);
}
/**
*本接口(DescribeDCDBShards)用于查询云数据库实例的分片信息。
* @param req DescribeDCDBShardsRequest
* @return DescribeDCDBShardsResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBShardsResponse DescribeDCDBShards(DescribeDCDBShardsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBShards", DescribeDCDBShardsResponse.class);
}
/**
*本接口(DescribeDCDBUpgradePrice)用于查询变配分布式数据库实例价格。
* @param req DescribeDCDBUpgradePriceRequest
* @return DescribeDCDBUpgradePriceResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBUpgradePriceResponse DescribeDCDBUpgradePrice(DescribeDCDBUpgradePriceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBUpgradePrice", DescribeDCDBUpgradePriceResponse.class);
}
/**
*本接口(DescribeDatabaseObjects)用于查询云数据库实例的数据库中的对象列表,包含表、存储过程、视图和函数。
* @param req DescribeDatabaseObjectsRequest
* @return DescribeDatabaseObjectsResponse
* @throws TencentCloudSDKException
*/
public DescribeDatabaseObjectsResponse DescribeDatabaseObjects(DescribeDatabaseObjectsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDatabaseObjects", DescribeDatabaseObjectsResponse.class);
}
/**
*本接口(DescribeDatabaseTable)用于查询云数据库实例的表信息。
* @param req DescribeDatabaseTableRequest
* @return DescribeDatabaseTableResponse
* @throws TencentCloudSDKException
*/
public DescribeDatabaseTableResponse DescribeDatabaseTable(DescribeDatabaseTableRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDatabaseTable", DescribeDatabaseTableResponse.class);
}
/**
*本接口(DescribeDatabases)用于查询云数据库实例的数据库列表。
* @param req DescribeDatabasesRequest
* @return DescribeDatabasesResponse
* @throws TencentCloudSDKException
*/
public DescribeDatabasesResponse DescribeDatabases(DescribeDatabasesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDatabases", DescribeDatabasesResponse.class);
}
/**
*获取实例灾备详情
* @param req DescribeDcnDetailRequest
* @return DescribeDcnDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeDcnDetailResponse DescribeDcnDetail(DescribeDcnDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDcnDetail", DescribeDcnDetailResponse.class);
}
/**
*本接口(DescribeFileDownloadUrl)用于获取数据库指定备份或日志文件的下载连接。
* @param req DescribeFileDownloadUrlRequest
* @return DescribeFileDownloadUrlResponse
* @throws TencentCloudSDKException
*/
public DescribeFileDownloadUrlResponse DescribeFileDownloadUrl(DescribeFileDownloadUrlRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeFileDownloadUrl", DescribeFileDownloadUrlResponse.class);
}
/**
*本接口(DescribeFlow)用于查询流程状态
* @param req DescribeFlowRequest
* @return DescribeFlowResponse
* @throws TencentCloudSDKException
*/
public DescribeFlowResponse DescribeFlow(DescribeFlowRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeFlow", DescribeFlowResponse.class);
}
/**
*本接口(DescribeLogFileRetentionPeriod)用于查看数据库备份日志的备份天数的设置情况。
* @param req DescribeLogFileRetentionPeriodRequest
* @return DescribeLogFileRetentionPeriodResponse
* @throws TencentCloudSDKException
*/
public DescribeLogFileRetentionPeriodResponse DescribeLogFileRetentionPeriod(DescribeLogFileRetentionPeriodRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeLogFileRetentionPeriod", DescribeLogFileRetentionPeriodResponse.class);
}
/**
*本接口(DescribeOrders)用于查询分布式数据库订单信息。传入订单ID来查询订单关联的分布式数据库实例,和对应的任务流程ID。
* @param req DescribeOrdersRequest
* @return DescribeOrdersResponse
* @throws TencentCloudSDKException
*/
public DescribeOrdersResponse DescribeOrders(DescribeOrdersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeOrders", DescribeOrdersResponse.class);
}
/**
*本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息
* @param req DescribeProjectSecurityGroupsRequest
* @return DescribeProjectSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeProjectSecurityGroupsResponse DescribeProjectSecurityGroups(DescribeProjectSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProjectSecurityGroups", DescribeProjectSecurityGroupsResponse.class);
}
/**
*本接口(DescribeProjects)用于查询项目列表
* @param req DescribeProjectsRequest
* @return DescribeProjectsResponse
* @throws TencentCloudSDKException
*/
public DescribeProjectsResponse DescribeProjects(DescribeProjectsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProjects", DescribeProjectsResponse.class);
}
/**
*查询可创建的分布式数据库可售卖的分片规格配置。
* @param req DescribeShardSpecRequest
* @return DescribeShardSpecResponse
* @throws TencentCloudSDKException
*/
public DescribeShardSpecResponse DescribeShardSpec(DescribeShardSpecRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeShardSpec", DescribeShardSpecResponse.class);
}
/**
*本接口(DescribeUserTasks)用于拉取用户任务列表
* @param req DescribeUserTasksRequest
* @return DescribeUserTasksResponse
* @throws TencentCloudSDKException
*/
public DescribeUserTasksResponse DescribeUserTasks(DescribeUserTasksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeUserTasks", DescribeUserTasksResponse.class);
}
/**
*本接口(DestroyDCDBInstance)用于销毁已隔离的TDSQL包年包月实例。
* @param req DestroyDCDBInstanceRequest
* @return DestroyDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public DestroyDCDBInstanceResponse DestroyDCDBInstance(DestroyDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DestroyDCDBInstance", DestroyDCDBInstanceResponse.class);
}
/**
*本接口(DestroyHourDCDBInstance)用于TDSQL销毁按量计费实例。
* @param req DestroyHourDCDBInstanceRequest
* @return DestroyHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public DestroyHourDCDBInstanceResponse DestroyHourDCDBInstance(DestroyHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DestroyHourDCDBInstance", DestroyHourDCDBInstanceResponse.class);
}
/**
*本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
* @param req DisassociateSecurityGroupsRequest
* @return DisassociateSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DisassociateSecurityGroupsResponse DisassociateSecurityGroups(DisassociateSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisassociateSecurityGroups", DisassociateSecurityGroupsResponse.class);
}
/**
*相当于在所有分片的mysqld中执行flush logs,完成切分的binlog将展示在各个分片控制台binlog列表里。
* @param req FlushBinlogRequest
* @return FlushBinlogResponse
* @throws TencentCloudSDKException
*/
public FlushBinlogResponse FlushBinlog(FlushBinlogRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "FlushBinlog", FlushBinlogResponse.class);
}
/**
*本接口(GrantAccountPrivileges)用于给云数据库账号赋权。
注意:相同用户名,不同Host是不同的账号。
* @param req GrantAccountPrivilegesRequest
* @return GrantAccountPrivilegesResponse
* @throws TencentCloudSDKException
*/
public GrantAccountPrivilegesResponse GrantAccountPrivileges(GrantAccountPrivilegesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GrantAccountPrivileges", GrantAccountPrivilegesResponse.class);
}
/**
*本接口(InitDCDBInstances)用于初始化云数据库实例,包括设置默认字符集、表名大小写敏感等。
* @param req InitDCDBInstancesRequest
* @return InitDCDBInstancesResponse
* @throws TencentCloudSDKException
*/
public InitDCDBInstancesResponse InitDCDBInstances(InitDCDBInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "InitDCDBInstances", InitDCDBInstancesResponse.class);
}
/**
*本接口(IsolateDCDBInstance)用于隔离分布式数据库TDSQL实例(包年包月),隔离后不能通过IP和端口访问数据库。隔离的实例可在回收站中进行开机。若为欠费隔离,请尽快进行充值。
* @param req IsolateDCDBInstanceRequest
* @return IsolateDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public IsolateDCDBInstanceResponse IsolateDCDBInstance(IsolateDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "IsolateDCDBInstance", IsolateDCDBInstanceResponse.class);
}
/**
*本接口(IsolateDedicatedDBInstance)用于隔离独享云数据库实例。
* @param req IsolateDedicatedDBInstanceRequest
* @return IsolateDedicatedDBInstanceResponse
* @throws TencentCloudSDKException
*/
public IsolateDedicatedDBInstanceResponse IsolateDedicatedDBInstance(IsolateDedicatedDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "IsolateDedicatedDBInstance", IsolateDedicatedDBInstanceResponse.class);
}
/**
*隔离TDSQL按量计费实例
* @param req IsolateHourDCDBInstanceRequest
* @return IsolateHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public IsolateHourDCDBInstanceResponse IsolateHourDCDBInstance(IsolateHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "IsolateHourDCDBInstance", IsolateHourDCDBInstanceResponse.class);
}
/**
*本接口(KillSession)用于杀死指定会话。
* @param req KillSessionRequest
* @return KillSessionResponse
* @throws TencentCloudSDKException
*/
public KillSessionResponse KillSession(KillSessionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "KillSession", KillSessionResponse.class);
}
/**
*修改账号的一些配置,比如 max_user_connections
* @param req ModifyAccountConfigRequest
* @return ModifyAccountConfigResponse
* @throws TencentCloudSDKException
*/
public ModifyAccountConfigResponse ModifyAccountConfig(ModifyAccountConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAccountConfig", ModifyAccountConfigResponse.class);
}
/**
*本接口(ModifyAccountDescription)用于修改云数据库账号备注。
注意:相同用户名,不同Host是不同的账号。
* @param req ModifyAccountDescriptionRequest
* @return ModifyAccountDescriptionResponse
* @throws TencentCloudSDKException
*/
public ModifyAccountDescriptionResponse ModifyAccountDescription(ModifyAccountDescriptionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAccountDescription", ModifyAccountDescriptionResponse.class);
}
/**
*本接口(ModifyAccountPrivileges)用于修改云数据库的账户的权限信息。
**注意**
- 系统保留库:"mysql",只开放["SELECT"]权限
- 只读账号授予读写权限会报错
- 不传权限参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组
* @param req ModifyAccountPrivilegesRequest
* @return ModifyAccountPrivilegesResponse
* @throws TencentCloudSDKException
*/
public ModifyAccountPrivilegesResponse ModifyAccountPrivileges(ModifyAccountPrivilegesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAccountPrivileges", ModifyAccountPrivilegesResponse.class);
}
/**
*本接口(ModifyDBEncryptAttributes)用于修改实例数据加密。
* @param req ModifyDBEncryptAttributesRequest
* @return ModifyDBEncryptAttributesResponse
* @throws TencentCloudSDKException
*/
public ModifyDBEncryptAttributesResponse ModifyDBEncryptAttributes(ModifyDBEncryptAttributesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBEncryptAttributes", ModifyDBEncryptAttributesResponse.class);
}
/**
*本接口(ModifyDBInstanceName)用于修改实例名字
* @param req ModifyDBInstanceNameRequest
* @return ModifyDBInstanceNameResponse
* @throws TencentCloudSDKException
*/
public ModifyDBInstanceNameResponse ModifyDBInstanceName(ModifyDBInstanceNameRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBInstanceName", ModifyDBInstanceNameResponse.class);
}
/**
*本接口(ModifyDBInstanceSecurityGroups)用于修改云数据库安全组
* @param req ModifyDBInstanceSecurityGroupsRequest
* @return ModifyDBInstanceSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public ModifyDBInstanceSecurityGroupsResponse ModifyDBInstanceSecurityGroups(ModifyDBInstanceSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBInstanceSecurityGroups", ModifyDBInstanceSecurityGroupsResponse.class);
}
/**
*本接口(ModifyDBInstancesProject)用于修改云数据库实例所属项目。
* @param req ModifyDBInstancesProjectRequest
* @return ModifyDBInstancesProjectResponse
* @throws TencentCloudSDKException
*/
public ModifyDBInstancesProjectResponse ModifyDBInstancesProject(ModifyDBInstancesProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBInstancesProject", ModifyDBInstancesProjectResponse.class);
}
/**
*本接口(ModifyDBParameters)用于修改数据库参数。
* @param req ModifyDBParametersRequest
* @return ModifyDBParametersResponse
* @throws TencentCloudSDKException
*/
public ModifyDBParametersResponse ModifyDBParameters(ModifyDBParametersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBParameters", ModifyDBParametersResponse.class);
}
/**
*本接口(ModifyDBSyncMode)用于修改云数据库实例的同步模式。
* @param req ModifyDBSyncModeRequest
* @return ModifyDBSyncModeResponse
* @throws TencentCloudSDKException
*/
public ModifyDBSyncModeResponse ModifyDBSyncMode(ModifyDBSyncModeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBSyncMode", ModifyDBSyncModeResponse.class);
}
/**
*本接口(ModifyInstanceNetwork)用于修改实例所属网络。
* @param req ModifyInstanceNetworkRequest
* @return ModifyInstanceNetworkResponse
* @throws TencentCloudSDKException
*/
public ModifyInstanceNetworkResponse ModifyInstanceNetwork(ModifyInstanceNetworkRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyInstanceNetwork", ModifyInstanceNetworkResponse.class);
}
/**
*本接口(ModifyInstanceVip)用于修改实例Vip
* @param req ModifyInstanceVipRequest
* @return ModifyInstanceVipResponse
* @throws TencentCloudSDKException
*/
public ModifyInstanceVipResponse ModifyInstanceVip(ModifyInstanceVipRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyInstanceVip", ModifyInstanceVipResponse.class);
}
/**
*本接口(ModifyInstanceVport)用于修改实例VPORT
* @param req ModifyInstanceVportRequest
* @return ModifyInstanceVportResponse
* @throws TencentCloudSDKException
*/
public ModifyInstanceVportResponse ModifyInstanceVport(ModifyInstanceVportRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyInstanceVport", ModifyInstanceVportResponse.class);
}
/**
*本接口(ModifyRealServerAccessStrategy)用于修改云数据库的VPCGW到RS的访问策略。
**注意**
- 修改策略后只对新建立的连接生效,老连接不受影响
- 就近访问只针对实例是跨可用区部署有用,单可用区部署实例就近与否并无作用
- DB每个Node对应一个proxy,如果开启就近访问,将会把连接集中到对应可用区的proxy上,可能造成热点问题,这种情况下如果是线上业务,请务必根据自己的业务请求量测试符合预期后再进行就近策略变更
* @param req ModifyRealServerAccessStrategyRequest
* @return ModifyRealServerAccessStrategyResponse
* @throws TencentCloudSDKException
*/
public ModifyRealServerAccessStrategyResponse ModifyRealServerAccessStrategy(ModifyRealServerAccessStrategyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRealServerAccessStrategy", ModifyRealServerAccessStrategyResponse.class);
}
/**
*本接口(OpenDBExtranetAccess)用于开通云数据库实例的外网访问。开通外网访问后,您可通过外网域名和端口访问实例,可使用查询实例列表接口获取外网域名和端口信息。
* @param req OpenDBExtranetAccessRequest
* @return OpenDBExtranetAccessResponse
* @throws TencentCloudSDKException
*/
public OpenDBExtranetAccessResponse OpenDBExtranetAccess(OpenDBExtranetAccessRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "OpenDBExtranetAccess", OpenDBExtranetAccessResponse.class);
}
/**
*本接口(RenewDCDBInstance)用于续费分布式数据库实例。
* @param req RenewDCDBInstanceRequest
* @return RenewDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public RenewDCDBInstanceResponse RenewDCDBInstance(RenewDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RenewDCDBInstance", RenewDCDBInstanceResponse.class);
}
/**
*本接口(ResetAccountPassword)用于重置云数据库账号的密码。
注意:相同用户名,不同Host是不同的账号。
* @param req ResetAccountPasswordRequest
* @return ResetAccountPasswordResponse
* @throws TencentCloudSDKException
*/
public ResetAccountPasswordResponse ResetAccountPassword(ResetAccountPasswordRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ResetAccountPassword", ResetAccountPasswordResponse.class);
}
/**
*本接口(SwitchDBInstanceHA)用于实例主备切换。
* @param req SwitchDBInstanceHARequest
* @return SwitchDBInstanceHAResponse
* @throws TencentCloudSDKException
*/
public SwitchDBInstanceHAResponse SwitchDBInstanceHA(SwitchDBInstanceHARequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SwitchDBInstanceHA", SwitchDBInstanceHAResponse.class);
}
/**
*本接口(TerminateDedicatedDBInstance)用于销毁已隔离的独享分布式数据库实例。
* @param req TerminateDedicatedDBInstanceRequest
* @return TerminateDedicatedDBInstanceResponse
* @throws TencentCloudSDKException
*/
public TerminateDedicatedDBInstanceResponse TerminateDedicatedDBInstance(TerminateDedicatedDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "TerminateDedicatedDBInstance", TerminateDedicatedDBInstanceResponse.class);
}
/**
*本接口(UpgradeDCDBInstance)用于升级分布式数据库实例。本接口完成下单和支付两个动作,如果发生支付失败的错误,调用用户账户相关接口中的支付订单接口(PayDeals)重新支付即可。
* @param req UpgradeDCDBInstanceRequest
* @return UpgradeDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public UpgradeDCDBInstanceResponse UpgradeDCDBInstance(UpgradeDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpgradeDCDBInstance", UpgradeDCDBInstanceResponse.class);
}
/**
*本接口(UpgradeDedicatedDCDBInstance)用于升级TDSQL独享集群实例
* @param req UpgradeDedicatedDCDBInstanceRequest
* @return UpgradeDedicatedDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public UpgradeDedicatedDCDBInstanceResponse UpgradeDedicatedDCDBInstance(UpgradeDedicatedDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpgradeDedicatedDCDBInstance", UpgradeDedicatedDCDBInstanceResponse.class);
}
/**
*本接口(UpgradeHourDCDBInstance)用于升级分布式数据库TDSQL按量计费实例。
* @param req UpgradeHourDCDBInstanceRequest
* @return UpgradeHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public UpgradeHourDCDBInstanceResponse UpgradeHourDCDBInstance(UpgradeHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpgradeHourDCDBInstance", UpgradeHourDCDBInstanceResponse.class);
}
}