tencentcloud-sdk-python-intl-en 3.0.1090__py2.py3-none-any.whl → 3.0.1092__py2.py3-none-any.whl

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.

Potentially problematic release.


This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

@@ -51,6 +51,29 @@ class DtsClient(AbstractClient):
51
51
  raise TencentCloudSDKException(type(e).__name__, str(e))
52
52
 
53
53
 
54
+ def ConfigureSubscribeJob(self, request):
55
+ """This API is used to configure data subscription instances.
56
+
57
+ :param request: Request instance for ConfigureSubscribeJob.
58
+ :type request: :class:`tencentcloud.dts.v20211206.models.ConfigureSubscribeJobRequest`
59
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ConfigureSubscribeJobResponse`
60
+
61
+ """
62
+ try:
63
+ params = request._serialize()
64
+ headers = request.headers
65
+ body = self.call("ConfigureSubscribeJob", params, headers=headers)
66
+ response = json.loads(body)
67
+ model = models.ConfigureSubscribeJobResponse()
68
+ model._deserialize(response["Response"])
69
+ return model
70
+ except Exception as e:
71
+ if isinstance(e, TencentCloudSDKException):
72
+ raise
73
+ else:
74
+ raise TencentCloudSDKException(type(e).__name__, str(e))
75
+
76
+
54
77
  def ConfigureSyncJob(self, request):
55
78
  """This API is used to configure a sync task.
56
79
 
@@ -166,6 +189,29 @@ class DtsClient(AbstractClient):
166
189
  raise TencentCloudSDKException(type(e).__name__, str(e))
167
190
 
168
191
 
192
+ def CreateConsumerGroup(self, request):
193
+ """This API is used to creat a consumer group for the subscription instance.
194
+
195
+ :param request: Request instance for CreateConsumerGroup.
196
+ :type request: :class:`tencentcloud.dts.v20211206.models.CreateConsumerGroupRequest`
197
+ :rtype: :class:`tencentcloud.dts.v20211206.models.CreateConsumerGroupResponse`
198
+
199
+ """
200
+ try:
201
+ params = request._serialize()
202
+ headers = request.headers
203
+ body = self.call("CreateConsumerGroup", params, headers=headers)
204
+ response = json.loads(body)
205
+ model = models.CreateConsumerGroupResponse()
206
+ model._deserialize(response["Response"])
207
+ return model
208
+ except Exception as e:
209
+ if isinstance(e, TencentCloudSDKException):
210
+ raise
211
+ else:
212
+ raise TencentCloudSDKException(type(e).__name__, str(e))
213
+
214
+
169
215
  def CreateMigrateCheckJob(self, request):
170
216
  """This API is used to verify a migration task.
171
217
  Before migration, you should call this API to create a check task. Migration will start only if the check succeeds. You can view the check result through the `DescribeMigrationCheckJob` API.
@@ -237,6 +283,52 @@ class DtsClient(AbstractClient):
237
283
  raise TencentCloudSDKException(type(e).__name__, str(e))
238
284
 
239
285
 
286
+ def CreateSubscribe(self, request):
287
+ """This API is used to create a data subscription task.
288
+
289
+ :param request: Request instance for CreateSubscribe.
290
+ :type request: :class:`tencentcloud.dts.v20211206.models.CreateSubscribeRequest`
291
+ :rtype: :class:`tencentcloud.dts.v20211206.models.CreateSubscribeResponse`
292
+
293
+ """
294
+ try:
295
+ params = request._serialize()
296
+ headers = request.headers
297
+ body = self.call("CreateSubscribe", params, headers=headers)
298
+ response = json.loads(body)
299
+ model = models.CreateSubscribeResponse()
300
+ model._deserialize(response["Response"])
301
+ return model
302
+ except Exception as e:
303
+ if isinstance(e, TencentCloudSDKException):
304
+ raise
305
+ else:
306
+ raise TencentCloudSDKException(type(e).__name__, str(e))
307
+
308
+
309
+ def CreateSubscribeCheckJob(self, request):
310
+ """This API is used to create a subscription check task. The task must have successfully called the ConfigureSubscribeJob interface to configure all necessary information before starting the check.
311
+
312
+ :param request: Request instance for CreateSubscribeCheckJob.
313
+ :type request: :class:`tencentcloud.dts.v20211206.models.CreateSubscribeCheckJobRequest`
314
+ :rtype: :class:`tencentcloud.dts.v20211206.models.CreateSubscribeCheckJobResponse`
315
+
316
+ """
317
+ try:
318
+ params = request._serialize()
319
+ headers = request.headers
320
+ body = self.call("CreateSubscribeCheckJob", params, headers=headers)
321
+ response = json.loads(body)
322
+ model = models.CreateSubscribeCheckJobResponse()
323
+ model._deserialize(response["Response"])
324
+ return model
325
+ except Exception as e:
326
+ if isinstance(e, TencentCloudSDKException):
327
+ raise
328
+ else:
329
+ raise TencentCloudSDKException(type(e).__name__, str(e))
330
+
331
+
240
332
  def CreateSyncJob(self, request):
241
333
  """This API is used to create a sync task.
242
334
 
@@ -283,6 +375,29 @@ class DtsClient(AbstractClient):
283
375
  raise TencentCloudSDKException(type(e).__name__, str(e))
284
376
 
285
377
 
378
+ def DeleteConsumerGroup(self, request):
379
+ """This API is used to delete a consumer group of a subscription task.
380
+
381
+ :param request: Request instance for DeleteConsumerGroup.
382
+ :type request: :class:`tencentcloud.dts.v20211206.models.DeleteConsumerGroupRequest`
383
+ :rtype: :class:`tencentcloud.dts.v20211206.models.DeleteConsumerGroupResponse`
384
+
385
+ """
386
+ try:
387
+ params = request._serialize()
388
+ headers = request.headers
389
+ body = self.call("DeleteConsumerGroup", params, headers=headers)
390
+ response = json.loads(body)
391
+ model = models.DeleteConsumerGroupResponse()
392
+ model._deserialize(response["Response"])
393
+ return model
394
+ except Exception as e:
395
+ if isinstance(e, TencentCloudSDKException):
396
+ raise
397
+ else:
398
+ raise TencentCloudSDKException(type(e).__name__, str(e))
399
+
400
+
286
401
  def DescribeCheckSyncJobResult(self, request):
287
402
  """This API is used to query the result of the sync check task and check the required parameters and peripheral configurations.
288
403
 
@@ -352,6 +467,29 @@ class DtsClient(AbstractClient):
352
467
  raise TencentCloudSDKException(type(e).__name__, str(e))
353
468
 
354
469
 
470
+ def DescribeConsumerGroups(self, request):
471
+ """This API is used to get consumer group details for the subscription instance configuration.
472
+
473
+ :param request: Request instance for DescribeConsumerGroups.
474
+ :type request: :class:`tencentcloud.dts.v20211206.models.DescribeConsumerGroupsRequest`
475
+ :rtype: :class:`tencentcloud.dts.v20211206.models.DescribeConsumerGroupsResponse`
476
+
477
+ """
478
+ try:
479
+ params = request._serialize()
480
+ headers = request.headers
481
+ body = self.call("DescribeConsumerGroups", params, headers=headers)
482
+ response = json.loads(body)
483
+ model = models.DescribeConsumerGroupsResponse()
484
+ model._deserialize(response["Response"])
485
+ return model
486
+ except Exception as e:
487
+ if isinstance(e, TencentCloudSDKException):
488
+ raise
489
+ else:
490
+ raise TencentCloudSDKException(type(e).__name__, str(e))
491
+
492
+
355
493
  def DescribeMigrateDBInstances(self, request):
356
494
  """This API is used to query migratable database instances.
357
495
 
@@ -469,6 +607,121 @@ class DtsClient(AbstractClient):
469
607
  raise TencentCloudSDKException(type(e).__name__, str(e))
470
608
 
471
609
 
610
+ def DescribeOffsetByTime(self, request):
611
+ """This API is used to query the latest offset before the specified time in KafkaTopic.The offset output by the interface is the closest offset to this time.If the input time is much later than the current time, the output is equivalent to the latest offset;If the input time is much earlier than the current time, the output is equivalent to the oldest offset;If the input is empty, the default time is 0, which is the oldest offset to be queried.
612
+
613
+ :param request: Request instance for DescribeOffsetByTime.
614
+ :type request: :class:`tencentcloud.dts.v20211206.models.DescribeOffsetByTimeRequest`
615
+ :rtype: :class:`tencentcloud.dts.v20211206.models.DescribeOffsetByTimeResponse`
616
+
617
+ """
618
+ try:
619
+ params = request._serialize()
620
+ headers = request.headers
621
+ body = self.call("DescribeOffsetByTime", params, headers=headers)
622
+ response = json.loads(body)
623
+ model = models.DescribeOffsetByTimeResponse()
624
+ model._deserialize(response["Response"])
625
+ return model
626
+ except Exception as e:
627
+ if isinstance(e, TencentCloudSDKException):
628
+ raise
629
+ else:
630
+ raise TencentCloudSDKException(type(e).__name__, str(e))
631
+
632
+
633
+ def DescribeSubscribeCheckJob(self, request):
634
+ """This API is used to query the results of a subscription check task.
635
+
636
+ :param request: Request instance for DescribeSubscribeCheckJob.
637
+ :type request: :class:`tencentcloud.dts.v20211206.models.DescribeSubscribeCheckJobRequest`
638
+ :rtype: :class:`tencentcloud.dts.v20211206.models.DescribeSubscribeCheckJobResponse`
639
+
640
+ """
641
+ try:
642
+ params = request._serialize()
643
+ headers = request.headers
644
+ body = self.call("DescribeSubscribeCheckJob", params, headers=headers)
645
+ response = json.loads(body)
646
+ model = models.DescribeSubscribeCheckJobResponse()
647
+ model._deserialize(response["Response"])
648
+ return model
649
+ except Exception as e:
650
+ if isinstance(e, TencentCloudSDKException):
651
+ raise
652
+ else:
653
+ raise TencentCloudSDKException(type(e).__name__, str(e))
654
+
655
+
656
+ def DescribeSubscribeDetail(self, request):
657
+ """This API is used to get the configuration information of the data subscription instance.
658
+
659
+ :param request: Request instance for DescribeSubscribeDetail.
660
+ :type request: :class:`tencentcloud.dts.v20211206.models.DescribeSubscribeDetailRequest`
661
+ :rtype: :class:`tencentcloud.dts.v20211206.models.DescribeSubscribeDetailResponse`
662
+
663
+ """
664
+ try:
665
+ params = request._serialize()
666
+ headers = request.headers
667
+ body = self.call("DescribeSubscribeDetail", params, headers=headers)
668
+ response = json.loads(body)
669
+ model = models.DescribeSubscribeDetailResponse()
670
+ model._deserialize(response["Response"])
671
+ return model
672
+ except Exception as e:
673
+ if isinstance(e, TencentCloudSDKException):
674
+ raise
675
+ else:
676
+ raise TencentCloudSDKException(type(e).__name__, str(e))
677
+
678
+
679
+ def DescribeSubscribeJobs(self, request):
680
+ """This API is used to get the information list of data subscription instances. Pagination is enabled by default with 20 results returned each time.
681
+
682
+ :param request: Request instance for DescribeSubscribeJobs.
683
+ :type request: :class:`tencentcloud.dts.v20211206.models.DescribeSubscribeJobsRequest`
684
+ :rtype: :class:`tencentcloud.dts.v20211206.models.DescribeSubscribeJobsResponse`
685
+
686
+ """
687
+ try:
688
+ params = request._serialize()
689
+ headers = request.headers
690
+ body = self.call("DescribeSubscribeJobs", params, headers=headers)
691
+ response = json.loads(body)
692
+ model = models.DescribeSubscribeJobsResponse()
693
+ model._deserialize(response["Response"])
694
+ return model
695
+ except Exception as e:
696
+ if isinstance(e, TencentCloudSDKException):
697
+ raise
698
+ else:
699
+ raise TencentCloudSDKException(type(e).__name__, str(e))
700
+
701
+
702
+ def DescribeSubscribeReturnable(self, request):
703
+ """This API is used to query whether a subscription task can be terminated and returned.
704
+
705
+ :param request: Request instance for DescribeSubscribeReturnable.
706
+ :type request: :class:`tencentcloud.dts.v20211206.models.DescribeSubscribeReturnableRequest`
707
+ :rtype: :class:`tencentcloud.dts.v20211206.models.DescribeSubscribeReturnableResponse`
708
+
709
+ """
710
+ try:
711
+ params = request._serialize()
712
+ headers = request.headers
713
+ body = self.call("DescribeSubscribeReturnable", params, headers=headers)
714
+ response = json.loads(body)
715
+ model = models.DescribeSubscribeReturnableResponse()
716
+ model._deserialize(response["Response"])
717
+ return model
718
+ except Exception as e:
719
+ if isinstance(e, TencentCloudSDKException):
720
+ raise
721
+ else:
722
+ raise TencentCloudSDKException(type(e).__name__, str(e))
723
+
724
+
472
725
  def DescribeSyncJobs(self, request):
473
726
  """This API is used to query the information of a sync task.
474
727
 
@@ -492,6 +745,29 @@ class DtsClient(AbstractClient):
492
745
  raise TencentCloudSDKException(type(e).__name__, str(e))
493
746
 
494
747
 
748
+ def DestroyIsolatedSubscribe(self, request):
749
+ """This API is used to deactivate an isolated data subscription instance.
750
+
751
+ :param request: Request instance for DestroyIsolatedSubscribe.
752
+ :type request: :class:`tencentcloud.dts.v20211206.models.DestroyIsolatedSubscribeRequest`
753
+ :rtype: :class:`tencentcloud.dts.v20211206.models.DestroyIsolatedSubscribeResponse`
754
+
755
+ """
756
+ try:
757
+ params = request._serialize()
758
+ headers = request.headers
759
+ body = self.call("DestroyIsolatedSubscribe", params, headers=headers)
760
+ response = json.loads(body)
761
+ model = models.DestroyIsolatedSubscribeResponse()
762
+ model._deserialize(response["Response"])
763
+ return model
764
+ except Exception as e:
765
+ if isinstance(e, TencentCloudSDKException):
766
+ raise
767
+ else:
768
+ raise TencentCloudSDKException(type(e).__name__, str(e))
769
+
770
+
495
771
  def DestroyMigrateJob(self, request):
496
772
  """This API is used to delete a data migration task. For a billed task, you must first call the `IsolateMigrateJob` API to isolate it and make sure that it is in **Isolated** status before calling this API to delete it. For a free task, you can directly call the `IsolateMigrateJob` API to delete it.
497
773
 
@@ -561,6 +837,29 @@ class DtsClient(AbstractClient):
561
837
  raise TencentCloudSDKException(type(e).__name__, str(e))
562
838
 
563
839
 
840
+ def IsolateSubscribe(self, request):
841
+ """This API is used to isolate the subscription task. After calling, the subscription task will not be available. Pay-as-you-go tasks will stop billing, and monthly subscription tasks will refund automatically.
842
+
843
+ :param request: Request instance for IsolateSubscribe.
844
+ :type request: :class:`tencentcloud.dts.v20211206.models.IsolateSubscribeRequest`
845
+ :rtype: :class:`tencentcloud.dts.v20211206.models.IsolateSubscribeResponse`
846
+
847
+ """
848
+ try:
849
+ params = request._serialize()
850
+ headers = request.headers
851
+ body = self.call("IsolateSubscribe", params, headers=headers)
852
+ response = json.loads(body)
853
+ model = models.IsolateSubscribeResponse()
854
+ model._deserialize(response["Response"])
855
+ return model
856
+ except Exception as e:
857
+ if isinstance(e, TencentCloudSDKException):
858
+ raise
859
+ else:
860
+ raise TencentCloudSDKException(type(e).__name__, str(e))
861
+
862
+
564
863
  def IsolateSyncJob(self, request):
565
864
  """This API is used to isolate a sync task. After the task is isolated, you can call the `DescribeSyncJobs` API to query its status, call `RecoverSyncJob` to recover it, or directly delete it. For a free task, calling this API will directly delete it permanently.
566
865
 
@@ -630,6 +929,52 @@ class DtsClient(AbstractClient):
630
929
  raise TencentCloudSDKException(type(e).__name__, str(e))
631
930
 
632
931
 
932
+ def ModifyConsumerGroupDescription(self, request):
933
+ """This API is used to modify the description of the specified subscription consumption group.
934
+
935
+ :param request: Request instance for ModifyConsumerGroupDescription.
936
+ :type request: :class:`tencentcloud.dts.v20211206.models.ModifyConsumerGroupDescriptionRequest`
937
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ModifyConsumerGroupDescriptionResponse`
938
+
939
+ """
940
+ try:
941
+ params = request._serialize()
942
+ headers = request.headers
943
+ body = self.call("ModifyConsumerGroupDescription", params, headers=headers)
944
+ response = json.loads(body)
945
+ model = models.ModifyConsumerGroupDescriptionResponse()
946
+ model._deserialize(response["Response"])
947
+ return model
948
+ except Exception as e:
949
+ if isinstance(e, TencentCloudSDKException):
950
+ raise
951
+ else:
952
+ raise TencentCloudSDKException(type(e).__name__, str(e))
953
+
954
+
955
+ def ModifyConsumerGroupPassword(self, request):
956
+ """This API is used to modify the password of the specified subscription consumer group.
957
+
958
+ :param request: Request instance for ModifyConsumerGroupPassword.
959
+ :type request: :class:`tencentcloud.dts.v20211206.models.ModifyConsumerGroupPasswordRequest`
960
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ModifyConsumerGroupPasswordResponse`
961
+
962
+ """
963
+ try:
964
+ params = request._serialize()
965
+ headers = request.headers
966
+ body = self.call("ModifyConsumerGroupPassword", params, headers=headers)
967
+ response = json.loads(body)
968
+ model = models.ModifyConsumerGroupPasswordResponse()
969
+ model._deserialize(response["Response"])
970
+ return model
971
+ except Exception as e:
972
+ if isinstance(e, TencentCloudSDKException):
973
+ raise
974
+ else:
975
+ raise TencentCloudSDKException(type(e).__name__, str(e))
976
+
977
+
633
978
  def ModifyMigrateJobSpec(self, request):
634
979
  """This API is used to adjust the specification of a pay-as-you-go task. After calling this API, you can call the `DescribeMigrationJobs` API to query the latest task status.
635
980
 
@@ -676,6 +1021,52 @@ class DtsClient(AbstractClient):
676
1021
  raise TencentCloudSDKException(type(e).__name__, str(e))
677
1022
 
678
1023
 
1024
+ def ModifyMigrateRateLimit(self, request):
1025
+ """This API is used to restrict the rate limit of the task, when a user finds that migration task has a large impact on the load of user's database.
1026
+
1027
+ :param request: Request instance for ModifyMigrateRateLimit.
1028
+ :type request: :class:`tencentcloud.dts.v20211206.models.ModifyMigrateRateLimitRequest`
1029
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ModifyMigrateRateLimitResponse`
1030
+
1031
+ """
1032
+ try:
1033
+ params = request._serialize()
1034
+ headers = request.headers
1035
+ body = self.call("ModifyMigrateRateLimit", params, headers=headers)
1036
+ response = json.loads(body)
1037
+ model = models.ModifyMigrateRateLimitResponse()
1038
+ model._deserialize(response["Response"])
1039
+ return model
1040
+ except Exception as e:
1041
+ if isinstance(e, TencentCloudSDKException):
1042
+ raise
1043
+ else:
1044
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1045
+
1046
+
1047
+ def ModifyMigrateRuntimeAttribute(self, request):
1048
+ """This API is used to modify task runtime attributes. This interface is different from the configuration class interface and does not perform state machine evaluation.
1049
+
1050
+ :param request: Request instance for ModifyMigrateRuntimeAttribute.
1051
+ :type request: :class:`tencentcloud.dts.v20211206.models.ModifyMigrateRuntimeAttributeRequest`
1052
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ModifyMigrateRuntimeAttributeResponse`
1053
+
1054
+ """
1055
+ try:
1056
+ params = request._serialize()
1057
+ headers = request.headers
1058
+ body = self.call("ModifyMigrateRuntimeAttribute", params, headers=headers)
1059
+ response = json.loads(body)
1060
+ model = models.ModifyMigrateRuntimeAttributeResponse()
1061
+ model._deserialize(response["Response"])
1062
+ return model
1063
+ except Exception as e:
1064
+ if isinstance(e, TencentCloudSDKException):
1065
+ raise
1066
+ else:
1067
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1068
+
1069
+
679
1070
  def ModifyMigrationJob(self, request):
680
1071
  """This API is used to configure a migration task. After it is configured successfully, you can call the `CreateMigrationCheckJob` API to create a check task, and only after it passes the check can it be started.
681
1072
 
@@ -699,6 +1090,75 @@ class DtsClient(AbstractClient):
699
1090
  raise TencentCloudSDKException(type(e).__name__, str(e))
700
1091
 
701
1092
 
1093
+ def ModifySubscribeAutoRenewFlag(self, request):
1094
+ """This API is used to modify the auto-renewal flag of your subscription instance. Only the monthly subscription modification task makes sense. After modifying, the pay-as-you-go task has no impact.
1095
+
1096
+ :param request: Request instance for ModifySubscribeAutoRenewFlag.
1097
+ :type request: :class:`tencentcloud.dts.v20211206.models.ModifySubscribeAutoRenewFlagRequest`
1098
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ModifySubscribeAutoRenewFlagResponse`
1099
+
1100
+ """
1101
+ try:
1102
+ params = request._serialize()
1103
+ headers = request.headers
1104
+ body = self.call("ModifySubscribeAutoRenewFlag", params, headers=headers)
1105
+ response = json.loads(body)
1106
+ model = models.ModifySubscribeAutoRenewFlagResponse()
1107
+ model._deserialize(response["Response"])
1108
+ return model
1109
+ except Exception as e:
1110
+ if isinstance(e, TencentCloudSDKException):
1111
+ raise
1112
+ else:
1113
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1114
+
1115
+
1116
+ def ModifySubscribeName(self, request):
1117
+ """This API is used to modify the name of the data subscription instance.
1118
+
1119
+ :param request: Request instance for ModifySubscribeName.
1120
+ :type request: :class:`tencentcloud.dts.v20211206.models.ModifySubscribeNameRequest`
1121
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ModifySubscribeNameResponse`
1122
+
1123
+ """
1124
+ try:
1125
+ params = request._serialize()
1126
+ headers = request.headers
1127
+ body = self.call("ModifySubscribeName", params, headers=headers)
1128
+ response = json.loads(body)
1129
+ model = models.ModifySubscribeNameResponse()
1130
+ model._deserialize(response["Response"])
1131
+ return model
1132
+ except Exception as e:
1133
+ if isinstance(e, TencentCloudSDKException):
1134
+ raise
1135
+ else:
1136
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1137
+
1138
+
1139
+ def ModifySubscribeObjects(self, request):
1140
+ """This API is used to modify the data subscription object and Kafka partition rule. For MongoDB subscription, you can also modify the output aggregation rule.
1141
+
1142
+ :param request: Request instance for ModifySubscribeObjects.
1143
+ :type request: :class:`tencentcloud.dts.v20211206.models.ModifySubscribeObjectsRequest`
1144
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ModifySubscribeObjectsResponse`
1145
+
1146
+ """
1147
+ try:
1148
+ params = request._serialize()
1149
+ headers = request.headers
1150
+ body = self.call("ModifySubscribeObjects", params, headers=headers)
1151
+ response = json.loads(body)
1152
+ model = models.ModifySubscribeObjectsResponse()
1153
+ model._deserialize(response["Response"])
1154
+ return model
1155
+ except Exception as e:
1156
+ if isinstance(e, TencentCloudSDKException):
1157
+ raise
1158
+ else:
1159
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1160
+
1161
+
702
1162
  def ModifySyncJobConfig(self, request):
703
1163
  """This API is used to modify the configuration of a data sync task after the task is started.\n Configuration modification steps: Modify sync task configuration -> Create a modification check task -> Query the check task result -> Start the configuration modification check task
704
1164
 
@@ -722,6 +1182,29 @@ class DtsClient(AbstractClient):
722
1182
  raise TencentCloudSDKException(type(e).__name__, str(e))
723
1183
 
724
1184
 
1185
+ def ModifySyncRateLimit(self, request):
1186
+ """This API is used to restrict the rate limit of the task, when a user finds that the sync task has a large impact on the load of user's database.
1187
+
1188
+ :param request: Request instance for ModifySyncRateLimit.
1189
+ :type request: :class:`tencentcloud.dts.v20211206.models.ModifySyncRateLimitRequest`
1190
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ModifySyncRateLimitResponse`
1191
+
1192
+ """
1193
+ try:
1194
+ params = request._serialize()
1195
+ headers = request.headers
1196
+ body = self.call("ModifySyncRateLimit", params, headers=headers)
1197
+ response = json.loads(body)
1198
+ model = models.ModifySyncRateLimitResponse()
1199
+ model._deserialize(response["Response"])
1200
+ return model
1201
+ except Exception as e:
1202
+ if isinstance(e, TencentCloudSDKException):
1203
+ raise
1204
+ else:
1205
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1206
+
1207
+
725
1208
  def PauseMigrateJob(self, request):
726
1209
  """This API is used to pause a migration task.
727
1210
 
@@ -814,6 +1297,52 @@ class DtsClient(AbstractClient):
814
1297
  raise TencentCloudSDKException(type(e).__name__, str(e))
815
1298
 
816
1299
 
1300
+ def ResetConsumerGroupOffset(self, request):
1301
+ """This API is used to reset the offset of the subscription consumer group. Call the DescribeConsumerGroups API to query the status of the consumer group, only when the status is Dead or Empty can this operation be executed. Otherwise, the reset will not be effective and the API will not return any error.
1302
+
1303
+ :param request: Request instance for ResetConsumerGroupOffset.
1304
+ :type request: :class:`tencentcloud.dts.v20211206.models.ResetConsumerGroupOffsetRequest`
1305
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ResetConsumerGroupOffsetResponse`
1306
+
1307
+ """
1308
+ try:
1309
+ params = request._serialize()
1310
+ headers = request.headers
1311
+ body = self.call("ResetConsumerGroupOffset", params, headers=headers)
1312
+ response = json.loads(body)
1313
+ model = models.ResetConsumerGroupOffsetResponse()
1314
+ model._deserialize(response["Response"])
1315
+ return model
1316
+ except Exception as e:
1317
+ if isinstance(e, TencentCloudSDKException):
1318
+ raise
1319
+ else:
1320
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1321
+
1322
+
1323
+ def ResetSubscribe(self, request):
1324
+ """This API is used to reset the subscription instance. After resetting, the subscription task can be reconfigured.You can call DescribeSubscribeDetail to query the subscription information to determine whether the subscription is successful. When SubsStatus changes to notStarted, it means the reset is successful.
1325
+
1326
+ :param request: Request instance for ResetSubscribe.
1327
+ :type request: :class:`tencentcloud.dts.v20211206.models.ResetSubscribeRequest`
1328
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ResetSubscribeResponse`
1329
+
1330
+ """
1331
+ try:
1332
+ params = request._serialize()
1333
+ headers = request.headers
1334
+ body = self.call("ResetSubscribe", params, headers=headers)
1335
+ response = json.loads(body)
1336
+ model = models.ResetSubscribeResponse()
1337
+ model._deserialize(response["Response"])
1338
+ return model
1339
+ except Exception as e:
1340
+ if isinstance(e, TencentCloudSDKException):
1341
+ raise
1342
+ else:
1343
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1344
+
1345
+
817
1346
  def ResizeSyncJob(self, request):
818
1347
  """This API is used to adjust the specification of a pay-as-you-go sync task. After this API is called, the backend needs to take about 3-5 minutes to implement the adjustment. You can call the `DescribeSyncJobs` API to query the latest task status.
819
1348
 
@@ -860,6 +1389,29 @@ class DtsClient(AbstractClient):
860
1389
  raise TencentCloudSDKException(type(e).__name__, str(e))
861
1390
 
862
1391
 
1392
+ def ResumeSubscribe(self, request):
1393
+ """This API is used to resume faulty subscription tasks. When the status of the subscription task is set to error, you can resume task via this API.
1394
+
1395
+ :param request: Request instance for ResumeSubscribe.
1396
+ :type request: :class:`tencentcloud.dts.v20211206.models.ResumeSubscribeRequest`
1397
+ :rtype: :class:`tencentcloud.dts.v20211206.models.ResumeSubscribeResponse`
1398
+
1399
+ """
1400
+ try:
1401
+ params = request._serialize()
1402
+ headers = request.headers
1403
+ body = self.call("ResumeSubscribe", params, headers=headers)
1404
+ response = json.loads(body)
1405
+ model = models.ResumeSubscribeResponse()
1406
+ model._deserialize(response["Response"])
1407
+ return model
1408
+ except Exception as e:
1409
+ if isinstance(e, TencentCloudSDKException):
1410
+ raise
1411
+ else:
1412
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1413
+
1414
+
863
1415
  def ResumeSyncJob(self, request):
864
1416
  """This API is used to retry a sync task after certain resolvable errors are reported. After calling this API, you can call the `DescribeSyncJobs` API to query the latest task status.
865
1417
 
@@ -998,6 +1550,29 @@ class DtsClient(AbstractClient):
998
1550
  raise TencentCloudSDKException(type(e).__name__, str(e))
999
1551
 
1000
1552
 
1553
+ def StartSubscribe(self, request):
1554
+ """This API is used to start a Kafka version of the data subscription instance. This interface can be called only when the status of the subscription task is checkPass.
1555
+
1556
+ :param request: Request instance for StartSubscribe.
1557
+ :type request: :class:`tencentcloud.dts.v20211206.models.StartSubscribeRequest`
1558
+ :rtype: :class:`tencentcloud.dts.v20211206.models.StartSubscribeResponse`
1559
+
1560
+ """
1561
+ try:
1562
+ params = request._serialize()
1563
+ headers = request.headers
1564
+ body = self.call("StartSubscribe", params, headers=headers)
1565
+ response = json.loads(body)
1566
+ model = models.StartSubscribeResponse()
1567
+ model._deserialize(response["Response"])
1568
+ return model
1569
+ except Exception as e:
1570
+ if isinstance(e, TencentCloudSDKException):
1571
+ raise
1572
+ else:
1573
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1574
+
1575
+
1001
1576
  def StartSyncJob(self, request):
1002
1577
  """This API is used to start a sync task.
1003
1578