tencentcloud-sdk-ckafka 3.0.393 → 3.0.397

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190819/models.rb +42 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f66b38d0215106fc8c0c20a0c6dd87c3f777129
4
- data.tar.gz: c962a9b6660fc9904fe20c437c710b2eb1e85834
3
+ metadata.gz: f68640123b52c54757647104145365061f0abf6d
4
+ data.tar.gz: 117e0dd62ac8ae35fd0348fef39773566b3575ae
5
5
  SHA512:
6
- metadata.gz: 2e8373d77696b9b4359ea3b10c3a10e3a32e4e2ed35a092af515a9c324a793e8e04cd0f092fe7b9cd34cb711862a3acc39aa1a4c1cb9743b17e568ed1d86d307
7
- data.tar.gz: 76404904c6f5025491af97e2a40c8cc0f6e4bca084cb576f235833511ca5b0eced8b6219207e93c86c99cd8ce247a9482559e971aa7235b124b939addbcd2d75
6
+ metadata.gz: e3e07ffff11498847ea7e93a31b3520a9005f7a42d7b43b15f35973e26221960dc3ad4ac731d1f887af645e36defc9809d78f9fc9f89f82908ae038e1c44bf84
7
+ data.tar.gz: 4dae260de52f3c6f30489ea882aac33d5497e664b00dbfe07162513b740b2f777f8a6fba4ba1e23187b0c85c73578a27546a6f726ec09d08d65d38427881a462
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.393
1
+ 3.0.397
@@ -913,14 +913,18 @@ module TencentCloud
913
913
  # @param ContentKey: 当DecodeJson为false时必填
914
914
  # 注意:此字段可能返回 null,表示取不到有效值。
915
915
  # @type ContentKey: String
916
+ # @param TimeField: 指定消息中的某字段内容作为cls日志的时间。
917
+ # 字段内容格式需要是秒级时间戳
918
+ # @type TimeField: String
916
919
 
917
- attr_accessor :DecodeJson, :Resource, :LogSet, :ContentKey
920
+ attr_accessor :DecodeJson, :Resource, :LogSet, :ContentKey, :TimeField
918
921
 
919
- def initialize(decodejson=nil, resource=nil, logset=nil, contentkey=nil)
922
+ def initialize(decodejson=nil, resource=nil, logset=nil, contentkey=nil, timefield=nil)
920
923
  @DecodeJson = decodejson
921
924
  @Resource = resource
922
925
  @LogSet = logset
923
926
  @ContentKey = contentkey
927
+ @TimeField = timefield
924
928
  end
925
929
 
926
930
  def deserialize(params)
@@ -928,6 +932,7 @@ module TencentCloud
928
932
  @Resource = params['Resource']
929
933
  @LogSet = params['LogSet']
930
934
  @ContentKey = params['ContentKey']
935
+ @TimeField = params['TimeField']
931
936
  end
932
937
  end
933
938
 
@@ -7262,10 +7267,12 @@ module TencentCloud
7262
7267
  # @type IncludeContentChanges: String
7263
7268
  # @param IncludeQuery: 如果该值为true,且MySQL中"binlog_rows_query_log_events"配置项的值为"ON",则流入到topic的数据包含原SQL语句;若该值为false,流入到topic的数据不包含原SQL语句
7264
7269
  # @type IncludeQuery: Boolean
7270
+ # @param RecordWithSchema: 如果该值为 true,则消息中会携带消息结构体对应的schema,如果该值为false则不会携带
7271
+ # @type RecordWithSchema: Boolean
7265
7272
 
7266
- attr_accessor :Database, :Table, :Resource, :SnapshotMode, :DdlTopic, :DataSourceMonitorMode, :DataSourceMonitorResource, :DataSourceIncrementMode, :DataSourceIncrementColumn, :DataSourceStartFrom, :DataTargetInsertMode, :DataTargetPrimaryKeyField, :DataTargetRecordMapping, :TopicRegex, :TopicReplacement, :KeyColumns, :DropInvalidMessage, :DropCls, :OutputFormat, :IsTablePrefix, :IncludeContentChanges, :IncludeQuery
7273
+ attr_accessor :Database, :Table, :Resource, :SnapshotMode, :DdlTopic, :DataSourceMonitorMode, :DataSourceMonitorResource, :DataSourceIncrementMode, :DataSourceIncrementColumn, :DataSourceStartFrom, :DataTargetInsertMode, :DataTargetPrimaryKeyField, :DataTargetRecordMapping, :TopicRegex, :TopicReplacement, :KeyColumns, :DropInvalidMessage, :DropCls, :OutputFormat, :IsTablePrefix, :IncludeContentChanges, :IncludeQuery, :RecordWithSchema
7267
7274
 
7268
- def initialize(database=nil, table=nil, resource=nil, snapshotmode=nil, ddltopic=nil, datasourcemonitormode=nil, datasourcemonitorresource=nil, datasourceincrementmode=nil, datasourceincrementcolumn=nil, datasourcestartfrom=nil, datatargetinsertmode=nil, datatargetprimarykeyfield=nil, datatargetrecordmapping=nil, topicregex=nil, topicreplacement=nil, keycolumns=nil, dropinvalidmessage=nil, dropcls=nil, outputformat=nil, istableprefix=nil, includecontentchanges=nil, includequery=nil)
7275
+ def initialize(database=nil, table=nil, resource=nil, snapshotmode=nil, ddltopic=nil, datasourcemonitormode=nil, datasourcemonitorresource=nil, datasourceincrementmode=nil, datasourceincrementcolumn=nil, datasourcestartfrom=nil, datatargetinsertmode=nil, datatargetprimarykeyfield=nil, datatargetrecordmapping=nil, topicregex=nil, topicreplacement=nil, keycolumns=nil, dropinvalidmessage=nil, dropcls=nil, outputformat=nil, istableprefix=nil, includecontentchanges=nil, includequery=nil, recordwithschema=nil)
7269
7276
  @Database = database
7270
7277
  @Table = table
7271
7278
  @Resource = resource
@@ -7288,6 +7295,7 @@ module TencentCloud
7288
7295
  @IsTablePrefix = istableprefix
7289
7296
  @IncludeContentChanges = includecontentchanges
7290
7297
  @IncludeQuery = includequery
7298
+ @RecordWithSchema = recordwithschema
7291
7299
  end
7292
7300
 
7293
7301
  def deserialize(params)
@@ -7323,6 +7331,7 @@ module TencentCloud
7323
7331
  @IsTablePrefix = params['IsTablePrefix']
7324
7332
  @IncludeContentChanges = params['IncludeContentChanges']
7325
7333
  @IncludeQuery = params['IncludeQuery']
7334
+ @RecordWithSchema = params['RecordWithSchema']
7326
7335
  end
7327
7336
  end
7328
7337
 
@@ -7527,15 +7536,30 @@ module TencentCloud
7527
7536
  # @type PluginName: String
7528
7537
  # @param SnapshotMode: 复制存量信息(never增量, initial全量),默认为initial
7529
7538
  # @type SnapshotMode: String
7539
+ # @param DataFormat: 上游数据格式(JSON/Debezium), 当数据库同步模式为默认字段匹配时,必填
7540
+ # @type DataFormat: String
7541
+ # @param DataTargetInsertMode: "INSERT" 表示使用 Insert 模式插入,"UPSERT" 表示使用 Upsert 模式插入
7542
+ # @type DataTargetInsertMode: String
7543
+ # @param DataTargetPrimaryKeyField: 当 "DataInsertMode"="UPSERT" 时,传入当前 upsert 时依赖的主键
7544
+ # @type DataTargetPrimaryKeyField: String
7545
+ # @param DataTargetRecordMapping: 表与消息间的映射关系
7546
+ # @type DataTargetRecordMapping: Array
7547
+ # @param DropInvalidMessage: 是否抛弃解析失败的消息,默认为true
7548
+ # @type DropInvalidMessage: Boolean
7530
7549
 
7531
- attr_accessor :Database, :Table, :Resource, :PluginName, :SnapshotMode
7550
+ attr_accessor :Database, :Table, :Resource, :PluginName, :SnapshotMode, :DataFormat, :DataTargetInsertMode, :DataTargetPrimaryKeyField, :DataTargetRecordMapping, :DropInvalidMessage
7532
7551
 
7533
- def initialize(database=nil, table=nil, resource=nil, pluginname=nil, snapshotmode=nil)
7552
+ def initialize(database=nil, table=nil, resource=nil, pluginname=nil, snapshotmode=nil, dataformat=nil, datatargetinsertmode=nil, datatargetprimarykeyfield=nil, datatargetrecordmapping=nil, dropinvalidmessage=nil)
7534
7553
  @Database = database
7535
7554
  @Table = table
7536
7555
  @Resource = resource
7537
7556
  @PluginName = pluginname
7538
7557
  @SnapshotMode = snapshotmode
7558
+ @DataFormat = dataformat
7559
+ @DataTargetInsertMode = datatargetinsertmode
7560
+ @DataTargetPrimaryKeyField = datatargetprimarykeyfield
7561
+ @DataTargetRecordMapping = datatargetrecordmapping
7562
+ @DropInvalidMessage = dropinvalidmessage
7539
7563
  end
7540
7564
 
7541
7565
  def deserialize(params)
@@ -7544,6 +7568,18 @@ module TencentCloud
7544
7568
  @Resource = params['Resource']
7545
7569
  @PluginName = params['PluginName']
7546
7570
  @SnapshotMode = params['SnapshotMode']
7571
+ @DataFormat = params['DataFormat']
7572
+ @DataTargetInsertMode = params['DataTargetInsertMode']
7573
+ @DataTargetPrimaryKeyField = params['DataTargetPrimaryKeyField']
7574
+ unless params['DataTargetRecordMapping'].nil?
7575
+ @DataTargetRecordMapping = []
7576
+ params['DataTargetRecordMapping'].each do |i|
7577
+ recordmapping_tmp = RecordMapping.new
7578
+ recordmapping_tmp.deserialize(i)
7579
+ @DataTargetRecordMapping << recordmapping_tmp
7580
+ end
7581
+ end
7582
+ @DropInvalidMessage = params['DropInvalidMessage']
7547
7583
  end
7548
7584
  end
7549
7585
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ckafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.393
4
+ version: 3.0.397
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-25 00:00:00.000000000 Z
11
+ date: 2022-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common