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.
@@ -581,6 +581,104 @@ module TencentCloud
581
581
  end
582
582
  end
583
583
 
584
+ # ConfigureSubscribeJob请求参数结构体
585
+ class ConfigureSubscribeJobRequest < TencentCloud::Common::AbstractModel
586
+ # @param SubscribeId: 数据订阅实例的 ID
587
+ # @type SubscribeId: String
588
+ # @param SubscribeMode: 数据订阅的类型,当 DatabaseType 不为 mongodb 时,枚举值为:all-全实例更新;dml-数据更新;ddl-结构更新;dmlAndDdl-数据更新+结构更新。当 DatabaseType 为 mongodb 时,枚举值为 all-全实例更新;database-订阅单库;collection-订阅单集合
589
+ # @type SubscribeMode: String
590
+ # @param AccessType: 源数据库接入类型,如:extranet(公网)、vpncloud(vpn接入)、dcg(专线接入)、ccn(云联网)、cdb(云数据库)、cvm(云主机自建)、intranet(自研上云)、vpc(私有网络vpc)。注意具体可选值依赖当前链路支持能力
591
+ # @type AccessType: String
592
+ # @param Endpoints: 数据库节点信息
593
+ # @type Endpoints: Array
594
+ # @param KafkaConfig: Kafka配置
595
+ # @type KafkaConfig: :class:`Tencentcloud::Dts.v20211206.models.SubscribeKafkaConfig`
596
+ # @param SubscribeObjects: 订阅的数据库表信息,当 SubscribeMode 不为 all和ddl 时,SubscribeObjects 为必选参数
597
+ # @type SubscribeObjects: Array
598
+ # @param Protocol: 订阅数据格式,如:protobuf、json、avro。注意具体可选值依赖当前链路支持能力,数据格式详情参考官网的消费demo文档
599
+ # @type Protocol: String
600
+ # @param PipelineInfo: mongo选填参数:输出聚合设置。
601
+ # @type PipelineInfo: Array
602
+ # @param ExtraAttr: 为业务添加的额外信息。参数名作key,参数值作value。
603
+ # mysql选填参数:ProcessXA-是否处理XA事务,填true处理,不填或填其他值不处理。
604
+ # mongo选填参数:SubscribeType-订阅类型,目前只支持changeStream,不填也是默认changeStream。
605
+ # 其他业务暂没有可选参数。
606
+ # @type ExtraAttr: Array
607
+
608
+ attr_accessor :SubscribeId, :SubscribeMode, :AccessType, :Endpoints, :KafkaConfig, :SubscribeObjects, :Protocol, :PipelineInfo, :ExtraAttr
609
+
610
+ def initialize(subscribeid=nil, subscribemode=nil, accesstype=nil, endpoints=nil, kafkaconfig=nil, subscribeobjects=nil, protocol=nil, pipelineinfo=nil, extraattr=nil)
611
+ @SubscribeId = subscribeid
612
+ @SubscribeMode = subscribemode
613
+ @AccessType = accesstype
614
+ @Endpoints = endpoints
615
+ @KafkaConfig = kafkaconfig
616
+ @SubscribeObjects = subscribeobjects
617
+ @Protocol = protocol
618
+ @PipelineInfo = pipelineinfo
619
+ @ExtraAttr = extraattr
620
+ end
621
+
622
+ def deserialize(params)
623
+ @SubscribeId = params['SubscribeId']
624
+ @SubscribeMode = params['SubscribeMode']
625
+ @AccessType = params['AccessType']
626
+ unless params['Endpoints'].nil?
627
+ @Endpoints = []
628
+ params['Endpoints'].each do |i|
629
+ endpointitem_tmp = EndpointItem.new
630
+ endpointitem_tmp.deserialize(i)
631
+ @Endpoints << endpointitem_tmp
632
+ end
633
+ end
634
+ unless params['KafkaConfig'].nil?
635
+ @KafkaConfig = SubscribeKafkaConfig.new
636
+ @KafkaConfig.deserialize(params['KafkaConfig'])
637
+ end
638
+ unless params['SubscribeObjects'].nil?
639
+ @SubscribeObjects = []
640
+ params['SubscribeObjects'].each do |i|
641
+ subscribeobject_tmp = SubscribeObject.new
642
+ subscribeobject_tmp.deserialize(i)
643
+ @SubscribeObjects << subscribeobject_tmp
644
+ end
645
+ end
646
+ @Protocol = params['Protocol']
647
+ unless params['PipelineInfo'].nil?
648
+ @PipelineInfo = []
649
+ params['PipelineInfo'].each do |i|
650
+ pipelineinfo_tmp = PipelineInfo.new
651
+ pipelineinfo_tmp.deserialize(i)
652
+ @PipelineInfo << pipelineinfo_tmp
653
+ end
654
+ end
655
+ unless params['ExtraAttr'].nil?
656
+ @ExtraAttr = []
657
+ params['ExtraAttr'].each do |i|
658
+ keyvaluepairoption_tmp = KeyValuePairOption.new
659
+ keyvaluepairoption_tmp.deserialize(i)
660
+ @ExtraAttr << keyvaluepairoption_tmp
661
+ end
662
+ end
663
+ end
664
+ end
665
+
666
+ # ConfigureSubscribeJob返回参数结构体
667
+ class ConfigureSubscribeJobResponse < TencentCloud::Common::AbstractModel
668
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
669
+ # @type RequestId: String
670
+
671
+ attr_accessor :RequestId
672
+
673
+ def initialize(requestid=nil)
674
+ @RequestId = requestid
675
+ end
676
+
677
+ def deserialize(params)
678
+ @RequestId = params['RequestId']
679
+ end
680
+ end
681
+
584
682
  # ConfigureSyncJob请求参数结构体
585
683
  class ConfigureSyncJobRequest < TencentCloud::Common::AbstractModel
586
684
  # @param JobId: 同步实例id(即标识一个同步作业),形如sync-werwfs23
@@ -890,6 +988,54 @@ module TencentCloud
890
988
  end
891
989
  end
892
990
 
991
+ # CreateConsumerGroup请求参数结构体
992
+ class CreateConsumerGroupRequest < TencentCloud::Common::AbstractModel
993
+ # @param SubscribeId: 订阅实例id
994
+ # @type SubscribeId: String
995
+ # @param ConsumerGroupName: 消费组名称,以数字、字母(大小写)或者_ - .开头,以数字、字母(大小写)结尾。实际生成的消费组全称形如:consumer-grp-#{SubscribeId}-#{ConsumerGroupName}
996
+ # @type ConsumerGroupName: String
997
+ # @param AccountName: 账号名称。以数字、字母(大小写)或者_ - .开头,以数字、字母(大小写)结尾。实际生成的账户全称形如:account-#{SubscribeId}-#{AccountName}
998
+ # @type AccountName: String
999
+ # @param Password: 消费组密码,长度必须大于3
1000
+ # @type Password: String
1001
+ # @param Description: 消费组备注
1002
+ # @type Description: String
1003
+
1004
+ attr_accessor :SubscribeId, :ConsumerGroupName, :AccountName, :Password, :Description
1005
+
1006
+ def initialize(subscribeid=nil, consumergroupname=nil, accountname=nil, password=nil, description=nil)
1007
+ @SubscribeId = subscribeid
1008
+ @ConsumerGroupName = consumergroupname
1009
+ @AccountName = accountname
1010
+ @Password = password
1011
+ @Description = description
1012
+ end
1013
+
1014
+ def deserialize(params)
1015
+ @SubscribeId = params['SubscribeId']
1016
+ @ConsumerGroupName = params['ConsumerGroupName']
1017
+ @AccountName = params['AccountName']
1018
+ @Password = params['Password']
1019
+ @Description = params['Description']
1020
+ end
1021
+ end
1022
+
1023
+ # CreateConsumerGroup返回参数结构体
1024
+ class CreateConsumerGroupResponse < TencentCloud::Common::AbstractModel
1025
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1026
+ # @type RequestId: String
1027
+
1028
+ attr_accessor :RequestId
1029
+
1030
+ def initialize(requestid=nil)
1031
+ @RequestId = requestid
1032
+ end
1033
+
1034
+ def deserialize(params)
1035
+ @RequestId = params['RequestId']
1036
+ end
1037
+ end
1038
+
893
1039
  # CreateMigrateCheckJob请求参数结构体
894
1040
  class CreateMigrateCheckJobRequest < TencentCloud::Common::AbstractModel
895
1041
  # @param JobId: 数据迁移任务ID
@@ -1026,6 +1172,106 @@ module TencentCloud
1026
1172
  end
1027
1173
  end
1028
1174
 
1175
+ # CreateSubscribeCheckJob请求参数结构体
1176
+ class CreateSubscribeCheckJobRequest < TencentCloud::Common::AbstractModel
1177
+ # @param SubscribeId: 数据订阅实例的 ID
1178
+ # @type SubscribeId: String
1179
+
1180
+ attr_accessor :SubscribeId
1181
+
1182
+ def initialize(subscribeid=nil)
1183
+ @SubscribeId = subscribeid
1184
+ end
1185
+
1186
+ def deserialize(params)
1187
+ @SubscribeId = params['SubscribeId']
1188
+ end
1189
+ end
1190
+
1191
+ # CreateSubscribeCheckJob返回参数结构体
1192
+ class CreateSubscribeCheckJobResponse < TencentCloud::Common::AbstractModel
1193
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1194
+ # @type RequestId: String
1195
+
1196
+ attr_accessor :RequestId
1197
+
1198
+ def initialize(requestid=nil)
1199
+ @RequestId = requestid
1200
+ end
1201
+
1202
+ def deserialize(params)
1203
+ @RequestId = params['RequestId']
1204
+ end
1205
+ end
1206
+
1207
+ # CreateSubscribe请求参数结构体
1208
+ class CreateSubscribeRequest < TencentCloud::Common::AbstractModel
1209
+ # @param Product: 订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)
1210
+ # @type Product: String
1211
+ # @param PayType: 付费方式,枚举值:0-包年包月,1-按量计费
1212
+ # @type PayType: Integer
1213
+ # @param Duration: 购买时长。当 payType 为包年包月时,该项需要填,单位为月,最小值为 1,最大值为 120。不填默认1
1214
+ # @type Duration: Integer
1215
+ # @param AutoRenew: 是否自动续费。当 payType 为包年包月时,该项需要填。枚举值:0-不自动续费,1-自动续费。默认不自动续费。按量计费设置该标识无效。
1216
+ # @type AutoRenew: Integer
1217
+ # @param Count: 购买数量,默认为1,最大为10
1218
+ # @type Count: Integer
1219
+ # @param Tags: 实例资源标签
1220
+ # @type Tags: Array
1221
+ # @param Name: 任务名,自定义
1222
+ # @type Name: String
1223
+
1224
+ attr_accessor :Product, :PayType, :Duration, :AutoRenew, :Count, :Tags, :Name
1225
+
1226
+ def initialize(product=nil, paytype=nil, duration=nil, autorenew=nil, count=nil, tags=nil, name=nil)
1227
+ @Product = product
1228
+ @PayType = paytype
1229
+ @Duration = duration
1230
+ @AutoRenew = autorenew
1231
+ @Count = count
1232
+ @Tags = tags
1233
+ @Name = name
1234
+ end
1235
+
1236
+ def deserialize(params)
1237
+ @Product = params['Product']
1238
+ @PayType = params['PayType']
1239
+ @Duration = params['Duration']
1240
+ @AutoRenew = params['AutoRenew']
1241
+ @Count = params['Count']
1242
+ unless params['Tags'].nil?
1243
+ @Tags = []
1244
+ params['Tags'].each do |i|
1245
+ tagitem_tmp = TagItem.new
1246
+ tagitem_tmp.deserialize(i)
1247
+ @Tags << tagitem_tmp
1248
+ end
1249
+ end
1250
+ @Name = params['Name']
1251
+ end
1252
+ end
1253
+
1254
+ # CreateSubscribe返回参数结构体
1255
+ class CreateSubscribeResponse < TencentCloud::Common::AbstractModel
1256
+ # @param SubscribeIds: 数据订阅实例的ID数组
1257
+ # 注意:此字段可能返回 null,表示取不到有效值。
1258
+ # @type SubscribeIds: Array
1259
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1260
+ # @type RequestId: String
1261
+
1262
+ attr_accessor :SubscribeIds, :RequestId
1263
+
1264
+ def initialize(subscribeids=nil, requestid=nil)
1265
+ @SubscribeIds = subscribeids
1266
+ @RequestId = requestid
1267
+ end
1268
+
1269
+ def deserialize(params)
1270
+ @SubscribeIds = params['SubscribeIds']
1271
+ @RequestId = params['RequestId']
1272
+ end
1273
+ end
1274
+
1029
1275
  # CreateSyncJob请求参数结构体
1030
1276
  class CreateSyncJobRequest < TencentCloud::Common::AbstractModel
1031
1277
  # @param PayMode: 付款类型, 如:PrePay(表示包年包月)、PostPay(表示按时按量)
@@ -1628,6 +1874,48 @@ module TencentCloud
1628
1874
  end
1629
1875
  end
1630
1876
 
1877
+ # DeleteConsumerGroup请求参数结构体
1878
+ class DeleteConsumerGroupRequest < TencentCloud::Common::AbstractModel
1879
+ # @param SubscribeId: 数据订阅实例的 ID
1880
+ # @type SubscribeId: String
1881
+ # @param ConsumerGroupName: 消费组名称。实际的消费组全称形如:consumer-grp-#{SubscribeId}-#{ConsumerGroupName}。
1882
+ # 请务必保证消费组名称正确。
1883
+ # @type ConsumerGroupName: String
1884
+ # @param AccountName: 账号名称。实际的账户全称形如:account-#{SubscribeId}-#{AccountName}。
1885
+ # 请务必保证账户名称正确。
1886
+ # @type AccountName: String
1887
+
1888
+ attr_accessor :SubscribeId, :ConsumerGroupName, :AccountName
1889
+
1890
+ def initialize(subscribeid=nil, consumergroupname=nil, accountname=nil)
1891
+ @SubscribeId = subscribeid
1892
+ @ConsumerGroupName = consumergroupname
1893
+ @AccountName = accountname
1894
+ end
1895
+
1896
+ def deserialize(params)
1897
+ @SubscribeId = params['SubscribeId']
1898
+ @ConsumerGroupName = params['ConsumerGroupName']
1899
+ @AccountName = params['AccountName']
1900
+ end
1901
+ end
1902
+
1903
+ # DeleteConsumerGroup返回参数结构体
1904
+ class DeleteConsumerGroupResponse < TencentCloud::Common::AbstractModel
1905
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1906
+ # @type RequestId: String
1907
+
1908
+ attr_accessor :RequestId
1909
+
1910
+ def initialize(requestid=nil)
1911
+ @RequestId = requestid
1912
+ end
1913
+
1914
+ def deserialize(params)
1915
+ @RequestId = params['RequestId']
1916
+ end
1917
+ end
1918
+
1631
1919
  # DescribeCheckSyncJobResult请求参数结构体
1632
1920
  class DescribeCheckSyncJobResultRequest < TencentCloud::Common::AbstractModel
1633
1921
  # @param JobId: 同步实例id(即标识一个同步作业),形如sync-werwfs23,此值必填
@@ -1841,6 +2129,61 @@ module TencentCloud
1841
2129
  end
1842
2130
  end
1843
2131
 
2132
+ # DescribeConsumerGroups请求参数结构体
2133
+ class DescribeConsumerGroupsRequest < TencentCloud::Common::AbstractModel
2134
+ # @param SubscribeId: 订阅实例id
2135
+ # @type SubscribeId: String
2136
+ # @param Offset: 返回记录的起始偏移量。默认0
2137
+ # @type Offset: Integer
2138
+ # @param Limit: 单次返回的记录数量。默认10
2139
+ # @type Limit: Integer
2140
+
2141
+ attr_accessor :SubscribeId, :Offset, :Limit
2142
+
2143
+ def initialize(subscribeid=nil, offset=nil, limit=nil)
2144
+ @SubscribeId = subscribeid
2145
+ @Offset = offset
2146
+ @Limit = limit
2147
+ end
2148
+
2149
+ def deserialize(params)
2150
+ @SubscribeId = params['SubscribeId']
2151
+ @Offset = params['Offset']
2152
+ @Limit = params['Limit']
2153
+ end
2154
+ end
2155
+
2156
+ # DescribeConsumerGroups返回参数结构体
2157
+ class DescribeConsumerGroupsResponse < TencentCloud::Common::AbstractModel
2158
+ # @param TotalCount: 指定实例下的消费者组总数
2159
+ # @type TotalCount: Integer
2160
+ # @param Items: 消费者组列表
2161
+ # @type Items: Array
2162
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2163
+ # @type RequestId: String
2164
+
2165
+ attr_accessor :TotalCount, :Items, :RequestId
2166
+
2167
+ def initialize(totalcount=nil, items=nil, requestid=nil)
2168
+ @TotalCount = totalcount
2169
+ @Items = items
2170
+ @RequestId = requestid
2171
+ end
2172
+
2173
+ def deserialize(params)
2174
+ @TotalCount = params['TotalCount']
2175
+ unless params['Items'].nil?
2176
+ @Items = []
2177
+ params['Items'].each do |i|
2178
+ groupinfo_tmp = GroupInfo.new
2179
+ groupinfo_tmp.deserialize(i)
2180
+ @Items << groupinfo_tmp
2181
+ end
2182
+ end
2183
+ @RequestId = params['RequestId']
2184
+ end
2185
+ end
2186
+
1844
2187
  # DescribeMigrateDBInstances请求参数结构体
1845
2188
  class DescribeMigrateDBInstancesRequest < TencentCloud::Common::AbstractModel
1846
2189
  # @param DatabaseType: 数据库类型,如mysql
@@ -2347,81 +2690,538 @@ module TencentCloud
2347
2690
  end
2348
2691
  end
2349
2692
 
2350
- # DescribeSyncJobs请求参数结构体
2351
- class DescribeSyncJobsRequest < TencentCloud::Common::AbstractModel
2352
- # @param JobId: 同步任务id,如sync-werwfs23
2353
- # @type JobId: String
2354
- # @param JobName: 同步任务名
2355
- # @type JobName: String
2356
- # @param Order: 排序字段,可以取值为CreateTime
2357
- # @type Order: String
2358
- # @param OrderSeq: 排序方式,升序为ASC,降序为DESC,默认为CreateTime降序
2359
- # @type OrderSeq: String
2360
- # @param Offset: 偏移量,默认为0
2361
- # @type Offset: Integer
2362
- # @param Limit: 返回同步任务实例数量,默认20,有效区间[1,100]
2363
- # @type Limit: Integer
2364
- # @param Status: 状态集合,如Initialized,CheckPass,Running,ResumableErr,Stopped
2365
- # @type Status: Array
2366
- # @param RunMode: 运行模式,如Immediate:立即运行,Timed:定时运行
2367
- # @type RunMode: String
2368
- # @param JobType: 任务类型,如mysql2mysql:msyql同步到mysql
2369
- # @type JobType: String
2370
- # @param PayMode: 付费类型,PrePay:预付费,PostPay:后付费
2371
- # @type PayMode: String
2372
- # @param TagFilters: tag
2373
- # @type TagFilters: Array
2693
+ # DescribeOffsetByTime请求参数结构体
2694
+ class DescribeOffsetByTimeRequest < TencentCloud::Common::AbstractModel
2695
+ # @param SubscribeId: 数据订阅实例的 ID
2696
+ # @type SubscribeId: String
2697
+ # @param Time: 时间点,格式为:Y-m-d h:m:s。如果输入时间比当前时间晚的多,相当于查询最新offset;如果输入时间比当前时间早的多,相当于查询最老offset;如果输入空,默认0时间,等价于查询最老offset。
2698
+ # @type Time: String
2374
2699
 
2375
- attr_accessor :JobId, :JobName, :Order, :OrderSeq, :Offset, :Limit, :Status, :RunMode, :JobType, :PayMode, :TagFilters
2700
+ attr_accessor :SubscribeId, :Time
2376
2701
 
2377
- def initialize(jobid=nil, jobname=nil, order=nil, orderseq=nil, offset=nil, limit=nil, status=nil, runmode=nil, jobtype=nil, paymode=nil, tagfilters=nil)
2378
- @JobId = jobid
2379
- @JobName = jobname
2380
- @Order = order
2381
- @OrderSeq = orderseq
2382
- @Offset = offset
2383
- @Limit = limit
2384
- @Status = status
2385
- @RunMode = runmode
2386
- @JobType = jobtype
2387
- @PayMode = paymode
2388
- @TagFilters = tagfilters
2702
+ def initialize(subscribeid=nil, time=nil)
2703
+ @SubscribeId = subscribeid
2704
+ @Time = time
2389
2705
  end
2390
2706
 
2391
2707
  def deserialize(params)
2392
- @JobId = params['JobId']
2393
- @JobName = params['JobName']
2394
- @Order = params['Order']
2395
- @OrderSeq = params['OrderSeq']
2396
- @Offset = params['Offset']
2397
- @Limit = params['Limit']
2398
- @Status = params['Status']
2399
- @RunMode = params['RunMode']
2400
- @JobType = params['JobType']
2401
- @PayMode = params['PayMode']
2402
- unless params['TagFilters'].nil?
2403
- @TagFilters = []
2404
- params['TagFilters'].each do |i|
2405
- tagfilter_tmp = TagFilter.new
2406
- tagfilter_tmp.deserialize(i)
2407
- @TagFilters << tagfilter_tmp
2408
- end
2409
- end
2708
+ @SubscribeId = params['SubscribeId']
2709
+ @Time = params['Time']
2410
2710
  end
2411
2711
  end
2412
2712
 
2413
- # DescribeSyncJobs返回参数结构体
2414
- class DescribeSyncJobsResponse < TencentCloud::Common::AbstractModel
2415
- # @param TotalCount: 任务数目
2416
- # 注意:此字段可能返回 null,表示取不到有效值。
2417
- # @type TotalCount: Integer
2418
- # @param JobList: 任务详情数组
2419
- # 注意:此字段可能返回 null,表示取不到有效值。
2420
- # @type JobList: Array
2713
+ # DescribeOffsetByTime返回参数结构体
2714
+ class DescribeOffsetByTimeResponse < TencentCloud::Common::AbstractModel
2715
+ # @param Items: 时间与Offset的对应
2716
+ # @type Items: Array
2421
2717
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2422
2718
  # @type RequestId: String
2423
2719
 
2424
- attr_accessor :TotalCount, :JobList, :RequestId
2720
+ attr_accessor :Items, :RequestId
2721
+
2722
+ def initialize(items=nil, requestid=nil)
2723
+ @Items = items
2724
+ @RequestId = requestid
2725
+ end
2726
+
2727
+ def deserialize(params)
2728
+ unless params['Items'].nil?
2729
+ @Items = []
2730
+ params['Items'].each do |i|
2731
+ offsettimemap_tmp = OffsetTimeMap.new
2732
+ offsettimemap_tmp.deserialize(i)
2733
+ @Items << offsettimemap_tmp
2734
+ end
2735
+ end
2736
+ @RequestId = params['RequestId']
2737
+ end
2738
+ end
2739
+
2740
+ # DescribeSubscribeCheckJob请求参数结构体
2741
+ class DescribeSubscribeCheckJobRequest < TencentCloud::Common::AbstractModel
2742
+ # @param SubscribeId: 数据订阅实例的 ID
2743
+ # @type SubscribeId: String
2744
+
2745
+ attr_accessor :SubscribeId
2746
+
2747
+ def initialize(subscribeid=nil)
2748
+ @SubscribeId = subscribeid
2749
+ end
2750
+
2751
+ def deserialize(params)
2752
+ @SubscribeId = params['SubscribeId']
2753
+ end
2754
+ end
2755
+
2756
+ # DescribeSubscribeCheckJob返回参数结构体
2757
+ class DescribeSubscribeCheckJobResponse < TencentCloud::Common::AbstractModel
2758
+ # @param SubscribeId: 订阅实例ID
2759
+ # @type SubscribeId: String
2760
+ # @param Message: 失败或者报错提示,成功则提示success。
2761
+ # 注意:此字段可能返回 null,表示取不到有效值。
2762
+ # @type Message: String
2763
+ # @param Status: 任务运行状态,可能值为 running,failed,success
2764
+ # @type Status: String
2765
+ # @param Progress: 当前总体进度,范围 0~100
2766
+ # @type Progress: Integer
2767
+ # @param StepAll: 校验总步骤数
2768
+ # @type StepAll: Integer
2769
+ # @param StepNow: 当前执行步骤
2770
+ # @type StepNow: Integer
2771
+ # @param Steps: 各个步骤运行状态
2772
+ # 注意:此字段可能返回 null,表示取不到有效值。
2773
+ # @type Steps: Array
2774
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2775
+ # @type RequestId: String
2776
+
2777
+ attr_accessor :SubscribeId, :Message, :Status, :Progress, :StepAll, :StepNow, :Steps, :RequestId
2778
+
2779
+ def initialize(subscribeid=nil, message=nil, status=nil, progress=nil, stepall=nil, stepnow=nil, steps=nil, requestid=nil)
2780
+ @SubscribeId = subscribeid
2781
+ @Message = message
2782
+ @Status = status
2783
+ @Progress = progress
2784
+ @StepAll = stepall
2785
+ @StepNow = stepnow
2786
+ @Steps = steps
2787
+ @RequestId = requestid
2788
+ end
2789
+
2790
+ def deserialize(params)
2791
+ @SubscribeId = params['SubscribeId']
2792
+ @Message = params['Message']
2793
+ @Status = params['Status']
2794
+ @Progress = params['Progress']
2795
+ @StepAll = params['StepAll']
2796
+ @StepNow = params['StepNow']
2797
+ unless params['Steps'].nil?
2798
+ @Steps = []
2799
+ params['Steps'].each do |i|
2800
+ subscribecheckstepinfo_tmp = SubscribeCheckStepInfo.new
2801
+ subscribecheckstepinfo_tmp.deserialize(i)
2802
+ @Steps << subscribecheckstepinfo_tmp
2803
+ end
2804
+ end
2805
+ @RequestId = params['RequestId']
2806
+ end
2807
+ end
2808
+
2809
+ # DescribeSubscribeDetail请求参数结构体
2810
+ class DescribeSubscribeDetailRequest < TencentCloud::Common::AbstractModel
2811
+ # @param SubscribeId: 订阅实例ID
2812
+ # @type SubscribeId: String
2813
+
2814
+ attr_accessor :SubscribeId
2815
+
2816
+ def initialize(subscribeid=nil)
2817
+ @SubscribeId = subscribeid
2818
+ end
2819
+
2820
+ def deserialize(params)
2821
+ @SubscribeId = params['SubscribeId']
2822
+ end
2823
+ end
2824
+
2825
+ # DescribeSubscribeDetail返回参数结构体
2826
+ class DescribeSubscribeDetailResponse < TencentCloud::Common::AbstractModel
2827
+ # @param SubscribeId: 数据订阅的ID,形如subs-b6x64o31tm
2828
+ # @type SubscribeId: String
2829
+ # @param SubscribeName: 数据订阅实例的名称
2830
+ # @type SubscribeName: String
2831
+ # @param Product: 订阅的数据库类型,目前支持 cynosdbmysql(tdsql-c mysql版),mariadb,mongodb,mysql,percona,tdpg(tdsql postgresql版),tdsqlpercona(tdsql mysql版)
2832
+ # @type Product: String
2833
+ # @param InstanceId: 订阅的云数据库实例ID,只有订阅云数据库该值才有意义
2834
+ # 注意:此字段可能返回 null,表示取不到有效值。
2835
+ # @type InstanceId: String
2836
+ # @param InstanceStatus: 订阅的云数据库实例状态,只有订阅云数据库该值才有意义。可能值为:running, isolated, offline
2837
+ # 注意:此字段可能返回 null,表示取不到有效值。
2838
+ # @type InstanceStatus: String
2839
+ # @param Status: 订阅任务计费状态,可能值为:正常normal, 隔离中isolating, 已隔离isolated, 下线中offlining, 按量转包年包月中 post2PrePayIng
2840
+ # @type Status: String
2841
+ # @param SubsStatus: 订阅任务状态,可能值为:未启动notStarted, 校验中checking, 校验不通过checkNotPass, 校验通过checkPass, 启动中starting, 运行中running, 异常出错error
2842
+ # @type SubsStatus: String
2843
+ # @param ModifyTime: 修改时间,时间格式如:Y-m-d h:m:s
2844
+ # 注意:此字段可能返回 null,表示取不到有效值。
2845
+ # @type ModifyTime: String
2846
+ # @param CreateTime: 创建时间,时间格式如:Y-m-d h:m:s
2847
+ # 注意:此字段可能返回 null,表示取不到有效值。
2848
+ # @type CreateTime: String
2849
+ # @param IsolateTime: 隔离时间,时间格式如:Y-m-d h:m:s。默认:0000-00-00 00:00:00
2850
+ # 注意:此字段可能返回 null,表示取不到有效值。
2851
+ # @type IsolateTime: String
2852
+ # @param ExpireTime: 包年包月任务的到期时间,时间格式如:Y-m-d h:m:s。默认:0000-00-00 00:00:00
2853
+ # 注意:此字段可能返回 null,表示取不到有效值。
2854
+ # @type ExpireTime: String
2855
+ # @param OfflineTime: 下线时间,时间格式如:Y-m-d h:m:s。默认:0000-00-00 00:00:00
2856
+ # 注意:此字段可能返回 null,表示取不到有效值。
2857
+ # @type OfflineTime: String
2858
+ # @param PayType: 付费方式,可能值为:0-包年包月,1-按量计费
2859
+ # @type PayType: Integer
2860
+ # @param AutoRenewFlag: 自动续费标识。只有当 PayType=0,该值才有意义。枚举值:0-不自动续费,1-自动续费
2861
+ # @type AutoRenewFlag: Integer
2862
+ # @param Region: 任务所在地域
2863
+ # @type Region: String
2864
+ # @param Topic: Kafka topic
2865
+ # 注意:此字段可能返回 null,表示取不到有效值。
2866
+ # @type Topic: String
2867
+ # @param Broker: Kafka服务Broker地址
2868
+ # 注意:此字段可能返回 null,表示取不到有效值。
2869
+ # @type Broker: String
2870
+ # @param SubscribeMode: 数据订阅的类型,当 Product 不为 mongodb 时,可能值为:all-全实例更新;dml-数据更新;ddl-结构更新;dmlAndDdl-数据更新+结构更新。当 Product 为 mongodb 时,可能值为 all-全实例更新;database-订阅单库;collection-订阅单集合
2871
+ # 注意:此字段可能返回 null,表示取不到有效值。
2872
+ # @type SubscribeMode: String
2873
+ # @param Protocol: 订阅数据格式。如果为空则用的默认格式: mysql\cynosdbmysql\mariadb\percona\tdsqlpercona\tdpg是protobuf,mongo是json。当 DatabaseType 为 mysql和cynosdbmysql 时有三种可选协议:protobuf\avro\json。数据格式详情参考官网的消费demo文档
2874
+ # 注意:此字段可能返回 null,表示取不到有效值。
2875
+ # @type Protocol: String
2876
+ # @param SubscribeObjects: 订阅的数据库表信息
2877
+ # 注意:此字段可能返回 null,表示取不到有效值。
2878
+ # @type SubscribeObjects: Array
2879
+ # @param KafkaConfig: kafka配置信息
2880
+ # 注意:此字段可能返回 null,表示取不到有效值。
2881
+ # @type KafkaConfig: :class:`Tencentcloud::Dts.v20211206.models.SubscribeKafkaConfig`
2882
+ # @param AccessType: 源数据库接入类型,如:extranet(公网)、vpncloud(vpn接入)、dcg(专线接入)、ccn(云联网)、cdb(云数据库)、cvm(云主机自建)、intranet(自研上云)、vpc(私有网络vpc)。注意具体可选值依赖当前链路支持能力
2883
+ # 注意:此字段可能返回 null,表示取不到有效值。
2884
+ # @type AccessType: String
2885
+ # @param Endpoints: 接入类型信息
2886
+ # 注意:此字段可能返回 null,表示取不到有效值。
2887
+ # @type Endpoints: Array
2888
+ # @param PipelineInfo: mongo输出聚合设置
2889
+ # 注意:此字段可能返回 null,表示取不到有效值。
2890
+ # @type PipelineInfo: Array
2891
+ # @param Tags: 标签
2892
+ # 注意:此字段可能返回 null,表示取不到有效值。
2893
+ # @type Tags: Array
2894
+ # @param Errors: 订阅任务报错信息
2895
+ # 注意:此字段可能返回 null,表示取不到有效值。
2896
+ # @type Errors: Array
2897
+ # @param ExtraAttr: 为业务添加的额外信息。参数名作key,参数值作value。
2898
+ # mysql选填参数:ProcessXA-是否处理XA事务,为true处理,其他不处理。
2899
+ # mongo选填参数:SubscribeType-订阅类型,目前只支持changeStream。
2900
+ # 注意:此字段可能返回 null,表示取不到有效值。
2901
+ # @type ExtraAttr: Array
2902
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2903
+ # @type RequestId: String
2904
+
2905
+ attr_accessor :SubscribeId, :SubscribeName, :Product, :InstanceId, :InstanceStatus, :Status, :SubsStatus, :ModifyTime, :CreateTime, :IsolateTime, :ExpireTime, :OfflineTime, :PayType, :AutoRenewFlag, :Region, :Topic, :Broker, :SubscribeMode, :Protocol, :SubscribeObjects, :KafkaConfig, :AccessType, :Endpoints, :PipelineInfo, :Tags, :Errors, :ExtraAttr, :RequestId
2906
+
2907
+ def initialize(subscribeid=nil, subscribename=nil, product=nil, instanceid=nil, instancestatus=nil, status=nil, subsstatus=nil, modifytime=nil, createtime=nil, isolatetime=nil, expiretime=nil, offlinetime=nil, paytype=nil, autorenewflag=nil, region=nil, topic=nil, broker=nil, subscribemode=nil, protocol=nil, subscribeobjects=nil, kafkaconfig=nil, accesstype=nil, endpoints=nil, pipelineinfo=nil, tags=nil, errors=nil, extraattr=nil, requestid=nil)
2908
+ @SubscribeId = subscribeid
2909
+ @SubscribeName = subscribename
2910
+ @Product = product
2911
+ @InstanceId = instanceid
2912
+ @InstanceStatus = instancestatus
2913
+ @Status = status
2914
+ @SubsStatus = subsstatus
2915
+ @ModifyTime = modifytime
2916
+ @CreateTime = createtime
2917
+ @IsolateTime = isolatetime
2918
+ @ExpireTime = expiretime
2919
+ @OfflineTime = offlinetime
2920
+ @PayType = paytype
2921
+ @AutoRenewFlag = autorenewflag
2922
+ @Region = region
2923
+ @Topic = topic
2924
+ @Broker = broker
2925
+ @SubscribeMode = subscribemode
2926
+ @Protocol = protocol
2927
+ @SubscribeObjects = subscribeobjects
2928
+ @KafkaConfig = kafkaconfig
2929
+ @AccessType = accesstype
2930
+ @Endpoints = endpoints
2931
+ @PipelineInfo = pipelineinfo
2932
+ @Tags = tags
2933
+ @Errors = errors
2934
+ @ExtraAttr = extraattr
2935
+ @RequestId = requestid
2936
+ end
2937
+
2938
+ def deserialize(params)
2939
+ @SubscribeId = params['SubscribeId']
2940
+ @SubscribeName = params['SubscribeName']
2941
+ @Product = params['Product']
2942
+ @InstanceId = params['InstanceId']
2943
+ @InstanceStatus = params['InstanceStatus']
2944
+ @Status = params['Status']
2945
+ @SubsStatus = params['SubsStatus']
2946
+ @ModifyTime = params['ModifyTime']
2947
+ @CreateTime = params['CreateTime']
2948
+ @IsolateTime = params['IsolateTime']
2949
+ @ExpireTime = params['ExpireTime']
2950
+ @OfflineTime = params['OfflineTime']
2951
+ @PayType = params['PayType']
2952
+ @AutoRenewFlag = params['AutoRenewFlag']
2953
+ @Region = params['Region']
2954
+ @Topic = params['Topic']
2955
+ @Broker = params['Broker']
2956
+ @SubscribeMode = params['SubscribeMode']
2957
+ @Protocol = params['Protocol']
2958
+ unless params['SubscribeObjects'].nil?
2959
+ @SubscribeObjects = []
2960
+ params['SubscribeObjects'].each do |i|
2961
+ subscribeobject_tmp = SubscribeObject.new
2962
+ subscribeobject_tmp.deserialize(i)
2963
+ @SubscribeObjects << subscribeobject_tmp
2964
+ end
2965
+ end
2966
+ unless params['KafkaConfig'].nil?
2967
+ @KafkaConfig = SubscribeKafkaConfig.new
2968
+ @KafkaConfig.deserialize(params['KafkaConfig'])
2969
+ end
2970
+ @AccessType = params['AccessType']
2971
+ unless params['Endpoints'].nil?
2972
+ @Endpoints = []
2973
+ params['Endpoints'].each do |i|
2974
+ endpointitem_tmp = EndpointItem.new
2975
+ endpointitem_tmp.deserialize(i)
2976
+ @Endpoints << endpointitem_tmp
2977
+ end
2978
+ end
2979
+ unless params['PipelineInfo'].nil?
2980
+ @PipelineInfo = []
2981
+ params['PipelineInfo'].each do |i|
2982
+ pipelineinfo_tmp = PipelineInfo.new
2983
+ pipelineinfo_tmp.deserialize(i)
2984
+ @PipelineInfo << pipelineinfo_tmp
2985
+ end
2986
+ end
2987
+ unless params['Tags'].nil?
2988
+ @Tags = []
2989
+ params['Tags'].each do |i|
2990
+ tagitem_tmp = TagItem.new
2991
+ tagitem_tmp.deserialize(i)
2992
+ @Tags << tagitem_tmp
2993
+ end
2994
+ end
2995
+ unless params['Errors'].nil?
2996
+ @Errors = []
2997
+ params['Errors'].each do |i|
2998
+ subserr_tmp = SubsErr.new
2999
+ subserr_tmp.deserialize(i)
3000
+ @Errors << subserr_tmp
3001
+ end
3002
+ end
3003
+ unless params['ExtraAttr'].nil?
3004
+ @ExtraAttr = []
3005
+ params['ExtraAttr'].each do |i|
3006
+ keyvaluepairoption_tmp = KeyValuePairOption.new
3007
+ keyvaluepairoption_tmp.deserialize(i)
3008
+ @ExtraAttr << keyvaluepairoption_tmp
3009
+ end
3010
+ end
3011
+ @RequestId = params['RequestId']
3012
+ end
3013
+ end
3014
+
3015
+ # DescribeSubscribeJobs请求参数结构体
3016
+ class DescribeSubscribeJobsRequest < TencentCloud::Common::AbstractModel
3017
+ # @param SubscribeId: 订阅 ID 筛选,精确匹配
3018
+ # @type SubscribeId: String
3019
+ # @param SubscribeName: 订阅名称,前缀模糊匹配
3020
+ # @type SubscribeName: String
3021
+ # @param InstanceId: 订阅的云上数据库实例的 ID,精确匹配
3022
+ # @type InstanceId: String
3023
+ # @param PayType: 计费模式筛选,可能的值:0-包年包月,1-按量计费
3024
+ # @type PayType: Integer
3025
+ # @param Product: 订阅的数据库产品,目前支持 cynosdbmysql,mariadb,mongodb,mysql,percona,tdpg,tdsqlpercona(tdsqlmysql)
3026
+ # @type Product: String
3027
+ # @param Status: 数据订阅生命周期状态,可能的值为:正常 normal, 隔离中 isolating, 已隔离 isolated, 下线中 offlining,按量转包年包月中 post2PrePayIng
3028
+ # @type Status: Array
3029
+ # @param SubsStatus: 数据订阅状态,可能的值为:未启动 notStarted, 校验中 checking, 校验不通过 checkNotPass, 校验通过 checkPass, 启动中 starting, 运行中 running, 异常出错 error
3030
+ # @type SubsStatus: Array
3031
+ # @param Offset: 返回记录的起始偏移量。默认0
3032
+ # @type Offset: Integer
3033
+ # @param Limit: 单次返回的记录数量。默认20,最大100
3034
+ # @type Limit: Integer
3035
+ # @param OrderDirection: 排序方向,可选的值为"DESC"和"ASC",默认为"DESC",按创建时间逆序排序
3036
+ # @type OrderDirection: String
3037
+ # @param TagFilters: tag 过滤条件,多个 TagFilter 之间关系为且
3038
+ # @type TagFilters: Array
3039
+
3040
+ attr_accessor :SubscribeId, :SubscribeName, :InstanceId, :PayType, :Product, :Status, :SubsStatus, :Offset, :Limit, :OrderDirection, :TagFilters
3041
+
3042
+ def initialize(subscribeid=nil, subscribename=nil, instanceid=nil, paytype=nil, product=nil, status=nil, subsstatus=nil, offset=nil, limit=nil, orderdirection=nil, tagfilters=nil)
3043
+ @SubscribeId = subscribeid
3044
+ @SubscribeName = subscribename
3045
+ @InstanceId = instanceid
3046
+ @PayType = paytype
3047
+ @Product = product
3048
+ @Status = status
3049
+ @SubsStatus = subsstatus
3050
+ @Offset = offset
3051
+ @Limit = limit
3052
+ @OrderDirection = orderdirection
3053
+ @TagFilters = tagfilters
3054
+ end
3055
+
3056
+ def deserialize(params)
3057
+ @SubscribeId = params['SubscribeId']
3058
+ @SubscribeName = params['SubscribeName']
3059
+ @InstanceId = params['InstanceId']
3060
+ @PayType = params['PayType']
3061
+ @Product = params['Product']
3062
+ @Status = params['Status']
3063
+ @SubsStatus = params['SubsStatus']
3064
+ @Offset = params['Offset']
3065
+ @Limit = params['Limit']
3066
+ @OrderDirection = params['OrderDirection']
3067
+ unless params['TagFilters'].nil?
3068
+ @TagFilters = []
3069
+ params['TagFilters'].each do |i|
3070
+ tagfilter_tmp = TagFilter.new
3071
+ tagfilter_tmp.deserialize(i)
3072
+ @TagFilters << tagfilter_tmp
3073
+ end
3074
+ end
3075
+ end
3076
+ end
3077
+
3078
+ # DescribeSubscribeJobs返回参数结构体
3079
+ class DescribeSubscribeJobsResponse < TencentCloud::Common::AbstractModel
3080
+ # @param TotalCount: 符合查询条件的实例总数
3081
+ # @type TotalCount: Integer
3082
+ # @param Items: 数据订阅实例的信息列表
3083
+ # @type Items: Array
3084
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3085
+ # @type RequestId: String
3086
+
3087
+ attr_accessor :TotalCount, :Items, :RequestId
3088
+
3089
+ def initialize(totalcount=nil, items=nil, requestid=nil)
3090
+ @TotalCount = totalcount
3091
+ @Items = items
3092
+ @RequestId = requestid
3093
+ end
3094
+
3095
+ def deserialize(params)
3096
+ @TotalCount = params['TotalCount']
3097
+ unless params['Items'].nil?
3098
+ @Items = []
3099
+ params['Items'].each do |i|
3100
+ subscribeinfo_tmp = SubscribeInfo.new
3101
+ subscribeinfo_tmp.deserialize(i)
3102
+ @Items << subscribeinfo_tmp
3103
+ end
3104
+ end
3105
+ @RequestId = params['RequestId']
3106
+ end
3107
+ end
3108
+
3109
+ # DescribeSubscribeReturnable请求参数结构体
3110
+ class DescribeSubscribeReturnableRequest < TencentCloud::Common::AbstractModel
3111
+ # @param SubscribeId: 数据订阅实例的ID
3112
+ # @type SubscribeId: String
3113
+
3114
+ attr_accessor :SubscribeId
3115
+
3116
+ def initialize(subscribeid=nil)
3117
+ @SubscribeId = subscribeid
3118
+ end
3119
+
3120
+ def deserialize(params)
3121
+ @SubscribeId = params['SubscribeId']
3122
+ end
3123
+ end
3124
+
3125
+ # DescribeSubscribeReturnable返回参数结构体
3126
+ class DescribeSubscribeReturnableResponse < TencentCloud::Common::AbstractModel
3127
+ # @param IsReturnable: 实例是否支持退还/退货
3128
+ # @type IsReturnable: Boolean
3129
+ # @param ReturnFailMessage: 不支持退还的原因
3130
+ # 注意:此字段可能返回 null,表示取不到有效值。
3131
+ # @type ReturnFailMessage: String
3132
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3133
+ # @type RequestId: String
3134
+
3135
+ attr_accessor :IsReturnable, :ReturnFailMessage, :RequestId
3136
+
3137
+ def initialize(isreturnable=nil, returnfailmessage=nil, requestid=nil)
3138
+ @IsReturnable = isreturnable
3139
+ @ReturnFailMessage = returnfailmessage
3140
+ @RequestId = requestid
3141
+ end
3142
+
3143
+ def deserialize(params)
3144
+ @IsReturnable = params['IsReturnable']
3145
+ @ReturnFailMessage = params['ReturnFailMessage']
3146
+ @RequestId = params['RequestId']
3147
+ end
3148
+ end
3149
+
3150
+ # DescribeSyncJobs请求参数结构体
3151
+ class DescribeSyncJobsRequest < TencentCloud::Common::AbstractModel
3152
+ # @param JobId: 同步任务id,如sync-werwfs23
3153
+ # @type JobId: String
3154
+ # @param JobName: 同步任务名
3155
+ # @type JobName: String
3156
+ # @param Order: 排序字段,可以取值为CreateTime
3157
+ # @type Order: String
3158
+ # @param OrderSeq: 排序方式,升序为ASC,降序为DESC,默认为CreateTime降序
3159
+ # @type OrderSeq: String
3160
+ # @param Offset: 偏移量,默认为0
3161
+ # @type Offset: Integer
3162
+ # @param Limit: 返回同步任务实例数量,默认20,有效区间[1,100]
3163
+ # @type Limit: Integer
3164
+ # @param Status: 状态集合,如Initialized,CheckPass,Running,ResumableErr,Stopped
3165
+ # @type Status: Array
3166
+ # @param RunMode: 运行模式,如Immediate:立即运行,Timed:定时运行
3167
+ # @type RunMode: String
3168
+ # @param JobType: 任务类型,如mysql2mysql:msyql同步到mysql
3169
+ # @type JobType: String
3170
+ # @param PayMode: 付费类型,PrePay:预付费,PostPay:后付费
3171
+ # @type PayMode: String
3172
+ # @param TagFilters: tag
3173
+ # @type TagFilters: Array
3174
+
3175
+ attr_accessor :JobId, :JobName, :Order, :OrderSeq, :Offset, :Limit, :Status, :RunMode, :JobType, :PayMode, :TagFilters
3176
+
3177
+ def initialize(jobid=nil, jobname=nil, order=nil, orderseq=nil, offset=nil, limit=nil, status=nil, runmode=nil, jobtype=nil, paymode=nil, tagfilters=nil)
3178
+ @JobId = jobid
3179
+ @JobName = jobname
3180
+ @Order = order
3181
+ @OrderSeq = orderseq
3182
+ @Offset = offset
3183
+ @Limit = limit
3184
+ @Status = status
3185
+ @RunMode = runmode
3186
+ @JobType = jobtype
3187
+ @PayMode = paymode
3188
+ @TagFilters = tagfilters
3189
+ end
3190
+
3191
+ def deserialize(params)
3192
+ @JobId = params['JobId']
3193
+ @JobName = params['JobName']
3194
+ @Order = params['Order']
3195
+ @OrderSeq = params['OrderSeq']
3196
+ @Offset = params['Offset']
3197
+ @Limit = params['Limit']
3198
+ @Status = params['Status']
3199
+ @RunMode = params['RunMode']
3200
+ @JobType = params['JobType']
3201
+ @PayMode = params['PayMode']
3202
+ unless params['TagFilters'].nil?
3203
+ @TagFilters = []
3204
+ params['TagFilters'].each do |i|
3205
+ tagfilter_tmp = TagFilter.new
3206
+ tagfilter_tmp.deserialize(i)
3207
+ @TagFilters << tagfilter_tmp
3208
+ end
3209
+ end
3210
+ end
3211
+ end
3212
+
3213
+ # DescribeSyncJobs返回参数结构体
3214
+ class DescribeSyncJobsResponse < TencentCloud::Common::AbstractModel
3215
+ # @param TotalCount: 任务数目
3216
+ # 注意:此字段可能返回 null,表示取不到有效值。
3217
+ # @type TotalCount: Integer
3218
+ # @param JobList: 任务详情数组
3219
+ # 注意:此字段可能返回 null,表示取不到有效值。
3220
+ # @type JobList: Array
3221
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3222
+ # @type RequestId: String
3223
+
3224
+ attr_accessor :TotalCount, :JobList, :RequestId
2425
3225
 
2426
3226
  def initialize(totalcount=nil, joblist=nil, requestid=nil)
2427
3227
  @TotalCount = totalcount
@@ -2443,6 +3243,38 @@ module TencentCloud
2443
3243
  end
2444
3244
  end
2445
3245
 
3246
+ # DestroyIsolatedSubscribe请求参数结构体
3247
+ class DestroyIsolatedSubscribeRequest < TencentCloud::Common::AbstractModel
3248
+ # @param SubscribeId: 数据订阅实例的ID
3249
+ # @type SubscribeId: String
3250
+
3251
+ attr_accessor :SubscribeId
3252
+
3253
+ def initialize(subscribeid=nil)
3254
+ @SubscribeId = subscribeid
3255
+ end
3256
+
3257
+ def deserialize(params)
3258
+ @SubscribeId = params['SubscribeId']
3259
+ end
3260
+ end
3261
+
3262
+ # DestroyIsolatedSubscribe返回参数结构体
3263
+ class DestroyIsolatedSubscribeResponse < TencentCloud::Common::AbstractModel
3264
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3265
+ # @type RequestId: String
3266
+
3267
+ attr_accessor :RequestId
3268
+
3269
+ def initialize(requestid=nil)
3270
+ @RequestId = requestid
3271
+ end
3272
+
3273
+ def deserialize(params)
3274
+ @RequestId = params['RequestId']
3275
+ end
3276
+ end
3277
+
2446
3278
  # DestroyMigrateJob请求参数结构体
2447
3279
  class DestroyMigrateJobRequest < TencentCloud::Common::AbstractModel
2448
3280
  # @param JobId: 任务id
@@ -2650,6 +3482,38 @@ module TencentCloud
2650
3482
  end
2651
3483
  end
2652
3484
 
3485
+ # 订阅任务的kafka分区规则。符合库名和表名正则表达式的数据将按照RuleType计算该条数据将被投递的kafka分区。如果配置了多个规则,将按照配置的顺序,第一条命中的规则生效。
3486
+ class DistributeRule < TencentCloud::Common::AbstractModel
3487
+ # @param RuleType: 规则类型。非mongo产品的枚举值为: table-按表名分区,pk-按表名+主键分区,cols-按列名分区。mongo的枚举值为:collection-按集合名分区、collectionAndObjectId-按集合+主键分区。
3488
+ # 注意:此字段可能返回 null,表示取不到有效值。
3489
+ # @type RuleType: String
3490
+ # @param DbPattern: 库名匹配规则,请填写正则表达式
3491
+ # 注意:此字段可能返回 null,表示取不到有效值。
3492
+ # @type DbPattern: String
3493
+ # @param TablePattern: 表名匹配规则,如果 DatabaseType 为 mongodb,则匹配集合名
3494
+ # 注意:此字段可能返回 null,表示取不到有效值。
3495
+ # @type TablePattern: String
3496
+ # @param Columns: 列名。如果 RuleType 为 cols,此项必填。订阅任务会用该列的值计算分区。mongo没有按列分区,因此也不用传这个字段。
3497
+ # 注意:此字段可能返回 null,表示取不到有效值。
3498
+ # @type Columns: Array
3499
+
3500
+ attr_accessor :RuleType, :DbPattern, :TablePattern, :Columns
3501
+
3502
+ def initialize(ruletype=nil, dbpattern=nil, tablepattern=nil, columns=nil)
3503
+ @RuleType = ruletype
3504
+ @DbPattern = dbpattern
3505
+ @TablePattern = tablepattern
3506
+ @Columns = columns
3507
+ end
3508
+
3509
+ def deserialize(params)
3510
+ @RuleType = params['RuleType']
3511
+ @DbPattern = params['DbPattern']
3512
+ @TablePattern = params['TablePattern']
3513
+ @Columns = params['Columns']
3514
+ end
3515
+ end
3516
+
2653
3517
  # 数据同步中的选项
2654
3518
  class DynamicOptions < TencentCloud::Common::AbstractModel
2655
3519
  # @param OpTypes: 所要同步的DML和DDL的选项,Insert(插入操作)、Update(更新操作)、Delete(删除操作)、DDL(结构同步),PartialDDL(自定义,和DdlOptions一起起作用 );必填、dts会用该值覆盖原有的值
@@ -2809,33 +3673,132 @@ module TencentCloud
2809
3673
  end
2810
3674
 
2811
3675
  def deserialize(params)
2812
- @Region = params['Region']
2813
- @Role = params['Role']
2814
- @DbKernel = params['DbKernel']
2815
- @InstanceId = params['InstanceId']
2816
- @Ip = params['Ip']
2817
- @Port = params['Port']
3676
+ @Region = params['Region']
3677
+ @Role = params['Role']
3678
+ @DbKernel = params['DbKernel']
3679
+ @InstanceId = params['InstanceId']
3680
+ @Ip = params['Ip']
3681
+ @Port = params['Port']
3682
+ @User = params['User']
3683
+ @Password = params['Password']
3684
+ @DbName = params['DbName']
3685
+ @VpcId = params['VpcId']
3686
+ @SubnetId = params['SubnetId']
3687
+ @CvmInstanceId = params['CvmInstanceId']
3688
+ @UniqDcgId = params['UniqDcgId']
3689
+ @UniqVpnGwId = params['UniqVpnGwId']
3690
+ @CcnId = params['CcnId']
3691
+ @Supplier = params['Supplier']
3692
+ @EngineVersion = params['EngineVersion']
3693
+ @Account = params['Account']
3694
+ @AccountMode = params['AccountMode']
3695
+ @AccountRole = params['AccountRole']
3696
+ @RoleExternalId = params['RoleExternalId']
3697
+ @TmpSecretId = params['TmpSecretId']
3698
+ @TmpSecretKey = params['TmpSecretKey']
3699
+ @TmpToken = params['TmpToken']
3700
+ @EncryptConn = params['EncryptConn']
3701
+ @DatabaseNetEnv = params['DatabaseNetEnv']
3702
+ @CcnOwnerUin = params['CcnOwnerUin']
3703
+ end
3704
+ end
3705
+
3706
+ # 数据订阅的实例节点信息
3707
+ class EndpointItem < TencentCloud::Common::AbstractModel
3708
+ # @param DatabaseRegion: 源库所在地域。如果 AccessType 为 ccn,请填vpc所在地域,因为此时不知道源库在哪个地域。其他接入方式,请填订阅任务所在地域,因为确保订阅任务与源库在同一地域是最优的网络方案。
3709
+ # 注意:此字段可能返回 null,表示取不到有效值。
3710
+ # @type DatabaseRegion: String
3711
+ # @param User: 用户名
3712
+ # 注意:此字段可能返回 null,表示取不到有效值。
3713
+ # @type User: String
3714
+ # @param Password: 密码。作为入参时必填,作为出参时为空。
3715
+ # 注意:此字段可能返回 null,表示取不到有效值。
3716
+ # @type Password: String
3717
+ # @param InstanceId: 目标实例ID。如果 AccessType 为 cdb,此项必填。配置InstanceId时会查询并校验实例信息。mysql的查询接口经过了鉴权,请确保子用户有 cdb:DescribeDBInstances 的接口权限。
3718
+ # 注意:此字段可能返回 null,表示取不到有效值。
3719
+ # @type InstanceId: String
3720
+ # @param CvmInstanceId: 云主机ID。如果 AccessType 为 cvm,此项必填。
3721
+ # 注意:此字段可能返回 null,表示取不到有效值。
3722
+ # @type CvmInstanceId: String
3723
+ # @param UniqDcgId: 专线网关ID。如果 AccessType 为 dcg,此项必填。
3724
+ # 注意:此字段可能返回 null,表示取不到有效值。
3725
+ # @type UniqDcgId: String
3726
+ # @param CcnId: 云联网ID。如果 AccessType 为 ccn,此项必填。
3727
+ # 注意:此字段可能返回 null,表示取不到有效值。
3728
+ # @type CcnId: String
3729
+ # @param UniqVpnGwId: vpn网关ID。如果 AccessType 为 vpncloud,此项必填。
3730
+ # 注意:此字段可能返回 null,表示取不到有效值。
3731
+ # @type UniqVpnGwId: String
3732
+ # @param VpcId: VpcID。如果 AccessType 为 dcg\ccn\vpncloud\vpc,此项必填。
3733
+ # 注意:此字段可能返回 null,表示取不到有效值。
3734
+ # @type VpcId: String
3735
+ # @param SubnetId: 子网ID。如果 AccessType 为 dcg\ccn\vpncloud\vpc,此项必填。
3736
+ # 注意:此字段可能返回 null,表示取不到有效值。
3737
+ # @type SubnetId: String
3738
+ # @param HostName: 数据库地址,支持域名与IP。如果 AccessType 为 dcg\ccn\vpncloud\vpc\extranet\intranet,此项必填。
3739
+ # 注意:此字段可能返回 null,表示取不到有效值。
3740
+ # @type HostName: String
3741
+ # @param Port: 数据库端口。如果 AccessType 为 dcg\ccn\vpncloud\vpc\extranet\intranet\cvm,此项必填。
3742
+ # 注意:此字段可能返回 null,表示取不到有效值。
3743
+ # @type Port: Integer
3744
+ # @param EncryptConn: 是否走加密传输,枚举值:UnEncrypted-不加密,Encrypted-加密。只有mysql支持,不填默认不加密,其他产品不填。
3745
+ # 注意:此字段可能返回 null,表示取不到有效值。
3746
+ # @type EncryptConn: String
3747
+ # @param DatabaseNetEnv: 数据库网络环境。如果 AccessType 为 ccn 此项必填。枚举值:UserIDC-自建idc,TencentVPC-腾讯云,Aws-aws,AliYun-阿里云,Others-其他。
3748
+ # 注意:此字段可能返回 null,表示取不到有效值。
3749
+ # @type DatabaseNetEnv: String
3750
+ # @param CcnOwnerUin: 云联网网关所属的主账号uin、跨账号云联网需要。
3751
+ # 注意:此字段可能返回 null,表示取不到有效值。
3752
+ # @type CcnOwnerUin: String
3753
+ # @param ExtraAttr: 为业务添加的额外信息。参数名作key,参数值作value。 tdpg必填参数:PgDatabase-订阅的库名。
3754
+ # 注意:此字段可能返回 null,表示取不到有效值。
3755
+ # @type ExtraAttr: Array
3756
+
3757
+ attr_accessor :DatabaseRegion, :User, :Password, :InstanceId, :CvmInstanceId, :UniqDcgId, :CcnId, :UniqVpnGwId, :VpcId, :SubnetId, :HostName, :Port, :EncryptConn, :DatabaseNetEnv, :CcnOwnerUin, :ExtraAttr
3758
+
3759
+ def initialize(databaseregion=nil, user=nil, password=nil, instanceid=nil, cvminstanceid=nil, uniqdcgid=nil, ccnid=nil, uniqvpngwid=nil, vpcid=nil, subnetid=nil, hostname=nil, port=nil, encryptconn=nil, databasenetenv=nil, ccnowneruin=nil, extraattr=nil)
3760
+ @DatabaseRegion = databaseregion
3761
+ @User = user
3762
+ @Password = password
3763
+ @InstanceId = instanceid
3764
+ @CvmInstanceId = cvminstanceid
3765
+ @UniqDcgId = uniqdcgid
3766
+ @CcnId = ccnid
3767
+ @UniqVpnGwId = uniqvpngwid
3768
+ @VpcId = vpcid
3769
+ @SubnetId = subnetid
3770
+ @HostName = hostname
3771
+ @Port = port
3772
+ @EncryptConn = encryptconn
3773
+ @DatabaseNetEnv = databasenetenv
3774
+ @CcnOwnerUin = ccnowneruin
3775
+ @ExtraAttr = extraattr
3776
+ end
3777
+
3778
+ def deserialize(params)
3779
+ @DatabaseRegion = params['DatabaseRegion']
2818
3780
  @User = params['User']
2819
3781
  @Password = params['Password']
2820
- @DbName = params['DbName']
2821
- @VpcId = params['VpcId']
2822
- @SubnetId = params['SubnetId']
3782
+ @InstanceId = params['InstanceId']
2823
3783
  @CvmInstanceId = params['CvmInstanceId']
2824
3784
  @UniqDcgId = params['UniqDcgId']
2825
- @UniqVpnGwId = params['UniqVpnGwId']
2826
3785
  @CcnId = params['CcnId']
2827
- @Supplier = params['Supplier']
2828
- @EngineVersion = params['EngineVersion']
2829
- @Account = params['Account']
2830
- @AccountMode = params['AccountMode']
2831
- @AccountRole = params['AccountRole']
2832
- @RoleExternalId = params['RoleExternalId']
2833
- @TmpSecretId = params['TmpSecretId']
2834
- @TmpSecretKey = params['TmpSecretKey']
2835
- @TmpToken = params['TmpToken']
3786
+ @UniqVpnGwId = params['UniqVpnGwId']
3787
+ @VpcId = params['VpcId']
3788
+ @SubnetId = params['SubnetId']
3789
+ @HostName = params['HostName']
3790
+ @Port = params['Port']
2836
3791
  @EncryptConn = params['EncryptConn']
2837
3792
  @DatabaseNetEnv = params['DatabaseNetEnv']
2838
3793
  @CcnOwnerUin = params['CcnOwnerUin']
3794
+ unless params['ExtraAttr'].nil?
3795
+ @ExtraAttr = []
3796
+ params['ExtraAttr'].each do |i|
3797
+ keyvaluepairoption_tmp = KeyValuePairOption.new
3798
+ keyvaluepairoption_tmp.deserialize(i)
3799
+ @ExtraAttr << keyvaluepairoption_tmp
3800
+ end
3801
+ end
2839
3802
  end
2840
3803
  end
2841
3804
 
@@ -2897,6 +3860,78 @@ module TencentCloud
2897
3860
  end
2898
3861
  end
2899
3862
 
3863
+ # kafka消费者组详情
3864
+ class GroupInfo < TencentCloud::Common::AbstractModel
3865
+ # @param Account: 消费者组账号
3866
+ # @type Account: String
3867
+ # @param ConsumerGroupName: 消费者组名称
3868
+ # @type ConsumerGroupName: String
3869
+ # @param Description: 消费者组备注
3870
+ # 注意:此字段可能返回 null,表示取不到有效值。
3871
+ # @type Description: String
3872
+ # @param ConsumerGroupOffset: 消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段
3873
+ # @type ConsumerGroupOffset: Integer
3874
+ # @param ConsumerGroupLag: 消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段
3875
+ # @type ConsumerGroupLag: Integer
3876
+ # @param Latency: 消费延迟(单位为秒)
3877
+ # @type Latency: Integer
3878
+ # @param StateOfPartition: 各分区的消费状态
3879
+ # @type StateOfPartition: Array
3880
+ # @param CreatedAt: 消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss
3881
+ # @type CreatedAt: String
3882
+ # @param UpdatedAt: 消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss
3883
+ # @type UpdatedAt: String
3884
+ # @param ConsumerGroupState: 消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作
3885
+ # @type ConsumerGroupState: String
3886
+ # @param PartitionAssignment: 每个消费者正在消费的分区
3887
+ # 注意:此字段可能返回 null,表示取不到有效值。
3888
+ # @type PartitionAssignment: Array
3889
+
3890
+ attr_accessor :Account, :ConsumerGroupName, :Description, :ConsumerGroupOffset, :ConsumerGroupLag, :Latency, :StateOfPartition, :CreatedAt, :UpdatedAt, :ConsumerGroupState, :PartitionAssignment
3891
+
3892
+ def initialize(account=nil, consumergroupname=nil, description=nil, consumergroupoffset=nil, consumergrouplag=nil, latency=nil, stateofpartition=nil, createdat=nil, updatedat=nil, consumergroupstate=nil, partitionassignment=nil)
3893
+ @Account = account
3894
+ @ConsumerGroupName = consumergroupname
3895
+ @Description = description
3896
+ @ConsumerGroupOffset = consumergroupoffset
3897
+ @ConsumerGroupLag = consumergrouplag
3898
+ @Latency = latency
3899
+ @StateOfPartition = stateofpartition
3900
+ @CreatedAt = createdat
3901
+ @UpdatedAt = updatedat
3902
+ @ConsumerGroupState = consumergroupstate
3903
+ @PartitionAssignment = partitionassignment
3904
+ end
3905
+
3906
+ def deserialize(params)
3907
+ @Account = params['Account']
3908
+ @ConsumerGroupName = params['ConsumerGroupName']
3909
+ @Description = params['Description']
3910
+ @ConsumerGroupOffset = params['ConsumerGroupOffset']
3911
+ @ConsumerGroupLag = params['ConsumerGroupLag']
3912
+ @Latency = params['Latency']
3913
+ unless params['StateOfPartition'].nil?
3914
+ @StateOfPartition = []
3915
+ params['StateOfPartition'].each do |i|
3916
+ monitorinfo_tmp = MonitorInfo.new
3917
+ monitorinfo_tmp.deserialize(i)
3918
+ @StateOfPartition << monitorinfo_tmp
3919
+ end
3920
+ end
3921
+ @CreatedAt = params['CreatedAt']
3922
+ @UpdatedAt = params['UpdatedAt']
3923
+ @ConsumerGroupState = params['ConsumerGroupState']
3924
+ unless params['PartitionAssignment'].nil?
3925
+ @PartitionAssignment = []
3926
+ params['PartitionAssignment'].each do |i|
3927
+ partitionassignment_tmp = PartitionAssignment.new
3928
+ partitionassignment_tmp.deserialize(i)
3929
+ @PartitionAssignment << partitionassignment_tmp
3930
+ end
3931
+ end
3932
+ end
3933
+ end
3934
+
2900
3935
  # IsolateMigrateJob请求参数结构体
2901
3936
  class IsolateMigrateJobRequest < TencentCloud::Common::AbstractModel
2902
3937
  # @param JobId: 任务id
@@ -2929,6 +3964,38 @@ module TencentCloud
2929
3964
  end
2930
3965
  end
2931
3966
 
3967
+ # IsolateSubscribe请求参数结构体
3968
+ class IsolateSubscribeRequest < TencentCloud::Common::AbstractModel
3969
+ # @param SubscribeId: 订阅实例ID
3970
+ # @type SubscribeId: String
3971
+
3972
+ attr_accessor :SubscribeId
3973
+
3974
+ def initialize(subscribeid=nil)
3975
+ @SubscribeId = subscribeid
3976
+ end
3977
+
3978
+ def deserialize(params)
3979
+ @SubscribeId = params['SubscribeId']
3980
+ end
3981
+ end
3982
+
3983
+ # IsolateSubscribe返回参数结构体
3984
+ class IsolateSubscribeResponse < TencentCloud::Common::AbstractModel
3985
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3986
+ # @type RequestId: String
3987
+
3988
+ attr_accessor :RequestId
3989
+
3990
+ def initialize(requestid=nil)
3991
+ @RequestId = requestid
3992
+ end
3993
+
3994
+ def deserialize(params)
3995
+ @RequestId = params['RequestId']
3996
+ end
3997
+ end
3998
+
2932
3999
  # IsolateSyncJob请求参数结构体
2933
4000
  class IsolateSyncJobRequest < TencentCloud::Common::AbstractModel
2934
4001
  # @param JobId: 同步任务id
@@ -3315,6 +4382,34 @@ module TencentCloud
3315
4382
  end
3316
4383
  end
3317
4384
 
4385
+ # 数据数据订阅的对象,用于修改订阅对象接口。与SubscribeObject结构类似,只是类型和参数名不同。
4386
+ class ModifiedSubscribeObject < TencentCloud::Common::AbstractModel
4387
+ # @param ObjectsType: 订阅对象的类型,枚举值为:0-库,1-表(该值对于mongo任务来说,是集合) 。
4388
+ # 注意:mongo只支持全实例、单库或者单集合订阅,因此该字段不要与SubscribeObjectType冲突。如:SubscribeObjectType=4,表示mongo单库订阅,那么该字段应该传0。
4389
+ # 注意:此字段可能返回 null,表示取不到有效值。
4390
+ # @type ObjectsType: Integer
4391
+ # @param DatabaseName: 订阅数据库的名称
4392
+ # 注意:此字段可能返回 null,表示取不到有效值。
4393
+ # @type DatabaseName: String
4394
+ # @param TableNames: 订阅数据库中表(或集合)的名称。如果 ObjectsType 为 1,那么此字段为必填,且不为空;
4395
+ # 注意:此字段可能返回 null,表示取不到有效值。
4396
+ # @type TableNames: Array
4397
+
4398
+ attr_accessor :ObjectsType, :DatabaseName, :TableNames
4399
+
4400
+ def initialize(objectstype=nil, databasename=nil, tablenames=nil)
4401
+ @ObjectsType = objectstype
4402
+ @DatabaseName = databasename
4403
+ @TableNames = tablenames
4404
+ end
4405
+
4406
+ def deserialize(params)
4407
+ @ObjectsType = params['ObjectsType']
4408
+ @DatabaseName = params['DatabaseName']
4409
+ @TableNames = params['TableNames']
4410
+ end
4411
+ end
4412
+
3318
4413
  # ModifyCompareTaskName请求参数结构体
3319
4414
  class ModifyCompareTaskNameRequest < TencentCloud::Common::AbstractModel
3320
4415
  # @param JobId: 迁移任务 Id
@@ -3413,6 +4508,100 @@ module TencentCloud
3413
4508
  end
3414
4509
  end
3415
4510
 
4511
+ # ModifyConsumerGroupDescription请求参数结构体
4512
+ class ModifyConsumerGroupDescriptionRequest < TencentCloud::Common::AbstractModel
4513
+ # @param SubscribeId: 数据订阅实例的 ID
4514
+ # @type SubscribeId: String
4515
+ # @param ConsumerGroupName: 消费组名称。实际的消费组全称形如:consumer-grp-#{SubscribeId}-#{ConsumerGroupName}。
4516
+ # 请务必保证消费组名称正确。
4517
+ # @type ConsumerGroupName: String
4518
+ # @param AccountName: 账户名称。实际的账户全称形如:account-#{SubscribeId}-#{AccountName}。
4519
+ # 请务必保证账户名称正确。
4520
+ # @type AccountName: String
4521
+ # @param Description: 修改之后的消费组描述
4522
+ # @type Description: String
4523
+
4524
+ attr_accessor :SubscribeId, :ConsumerGroupName, :AccountName, :Description
4525
+
4526
+ def initialize(subscribeid=nil, consumergroupname=nil, accountname=nil, description=nil)
4527
+ @SubscribeId = subscribeid
4528
+ @ConsumerGroupName = consumergroupname
4529
+ @AccountName = accountname
4530
+ @Description = description
4531
+ end
4532
+
4533
+ def deserialize(params)
4534
+ @SubscribeId = params['SubscribeId']
4535
+ @ConsumerGroupName = params['ConsumerGroupName']
4536
+ @AccountName = params['AccountName']
4537
+ @Description = params['Description']
4538
+ end
4539
+ end
4540
+
4541
+ # ModifyConsumerGroupDescription返回参数结构体
4542
+ class ModifyConsumerGroupDescriptionResponse < TencentCloud::Common::AbstractModel
4543
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4544
+ # @type RequestId: String
4545
+
4546
+ attr_accessor :RequestId
4547
+
4548
+ def initialize(requestid=nil)
4549
+ @RequestId = requestid
4550
+ end
4551
+
4552
+ def deserialize(params)
4553
+ @RequestId = params['RequestId']
4554
+ end
4555
+ end
4556
+
4557
+ # ModifyConsumerGroupPassword请求参数结构体
4558
+ class ModifyConsumerGroupPasswordRequest < TencentCloud::Common::AbstractModel
4559
+ # @param SubscribeId: 数据订阅实例的 ID
4560
+ # @type SubscribeId: String
4561
+ # @param AccountName: 账号名称。实际的账户全称形如:account-#{SubscribeId}-#{AccountName}
4562
+ # @type AccountName: String
4563
+ # @param ConsumerGroupName: 消费组名称。实际的消费组全称形如:consumer-grp-#{SubscribeId}-#{ConsumerGroupName}
4564
+ # @type ConsumerGroupName: String
4565
+ # @param OldPassword: 旧密码
4566
+ # @type OldPassword: String
4567
+ # @param NewPassword: 新密码。字符长度不小于3,不大于32
4568
+ # @type NewPassword: String
4569
+
4570
+ attr_accessor :SubscribeId, :AccountName, :ConsumerGroupName, :OldPassword, :NewPassword
4571
+
4572
+ def initialize(subscribeid=nil, accountname=nil, consumergroupname=nil, oldpassword=nil, newpassword=nil)
4573
+ @SubscribeId = subscribeid
4574
+ @AccountName = accountname
4575
+ @ConsumerGroupName = consumergroupname
4576
+ @OldPassword = oldpassword
4577
+ @NewPassword = newpassword
4578
+ end
4579
+
4580
+ def deserialize(params)
4581
+ @SubscribeId = params['SubscribeId']
4582
+ @AccountName = params['AccountName']
4583
+ @ConsumerGroupName = params['ConsumerGroupName']
4584
+ @OldPassword = params['OldPassword']
4585
+ @NewPassword = params['NewPassword']
4586
+ end
4587
+ end
4588
+
4589
+ # ModifyConsumerGroupPassword返回参数结构体
4590
+ class ModifyConsumerGroupPasswordResponse < TencentCloud::Common::AbstractModel
4591
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4592
+ # @type RequestId: String
4593
+
4594
+ attr_accessor :RequestId
4595
+
4596
+ def initialize(requestid=nil)
4597
+ @RequestId = requestid
4598
+ end
4599
+
4600
+ def deserialize(params)
4601
+ @RequestId = params['RequestId']
4602
+ end
4603
+ end
4604
+
3416
4605
  # ModifyMigrateJobSpec请求参数结构体
3417
4606
  class ModifyMigrateJobSpecRequest < TencentCloud::Common::AbstractModel
3418
4607
  # @param JobId: 任务id
@@ -3660,6 +4849,153 @@ module TencentCloud
3660
4849
  end
3661
4850
  end
3662
4851
 
4852
+ # ModifySubscribeAutoRenewFlag请求参数结构体
4853
+ class ModifySubscribeAutoRenewFlagRequest < TencentCloud::Common::AbstractModel
4854
+ # @param SubscribeId: 订阅实例ID
4855
+ # @type SubscribeId: String
4856
+ # @param AutoRenewFlag: 自动续费标识。1-自动续费,0-不自动续费
4857
+ # @type AutoRenewFlag: Integer
4858
+
4859
+ attr_accessor :SubscribeId, :AutoRenewFlag
4860
+
4861
+ def initialize(subscribeid=nil, autorenewflag=nil)
4862
+ @SubscribeId = subscribeid
4863
+ @AutoRenewFlag = autorenewflag
4864
+ end
4865
+
4866
+ def deserialize(params)
4867
+ @SubscribeId = params['SubscribeId']
4868
+ @AutoRenewFlag = params['AutoRenewFlag']
4869
+ end
4870
+ end
4871
+
4872
+ # ModifySubscribeAutoRenewFlag返回参数结构体
4873
+ class ModifySubscribeAutoRenewFlagResponse < TencentCloud::Common::AbstractModel
4874
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4875
+ # @type RequestId: String
4876
+
4877
+ attr_accessor :RequestId
4878
+
4879
+ def initialize(requestid=nil)
4880
+ @RequestId = requestid
4881
+ end
4882
+
4883
+ def deserialize(params)
4884
+ @RequestId = params['RequestId']
4885
+ end
4886
+ end
4887
+
4888
+ # ModifySubscribeName请求参数结构体
4889
+ class ModifySubscribeNameRequest < TencentCloud::Common::AbstractModel
4890
+ # @param SubscribeId: 数据订阅实例的ID
4891
+ # @type SubscribeId: String
4892
+ # @param SubscribeName: 修改后的数据订阅实例的名称,长度限制为[1,60]
4893
+ # @type SubscribeName: String
4894
+
4895
+ attr_accessor :SubscribeId, :SubscribeName
4896
+
4897
+ def initialize(subscribeid=nil, subscribename=nil)
4898
+ @SubscribeId = subscribeid
4899
+ @SubscribeName = subscribename
4900
+ end
4901
+
4902
+ def deserialize(params)
4903
+ @SubscribeId = params['SubscribeId']
4904
+ @SubscribeName = params['SubscribeName']
4905
+ end
4906
+ end
4907
+
4908
+ # ModifySubscribeName返回参数结构体
4909
+ class ModifySubscribeNameResponse < TencentCloud::Common::AbstractModel
4910
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4911
+ # @type RequestId: String
4912
+
4913
+ attr_accessor :RequestId
4914
+
4915
+ def initialize(requestid=nil)
4916
+ @RequestId = requestid
4917
+ end
4918
+
4919
+ def deserialize(params)
4920
+ @RequestId = params['RequestId']
4921
+ end
4922
+ end
4923
+
4924
+ # ModifySubscribeObjects请求参数结构体
4925
+ class ModifySubscribeObjectsRequest < TencentCloud::Common::AbstractModel
4926
+ # @param SubscribeId: 数据订阅实例的ID
4927
+ # @type SubscribeId: String
4928
+ # @param SubscribeObjectType: 数据订阅的类型,非mongo任务的枚举值:0-全实例更新;1-数据更新;2-结构更新;3-数据更新+结构更新。mongo任务的枚举值:0-全实例更新;4-订阅单库;5-订阅单集合
4929
+ # @type SubscribeObjectType: Integer
4930
+ # @param Objects: 修改后的订阅数据库表信息。会覆盖原来的订阅对象,所以除非 SubscribeObjectType = 0或2,否则改字段必填。
4931
+ # @type Objects: Array
4932
+ # @param DistributeRules: kafka分区策略。如果不填,默认不修改。如果填了,会覆盖原来的策略。
4933
+ # @type DistributeRules: Array
4934
+ # @param DefaultRuleType: 默认分区策略。不满足DistributeRules中正则表达式的数据,将按照默认分区策略计算分区。
4935
+ # 非mongo产品支持的默认策略: table-按表名分区,pk-按表名+主键分区。mongo的默认策略仅支持:collection-按集合名分区。
4936
+ # 该字段与DistributeRules搭配使用。如果配置了DistributeRules,该字段也必填。如果配置了该字段,视为配置了一条DistributeRules,原来的分区策略也会被覆盖。
4937
+ # @type DefaultRuleType: String
4938
+ # @param PipelineInfo: mongo输出聚合设置,mongo任务可选。如果不填,默认不修改。
4939
+ # @type PipelineInfo: Array
4940
+
4941
+ attr_accessor :SubscribeId, :SubscribeObjectType, :Objects, :DistributeRules, :DefaultRuleType, :PipelineInfo
4942
+
4943
+ def initialize(subscribeid=nil, subscribeobjecttype=nil, objects=nil, distributerules=nil, defaultruletype=nil, pipelineinfo=nil)
4944
+ @SubscribeId = subscribeid
4945
+ @SubscribeObjectType = subscribeobjecttype
4946
+ @Objects = objects
4947
+ @DistributeRules = distributerules
4948
+ @DefaultRuleType = defaultruletype
4949
+ @PipelineInfo = pipelineinfo
4950
+ end
4951
+
4952
+ def deserialize(params)
4953
+ @SubscribeId = params['SubscribeId']
4954
+ @SubscribeObjectType = params['SubscribeObjectType']
4955
+ unless params['Objects'].nil?
4956
+ @Objects = []
4957
+ params['Objects'].each do |i|
4958
+ modifiedsubscribeobject_tmp = ModifiedSubscribeObject.new
4959
+ modifiedsubscribeobject_tmp.deserialize(i)
4960
+ @Objects << modifiedsubscribeobject_tmp
4961
+ end
4962
+ end
4963
+ unless params['DistributeRules'].nil?
4964
+ @DistributeRules = []
4965
+ params['DistributeRules'].each do |i|
4966
+ distributerule_tmp = DistributeRule.new
4967
+ distributerule_tmp.deserialize(i)
4968
+ @DistributeRules << distributerule_tmp
4969
+ end
4970
+ end
4971
+ @DefaultRuleType = params['DefaultRuleType']
4972
+ unless params['PipelineInfo'].nil?
4973
+ @PipelineInfo = []
4974
+ params['PipelineInfo'].each do |i|
4975
+ pipelineinfo_tmp = PipelineInfo.new
4976
+ pipelineinfo_tmp.deserialize(i)
4977
+ @PipelineInfo << pipelineinfo_tmp
4978
+ end
4979
+ end
4980
+ end
4981
+ end
4982
+
4983
+ # ModifySubscribeObjects返回参数结构体
4984
+ class ModifySubscribeObjectsResponse < TencentCloud::Common::AbstractModel
4985
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4986
+ # @type RequestId: String
4987
+
4988
+ attr_accessor :RequestId
4989
+
4990
+ def initialize(requestid=nil)
4991
+ @RequestId = requestid
4992
+ end
4993
+
4994
+ def deserialize(params)
4995
+ @RequestId = params['RequestId']
4996
+ end
4997
+ end
4998
+
3663
4999
  # ModifySyncJobConfig请求参数结构体
3664
5000
  class ModifySyncJobConfigRequest < TencentCloud::Common::AbstractModel
3665
5001
  # @param JobId: 同步任务id
@@ -3758,6 +5094,34 @@ module TencentCloud
3758
5094
  end
3759
5095
  end
3760
5096
 
5097
+ # kafka消费者组的分区详情
5098
+ class MonitorInfo < TencentCloud::Common::AbstractModel
5099
+ # @param PartitionNo: 当前分区的编号,从0开始
5100
+ # @type PartitionNo: Integer
5101
+ # @param ConsumerGroupOffset: 当前分区的偏移量
5102
+ # @type ConsumerGroupOffset: Integer
5103
+ # @param ConsumerGroupLag: 当前分区未消费的数据量
5104
+ # @type ConsumerGroupLag: Integer
5105
+ # @param Latency: 当前分区的消费延迟(单位为秒)
5106
+ # @type Latency: Integer
5107
+
5108
+ attr_accessor :PartitionNo, :ConsumerGroupOffset, :ConsumerGroupLag, :Latency
5109
+
5110
+ def initialize(partitionno=nil, consumergroupoffset=nil, consumergrouplag=nil, latency=nil)
5111
+ @PartitionNo = partitionno
5112
+ @ConsumerGroupOffset = consumergroupoffset
5113
+ @ConsumerGroupLag = consumergrouplag
5114
+ @Latency = latency
5115
+ end
5116
+
5117
+ def deserialize(params)
5118
+ @PartitionNo = params['PartitionNo']
5119
+ @ConsumerGroupOffset = params['ConsumerGroupOffset']
5120
+ @ConsumerGroupLag = params['ConsumerGroupLag']
5121
+ @Latency = params['Latency']
5122
+ end
5123
+ end
5124
+
3761
5125
  # 同步的数据库对对象描述
3762
5126
  class Objects < TencentCloud::Common::AbstractModel
3763
5127
  # @param Mode: 同步对象类型 Partial(部分对象)
@@ -3800,6 +5164,28 @@ module TencentCloud
3800
5164
  end
3801
5165
  end
3802
5166
 
5167
+ # 数据订阅kafka分区中checkpoint信息
5168
+ class OffsetTimeMap < TencentCloud::Common::AbstractModel
5169
+ # @param PartitionNo: kafka分区编号
5170
+ # 注意:此字段可能返回 null,表示取不到有效值。
5171
+ # @type PartitionNo: Integer
5172
+ # @param Offset: kafka offset
5173
+ # 注意:此字段可能返回 null,表示取不到有效值。
5174
+ # @type Offset: Integer
5175
+
5176
+ attr_accessor :PartitionNo, :Offset
5177
+
5178
+ def initialize(partitionno=nil, offset=nil)
5179
+ @PartitionNo = partitionno
5180
+ @Offset = offset
5181
+ end
5182
+
5183
+ def deserialize(params)
5184
+ @PartitionNo = params['PartitionNo']
5185
+ @Offset = params['Offset']
5186
+ end
5187
+ end
5188
+
3803
5189
  # OnlineDDL类型
3804
5190
  class OnlineDDL < TencentCloud::Common::AbstractModel
3805
5191
  # @param Status: 状态
@@ -3895,6 +5281,27 @@ module TencentCloud
3895
5281
  end
3896
5282
  end
3897
5283
 
5284
+ # 数据订阅中kafka消费者组的分区分配情况。该数据是实时查询的,如果需要最新数据,需重新掉接口查询。
5285
+ class PartitionAssignment < TencentCloud::Common::AbstractModel
5286
+ # @param ClientId: 消费者的clientId
5287
+ # @type ClientId: String
5288
+ # @param PartitionNo: 该消费者正在消费的分区
5289
+ # 注意:此字段可能返回 null,表示取不到有效值。
5290
+ # @type PartitionNo: Array
5291
+
5292
+ attr_accessor :ClientId, :PartitionNo
5293
+
5294
+ def initialize(clientid=nil, partitionno=nil)
5295
+ @ClientId = clientid
5296
+ @PartitionNo = partitionno
5297
+ end
5298
+
5299
+ def deserialize(params)
5300
+ @ClientId = params['ClientId']
5301
+ @PartitionNo = params['PartitionNo']
5302
+ end
5303
+ end
5304
+
3898
5305
  # PauseMigrateJob请求参数结构体
3899
5306
  class PauseMigrateJobRequest < TencentCloud::Common::AbstractModel
3900
5307
  # @param JobId: 数据迁移任务ID
@@ -3955,7 +5362,29 @@ module TencentCloud
3955
5362
  end
3956
5363
 
3957
5364
  def deserialize(params)
3958
- @RequestId = params['RequestId']
5365
+ @RequestId = params['RequestId']
5366
+ end
5367
+ end
5368
+
5369
+ # mongo输出聚合设置。输出默认 Change Event
5370
+ class PipelineInfo < TencentCloud::Common::AbstractModel
5371
+ # @param AggOp: 聚合运算符:$addFields、$match、$project、$replaceRoot、$redact、$replaceWith、$set、$unset。其中 $replaceWith、$set、$unset 只有当订阅实例是4.2及以上版本可选。
5372
+ # 注意:此字段可能返回 null,表示取不到有效值。
5373
+ # @type AggOp: String
5374
+ # @param AggCmd: 聚合表达式。必须是json格式
5375
+ # 注意:此字段可能返回 null,表示取不到有效值。
5376
+ # @type AggCmd: String
5377
+
5378
+ attr_accessor :AggOp, :AggCmd
5379
+
5380
+ def initialize(aggop=nil, aggcmd=nil)
5381
+ @AggOp = aggop
5382
+ @AggCmd = aggcmd
5383
+ end
5384
+
5385
+ def deserialize(params)
5386
+ @AggOp = params['AggOp']
5387
+ @AggCmd = params['AggCmd']
3959
5388
  end
3960
5389
  end
3961
5390
 
@@ -4166,6 +5595,90 @@ module TencentCloud
4166
5595
  end
4167
5596
  end
4168
5597
 
5598
+ # ResetConsumerGroupOffset请求参数结构体
5599
+ class ResetConsumerGroupOffsetRequest < TencentCloud::Common::AbstractModel
5600
+ # @param SubscribeId: 订阅实例id
5601
+ # @type SubscribeId: String
5602
+ # @param TopicName: 订阅的kafka topic
5603
+ # @type TopicName: String
5604
+ # @param ConsumerGroupName: 消费组名称。实际的消费组全称形如:consumer-grp-#{SubscribeId}-#{ConsumerGroupName}
5605
+ # @type ConsumerGroupName: String
5606
+ # @param PartitionNos: 需要修改offset的分区编号
5607
+ # @type PartitionNos: Array
5608
+ # @param ResetMode: 重置方式。枚举值为 earliest-从最开始位置开始消费;latest-从最新位置开始消费;datetime-从指定时间前最近的checkpoint开始消费
5609
+ # @type ResetMode: String
5610
+ # @param ResetDatetime: 当 ResetMode 为 datetime 时,该项需要填,格式为:Y-m-d h:m:s。如果不填,默认用0时间,效果与earliest相同。
5611
+ # @type ResetDatetime: String
5612
+
5613
+ attr_accessor :SubscribeId, :TopicName, :ConsumerGroupName, :PartitionNos, :ResetMode, :ResetDatetime
5614
+
5615
+ def initialize(subscribeid=nil, topicname=nil, consumergroupname=nil, partitionnos=nil, resetmode=nil, resetdatetime=nil)
5616
+ @SubscribeId = subscribeid
5617
+ @TopicName = topicname
5618
+ @ConsumerGroupName = consumergroupname
5619
+ @PartitionNos = partitionnos
5620
+ @ResetMode = resetmode
5621
+ @ResetDatetime = resetdatetime
5622
+ end
5623
+
5624
+ def deserialize(params)
5625
+ @SubscribeId = params['SubscribeId']
5626
+ @TopicName = params['TopicName']
5627
+ @ConsumerGroupName = params['ConsumerGroupName']
5628
+ @PartitionNos = params['PartitionNos']
5629
+ @ResetMode = params['ResetMode']
5630
+ @ResetDatetime = params['ResetDatetime']
5631
+ end
5632
+ end
5633
+
5634
+ # ResetConsumerGroupOffset返回参数结构体
5635
+ class ResetConsumerGroupOffsetResponse < TencentCloud::Common::AbstractModel
5636
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5637
+ # @type RequestId: String
5638
+
5639
+ attr_accessor :RequestId
5640
+
5641
+ def initialize(requestid=nil)
5642
+ @RequestId = requestid
5643
+ end
5644
+
5645
+ def deserialize(params)
5646
+ @RequestId = params['RequestId']
5647
+ end
5648
+ end
5649
+
5650
+ # ResetSubscribe请求参数结构体
5651
+ class ResetSubscribeRequest < TencentCloud::Common::AbstractModel
5652
+ # @param SubscribeId: 数据订阅实例的ID
5653
+ # @type SubscribeId: String
5654
+
5655
+ attr_accessor :SubscribeId
5656
+
5657
+ def initialize(subscribeid=nil)
5658
+ @SubscribeId = subscribeid
5659
+ end
5660
+
5661
+ def deserialize(params)
5662
+ @SubscribeId = params['SubscribeId']
5663
+ end
5664
+ end
5665
+
5666
+ # ResetSubscribe返回参数结构体
5667
+ class ResetSubscribeResponse < TencentCloud::Common::AbstractModel
5668
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5669
+ # @type RequestId: String
5670
+
5671
+ attr_accessor :RequestId
5672
+
5673
+ def initialize(requestid=nil)
5674
+ @RequestId = requestid
5675
+ end
5676
+
5677
+ def deserialize(params)
5678
+ @RequestId = params['RequestId']
5679
+ end
5680
+ end
5681
+
4169
5682
  # ResizeSyncJob请求参数结构体
4170
5683
  class ResizeSyncJobRequest < TencentCloud::Common::AbstractModel
4171
5684
  # @param JobId: 同步任务id
@@ -4238,6 +5751,38 @@ module TencentCloud
4238
5751
  end
4239
5752
  end
4240
5753
 
5754
+ # ResumeSubscribe请求参数结构体
5755
+ class ResumeSubscribeRequest < TencentCloud::Common::AbstractModel
5756
+ # @param SubscribeId: 数据订阅实例的 ID
5757
+ # @type SubscribeId: String
5758
+
5759
+ attr_accessor :SubscribeId
5760
+
5761
+ def initialize(subscribeid=nil)
5762
+ @SubscribeId = subscribeid
5763
+ end
5764
+
5765
+ def deserialize(params)
5766
+ @SubscribeId = params['SubscribeId']
5767
+ end
5768
+ end
5769
+
5770
+ # ResumeSubscribe返回参数结构体
5771
+ class ResumeSubscribeResponse < TencentCloud::Common::AbstractModel
5772
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5773
+ # @type RequestId: String
5774
+
5775
+ attr_accessor :RequestId
5776
+
5777
+ def initialize(requestid=nil)
5778
+ @RequestId = requestid
5779
+ end
5780
+
5781
+ def deserialize(params)
5782
+ @RequestId = params['RequestId']
5783
+ end
5784
+ end
5785
+
4241
5786
  # ResumeSyncJob请求参数结构体
4242
5787
  class ResumeSyncJobRequest < TencentCloud::Common::AbstractModel
4243
5788
  # @param JobId: 同步任务id
@@ -4529,6 +6074,38 @@ module TencentCloud
4529
6074
  end
4530
6075
  end
4531
6076
 
6077
+ # StartSubscribe请求参数结构体
6078
+ class StartSubscribeRequest < TencentCloud::Common::AbstractModel
6079
+ # @param SubscribeId: 数据订阅实例的 ID
6080
+ # @type SubscribeId: String
6081
+
6082
+ attr_accessor :SubscribeId
6083
+
6084
+ def initialize(subscribeid=nil)
6085
+ @SubscribeId = subscribeid
6086
+ end
6087
+
6088
+ def deserialize(params)
6089
+ @SubscribeId = params['SubscribeId']
6090
+ end
6091
+ end
6092
+
6093
+ # StartSubscribe返回参数结构体
6094
+ class StartSubscribeResponse < TencentCloud::Common::AbstractModel
6095
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6096
+ # @type RequestId: String
6097
+
6098
+ attr_accessor :RequestId
6099
+
6100
+ def initialize(requestid=nil)
6101
+ @RequestId = requestid
6102
+ end
6103
+
6104
+ def deserialize(params)
6105
+ @RequestId = params['RequestId']
6106
+ end
6107
+ end
6108
+
4532
6109
  # StartSyncJob请求参数结构体
4533
6110
  class StartSyncJobRequest < TencentCloud::Common::AbstractModel
4534
6111
  # @param JobId: 同步任务id
@@ -4835,6 +6412,298 @@ module TencentCloud
4835
6412
  end
4836
6413
  end
4837
6414
 
6415
+ # 订阅报错信息
6416
+ class SubsErr < TencentCloud::Common::AbstractModel
6417
+ # @param Message: 报错信息
6418
+ # @type Message: String
6419
+
6420
+ attr_accessor :Message
6421
+
6422
+ def initialize(message=nil)
6423
+ @Message = message
6424
+ end
6425
+
6426
+ def deserialize(params)
6427
+ @Message = params['Message']
6428
+ end
6429
+ end
6430
+
6431
+ # 订阅校验任务的各步骤信息。
6432
+ class SubscribeCheckStepInfo < TencentCloud::Common::AbstractModel
6433
+ # @param StepName: 步骤名称
6434
+ # 注意:此字段可能返回 null,表示取不到有效值。
6435
+ # @type StepName: String
6436
+ # @param StepId: 步骤Id
6437
+ # 注意:此字段可能返回 null,表示取不到有效值。
6438
+ # @type StepId: String
6439
+ # @param StepNo: 步骤编号,从 1 开始
6440
+ # 注意:此字段可能返回 null,表示取不到有效值。
6441
+ # @type StepNo: Integer
6442
+ # @param Status: 当前步骤状态,可能值为 notStarted,running,finished,failed
6443
+ # 注意:此字段可能返回 null,表示取不到有效值。
6444
+ # @type Status: String
6445
+ # @param Percent: 当前步骤进度
6446
+ # 注意:此字段可能返回 null,表示取不到有效值。
6447
+ # @type Percent: Integer
6448
+ # @param Errors: 错误提示
6449
+ # 注意:此字段可能返回 null,表示取不到有效值。
6450
+ # @type Errors: Array
6451
+ # @param Warnings: 告警提示
6452
+ # 注意:此字段可能返回 null,表示取不到有效值。
6453
+ # @type Warnings: Array
6454
+
6455
+ attr_accessor :StepName, :StepId, :StepNo, :Status, :Percent, :Errors, :Warnings
6456
+
6457
+ def initialize(stepname=nil, stepid=nil, stepno=nil, status=nil, percent=nil, errors=nil, warnings=nil)
6458
+ @StepName = stepname
6459
+ @StepId = stepid
6460
+ @StepNo = stepno
6461
+ @Status = status
6462
+ @Percent = percent
6463
+ @Errors = errors
6464
+ @Warnings = warnings
6465
+ end
6466
+
6467
+ def deserialize(params)
6468
+ @StepName = params['StepName']
6469
+ @StepId = params['StepId']
6470
+ @StepNo = params['StepNo']
6471
+ @Status = params['Status']
6472
+ @Percent = params['Percent']
6473
+ unless params['Errors'].nil?
6474
+ @Errors = []
6475
+ params['Errors'].each do |i|
6476
+ subscribechecksteptip_tmp = SubscribeCheckStepTip.new
6477
+ subscribechecksteptip_tmp.deserialize(i)
6478
+ @Errors << subscribechecksteptip_tmp
6479
+ end
6480
+ end
6481
+ unless params['Warnings'].nil?
6482
+ @Warnings = []
6483
+ params['Warnings'].each do |i|
6484
+ subscribechecksteptip_tmp = SubscribeCheckStepTip.new
6485
+ subscribechecksteptip_tmp.deserialize(i)
6486
+ @Warnings << subscribechecksteptip_tmp
6487
+ end
6488
+ end
6489
+ end
6490
+ end
6491
+
6492
+ # 订阅校验任务的提示信息
6493
+ class SubscribeCheckStepTip < TencentCloud::Common::AbstractModel
6494
+ # @param Message: 错误或告警的详细信息
6495
+ # 注意:此字段可能返回 null,表示取不到有效值。
6496
+ # @type Message: String
6497
+ # @param HelpDoc: 帮助文档
6498
+ # 注意:此字段可能返回 null,表示取不到有效值。
6499
+ # @type HelpDoc: String
6500
+
6501
+ attr_accessor :Message, :HelpDoc
6502
+
6503
+ def initialize(message=nil, helpdoc=nil)
6504
+ @Message = message
6505
+ @HelpDoc = helpdoc
6506
+ end
6507
+
6508
+ def deserialize(params)
6509
+ @Message = params['Message']
6510
+ @HelpDoc = params['HelpDoc']
6511
+ end
6512
+ end
6513
+
6514
+ # 订阅实例信息
6515
+ class SubscribeInfo < TencentCloud::Common::AbstractModel
6516
+ # @param SubscribeId: 数据订阅的实例ID
6517
+ # @type SubscribeId: String
6518
+ # @param SubscribeName: 数据订阅实例的名称
6519
+ # @type SubscribeName: String
6520
+ # @param Topic: 订阅实例发送数据的kafka topic
6521
+ # 注意:此字段可能返回 null,表示取不到有效值。
6522
+ # @type Topic: String
6523
+ # @param Product: 订阅实例的类型,目前支持 cynosdbmysql,mariadb,mongodb,mysql,percona,tdpg,tdsqlpercona(tdsqlmysql)
6524
+ # @type Product: String
6525
+ # @param InstanceId: 订阅的数据库实例ID(如果订阅的是云数据库)如果实例不是腾讯云上的,此值为空。
6526
+ # 注意:此字段可能返回 null,表示取不到有效值。
6527
+ # @type InstanceId: String
6528
+ # @param InstanceStatus: 云数据库状态:running 运行中,isolated 已隔离,offline 已下线。如果不是云上,此值为空
6529
+ # 注意:此字段可能返回 null,表示取不到有效值。
6530
+ # @type InstanceStatus: String
6531
+ # @param Status: 数据订阅生命周期状态,可能的值为:正常 normal, 隔离中 isolating, 已隔离 isolated, 下线中 offlining, 按量转包年包月中 post2PrePayIng
6532
+ # @type Status: String
6533
+ # @param SubsStatus: 数据订阅状态,可能的值为:未启动 notStarted, 校验中 checking, 校验不通过 checkNotPass, 校验通过 checkPass, 启动中 starting, 运行中 running, 异常出错 error
6534
+ # @type SubsStatus: String
6535
+ # @param ModifyTime: 上次修改时间,时间格式如:Y-m-d h:m:s
6536
+ # 注意:此字段可能返回 null,表示取不到有效值。
6537
+ # @type ModifyTime: String
6538
+ # @param CreateTime: 创建时间,时间格式如:Y-m-d h:m:s
6539
+ # 注意:此字段可能返回 null,表示取不到有效值。
6540
+ # @type CreateTime: String
6541
+ # @param IsolateTime: 隔离时间,时间格式如:Y-m-d h:m:s。默认:0000-00-00 00:00:00
6542
+ # 注意:此字段可能返回 null,表示取不到有效值。
6543
+ # @type IsolateTime: String
6544
+ # @param ExpireTime: 包年包月任务的到期时间,时间格式如:Y-m-d h:m:s。默认:0000-00-00 00:00:00
6545
+ # 注意:此字段可能返回 null,表示取不到有效值。
6546
+ # @type ExpireTime: String
6547
+ # @param OfflineTime: 下线时间,时间格式如:Y-m-d h:m:s。默认:0000-00-00 00:00:00
6548
+ # 注意:此字段可能返回 null,表示取不到有效值。
6549
+ # @type OfflineTime: String
6550
+ # @param PayType: 计费方式,0 - 包年包月,1 - 按量计费
6551
+ # @type PayType: Integer
6552
+ # @param AutoRenewFlag: 自动续费标识。只有当 PayType=0,该值才有意义。枚举值:0-不自动续费,1-自动续费
6553
+ # @type AutoRenewFlag: Integer
6554
+ # @param Region: 数据订阅实例所属地域
6555
+ # @type Region: String
6556
+ # @param AccessType: 接入方式。枚举值:extranet(公网) vpncloud(vpn接入) dcg(专线接入) ccn(云联网) cdb(云数据库) cvm(云主机自建) intranet(自研上云) vpc(私有网络vpc)
6557
+ # 注意:此字段可能返回 null,表示取不到有效值。
6558
+ # @type AccessType: String
6559
+ # @param Endpoints: 数据库节点信息
6560
+ # 注意:此字段可能返回 null,表示取不到有效值。
6561
+ # @type Endpoints: Array
6562
+ # @param SubscribeVersion: 数据订阅版本, 当前只支持 kafka 版本。
6563
+ # 注意:此字段可能返回 null,表示取不到有效值。
6564
+ # @type SubscribeVersion: String
6565
+ # @param Tags: 标签
6566
+ # 注意:此字段可能返回 null,表示取不到有效值。
6567
+ # @type Tags: Array
6568
+ # @param Errors: 任务报错信息,如果有的话。
6569
+ # 注意:此字段可能返回 null,表示取不到有效值。
6570
+ # @type Errors: Array
6571
+
6572
+ attr_accessor :SubscribeId, :SubscribeName, :Topic, :Product, :InstanceId, :InstanceStatus, :Status, :SubsStatus, :ModifyTime, :CreateTime, :IsolateTime, :ExpireTime, :OfflineTime, :PayType, :AutoRenewFlag, :Region, :AccessType, :Endpoints, :SubscribeVersion, :Tags, :Errors
6573
+
6574
+ def initialize(subscribeid=nil, subscribename=nil, topic=nil, product=nil, instanceid=nil, instancestatus=nil, status=nil, subsstatus=nil, modifytime=nil, createtime=nil, isolatetime=nil, expiretime=nil, offlinetime=nil, paytype=nil, autorenewflag=nil, region=nil, accesstype=nil, endpoints=nil, subscribeversion=nil, tags=nil, errors=nil)
6575
+ @SubscribeId = subscribeid
6576
+ @SubscribeName = subscribename
6577
+ @Topic = topic
6578
+ @Product = product
6579
+ @InstanceId = instanceid
6580
+ @InstanceStatus = instancestatus
6581
+ @Status = status
6582
+ @SubsStatus = subsstatus
6583
+ @ModifyTime = modifytime
6584
+ @CreateTime = createtime
6585
+ @IsolateTime = isolatetime
6586
+ @ExpireTime = expiretime
6587
+ @OfflineTime = offlinetime
6588
+ @PayType = paytype
6589
+ @AutoRenewFlag = autorenewflag
6590
+ @Region = region
6591
+ @AccessType = accesstype
6592
+ @Endpoints = endpoints
6593
+ @SubscribeVersion = subscribeversion
6594
+ @Tags = tags
6595
+ @Errors = errors
6596
+ end
6597
+
6598
+ def deserialize(params)
6599
+ @SubscribeId = params['SubscribeId']
6600
+ @SubscribeName = params['SubscribeName']
6601
+ @Topic = params['Topic']
6602
+ @Product = params['Product']
6603
+ @InstanceId = params['InstanceId']
6604
+ @InstanceStatus = params['InstanceStatus']
6605
+ @Status = params['Status']
6606
+ @SubsStatus = params['SubsStatus']
6607
+ @ModifyTime = params['ModifyTime']
6608
+ @CreateTime = params['CreateTime']
6609
+ @IsolateTime = params['IsolateTime']
6610
+ @ExpireTime = params['ExpireTime']
6611
+ @OfflineTime = params['OfflineTime']
6612
+ @PayType = params['PayType']
6613
+ @AutoRenewFlag = params['AutoRenewFlag']
6614
+ @Region = params['Region']
6615
+ @AccessType = params['AccessType']
6616
+ unless params['Endpoints'].nil?
6617
+ @Endpoints = []
6618
+ params['Endpoints'].each do |i|
6619
+ endpointitem_tmp = EndpointItem.new
6620
+ endpointitem_tmp.deserialize(i)
6621
+ @Endpoints << endpointitem_tmp
6622
+ end
6623
+ end
6624
+ @SubscribeVersion = params['SubscribeVersion']
6625
+ unless params['Tags'].nil?
6626
+ @Tags = []
6627
+ params['Tags'].each do |i|
6628
+ tagitem_tmp = TagItem.new
6629
+ tagitem_tmp.deserialize(i)
6630
+ @Tags << tagitem_tmp
6631
+ end
6632
+ end
6633
+ unless params['Errors'].nil?
6634
+ @Errors = []
6635
+ params['Errors'].each do |i|
6636
+ subserr_tmp = SubsErr.new
6637
+ subserr_tmp.deserialize(i)
6638
+ @Errors << subserr_tmp
6639
+ end
6640
+ end
6641
+ end
6642
+ end
6643
+
6644
+ # 订阅的kafka分区数和分区规则。mariadb,percona,tdsqlmysql,tdpg不支持自定义分区,所以DistributeRules和DefaultRuleType可以不填,但是NumberOfPartitions是必填。
6645
+ class SubscribeKafkaConfig < TencentCloud::Common::AbstractModel
6646
+ # @param NumberOfPartitions: kafka分区数量,枚举值为1,4,8
6647
+ # 注意:此字段可能返回 null,表示取不到有效值。
6648
+ # @type NumberOfPartitions: Integer
6649
+ # @param DistributeRules: 分区规则。当NumberOfPartitions > 1时,该项必填。
6650
+ # 注意:此字段可能返回 null,表示取不到有效值。
6651
+ # @type DistributeRules: Array
6652
+ # @param DefaultRuleType: 默认分区策略。当NumberOfPartitions > 1时,该项必填。不满足DistributeRules中正则表达式的数据,将按照默认分区策略计算分区。
6653
+ # 非mongo产品的枚举值为: table-按表名分区,pk-按表名+主键分区。mongo的枚举值为:collection-按集合名分区。
6654
+ # 该字段与DistributeRules搭配使用,如果配置了该字段,视为配置了一条DistributeRules。
6655
+ # 注意:此字段可能返回 null,表示取不到有效值。
6656
+ # @type DefaultRuleType: String
6657
+
6658
+ attr_accessor :NumberOfPartitions, :DistributeRules, :DefaultRuleType
6659
+
6660
+ def initialize(numberofpartitions=nil, distributerules=nil, defaultruletype=nil)
6661
+ @NumberOfPartitions = numberofpartitions
6662
+ @DistributeRules = distributerules
6663
+ @DefaultRuleType = defaultruletype
6664
+ end
6665
+
6666
+ def deserialize(params)
6667
+ @NumberOfPartitions = params['NumberOfPartitions']
6668
+ unless params['DistributeRules'].nil?
6669
+ @DistributeRules = []
6670
+ params['DistributeRules'].each do |i|
6671
+ distributerule_tmp = DistributeRule.new
6672
+ distributerule_tmp.deserialize(i)
6673
+ @DistributeRules << distributerule_tmp
6674
+ end
6675
+ end
6676
+ @DefaultRuleType = params['DefaultRuleType']
6677
+ end
6678
+ end
6679
+
6680
+ # 订阅的的数据库表信息,用于配置和查询订阅任务接口。
6681
+ class SubscribeObject < TencentCloud::Common::AbstractModel
6682
+ # @param ObjectType: 订阅数据的类型,枚举值:database-数据库,table-数据库的表(如果 DatabaseType 为 mongodb,则表示集合)
6683
+ # 注意:此字段可能返回 null,表示取不到有效值。
6684
+ # @type ObjectType: String
6685
+ # @param Database: 订阅的数据库名称
6686
+ # 注意:此字段可能返回 null,表示取不到有效值。
6687
+ # @type Database: String
6688
+ # @param Tables: 订阅数据库中表的名称。如果 DatabaseType 为 mongodb,填集合名。mongodb只支持订阅单库或者单集合。
6689
+ # 注意:此字段可能返回 null,表示取不到有效值。
6690
+ # @type Tables: Array
6691
+
6692
+ attr_accessor :ObjectType, :Database, :Tables
6693
+
6694
+ def initialize(objecttype=nil, database=nil, tables=nil)
6695
+ @ObjectType = objecttype
6696
+ @Database = database
6697
+ @Tables = tables
6698
+ end
6699
+
6700
+ def deserialize(params)
6701
+ @ObjectType = params['ObjectType']
6702
+ @Database = params['Database']
6703
+ @Tables = params['Tables']
6704
+ end
6705
+ end
6706
+
4838
6707
  # 数据同步配置多节点数据库的节点信息。多节点数据库,如tdsqlmysql使用该结构;单节点数据库,如mysql使用Endpoint。
4839
6708
  class SyncDBEndpointInfos < TencentCloud::Common::AbstractModel
4840
6709
  # @param Region: 数据库所在地域