tencentcloud-sdk-dts 3.0.744 → 3.0.746
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20211206/client.rb +533 -0
- data/lib/v20211206/models.rb +1953 -84
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0dbb539a9b513da1119abd0e84d2c0cf84088f8
|
4
|
+
data.tar.gz: b67dd998b20f3b715c89c9569d92bc7bbbc871f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed77de50d94d75839cfbf2760e4e4d40f1d8f867d0bcf97ca7db4893b366d5f1fc6a792919c3d3850a2b3d84dafcdba1e497b0e744bcb72c9e63a0a65230f871
|
7
|
+
data.tar.gz: 6247c42e1042c96cf08efcd6949c2c3f73ed3c8ff2acc7e4443d8eedf6dcb85bfaa054e425329fc1791852b728db90471199444ef1deed78c00d566d676f903a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.746
|
data/lib/v20211206/client.rb
CHANGED
@@ -55,6 +55,30 @@ module TencentCloud
|
|
55
55
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
56
56
|
end
|
57
57
|
|
58
|
+
# 本接口(ConfigureSubscribeJob)用于配置数据订阅实例。
|
59
|
+
|
60
|
+
# @param request: Request instance for ConfigureSubscribeJob.
|
61
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ConfigureSubscribeJobRequest`
|
62
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ConfigureSubscribeJobResponse`
|
63
|
+
def ConfigureSubscribeJob(request)
|
64
|
+
body = send_request('ConfigureSubscribeJob', request.serialize)
|
65
|
+
response = JSON.parse(body)
|
66
|
+
if response['Response'].key?('Error') == false
|
67
|
+
model = ConfigureSubscribeJobResponse.new
|
68
|
+
model.deserialize(response['Response'])
|
69
|
+
model
|
70
|
+
else
|
71
|
+
code = response['Response']['Error']['Code']
|
72
|
+
message = response['Response']['Error']['Message']
|
73
|
+
reqid = response['Response']['RequestId']
|
74
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
75
|
+
end
|
76
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
77
|
+
raise e
|
78
|
+
rescue StandardError => e
|
79
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
80
|
+
end
|
81
|
+
|
58
82
|
# 配置一个同步任务
|
59
83
|
|
60
84
|
# @param request: Request instance for ConfigureSyncJob.
|
@@ -175,6 +199,30 @@ module TencentCloud
|
|
175
199
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
176
200
|
end
|
177
201
|
|
202
|
+
# 为订阅实例创建消费者组
|
203
|
+
|
204
|
+
# @param request: Request instance for CreateConsumerGroup.
|
205
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::CreateConsumerGroupRequest`
|
206
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::CreateConsumerGroupResponse`
|
207
|
+
def CreateConsumerGroup(request)
|
208
|
+
body = send_request('CreateConsumerGroup', request.serialize)
|
209
|
+
response = JSON.parse(body)
|
210
|
+
if response['Response'].key?('Error') == false
|
211
|
+
model = CreateConsumerGroupResponse.new
|
212
|
+
model.deserialize(response['Response'])
|
213
|
+
model
|
214
|
+
else
|
215
|
+
code = response['Response']['Error']['Code']
|
216
|
+
message = response['Response']['Error']['Message']
|
217
|
+
reqid = response['Response']['RequestId']
|
218
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
219
|
+
end
|
220
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
221
|
+
raise e
|
222
|
+
rescue StandardError => e
|
223
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
224
|
+
end
|
225
|
+
|
178
226
|
# 校验迁移任务,
|
179
227
|
# 在开始迁移前, 必须调用本接口创建校验迁移任务, 且校验成功后才能开始迁移. 校验的结果可以通过DescribeMigrationCheckJob查看,
|
180
228
|
# 校验成功后,迁移任务若有修改, 则必须重新校验并通过后, 才能开始迁移
|
@@ -249,6 +297,54 @@ module TencentCloud
|
|
249
297
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
250
298
|
end
|
251
299
|
|
300
|
+
# 本接口(CreateSubscribe)用于创建一个数据订阅任务。
|
301
|
+
|
302
|
+
# @param request: Request instance for CreateSubscribe.
|
303
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::CreateSubscribeRequest`
|
304
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::CreateSubscribeResponse`
|
305
|
+
def CreateSubscribe(request)
|
306
|
+
body = send_request('CreateSubscribe', request.serialize)
|
307
|
+
response = JSON.parse(body)
|
308
|
+
if response['Response'].key?('Error') == false
|
309
|
+
model = CreateSubscribeResponse.new
|
310
|
+
model.deserialize(response['Response'])
|
311
|
+
model
|
312
|
+
else
|
313
|
+
code = response['Response']['Error']['Code']
|
314
|
+
message = response['Response']['Error']['Message']
|
315
|
+
reqid = response['Response']['RequestId']
|
316
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
317
|
+
end
|
318
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
319
|
+
raise e
|
320
|
+
rescue StandardError => e
|
321
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
322
|
+
end
|
323
|
+
|
324
|
+
# 本接口(CreateSubscribeCheckJob)用于创建一个订阅校验任务。任务必须已经成功调用ConfigureSubscribeJob接口配置了所有的必要信息才能启动校验。
|
325
|
+
|
326
|
+
# @param request: Request instance for CreateSubscribeCheckJob.
|
327
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::CreateSubscribeCheckJobRequest`
|
328
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::CreateSubscribeCheckJobResponse`
|
329
|
+
def CreateSubscribeCheckJob(request)
|
330
|
+
body = send_request('CreateSubscribeCheckJob', request.serialize)
|
331
|
+
response = JSON.parse(body)
|
332
|
+
if response['Response'].key?('Error') == false
|
333
|
+
model = CreateSubscribeCheckJobResponse.new
|
334
|
+
model.deserialize(response['Response'])
|
335
|
+
model
|
336
|
+
else
|
337
|
+
code = response['Response']['Error']['Code']
|
338
|
+
message = response['Response']['Error']['Message']
|
339
|
+
reqid = response['Response']['RequestId']
|
340
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
341
|
+
end
|
342
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
343
|
+
raise e
|
344
|
+
rescue StandardError => e
|
345
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
346
|
+
end
|
347
|
+
|
252
348
|
# 创建一个同步任务
|
253
349
|
|
254
350
|
# @param request: Request instance for CreateSyncJob.
|
@@ -297,6 +393,30 @@ module TencentCloud
|
|
297
393
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
298
394
|
end
|
299
395
|
|
396
|
+
# 本接口(DeleteConsumerGroup)用于删除一个订阅任务的消费组。
|
397
|
+
|
398
|
+
# @param request: Request instance for DeleteConsumerGroup.
|
399
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::DeleteConsumerGroupRequest`
|
400
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::DeleteConsumerGroupResponse`
|
401
|
+
def DeleteConsumerGroup(request)
|
402
|
+
body = send_request('DeleteConsumerGroup', request.serialize)
|
403
|
+
response = JSON.parse(body)
|
404
|
+
if response['Response'].key?('Error') == false
|
405
|
+
model = DeleteConsumerGroupResponse.new
|
406
|
+
model.deserialize(response['Response'])
|
407
|
+
model
|
408
|
+
else
|
409
|
+
code = response['Response']['Error']['Code']
|
410
|
+
message = response['Response']['Error']['Message']
|
411
|
+
reqid = response['Response']['RequestId']
|
412
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
413
|
+
end
|
414
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
415
|
+
raise e
|
416
|
+
rescue StandardError => e
|
417
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
418
|
+
end
|
419
|
+
|
300
420
|
# 查询同步校验任务结果,检查必要参数和周边配置
|
301
421
|
|
302
422
|
# @param request: Request instance for DescribeCheckSyncJobResult.
|
@@ -369,6 +489,30 @@ module TencentCloud
|
|
369
489
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
370
490
|
end
|
371
491
|
|
492
|
+
# 本接口(DescribeConsumerGroups)用于获取订阅实例配置的消费者组详情。
|
493
|
+
|
494
|
+
# @param request: Request instance for DescribeConsumerGroups.
|
495
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::DescribeConsumerGroupsRequest`
|
496
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::DescribeConsumerGroupsResponse`
|
497
|
+
def DescribeConsumerGroups(request)
|
498
|
+
body = send_request('DescribeConsumerGroups', request.serialize)
|
499
|
+
response = JSON.parse(body)
|
500
|
+
if response['Response'].key?('Error') == false
|
501
|
+
model = DescribeConsumerGroupsResponse.new
|
502
|
+
model.deserialize(response['Response'])
|
503
|
+
model
|
504
|
+
else
|
505
|
+
code = response['Response']['Error']['Code']
|
506
|
+
message = response['Response']['Error']['Message']
|
507
|
+
reqid = response['Response']['RequestId']
|
508
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
509
|
+
end
|
510
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
511
|
+
raise e
|
512
|
+
rescue StandardError => e
|
513
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
514
|
+
end
|
515
|
+
|
372
516
|
# 本接口用于查询支持迁移的云数据库实例
|
373
517
|
|
374
518
|
# @param request: Request instance for DescribeMigrateDBInstances.
|
@@ -491,6 +635,130 @@ module TencentCloud
|
|
491
635
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
492
636
|
end
|
493
637
|
|
638
|
+
# 本接口(DescribeOffsetByTime)查询KafkaTopic中指定时间前最近的offset。
|
639
|
+
# 接口输出的offset是离这个时间最近的offset。
|
640
|
+
# 如果输入时间比当前时间晚的多,相当于输出的就是最新的offset;
|
641
|
+
# 如果输入时间比当前时间早的多,相当于输出的就是最老的offset;
|
642
|
+
# 如果输入空,默认0时间,也就是查询最老的offset。
|
643
|
+
|
644
|
+
# @param request: Request instance for DescribeOffsetByTime.
|
645
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::DescribeOffsetByTimeRequest`
|
646
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::DescribeOffsetByTimeResponse`
|
647
|
+
def DescribeOffsetByTime(request)
|
648
|
+
body = send_request('DescribeOffsetByTime', request.serialize)
|
649
|
+
response = JSON.parse(body)
|
650
|
+
if response['Response'].key?('Error') == false
|
651
|
+
model = DescribeOffsetByTimeResponse.new
|
652
|
+
model.deserialize(response['Response'])
|
653
|
+
model
|
654
|
+
else
|
655
|
+
code = response['Response']['Error']['Code']
|
656
|
+
message = response['Response']['Error']['Message']
|
657
|
+
reqid = response['Response']['RequestId']
|
658
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
659
|
+
end
|
660
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
661
|
+
raise e
|
662
|
+
rescue StandardError => e
|
663
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
664
|
+
end
|
665
|
+
|
666
|
+
# 本接口(DescribeSubscribeCheckJob)用于查询订阅校验任务结果。
|
667
|
+
|
668
|
+
# @param request: Request instance for DescribeSubscribeCheckJob.
|
669
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::DescribeSubscribeCheckJobRequest`
|
670
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::DescribeSubscribeCheckJobResponse`
|
671
|
+
def DescribeSubscribeCheckJob(request)
|
672
|
+
body = send_request('DescribeSubscribeCheckJob', request.serialize)
|
673
|
+
response = JSON.parse(body)
|
674
|
+
if response['Response'].key?('Error') == false
|
675
|
+
model = DescribeSubscribeCheckJobResponse.new
|
676
|
+
model.deserialize(response['Response'])
|
677
|
+
model
|
678
|
+
else
|
679
|
+
code = response['Response']['Error']['Code']
|
680
|
+
message = response['Response']['Error']['Message']
|
681
|
+
reqid = response['Response']['RequestId']
|
682
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
683
|
+
end
|
684
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
685
|
+
raise e
|
686
|
+
rescue StandardError => e
|
687
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
688
|
+
end
|
689
|
+
|
690
|
+
# 本接口(DescribeSubscribeDetail)获取数据订阅实例的配置信息。
|
691
|
+
|
692
|
+
# @param request: Request instance for DescribeSubscribeDetail.
|
693
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::DescribeSubscribeDetailRequest`
|
694
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::DescribeSubscribeDetailResponse`
|
695
|
+
def DescribeSubscribeDetail(request)
|
696
|
+
body = send_request('DescribeSubscribeDetail', request.serialize)
|
697
|
+
response = JSON.parse(body)
|
698
|
+
if response['Response'].key?('Error') == false
|
699
|
+
model = DescribeSubscribeDetailResponse.new
|
700
|
+
model.deserialize(response['Response'])
|
701
|
+
model
|
702
|
+
else
|
703
|
+
code = response['Response']['Error']['Code']
|
704
|
+
message = response['Response']['Error']['Message']
|
705
|
+
reqid = response['Response']['RequestId']
|
706
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
707
|
+
end
|
708
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
709
|
+
raise e
|
710
|
+
rescue StandardError => e
|
711
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
712
|
+
end
|
713
|
+
|
714
|
+
# 本接口(DescribeSubscribes)获取数据订阅实例信息列表,默认分页,每次返回20条
|
715
|
+
|
716
|
+
# @param request: Request instance for DescribeSubscribeJobs.
|
717
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::DescribeSubscribeJobsRequest`
|
718
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::DescribeSubscribeJobsResponse`
|
719
|
+
def DescribeSubscribeJobs(request)
|
720
|
+
body = send_request('DescribeSubscribeJobs', request.serialize)
|
721
|
+
response = JSON.parse(body)
|
722
|
+
if response['Response'].key?('Error') == false
|
723
|
+
model = DescribeSubscribeJobsResponse.new
|
724
|
+
model.deserialize(response['Response'])
|
725
|
+
model
|
726
|
+
else
|
727
|
+
code = response['Response']['Error']['Code']
|
728
|
+
message = response['Response']['Error']['Message']
|
729
|
+
reqid = response['Response']['RequestId']
|
730
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
731
|
+
end
|
732
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
733
|
+
raise e
|
734
|
+
rescue StandardError => e
|
735
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
736
|
+
end
|
737
|
+
|
738
|
+
# 本接口(DescribeSubscribeReturnable)用于查询订阅任务是否可以销毁和退货。
|
739
|
+
|
740
|
+
# @param request: Request instance for DescribeSubscribeReturnable.
|
741
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::DescribeSubscribeReturnableRequest`
|
742
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::DescribeSubscribeReturnableResponse`
|
743
|
+
def DescribeSubscribeReturnable(request)
|
744
|
+
body = send_request('DescribeSubscribeReturnable', request.serialize)
|
745
|
+
response = JSON.parse(body)
|
746
|
+
if response['Response'].key?('Error') == false
|
747
|
+
model = DescribeSubscribeReturnableResponse.new
|
748
|
+
model.deserialize(response['Response'])
|
749
|
+
model
|
750
|
+
else
|
751
|
+
code = response['Response']['Error']['Code']
|
752
|
+
message = response['Response']['Error']['Message']
|
753
|
+
reqid = response['Response']['RequestId']
|
754
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
755
|
+
end
|
756
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
757
|
+
raise e
|
758
|
+
rescue StandardError => e
|
759
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
760
|
+
end
|
761
|
+
|
494
762
|
# 查询同步任务信息
|
495
763
|
|
496
764
|
# @param request: Request instance for DescribeSyncJobs.
|
@@ -515,6 +783,30 @@ module TencentCloud
|
|
515
783
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
516
784
|
end
|
517
785
|
|
786
|
+
# 本接口(DestroyIsolatedSubscribe)用于下线已隔离的数据订阅实例
|
787
|
+
|
788
|
+
# @param request: Request instance for DestroyIsolatedSubscribe.
|
789
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::DestroyIsolatedSubscribeRequest`
|
790
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::DestroyIsolatedSubscribeResponse`
|
791
|
+
def DestroyIsolatedSubscribe(request)
|
792
|
+
body = send_request('DestroyIsolatedSubscribe', request.serialize)
|
793
|
+
response = JSON.parse(body)
|
794
|
+
if response['Response'].key?('Error') == false
|
795
|
+
model = DestroyIsolatedSubscribeResponse.new
|
796
|
+
model.deserialize(response['Response'])
|
797
|
+
model
|
798
|
+
else
|
799
|
+
code = response['Response']['Error']['Code']
|
800
|
+
message = response['Response']['Error']['Message']
|
801
|
+
reqid = response['Response']['RequestId']
|
802
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
803
|
+
end
|
804
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
805
|
+
raise e
|
806
|
+
rescue StandardError => e
|
807
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
808
|
+
end
|
809
|
+
|
518
810
|
# 下线数据迁移任务。计费任务必须先调用隔离(IsolateMigrateJob)接口,且只有是**已隔离**状态下,才能调用此接口销毁任务。对于不计费任务,调用隔离(IsolateMigrateJob)接口删除任务操作。
|
519
811
|
|
520
812
|
# @param request: Request instance for DestroyMigrateJob.
|
@@ -587,6 +879,30 @@ module TencentCloud
|
|
587
879
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
588
880
|
end
|
589
881
|
|
882
|
+
# 本接口(IsolateSubscribe)用于隔离订阅任务。调用后,订阅任务将不能使用。按量计费的任务会停止计费,包年包月的任务会自动退费
|
883
|
+
|
884
|
+
# @param request: Request instance for IsolateSubscribe.
|
885
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::IsolateSubscribeRequest`
|
886
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::IsolateSubscribeResponse`
|
887
|
+
def IsolateSubscribe(request)
|
888
|
+
body = send_request('IsolateSubscribe', request.serialize)
|
889
|
+
response = JSON.parse(body)
|
890
|
+
if response['Response'].key?('Error') == false
|
891
|
+
model = IsolateSubscribeResponse.new
|
892
|
+
model.deserialize(response['Response'])
|
893
|
+
model
|
894
|
+
else
|
895
|
+
code = response['Response']['Error']['Code']
|
896
|
+
message = response['Response']['Error']['Message']
|
897
|
+
reqid = response['Response']['RequestId']
|
898
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
899
|
+
end
|
900
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
901
|
+
raise e
|
902
|
+
rescue StandardError => e
|
903
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
904
|
+
end
|
905
|
+
|
590
906
|
# 隔离同步任务,隔离后可通过查询同步任务信息接口DescribeSyncJobs获取隔离后状态。在任务隔离后可进行解除隔离(RecoverSyncJob)操作或直接进行下线操作。对于不计费任务,调用此接口后会直接删除任务,无法进行恢复操作。
|
591
907
|
|
592
908
|
# @param request: Request instance for IsolateSyncJob.
|
@@ -659,6 +975,54 @@ module TencentCloud
|
|
659
975
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
660
976
|
end
|
661
977
|
|
978
|
+
# 本接口(ModifyConsumerGroupDescription)用于修改指定订阅消费组备注。
|
979
|
+
|
980
|
+
# @param request: Request instance for ModifyConsumerGroupDescription.
|
981
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ModifyConsumerGroupDescriptionRequest`
|
982
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ModifyConsumerGroupDescriptionResponse`
|
983
|
+
def ModifyConsumerGroupDescription(request)
|
984
|
+
body = send_request('ModifyConsumerGroupDescription', request.serialize)
|
985
|
+
response = JSON.parse(body)
|
986
|
+
if response['Response'].key?('Error') == false
|
987
|
+
model = ModifyConsumerGroupDescriptionResponse.new
|
988
|
+
model.deserialize(response['Response'])
|
989
|
+
model
|
990
|
+
else
|
991
|
+
code = response['Response']['Error']['Code']
|
992
|
+
message = response['Response']['Error']['Message']
|
993
|
+
reqid = response['Response']['RequestId']
|
994
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
995
|
+
end
|
996
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
997
|
+
raise e
|
998
|
+
rescue StandardError => e
|
999
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# 本接口(ModifyConsumerGroupPassword)用于修改指定订阅消费组密码。
|
1003
|
+
|
1004
|
+
# @param request: Request instance for ModifyConsumerGroupPassword.
|
1005
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ModifyConsumerGroupPasswordRequest`
|
1006
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ModifyConsumerGroupPasswordResponse`
|
1007
|
+
def ModifyConsumerGroupPassword(request)
|
1008
|
+
body = send_request('ModifyConsumerGroupPassword', request.serialize)
|
1009
|
+
response = JSON.parse(body)
|
1010
|
+
if response['Response'].key?('Error') == false
|
1011
|
+
model = ModifyConsumerGroupPasswordResponse.new
|
1012
|
+
model.deserialize(response['Response'])
|
1013
|
+
model
|
1014
|
+
else
|
1015
|
+
code = response['Response']['Error']['Code']
|
1016
|
+
message = response['Response']['Error']['Message']
|
1017
|
+
reqid = response['Response']['RequestId']
|
1018
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1019
|
+
end
|
1020
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1021
|
+
raise e
|
1022
|
+
rescue StandardError => e
|
1023
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1024
|
+
end
|
1025
|
+
|
662
1026
|
# 调整实例规格,此接口只支持按量计费任务的调整。调用此接口后可通过查询迁移服务列表接口`DescribeMigrationJobs`来查询当前任务状态。
|
663
1027
|
|
664
1028
|
# @param request: Request instance for ModifyMigrateJobSpec.
|
@@ -779,6 +1143,78 @@ module TencentCloud
|
|
779
1143
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
780
1144
|
end
|
781
1145
|
|
1146
|
+
# 修改订阅实例自动续费标识。只有包年包月的任务修改才有意义,按量计费任务修改后无影响。
|
1147
|
+
|
1148
|
+
# @param request: Request instance for ModifySubscribeAutoRenewFlag.
|
1149
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ModifySubscribeAutoRenewFlagRequest`
|
1150
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ModifySubscribeAutoRenewFlagResponse`
|
1151
|
+
def ModifySubscribeAutoRenewFlag(request)
|
1152
|
+
body = send_request('ModifySubscribeAutoRenewFlag', request.serialize)
|
1153
|
+
response = JSON.parse(body)
|
1154
|
+
if response['Response'].key?('Error') == false
|
1155
|
+
model = ModifySubscribeAutoRenewFlagResponse.new
|
1156
|
+
model.deserialize(response['Response'])
|
1157
|
+
model
|
1158
|
+
else
|
1159
|
+
code = response['Response']['Error']['Code']
|
1160
|
+
message = response['Response']['Error']['Message']
|
1161
|
+
reqid = response['Response']['RequestId']
|
1162
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1163
|
+
end
|
1164
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1165
|
+
raise e
|
1166
|
+
rescue StandardError => e
|
1167
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
# 本接口(ModifySubscribeName)用于修改数据订阅实例的名称
|
1171
|
+
|
1172
|
+
# @param request: Request instance for ModifySubscribeName.
|
1173
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ModifySubscribeNameRequest`
|
1174
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ModifySubscribeNameResponse`
|
1175
|
+
def ModifySubscribeName(request)
|
1176
|
+
body = send_request('ModifySubscribeName', request.serialize)
|
1177
|
+
response = JSON.parse(body)
|
1178
|
+
if response['Response'].key?('Error') == false
|
1179
|
+
model = ModifySubscribeNameResponse.new
|
1180
|
+
model.deserialize(response['Response'])
|
1181
|
+
model
|
1182
|
+
else
|
1183
|
+
code = response['Response']['Error']['Code']
|
1184
|
+
message = response['Response']['Error']['Message']
|
1185
|
+
reqid = response['Response']['RequestId']
|
1186
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1187
|
+
end
|
1188
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1189
|
+
raise e
|
1190
|
+
rescue StandardError => e
|
1191
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
# 本接口(ModifySubscribeObjects)用于修改数据订阅对象和kafka分区规则,如果是mongo订阅,还可以修改输出聚合规则。
|
1195
|
+
|
1196
|
+
# @param request: Request instance for ModifySubscribeObjects.
|
1197
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ModifySubscribeObjectsRequest`
|
1198
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ModifySubscribeObjectsResponse`
|
1199
|
+
def ModifySubscribeObjects(request)
|
1200
|
+
body = send_request('ModifySubscribeObjects', request.serialize)
|
1201
|
+
response = JSON.parse(body)
|
1202
|
+
if response['Response'].key?('Error') == false
|
1203
|
+
model = ModifySubscribeObjectsResponse.new
|
1204
|
+
model.deserialize(response['Response'])
|
1205
|
+
model
|
1206
|
+
else
|
1207
|
+
code = response['Response']['Error']['Code']
|
1208
|
+
message = response['Response']['Error']['Message']
|
1209
|
+
reqid = response['Response']['RequestId']
|
1210
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1211
|
+
end
|
1212
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1213
|
+
raise e
|
1214
|
+
rescue StandardError => e
|
1215
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1216
|
+
end
|
1217
|
+
|
782
1218
|
# 该接口支持在同步任务启动后修改任务的配置
|
783
1219
|
# 修改同步配置的完整流程:修改同步任务配置->创建修改同步任务配置的校验任务->查询修改配置的校验任务的结果->启动修改配置任务
|
784
1220
|
|
@@ -924,6 +1360,55 @@ module TencentCloud
|
|
924
1360
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
925
1361
|
end
|
926
1362
|
|
1363
|
+
# 本接口(ResetConsumerGroupOffset)用于重置订阅消费组的offset。掉用DescribeConsumerGroups接口查询消费组状态,只有消费组状态为 Dead 或 Empty 才可以执行重置该操作。否则重置不会生效,接口也不会报错。
|
1364
|
+
|
1365
|
+
# @param request: Request instance for ResetConsumerGroupOffset.
|
1366
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ResetConsumerGroupOffsetRequest`
|
1367
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ResetConsumerGroupOffsetResponse`
|
1368
|
+
def ResetConsumerGroupOffset(request)
|
1369
|
+
body = send_request('ResetConsumerGroupOffset', request.serialize)
|
1370
|
+
response = JSON.parse(body)
|
1371
|
+
if response['Response'].key?('Error') == false
|
1372
|
+
model = ResetConsumerGroupOffsetResponse.new
|
1373
|
+
model.deserialize(response['Response'])
|
1374
|
+
model
|
1375
|
+
else
|
1376
|
+
code = response['Response']['Error']['Code']
|
1377
|
+
message = response['Response']['Error']['Message']
|
1378
|
+
reqid = response['Response']['RequestId']
|
1379
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1380
|
+
end
|
1381
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1382
|
+
raise e
|
1383
|
+
rescue StandardError => e
|
1384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1385
|
+
end
|
1386
|
+
|
1387
|
+
# 本接口(ResetSubscribe)用于重置订阅实例,重置后,可以重新配置订阅任务。
|
1388
|
+
# 可以调用 DescribeSubscribeDetail 查询订阅信息判断是否置成功。当SubsStatus变为notStarted时,表示重置成功。
|
1389
|
+
|
1390
|
+
# @param request: Request instance for ResetSubscribe.
|
1391
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ResetSubscribeRequest`
|
1392
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ResetSubscribeResponse`
|
1393
|
+
def ResetSubscribe(request)
|
1394
|
+
body = send_request('ResetSubscribe', request.serialize)
|
1395
|
+
response = JSON.parse(body)
|
1396
|
+
if response['Response'].key?('Error') == false
|
1397
|
+
model = ResetSubscribeResponse.new
|
1398
|
+
model.deserialize(response['Response'])
|
1399
|
+
model
|
1400
|
+
else
|
1401
|
+
code = response['Response']['Error']['Code']
|
1402
|
+
message = response['Response']['Error']['Message']
|
1403
|
+
reqid = response['Response']['RequestId']
|
1404
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1405
|
+
end
|
1406
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1407
|
+
raise e
|
1408
|
+
rescue StandardError => e
|
1409
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1410
|
+
end
|
1411
|
+
|
927
1412
|
# 调整同步任务规格,此接口只支持按量计费任务的调整,调用此接口后不会立即生效,后台调整时间大概为3~5分钟。调用此接口后可通过查询同步任务信息接口DescribeSyncJobs,获取变配后的状态。
|
928
1413
|
|
929
1414
|
# @param request: Request instance for ResizeSyncJob.
|
@@ -972,6 +1457,30 @@ module TencentCloud
|
|
972
1457
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
973
1458
|
end
|
974
1459
|
|
1460
|
+
# 本接口(ResumeSubscribe) 用于恢复报错的订阅任务。当订阅任务的状态为error时,可通过本接口尝试对任务进行恢复。
|
1461
|
+
|
1462
|
+
# @param request: Request instance for ResumeSubscribe.
|
1463
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::ResumeSubscribeRequest`
|
1464
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::ResumeSubscribeResponse`
|
1465
|
+
def ResumeSubscribe(request)
|
1466
|
+
body = send_request('ResumeSubscribe', request.serialize)
|
1467
|
+
response = JSON.parse(body)
|
1468
|
+
if response['Response'].key?('Error') == false
|
1469
|
+
model = ResumeSubscribeResponse.new
|
1470
|
+
model.deserialize(response['Response'])
|
1471
|
+
model
|
1472
|
+
else
|
1473
|
+
code = response['Response']['Error']['Code']
|
1474
|
+
message = response['Response']['Error']['Message']
|
1475
|
+
reqid = response['Response']['RequestId']
|
1476
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1477
|
+
end
|
1478
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1479
|
+
raise e
|
1480
|
+
rescue StandardError => e
|
1481
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1482
|
+
end
|
1483
|
+
|
975
1484
|
# 重试同步任务,部分可恢复报错情况下,可通过该接口重试同步任务,可通过查询同步任务信息接口DescribeSyncJobs,获取操作后状态。
|
976
1485
|
|
977
1486
|
# @param request: Request instance for ResumeSyncJob.
|
@@ -1116,6 +1625,30 @@ module TencentCloud
|
|
1116
1625
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1117
1626
|
end
|
1118
1627
|
|
1628
|
+
# 本接口(StartSubscribe)用于启动一个kafka版本的数据订阅实例。只有当订阅任务的状态为checkPass时,才能调用本接口。
|
1629
|
+
|
1630
|
+
# @param request: Request instance for StartSubscribe.
|
1631
|
+
# @type request: :class:`Tencentcloud::dts::V20211206::StartSubscribeRequest`
|
1632
|
+
# @rtype: :class:`Tencentcloud::dts::V20211206::StartSubscribeResponse`
|
1633
|
+
def StartSubscribe(request)
|
1634
|
+
body = send_request('StartSubscribe', request.serialize)
|
1635
|
+
response = JSON.parse(body)
|
1636
|
+
if response['Response'].key?('Error') == false
|
1637
|
+
model = StartSubscribeResponse.new
|
1638
|
+
model.deserialize(response['Response'])
|
1639
|
+
model
|
1640
|
+
else
|
1641
|
+
code = response['Response']['Error']['Code']
|
1642
|
+
message = response['Response']['Error']['Message']
|
1643
|
+
reqid = response['Response']['RequestId']
|
1644
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1645
|
+
end
|
1646
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1647
|
+
raise e
|
1648
|
+
rescue StandardError => e
|
1649
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1650
|
+
end
|
1651
|
+
|
1119
1652
|
# 启动同步任务
|
1120
1653
|
|
1121
1654
|
# @param request: Request instance for StartSyncJob.
|