tencentcloud-sdk-dts 3.0.528 → 3.0.529

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20211206/models.rb +145 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d79dc41a00189c930a0b1bb0e7f8a8d0cd07d822
4
- data.tar.gz: e302282a98d5b5fa72a77e1eefdd951b55fc10c0
3
+ metadata.gz: 3742e7e0f49ccd7ee1f41f1868887b0a11f36a91
4
+ data.tar.gz: fbb06c8aa6747d8f2569445f797b0afc3209740e
5
5
  SHA512:
6
- metadata.gz: 222f02a686f46f6131b8035c7952fa4982ec551c471277741c256918fa8f67aad3bd6adb9f8ab821380273f32055ef76170acf1ebbcc472587377e15be02ca5b
7
- data.tar.gz: 70a15c120ef4edddd524b8bb67734cbe09bdc12fd3692970ee5843e0f8660725549cc577a0b0b5342b7805ed23fefbbe9999a110c5c3aa05413409346487680e
6
+ metadata.gz: 5fdc7fce9ba29173e18b2bce0c07f656defce8937852048c2e052d51f65184aaed5e4733af44977bf2439fd2c37d5c8a28f05e771173952107a4ea286e6590fc
7
+ data.tar.gz: 5d2ff14454280f509d63247ad5bccb348d1fc61b85e89613f04dbacf64af54d505375cbdd775fa9f0be5642796ce93e453b45c3bc357adb8ca1b938886d11e02
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.528
1
+ 3.0.529
@@ -545,16 +545,24 @@ module TencentCloud
545
545
  # @type ExpectRunTime: String
546
546
  # @param SrcInfo: 源端信息,单节点数据库使用,且SrcNodeType传single
547
547
  # @type SrcInfo: :class:`Tencentcloud::Dts.v20211206.models.Endpoint`
548
+ # @param SrcInfos: 源端信息,多节点数据库使用,且SrcNodeType传cluster
549
+ # @type SrcInfos: :class:`Tencentcloud::Dts.v20211206.models.SyncDBEndpointInfos`
550
+ # @param SrcNodeType: 枚举值:cluster、single。源库为单节点数据库使用single,多节点使用cluster
551
+ # @type SrcNodeType: String
548
552
  # @param DstInfo: 目标端信息,单节点数据库使用
549
553
  # @type DstInfo: :class:`Tencentcloud::Dts.v20211206.models.Endpoint`
554
+ # @param DstInfos: 目标端信息,多节点数据库使用,且DstNodeType传cluster
555
+ # @type DstInfos: :class:`Tencentcloud::Dts.v20211206.models.SyncDBEndpointInfos`
556
+ # @param DstNodeType: 枚举值:cluster、single。目标库为单节点数据库使用single,多节点使用cluster
557
+ # @type DstNodeType: String
550
558
  # @param Options: 同步任务选项
551
559
  # @type Options: :class:`Tencentcloud::Dts.v20211206.models.Options`
552
560
  # @param AutoRetryTimeRangeMinutes: 自动重试的时间段、可设置5至720分钟、0表示不重试
553
561
  # @type AutoRetryTimeRangeMinutes: Integer
554
562
 
555
- attr_accessor :JobId, :SrcAccessType, :DstAccessType, :Objects, :JobName, :JobMode, :RunMode, :ExpectRunTime, :SrcInfo, :DstInfo, :Options, :AutoRetryTimeRangeMinutes
563
+ attr_accessor :JobId, :SrcAccessType, :DstAccessType, :Objects, :JobName, :JobMode, :RunMode, :ExpectRunTime, :SrcInfo, :SrcInfos, :SrcNodeType, :DstInfo, :DstInfos, :DstNodeType, :Options, :AutoRetryTimeRangeMinutes
556
564
 
557
- def initialize(jobid=nil, srcaccesstype=nil, dstaccesstype=nil, objects=nil, jobname=nil, jobmode=nil, runmode=nil, expectruntime=nil, srcinfo=nil, dstinfo=nil, options=nil, autoretrytimerangeminutes=nil)
565
+ def initialize(jobid=nil, srcaccesstype=nil, dstaccesstype=nil, objects=nil, jobname=nil, jobmode=nil, runmode=nil, expectruntime=nil, srcinfo=nil, srcinfos=nil, srcnodetype=nil, dstinfo=nil, dstinfos=nil, dstnodetype=nil, options=nil, autoretrytimerangeminutes=nil)
558
566
  @JobId = jobid
559
567
  @SrcAccessType = srcaccesstype
560
568
  @DstAccessType = dstaccesstype
@@ -564,7 +572,11 @@ module TencentCloud
564
572
  @RunMode = runmode
565
573
  @ExpectRunTime = expectruntime
566
574
  @SrcInfo = srcinfo
575
+ @SrcInfos = srcinfos
576
+ @SrcNodeType = srcnodetype
567
577
  @DstInfo = dstinfo
578
+ @DstInfos = dstinfos
579
+ @DstNodeType = dstnodetype
568
580
  @Options = options
569
581
  @AutoRetryTimeRangeMinutes = autoretrytimerangeminutes
570
582
  end
@@ -585,10 +597,20 @@ module TencentCloud
585
597
  @SrcInfo = Endpoint.new
586
598
  @SrcInfo.deserialize(params['SrcInfo'])
587
599
  end
600
+ unless params['SrcInfos'].nil?
601
+ @SrcInfos = SyncDBEndpointInfos.new
602
+ @SrcInfos.deserialize(params['SrcInfos'])
603
+ end
604
+ @SrcNodeType = params['SrcNodeType']
588
605
  unless params['DstInfo'].nil?
589
606
  @DstInfo = Endpoint.new
590
607
  @DstInfo.deserialize(params['DstInfo'])
591
608
  end
609
+ unless params['DstInfos'].nil?
610
+ @DstInfos = SyncDBEndpointInfos.new
611
+ @DstInfos.deserialize(params['DstInfos'])
612
+ end
613
+ @DstNodeType = params['DstNodeType']
592
614
  unless params['Options'].nil?
593
615
  @Options = Options.new
594
616
  @Options.deserialize(params['Options'])
@@ -924,7 +946,7 @@ module TencentCloud
924
946
  # @type SrcDatabaseType: String
925
947
  # @param SrcRegion: 源端数据库所在地域,如ap-guangzhou
926
948
  # @type SrcRegion: String
927
- # @param DstDatabaseType: 目标端数据库类型,如mysql,cynosdbmysql,tdapg,tdpg,tdsqlmysql等
949
+ # @param DstDatabaseType: 目标端数据库类型,如mysql,cynosdbmysql,tdapg,tdpg,tdsqlmysql,kafka
928
950
  # @type DstDatabaseType: String
929
951
  # @param DstRegion: 目标端数据库所在地域,如ap-guangzhou
930
952
  # @type DstRegion: String
@@ -2828,6 +2850,41 @@ module TencentCloud
2828
2850
  end
2829
2851
  end
2830
2852
 
2853
+ # 目标端为kakfa时添加的同步选项字段
2854
+ class KafkaOption < TencentCloud::Common::AbstractModel
2855
+ # @param DataType: 投递到kafka的数据类型,如Avro,Json
2856
+ # @type DataType: String
2857
+ # @param TopicType: 同步topic策略,如Single(集中投递到单topic),Multi (自定义topic名称)
2858
+ # @type TopicType: String
2859
+ # @param DDLTopicName: 用于存储ddl的topic
2860
+ # @type DDLTopicName: String
2861
+ # @param TopicRules: 单topic和自定义topic的描述
2862
+ # @type TopicRules: Array
2863
+
2864
+ attr_accessor :DataType, :TopicType, :DDLTopicName, :TopicRules
2865
+
2866
+ def initialize(datatype=nil, topictype=nil, ddltopicname=nil, topicrules=nil)
2867
+ @DataType = datatype
2868
+ @TopicType = topictype
2869
+ @DDLTopicName = ddltopicname
2870
+ @TopicRules = topicrules
2871
+ end
2872
+
2873
+ def deserialize(params)
2874
+ @DataType = params['DataType']
2875
+ @TopicType = params['TopicType']
2876
+ @DDLTopicName = params['DDLTopicName']
2877
+ unless params['TopicRules'].nil?
2878
+ @TopicRules = []
2879
+ params['TopicRules'].each do |i|
2880
+ topicrule_tmp = TopicRule.new
2881
+ topicrule_tmp.deserialize(i)
2882
+ @TopicRules << topicrule_tmp
2883
+ end
2884
+ end
2885
+ end
2886
+ end
2887
+
2831
2888
  # 存放配置时的额外信息
2832
2889
  class KeyValuePairOption < TencentCloud::Common::AbstractModel
2833
2890
  # @param Key: 选项key
@@ -3345,10 +3402,13 @@ module TencentCloud
3345
3402
  # @param DdlOptions: DDL同步选项,具体描述要同步那些DDL
3346
3403
  # 注意:此字段可能返回 null,表示取不到有效值。
3347
3404
  # @type DdlOptions: Array
3405
+ # @param KafkaOption: kafka同步选项
3406
+ # 注意:此字段可能返回 null,表示取不到有效值。
3407
+ # @type KafkaOption: :class:`Tencentcloud::Dts.v20211206.models.KafkaOption`
3348
3408
 
3349
- attr_accessor :InitType, :DealOfExistSameTable, :ConflictHandleType, :AddAdditionalColumn, :OpTypes, :ConflictHandleOption, :DdlOptions
3409
+ attr_accessor :InitType, :DealOfExistSameTable, :ConflictHandleType, :AddAdditionalColumn, :OpTypes, :ConflictHandleOption, :DdlOptions, :KafkaOption
3350
3410
 
3351
- def initialize(inittype=nil, dealofexistsametable=nil, conflicthandletype=nil, addadditionalcolumn=nil, optypes=nil, conflicthandleoption=nil, ddloptions=nil)
3411
+ def initialize(inittype=nil, dealofexistsametable=nil, conflicthandletype=nil, addadditionalcolumn=nil, optypes=nil, conflicthandleoption=nil, ddloptions=nil, kafkaoption=nil)
3352
3412
  @InitType = inittype
3353
3413
  @DealOfExistSameTable = dealofexistsametable
3354
3414
  @ConflictHandleType = conflicthandletype
@@ -3356,6 +3416,7 @@ module TencentCloud
3356
3416
  @OpTypes = optypes
3357
3417
  @ConflictHandleOption = conflicthandleoption
3358
3418
  @DdlOptions = ddloptions
3419
+ @KafkaOption = kafkaoption
3359
3420
  end
3360
3421
 
3361
3422
  def deserialize(params)
@@ -3376,6 +3437,10 @@ module TencentCloud
3376
3437
  @DdlOptions << ddloption_tmp
3377
3438
  end
3378
3439
  end
3440
+ unless params['KafkaOption'].nil?
3441
+ @KafkaOption = KafkaOption.new
3442
+ @KafkaOption.deserialize(params['KafkaOption'])
3443
+ end
3379
3444
  end
3380
3445
  end
3381
3446
 
@@ -4220,6 +4285,45 @@ module TencentCloud
4220
4285
  end
4221
4286
  end
4222
4287
 
4288
+ # 数据同步配置多节点数据库的节点信息。多节点数据库,如tdsqlmysql使用该结构;单节点数据库,如mysql使用Endpoint。
4289
+ class SyncDBEndpointInfos < TencentCloud::Common::AbstractModel
4290
+ # @param Region: 数据库所在地域
4291
+ # 注意:此字段可能返回 null,表示取不到有效值。
4292
+ # @type Region: String
4293
+ # @param AccessType: 实例网络接入类型,如:extranet(外网)、ipv6(公网ipv6)、cvm(云主机自建)、dcg(专线接入)、vpncloud(vpn接入的实例)、cdb(云数据库)、ccn(云联网)、intranet(自研上云)、vpc(私有网络)等,注意具体可选值依赖当前链路
4294
+ # 注意:此字段可能返回 null,表示取不到有效值。
4295
+ # @type AccessType: String
4296
+ # @param DatabaseType: 实例数据库类型,如:mysql,redis,mongodb,postgresql,mariadb,percona 等
4297
+ # 注意:此字段可能返回 null,表示取不到有效值。
4298
+ # @type DatabaseType: String
4299
+ # @param Info: 数据库信息
4300
+ # 注意:此字段可能返回 null,表示取不到有效值。
4301
+ # @type Info: Array
4302
+
4303
+ attr_accessor :Region, :AccessType, :DatabaseType, :Info
4304
+
4305
+ def initialize(region=nil, accesstype=nil, databasetype=nil, info=nil)
4306
+ @Region = region
4307
+ @AccessType = accesstype
4308
+ @DatabaseType = databasetype
4309
+ @Info = info
4310
+ end
4311
+
4312
+ def deserialize(params)
4313
+ @Region = params['Region']
4314
+ @AccessType = params['AccessType']
4315
+ @DatabaseType = params['DatabaseType']
4316
+ unless params['Info'].nil?
4317
+ @Info = []
4318
+ params['Info'].each do |i|
4319
+ endpoint_tmp = Endpoint.new
4320
+ endpoint_tmp.deserialize(i)
4321
+ @Info << endpoint_tmp
4322
+ end
4323
+ end
4324
+ end
4325
+ end
4326
+
4223
4327
  # 同步任务的步骤信息
4224
4328
  class SyncDetailInfo < TencentCloud::Common::AbstractModel
4225
4329
  # @param StepAll: 总步骤数
@@ -4579,6 +4683,42 @@ module TencentCloud
4579
4683
  end
4580
4684
  end
4581
4685
 
4686
+ # 单topic和自定义topic的描述
4687
+ class TopicRule < TencentCloud::Common::AbstractModel
4688
+ # @param TopicName: topic名
4689
+ # @type TopicName: String
4690
+ # @param PartitionType: topic分区策略,如 自定义topic:Random(随机投递),集中投递到单Topic:AllInPartitionZero(全部投递至partition0)、PartitionByTable(按表名分区)、PartitionByTableAndKey(按表名加主键分区)
4691
+ # @type PartitionType: String
4692
+ # @param DbMatchMode: 库名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余库),数组中必须有一项为‘Default’
4693
+ # @type DbMatchMode: String
4694
+ # @param DbName: 库名,仅“自定义topic”时,DbMatchMode=Regular生效
4695
+ # @type DbName: String
4696
+ # @param TableMatchMode: 表名匹配规则,仅“自定义topic”生效,如Regular(正则匹配), Default(不符合匹配规则的剩余表),数组中必须有一项为‘Default’
4697
+ # @type TableMatchMode: String
4698
+ # @param TableName: 表名,仅“自定义topic”时,TableMatchMode=Regular生效
4699
+ # @type TableName: String
4700
+
4701
+ attr_accessor :TopicName, :PartitionType, :DbMatchMode, :DbName, :TableMatchMode, :TableName
4702
+
4703
+ def initialize(topicname=nil, partitiontype=nil, dbmatchmode=nil, dbname=nil, tablematchmode=nil, tablename=nil)
4704
+ @TopicName = topicname
4705
+ @PartitionType = partitiontype
4706
+ @DbMatchMode = dbmatchmode
4707
+ @DbName = dbname
4708
+ @TableMatchMode = tablematchmode
4709
+ @TableName = tablename
4710
+ end
4711
+
4712
+ def deserialize(params)
4713
+ @TopicName = params['TopicName']
4714
+ @PartitionType = params['PartitionType']
4715
+ @DbMatchMode = params['DbMatchMode']
4716
+ @DbName = params['DbName']
4717
+ @TableMatchMode = params['TableMatchMode']
4718
+ @TableName = params['TableName']
4719
+ end
4720
+ end
4721
+
4582
4722
  # 计费状态信息
4583
4723
  class TradeInfo < TencentCloud::Common::AbstractModel
4584
4724
  # @param DealName: 交易订单号
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dts
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.528
4
+ version: 3.0.529
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-13 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common