tencentcloud-sdk-cls 3.0.604 → 3.0.606

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94eeaeee27555512997abe947685a374bf3a574e
4
- data.tar.gz: 8a3cf2f530592db892aa09c8ef83073e05f1f81f
3
+ metadata.gz: 909e89967508b64ada36d0b2df0f33352862a647
4
+ data.tar.gz: a914b7f19ef4a1e142d0cafa02b5d7b4dcfaa4cf
5
5
  SHA512:
6
- metadata.gz: 56a0a2db8775ca84feebc633c37ddf7e2c21d46a95ada5899939fdd3347a3ee0978b8200a6348d45f57c8ffbef6d6865a1204ab4a79cd086b2e7757c3290ea99
7
- data.tar.gz: 2616df92a36ed4d1f2c1c39b8162f037ff1edec50d484e2ad7e606763a348d61a6c0c31b17127d961c602b7054a181ebb9aea0a28599e10b65ec4ff4774430e2
6
+ metadata.gz: 9370672a3a1d1cf3c9102653c0c32c7fdbfa6dba5426f30948d2b52544a24c58240b030b5ce6663f52965dca8432e2c844b742b345b2b76f033bda3e6beeaad7
7
+ data.tar.gz: 69be3c0cf4b1125f92ad274106572eb03b5d57b40227c9cffdb10b68f96f1b6c2da463cfea25930053eb9b9a4c2fbc380eb729073833a3befc10fd27d31e75d9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.604
1
+ 3.0.606
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 本接口用于校验Kafka服务集群是否可以正常访问
81
+
82
+ # @param request: Request instance for CheckRechargeKafkaServer.
83
+ # @type request: :class:`Tencentcloud::cls::V20201016::CheckRechargeKafkaServerRequest`
84
+ # @rtype: :class:`Tencentcloud::cls::V20201016::CheckRechargeKafkaServerResponse`
85
+ def CheckRechargeKafkaServer(request)
86
+ body = send_request('CheckRechargeKafkaServer', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CheckRechargeKafkaServerResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 关闭Kafka协议消费
81
105
 
82
106
  # @param request: Request instance for CloseKafkaConsumer.
@@ -293,6 +317,30 @@ module TencentCloud
293
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
318
  end
295
319
 
320
+ # 本接口用于创建Kafka数据订阅任务
321
+
322
+ # @param request: Request instance for CreateKafkaRecharge.
323
+ # @type request: :class:`Tencentcloud::cls::V20201016::CreateKafkaRechargeRequest`
324
+ # @rtype: :class:`Tencentcloud::cls::V20201016::CreateKafkaRechargeResponse`
325
+ def CreateKafkaRecharge(request)
326
+ body = send_request('CreateKafkaRecharge', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = CreateKafkaRechargeResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
296
344
  # 本接口用于创建日志集,返回新创建的日志集的 ID。
297
345
 
298
346
  # @param request: Request instance for CreateLogset.
@@ -581,6 +629,30 @@ module TencentCloud
581
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
630
  end
583
631
 
632
+ # 本接口用于删除Kafka数据订阅任务
633
+
634
+ # @param request: Request instance for DeleteKafkaRecharge.
635
+ # @type request: :class:`Tencentcloud::cls::V20201016::DeleteKafkaRechargeRequest`
636
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteKafkaRechargeResponse`
637
+ def DeleteKafkaRecharge(request)
638
+ body = send_request('DeleteKafkaRecharge', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DeleteKafkaRechargeResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
584
656
  # 本接口用于删除日志集。
585
657
 
586
658
  # @param request: Request instance for DeleteLogset.
@@ -941,6 +1013,30 @@ module TencentCloud
941
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
942
1014
  end
943
1015
 
1016
+ # 本接口用于获取Kafka数据订阅任务
1017
+
1018
+ # @param request: Request instance for DescribeKafkaRecharges.
1019
+ # @type request: :class:`Tencentcloud::cls::V20201016::DescribeKafkaRechargesRequest`
1020
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeKafkaRechargesResponse`
1021
+ def DescribeKafkaRecharges(request)
1022
+ body = send_request('DescribeKafkaRecharges', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DescribeKafkaRechargesResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
944
1040
  # 本接口用于搜索日志上下文附近的内容
945
1041
 
946
1042
  # @param request: Request instance for DescribeLogContext.
@@ -1397,6 +1493,30 @@ module TencentCloud
1397
1493
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1398
1494
  end
1399
1495
 
1496
+ # 本接口用于修改Kafka数据订阅任务
1497
+
1498
+ # @param request: Request instance for ModifyKafkaRecharge.
1499
+ # @type request: :class:`Tencentcloud::cls::V20201016::ModifyKafkaRechargeRequest`
1500
+ # @rtype: :class:`Tencentcloud::cls::V20201016::ModifyKafkaRechargeResponse`
1501
+ def ModifyKafkaRecharge(request)
1502
+ body = send_request('ModifyKafkaRecharge', request.serialize)
1503
+ response = JSON.parse(body)
1504
+ if response['Response'].key?('Error') == false
1505
+ model = ModifyKafkaRechargeResponse.new
1506
+ model.deserialize(response['Response'])
1507
+ model
1508
+ else
1509
+ code = response['Response']['Error']['Code']
1510
+ message = response['Response']['Error']['Message']
1511
+ reqid = response['Response']['RequestId']
1512
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1513
+ end
1514
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1515
+ raise e
1516
+ rescue StandardError => e
1517
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
+ end
1519
+
1400
1520
  # 本接口用于修改日志集信息
1401
1521
 
1402
1522
  # @param request: Request instance for ModifyLogset.
@@ -1517,6 +1637,30 @@ module TencentCloud
1517
1637
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
1638
  end
1519
1639
 
1640
+ # 本接口用于预览Kafka数据订阅任务客户日志信息
1641
+
1642
+ # @param request: Request instance for PreviewKafkaRecharge.
1643
+ # @type request: :class:`Tencentcloud::cls::V20201016::PreviewKafkaRechargeRequest`
1644
+ # @rtype: :class:`Tencentcloud::cls::V20201016::PreviewKafkaRechargeResponse`
1645
+ def PreviewKafkaRecharge(request)
1646
+ body = send_request('PreviewKafkaRecharge', request.serialize)
1647
+ response = JSON.parse(body)
1648
+ if response['Response'].key?('Error') == false
1649
+ model = PreviewKafkaRechargeResponse.new
1650
+ model.deserialize(response['Response'])
1651
+ model
1652
+ else
1653
+ code = response['Response']['Error']['Code']
1654
+ message = response['Response']['Error']['Message']
1655
+ reqid = response['Response']['RequestId']
1656
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1657
+ end
1658
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1659
+ raise e
1660
+ rescue StandardError => e
1661
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1662
+ end
1663
+
1520
1664
  # 重试失败的投递任务
1521
1665
 
1522
1666
  # @param request: Request instance for RetryShipperTask.
@@ -526,6 +526,62 @@ module TencentCloud
526
526
  end
527
527
  end
528
528
 
529
+ # CheckRechargeKafkaServer请求参数结构体
530
+ class CheckRechargeKafkaServerRequest < TencentCloud::Common::AbstractModel
531
+ # @param KafkaType: 导入Kafka类型,0: 腾讯云CKafka,1: 用户自建Kafka
532
+ # @type KafkaType: Integer
533
+ # @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
534
+ # @type KafkaInstance: String
535
+ # @param ServerAddr: 服务地址
536
+ # @type ServerAddr: String
537
+ # @param IsEncryptionAddr: ServerAddr是否为加密连接
538
+ # @type IsEncryptionAddr: Boolean
539
+ # @param Protocol: 加密访问协议,IsEncryptionAddr参数为true时必填
540
+ # @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
541
+
542
+ attr_accessor :KafkaType, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol
543
+
544
+ def initialize(kafkatype=nil, kafkainstance=nil, serveraddr=nil, isencryptionaddr=nil, protocol=nil)
545
+ @KafkaType = kafkatype
546
+ @KafkaInstance = kafkainstance
547
+ @ServerAddr = serveraddr
548
+ @IsEncryptionAddr = isencryptionaddr
549
+ @Protocol = protocol
550
+ end
551
+
552
+ def deserialize(params)
553
+ @KafkaType = params['KafkaType']
554
+ @KafkaInstance = params['KafkaInstance']
555
+ @ServerAddr = params['ServerAddr']
556
+ @IsEncryptionAddr = params['IsEncryptionAddr']
557
+ unless params['Protocol'].nil?
558
+ @Protocol = KafkaProtocolInfo.new
559
+ @Protocol.deserialize(params['Protocol'])
560
+ end
561
+ end
562
+ end
563
+
564
+ # CheckRechargeKafkaServer返回参数结构体
565
+ class CheckRechargeKafkaServerResponse < TencentCloud::Common::AbstractModel
566
+ # @param Status: Kafka集群可访问状态,0:可正常访问 ...
567
+ # 注意:此字段可能返回 null,表示取不到有效值。
568
+ # @type Status: Integer
569
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
570
+ # @type RequestId: String
571
+
572
+ attr_accessor :Status, :RequestId
573
+
574
+ def initialize(status=nil, requestid=nil)
575
+ @Status = status
576
+ @RequestId = requestid
577
+ end
578
+
579
+ def deserialize(params)
580
+ @Status = params['Status']
581
+ @RequestId = params['RequestId']
582
+ end
583
+ end
584
+
529
585
  # CKafka的描述-需要投递到的kafka信息
530
586
  class Ckafka < TencentCloud::Common::AbstractModel
531
587
  # @param Vip: Ckafka 的 Vip
@@ -1717,6 +1773,88 @@ module TencentCloud
1717
1773
  end
1718
1774
  end
1719
1775
 
1776
+ # CreateKafkaRecharge请求参数结构体
1777
+ class CreateKafkaRechargeRequest < TencentCloud::Common::AbstractModel
1778
+ # @param TopicId: 导入CLS目标topic ID
1779
+ # @type TopicId: String
1780
+ # @param Name: Kafka导入配置名称
1781
+ # @type Name: String
1782
+ # @param KafkaType: 导入Kafka类型,0: 腾讯云CKafka,1: 用户自建Kafka
1783
+ # @type KafkaType: Integer
1784
+ # @param UserKafkaTopics: 用户需要导入的Kafka相关topic列表,多个topic之间使用半角逗号隔开
1785
+ # @type UserKafkaTopics: String
1786
+ # @param Offset: 导入数据位置,-2:最早(默认),-1:最晚
1787
+ # @type Offset: Integer
1788
+ # @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
1789
+ # @type KafkaInstance: String
1790
+ # @param ServerAddr: 服务地址,KafkaType为1时必填
1791
+ # @type ServerAddr: String
1792
+ # @param IsEncryptionAddr: ServerAddr是否为加密连接,KafkaType为1时必填
1793
+ # @type IsEncryptionAddr: Boolean
1794
+ # @param Protocol: 加密访问协议,IsEncryptionAddr参数为true时必填
1795
+ # @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
1796
+ # @param ConsumerGroupName: 用户Kafka消费组名称
1797
+ # @type ConsumerGroupName: String
1798
+ # @param LogRechargeRule: 日志导入规则
1799
+ # @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
1800
+
1801
+ attr_accessor :TopicId, :Name, :KafkaType, :UserKafkaTopics, :Offset, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :ConsumerGroupName, :LogRechargeRule
1802
+
1803
+ def initialize(topicid=nil, name=nil, kafkatype=nil, userkafkatopics=nil, offset=nil, kafkainstance=nil, serveraddr=nil, isencryptionaddr=nil, protocol=nil, consumergroupname=nil, logrechargerule=nil)
1804
+ @TopicId = topicid
1805
+ @Name = name
1806
+ @KafkaType = kafkatype
1807
+ @UserKafkaTopics = userkafkatopics
1808
+ @Offset = offset
1809
+ @KafkaInstance = kafkainstance
1810
+ @ServerAddr = serveraddr
1811
+ @IsEncryptionAddr = isencryptionaddr
1812
+ @Protocol = protocol
1813
+ @ConsumerGroupName = consumergroupname
1814
+ @LogRechargeRule = logrechargerule
1815
+ end
1816
+
1817
+ def deserialize(params)
1818
+ @TopicId = params['TopicId']
1819
+ @Name = params['Name']
1820
+ @KafkaType = params['KafkaType']
1821
+ @UserKafkaTopics = params['UserKafkaTopics']
1822
+ @Offset = params['Offset']
1823
+ @KafkaInstance = params['KafkaInstance']
1824
+ @ServerAddr = params['ServerAddr']
1825
+ @IsEncryptionAddr = params['IsEncryptionAddr']
1826
+ unless params['Protocol'].nil?
1827
+ @Protocol = KafkaProtocolInfo.new
1828
+ @Protocol.deserialize(params['Protocol'])
1829
+ end
1830
+ @ConsumerGroupName = params['ConsumerGroupName']
1831
+ unless params['LogRechargeRule'].nil?
1832
+ @LogRechargeRule = LogRechargeRuleInfo.new
1833
+ @LogRechargeRule.deserialize(params['LogRechargeRule'])
1834
+ end
1835
+ end
1836
+ end
1837
+
1838
+ # CreateKafkaRecharge返回参数结构体
1839
+ class CreateKafkaRechargeResponse < TencentCloud::Common::AbstractModel
1840
+ # @param Id: Kafka导入配置ID
1841
+ # @type Id: String
1842
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1843
+ # @type RequestId: String
1844
+
1845
+ attr_accessor :Id, :RequestId
1846
+
1847
+ def initialize(id=nil, requestid=nil)
1848
+ @Id = id
1849
+ @RequestId = requestid
1850
+ end
1851
+
1852
+ def deserialize(params)
1853
+ @Id = params['Id']
1854
+ @RequestId = params['RequestId']
1855
+ end
1856
+ end
1857
+
1720
1858
  # CreateLogset请求参数结构体
1721
1859
  class CreateLogsetRequest < TencentCloud::Common::AbstractModel
1722
1860
  # @param LogsetName: 日志集名字,不能重名
@@ -2319,6 +2457,42 @@ module TencentCloud
2319
2457
  end
2320
2458
  end
2321
2459
 
2460
+ # DeleteKafkaRecharge请求参数结构体
2461
+ class DeleteKafkaRechargeRequest < TencentCloud::Common::AbstractModel
2462
+ # @param Id: Kafka导入配置ID
2463
+ # @type Id: String
2464
+ # @param TopicId: 导入CLS目标topic ID
2465
+ # @type TopicId: String
2466
+
2467
+ attr_accessor :Id, :TopicId
2468
+
2469
+ def initialize(id=nil, topicid=nil)
2470
+ @Id = id
2471
+ @TopicId = topicid
2472
+ end
2473
+
2474
+ def deserialize(params)
2475
+ @Id = params['Id']
2476
+ @TopicId = params['TopicId']
2477
+ end
2478
+ end
2479
+
2480
+ # DeleteKafkaRecharge返回参数结构体
2481
+ class DeleteKafkaRechargeResponse < TencentCloud::Common::AbstractModel
2482
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2483
+ # @type RequestId: String
2484
+
2485
+ attr_accessor :RequestId
2486
+
2487
+ def initialize(requestid=nil)
2488
+ @RequestId = requestid
2489
+ end
2490
+
2491
+ def deserialize(params)
2492
+ @RequestId = params['RequestId']
2493
+ end
2494
+ end
2495
+
2322
2496
  # DeleteLogset请求参数结构体
2323
2497
  class DeleteLogsetRequest < TencentCloud::Common::AbstractModel
2324
2498
  # @param LogsetId: 日志集ID
@@ -3144,6 +3318,61 @@ module TencentCloud
3144
3318
  end
3145
3319
  end
3146
3320
 
3321
+ # DescribeKafkaRecharges请求参数结构体
3322
+ class DescribeKafkaRechargesRequest < TencentCloud::Common::AbstractModel
3323
+ # @param TopicId: 日志主题 ID
3324
+ # @type TopicId: String
3325
+ # @param Id: 导入配置ID
3326
+ # @type Id: String
3327
+ # @param Status: 状态 status 1: 运行中, 2: 暂停...
3328
+ # @type Status: Integer
3329
+
3330
+ attr_accessor :TopicId, :Id, :Status
3331
+
3332
+ def initialize(topicid=nil, id=nil, status=nil)
3333
+ @TopicId = topicid
3334
+ @Id = id
3335
+ @Status = status
3336
+ end
3337
+
3338
+ def deserialize(params)
3339
+ @TopicId = params['TopicId']
3340
+ @Id = params['Id']
3341
+ @Status = params['Status']
3342
+ end
3343
+ end
3344
+
3345
+ # DescribeKafkaRecharges返回参数结构体
3346
+ class DescribeKafkaRechargesResponse < TencentCloud::Common::AbstractModel
3347
+ # @param Infos: KafkaRechargeInfo 信息列表
3348
+ # @type Infos: Array
3349
+ # @param TotalCount: Kafka导入信息总条数
3350
+ # @type TotalCount: Integer
3351
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3352
+ # @type RequestId: String
3353
+
3354
+ attr_accessor :Infos, :TotalCount, :RequestId
3355
+
3356
+ def initialize(infos=nil, totalcount=nil, requestid=nil)
3357
+ @Infos = infos
3358
+ @TotalCount = totalcount
3359
+ @RequestId = requestid
3360
+ end
3361
+
3362
+ def deserialize(params)
3363
+ unless params['Infos'].nil?
3364
+ @Infos = []
3365
+ params['Infos'].each do |i|
3366
+ kafkarechargeinfo_tmp = KafkaRechargeInfo.new
3367
+ kafkarechargeinfo_tmp.deserialize(i)
3368
+ @Infos << kafkarechargeinfo_tmp
3369
+ end
3370
+ end
3371
+ @TotalCount = params['TotalCount']
3372
+ @RequestId = params['RequestId']
3373
+ end
3374
+ end
3375
+
3147
3376
  # DescribeLogContext请求参数结构体
3148
3377
  class DescribeLogContextRequest < TencentCloud::Common::AbstractModel
3149
3378
  # @param TopicId: 要查询的日志主题ID
@@ -3724,19 +3953,31 @@ module TencentCloud
3724
3953
 
3725
3954
  # DescribeTopics请求参数结构体
3726
3955
  class DescribeTopicsRequest < TencentCloud::Common::AbstractModel
3727
- # @param Filters: <br><li> topicName按照【日志主题名称】进行过滤。类型:String必选:否<br><li> logsetName按照【日志集名称】进行过滤。类型:String必选:否<br><li> topicId按照【日志主题ID】进行过滤。类型:String必选:否<br><li> logsetId按照【日志集ID】进行过滤,可通过调用DescribeLogsets查询已创建的日志集列表或登录控制台进行查看;也可以调用CreateLogset创建新的日志集。类型:String必选:否<br><li> tagKey按照【标签键】进行过滤。类型:String必选:否<br><li> tag:tagKey按照【标签键值对】进行过滤。tagKey使用具体的标签键进行替换,例如tag:exampleKey。类型:String必选:否<br><li> storageType按照【日志主题的存储类型】进行过滤。可选值 hot(标准存储),cold(低频存储)类型:String必选:否每次请求的Filters的上限为10,Filter.Values的上限为100。
3956
+ # @param Filters: <li> topicName按照【日志主题名称】进行过滤,默认为模糊匹配,可使用PreciseSearch参数设置为精确匹配。类型:String必选:否<br><li> logsetName按照【日志集名称】进行过滤,默认为模糊匹配,可使用PreciseSearch参数设置为精确匹配。类型:String必选:否<br><li> topicId按照【日志主题ID】进行过滤。类型:String必选:否<br><li> logsetId按照【日志集ID】进行过滤,可通过调用DescribeLogsets查询已创建的日志集列表或登录控制台进行查看;也可以调用CreateLogset创建新的日志集。类型:String必选:否<br><li> tagKey按照【标签键】进行过滤。类型:String必选:否<br><li> tag:tagKey按照【标签键值对】进行过滤。tagKey使用具体的标签键进行替换,例如tag:exampleKey。类型:String必选:否<br><li> storageType按照【日志主题的存储类型】进行过滤。可选值 hot(标准存储),cold(低频存储)类型:String必选:否每次请求的Filters的上限为10,Filter.Values的上限为100。
3728
3957
  # @type Filters: Array
3729
3958
  # @param Offset: 分页的偏移量,默认值为0。
3730
3959
  # @type Offset: Integer
3731
3960
  # @param Limit: 分页单页限制数目,默认值为20,最大值100。
3732
3961
  # @type Limit: Integer
3733
-
3734
- attr_accessor :Filters, :Offset, :Limit
3735
-
3736
- def initialize(filters=nil, offset=nil, limit=nil)
3962
+ # @param PreciseSearch: 控制Filters相关字段是否为精确匹配。
3963
+ # - 0: 默认值,topicName和logsetName模糊匹配
3964
+ # - 1: topicName精确匹配
3965
+ # - 2: logsetName精确匹配
3966
+ # - 3: topicName和logsetName都精确匹配
3967
+ # @type PreciseSearch: Integer
3968
+ # @param BizType: 主题类型
3969
+ # - 0:日志主题,默认值
3970
+ # - 1:指标主题
3971
+ # @type BizType: Integer
3972
+
3973
+ attr_accessor :Filters, :Offset, :Limit, :PreciseSearch, :BizType
3974
+
3975
+ def initialize(filters=nil, offset=nil, limit=nil, precisesearch=nil, biztype=nil)
3737
3976
  @Filters = filters
3738
3977
  @Offset = offset
3739
3978
  @Limit = limit
3979
+ @PreciseSearch = precisesearch
3980
+ @BizType = biztype
3740
3981
  end
3741
3982
 
3742
3983
  def deserialize(params)
@@ -3750,6 +3991,8 @@ module TencentCloud
3750
3991
  end
3751
3992
  @Offset = params['Offset']
3752
3993
  @Limit = params['Limit']
3994
+ @PreciseSearch = params['PreciseSearch']
3995
+ @BizType = params['BizType']
3753
3996
  end
3754
3997
  end
3755
3998
 
@@ -3902,7 +4145,7 @@ module TencentCloud
3902
4145
  # @param BeginRegex: 行首匹配规则,只有log_type为multiline_log或fullregex_log时有效
3903
4146
  # 注意:此字段可能返回 null,表示取不到有效值。
3904
4147
  # @type BeginRegex: String
3905
- # @param Keys: 取的每个字段的key名字,为空的key代表丢弃这个字段,只有log_type为delimiter_log时有效,json_log的日志使用json本身的key
4148
+ # @param Keys: 取的每个字段的key名字,为空的key代表丢弃这个字段,只有log_type为delimiter_log时有效,json_log的日志使用json本身的key。限制100个。
3906
4149
  # 注意:此字段可能返回 null,表示取不到有效值。
3907
4150
  # @type Keys: Array
3908
4151
  # @param FilterKeyRegex: 需要过滤日志的key,及其对应的regex
@@ -3939,7 +4182,7 @@ module TencentCloud
3939
4182
  # @type ParseProtocol: String
3940
4183
  # @param MetadataType: 元数据类型,0: 不使用元数据信息,1:使用机器组元数据,2:使用用户自定义元数据,3:使用采集配置路径,
3941
4184
  # @type MetadataType: Integer
3942
- # @param PathRegex: 采集配置路径正则表达式,MetadataType为1时必填
4185
+ # @param PathRegex: 采集配置路径正则表达式,MetadataType为3时必填
3943
4186
  # 注意:此字段可能返回 null,表示取不到有效值。
3944
4187
  # @type PathRegex: String
3945
4188
  # @param MetaTags: 用户自定义元数据信息,MetadataType为2时必填
@@ -4280,6 +4523,170 @@ module TencentCloud
4280
4523
  end
4281
4524
  end
4282
4525
 
4526
+ # kafka协议消费内容
4527
+ class KafkaConsumerContent < TencentCloud::Common::AbstractModel
4528
+ # @param Format: 消费格式 0:全文;1:json
4529
+ # @type Format: Integer
4530
+ # @param EnableTag: 是否投递 TAG 信息
4531
+ # Format为0时,此字段不需要赋值
4532
+ # @type EnableTag: Boolean
4533
+ # @param MetaFields: 元数据信息列表, 可选值为:\_\_SOURCE\_\_、\_\_FILENAME\_\_
4534
+ # 、\_\_TIMESTAMP\_\_、\_\_HOSTNAME\_\_、\_\_PKGID\_\_
4535
+ # Format为0时,此字段不需要赋值
4536
+ # @type MetaFields: Array
4537
+ # @param TagTransaction: tag数据处理方式:
4538
+ # 1:不平铺(默认值)
4539
+ # 2:平铺
4540
+ # 注意:此字段可能返回 null,表示取不到有效值。
4541
+ # @type TagTransaction: Integer
4542
+ # @param JsonType: 消费数据Json格式:
4543
+ # 1:不转义(默认格式)
4544
+ # 2:转义
4545
+ # @type JsonType: Integer
4546
+
4547
+ attr_accessor :Format, :EnableTag, :MetaFields, :TagTransaction, :JsonType
4548
+
4549
+ def initialize(format=nil, enabletag=nil, metafields=nil, tagtransaction=nil, jsontype=nil)
4550
+ @Format = format
4551
+ @EnableTag = enabletag
4552
+ @MetaFields = metafields
4553
+ @TagTransaction = tagtransaction
4554
+ @JsonType = jsontype
4555
+ end
4556
+
4557
+ def deserialize(params)
4558
+ @Format = params['Format']
4559
+ @EnableTag = params['EnableTag']
4560
+ @MetaFields = params['MetaFields']
4561
+ @TagTransaction = params['TagTransaction']
4562
+ @JsonType = params['JsonType']
4563
+ end
4564
+ end
4565
+
4566
+ # Kafka访问协议
4567
+ class KafkaProtocolInfo < TencentCloud::Common::AbstractModel
4568
+ # @param Protocol: 协议类型,支持的协议类型包括 plaintext、sasl_plaintext 或 sasl_ssl。建议使用 sasl_ssl,此协议会进行连接加密同时需要用户认证
4569
+ # 注意:此字段可能返回 null,表示取不到有效值。
4570
+ # @type Protocol: String
4571
+ # @param Mechanism: 加密类型,支持 PLAIN、SCRAM-SHA-256 或 SCRAM-SHA-512
4572
+ # 注意:此字段可能返回 null,表示取不到有效值。
4573
+ # @type Mechanism: String
4574
+ # @param UserName: 用户名
4575
+ # 注意:此字段可能返回 null,表示取不到有效值。
4576
+ # @type UserName: String
4577
+ # @param Password: 用户密码
4578
+ # 注意:此字段可能返回 null,表示取不到有效值。
4579
+ # @type Password: String
4580
+
4581
+ attr_accessor :Protocol, :Mechanism, :UserName, :Password
4582
+
4583
+ def initialize(protocol=nil, mechanism=nil, username=nil, password=nil)
4584
+ @Protocol = protocol
4585
+ @Mechanism = mechanism
4586
+ @UserName = username
4587
+ @Password = password
4588
+ end
4589
+
4590
+ def deserialize(params)
4591
+ @Protocol = params['Protocol']
4592
+ @Mechanism = params['Mechanism']
4593
+ @UserName = params['UserName']
4594
+ @Password = params['Password']
4595
+ end
4596
+ end
4597
+
4598
+ # Kafka导入配置信息
4599
+ class KafkaRechargeInfo < TencentCloud::Common::AbstractModel
4600
+ # @param Id: 主键ID
4601
+ # 注意:此字段可能返回 null,表示取不到有效值。
4602
+ # @type Id: String
4603
+ # @param TopicId: 日志主题ID
4604
+ # 注意:此字段可能返回 null,表示取不到有效值。
4605
+ # @type TopicId: String
4606
+ # @param Name: Kafka导入任务名称
4607
+ # 注意:此字段可能返回 null,表示取不到有效值。
4608
+ # @type Name: String
4609
+ # @param KafkaType: 导入Kafka类型,0: 腾讯云CKafka,1: 用户自建Kafka
4610
+ # 注意:此字段可能返回 null,表示取不到有效值。
4611
+ # @type KafkaType: Integer
4612
+ # @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
4613
+ # 注意:此字段可能返回 null,表示取不到有效值。
4614
+ # @type KafkaInstance: String
4615
+ # @param ServerAddr: 服务地址
4616
+ # 注意:此字段可能返回 null,表示取不到有效值。
4617
+ # @type ServerAddr: String
4618
+ # @param IsEncryptionAddr: ServerAddr是否为加密连接
4619
+ # 注意:此字段可能返回 null,表示取不到有效值。
4620
+ # @type IsEncryptionAddr: Boolean
4621
+ # @param Protocol: 加密访问协议,IsEncryptionAddr参数为true时必填
4622
+ # @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
4623
+ # @param UserKafkaTopics: 用户需要导入的Kafka相关topic列表,多个topic之间使用半角逗号隔开
4624
+ # 注意:此字段可能返回 null,表示取不到有效值。
4625
+ # @type UserKafkaTopics: String
4626
+ # @param ConsumerGroupName: 用户Kafka消费组名称
4627
+ # 注意:此字段可能返回 null,表示取不到有效值。
4628
+ # @type ConsumerGroupName: String
4629
+ # @param Status: 状态 status 1: 运行中, 2: 暂停 ...
4630
+ # 注意:此字段可能返回 null,表示取不到有效值。
4631
+ # @type Status: Integer
4632
+ # @param Offset: 导入数据位置,-1:最早(默认),-2:最晚,大于等于0: 指定offset
4633
+ # 注意:此字段可能返回 null,表示取不到有效值。
4634
+ # @type Offset: Integer
4635
+ # @param CreateTime: 创建时间
4636
+ # 注意:此字段可能返回 null,表示取不到有效值。
4637
+ # @type CreateTime: String
4638
+ # @param UpdateTime: 更新时间
4639
+ # 注意:此字段可能返回 null,表示取不到有效值。
4640
+ # @type UpdateTime: String
4641
+ # @param LogRechargeRule: 日志导入规则
4642
+ # 注意:此字段可能返回 null,表示取不到有效值。
4643
+ # @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
4644
+
4645
+ attr_accessor :Id, :TopicId, :Name, :KafkaType, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :UserKafkaTopics, :ConsumerGroupName, :Status, :Offset, :CreateTime, :UpdateTime, :LogRechargeRule
4646
+
4647
+ def initialize(id=nil, topicid=nil, name=nil, kafkatype=nil, kafkainstance=nil, serveraddr=nil, isencryptionaddr=nil, protocol=nil, userkafkatopics=nil, consumergroupname=nil, status=nil, offset=nil, createtime=nil, updatetime=nil, logrechargerule=nil)
4648
+ @Id = id
4649
+ @TopicId = topicid
4650
+ @Name = name
4651
+ @KafkaType = kafkatype
4652
+ @KafkaInstance = kafkainstance
4653
+ @ServerAddr = serveraddr
4654
+ @IsEncryptionAddr = isencryptionaddr
4655
+ @Protocol = protocol
4656
+ @UserKafkaTopics = userkafkatopics
4657
+ @ConsumerGroupName = consumergroupname
4658
+ @Status = status
4659
+ @Offset = offset
4660
+ @CreateTime = createtime
4661
+ @UpdateTime = updatetime
4662
+ @LogRechargeRule = logrechargerule
4663
+ end
4664
+
4665
+ def deserialize(params)
4666
+ @Id = params['Id']
4667
+ @TopicId = params['TopicId']
4668
+ @Name = params['Name']
4669
+ @KafkaType = params['KafkaType']
4670
+ @KafkaInstance = params['KafkaInstance']
4671
+ @ServerAddr = params['ServerAddr']
4672
+ @IsEncryptionAddr = params['IsEncryptionAddr']
4673
+ unless params['Protocol'].nil?
4674
+ @Protocol = KafkaProtocolInfo.new
4675
+ @Protocol.deserialize(params['Protocol'])
4676
+ end
4677
+ @UserKafkaTopics = params['UserKafkaTopics']
4678
+ @ConsumerGroupName = params['ConsumerGroupName']
4679
+ @Status = params['Status']
4680
+ @Offset = params['Offset']
4681
+ @CreateTime = params['CreateTime']
4682
+ @UpdateTime = params['UpdateTime']
4683
+ unless params['LogRechargeRule'].nil?
4684
+ @LogRechargeRule = LogRechargeRuleInfo.new
4685
+ @LogRechargeRule.deserialize(params['LogRechargeRule'])
4686
+ end
4687
+ end
4688
+ end
4689
+
4283
4690
  # 需要过滤日志的key,及其对应的regex
4284
4691
  class KeyRegexInfo < TencentCloud::Common::AbstractModel
4285
4692
  # @param Key: 需要过滤日志的key
@@ -4483,6 +4890,84 @@ module TencentCloud
4483
4890
  end
4484
4891
  end
4485
4892
 
4893
+ # 日志导入规则
4894
+ class LogRechargeRuleInfo < TencentCloud::Common::AbstractModel
4895
+ # @param RechargeType: 导入类型,支持json_log:json格式日志,minimalist_log: 单行全文,fullregex_log: 单行完全正则
4896
+ # @type RechargeType: String
4897
+ # @param EncodingFormat: 解析编码格式,0: UTF-8(默认值),1: GBK
4898
+ # @type EncodingFormat: Integer
4899
+ # @param DefaultTimeSwitch: 使用默认时间,true:开启(默认值), flase:关闭
4900
+ # @type DefaultTimeSwitch: Boolean
4901
+ # @param LogRegex: 整条日志匹配规则,只有RechargeType为fullregex_log时有效
4902
+ # 注意:此字段可能返回 null,表示取不到有效值。
4903
+ # @type LogRegex: String
4904
+ # @param UnMatchLogSwitch: 解析失败日志是否上传,true表示上传,false表示不上传
4905
+ # @type UnMatchLogSwitch: Boolean
4906
+ # @param UnMatchLogKey: 解析失败日志的键名称
4907
+ # 注意:此字段可能返回 null,表示取不到有效值。
4908
+ # @type UnMatchLogKey: String
4909
+ # @param UnMatchLogTimeSrc: 解析失败日志时间来源,0: 系统当前时间,1: Kafka消息时间戳
4910
+ # 注意:此字段可能返回 null,表示取不到有效值。
4911
+ # @type UnMatchLogTimeSrc: Integer
4912
+ # @param DefaultTimeSrc: 默认时间来源,0: 系统当前时间,1: Kafka消息时间戳
4913
+ # 注意:此字段可能返回 null,表示取不到有效值。
4914
+ # @type DefaultTimeSrc: Integer
4915
+ # @param TimeKey: 时间字段
4916
+ # 注意:此字段可能返回 null,表示取不到有效值。
4917
+ # @type TimeKey: String
4918
+ # @param TimeRegex: 时间提取正则表达式
4919
+ # 注意:此字段可能返回 null,表示取不到有效值。
4920
+ # @type TimeRegex: String
4921
+ # @param TimeFormat: 时间字段格式
4922
+ # 注意:此字段可能返回 null,表示取不到有效值。
4923
+ # @type TimeFormat: String
4924
+ # @param TimeZone: 时间字段时区
4925
+ # 注意:此字段可能返回 null,表示取不到有效值。
4926
+ # @type TimeZone: String
4927
+ # @param Metadata: 元数据信息,Kafka导入支持kafka_topic,kafka_partition,kafka_offset,kafka_timestamp
4928
+ # 注意:此字段可能返回 null,表示取不到有效值。
4929
+ # @type Metadata: Array
4930
+ # @param Keys: 日志Key列表,RechargeType为full_regex_log时必填
4931
+ # 注意:此字段可能返回 null,表示取不到有效值。
4932
+ # @type Keys: Array
4933
+
4934
+ attr_accessor :RechargeType, :EncodingFormat, :DefaultTimeSwitch, :LogRegex, :UnMatchLogSwitch, :UnMatchLogKey, :UnMatchLogTimeSrc, :DefaultTimeSrc, :TimeKey, :TimeRegex, :TimeFormat, :TimeZone, :Metadata, :Keys
4935
+
4936
+ def initialize(rechargetype=nil, encodingformat=nil, defaulttimeswitch=nil, logregex=nil, unmatchlogswitch=nil, unmatchlogkey=nil, unmatchlogtimesrc=nil, defaulttimesrc=nil, timekey=nil, timeregex=nil, timeformat=nil, timezone=nil, metadata=nil, keys=nil)
4937
+ @RechargeType = rechargetype
4938
+ @EncodingFormat = encodingformat
4939
+ @DefaultTimeSwitch = defaulttimeswitch
4940
+ @LogRegex = logregex
4941
+ @UnMatchLogSwitch = unmatchlogswitch
4942
+ @UnMatchLogKey = unmatchlogkey
4943
+ @UnMatchLogTimeSrc = unmatchlogtimesrc
4944
+ @DefaultTimeSrc = defaulttimesrc
4945
+ @TimeKey = timekey
4946
+ @TimeRegex = timeregex
4947
+ @TimeFormat = timeformat
4948
+ @TimeZone = timezone
4949
+ @Metadata = metadata
4950
+ @Keys = keys
4951
+ end
4952
+
4953
+ def deserialize(params)
4954
+ @RechargeType = params['RechargeType']
4955
+ @EncodingFormat = params['EncodingFormat']
4956
+ @DefaultTimeSwitch = params['DefaultTimeSwitch']
4957
+ @LogRegex = params['LogRegex']
4958
+ @UnMatchLogSwitch = params['UnMatchLogSwitch']
4959
+ @UnMatchLogKey = params['UnMatchLogKey']
4960
+ @UnMatchLogTimeSrc = params['UnMatchLogTimeSrc']
4961
+ @DefaultTimeSrc = params['DefaultTimeSrc']
4962
+ @TimeKey = params['TimeKey']
4963
+ @TimeRegex = params['TimeRegex']
4964
+ @TimeFormat = params['TimeFormat']
4965
+ @TimeZone = params['TimeZone']
4966
+ @Metadata = params['Metadata']
4967
+ @Keys = params['Keys']
4968
+ end
4969
+ end
4970
+
4486
4971
  # 日志集相关信息
4487
4972
  class LogsetInfo < TencentCloud::Common::AbstractModel
4488
4973
  # @param LogsetId: 日志集ID
@@ -5241,6 +5726,88 @@ module TencentCloud
5241
5726
  end
5242
5727
  end
5243
5728
 
5729
+ # ModifyKafkaRecharge请求参数结构体
5730
+ class ModifyKafkaRechargeRequest < TencentCloud::Common::AbstractModel
5731
+ # @param Id: Kafka导入配置ID
5732
+ # @type Id: String
5733
+ # @param TopicId: 导入CLS目标topic ID
5734
+ # @type TopicId: String
5735
+ # @param Name: Kafka导入配置名称
5736
+ # @type Name: String
5737
+ # @param KafkaType: 导入Kafka类型,0: 腾讯云CKafka,1: 用户自建Kafka
5738
+ # @type KafkaType: Integer
5739
+ # @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
5740
+ # @type KafkaInstance: String
5741
+ # @param ServerAddr: 服务地址
5742
+ # @type ServerAddr: String
5743
+ # @param IsEncryptionAddr: ServerAddr是否为加密连接
5744
+ # @type IsEncryptionAddr: Boolean
5745
+ # @param Protocol: 加密访问协议,IsEncryptionAddr参数为true时必填
5746
+ # @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
5747
+ # @param UserKafkaTopics: 用户需要导入的Kafka相关topic列表,多个topic之间使用半角逗号隔开
5748
+ # @type UserKafkaTopics: String
5749
+ # @param ConsumerGroupName: 用户Kafka消费组名称
5750
+ # @type ConsumerGroupName: String
5751
+ # @param LogRechargeRule: 日志导入规则
5752
+ # @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
5753
+ # @param StatusControl: 导入控制,1:暂停,2:继续
5754
+ # @type StatusControl: Integer
5755
+
5756
+ attr_accessor :Id, :TopicId, :Name, :KafkaType, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :UserKafkaTopics, :ConsumerGroupName, :LogRechargeRule, :StatusControl
5757
+
5758
+ def initialize(id=nil, topicid=nil, name=nil, kafkatype=nil, kafkainstance=nil, serveraddr=nil, isencryptionaddr=nil, protocol=nil, userkafkatopics=nil, consumergroupname=nil, logrechargerule=nil, statuscontrol=nil)
5759
+ @Id = id
5760
+ @TopicId = topicid
5761
+ @Name = name
5762
+ @KafkaType = kafkatype
5763
+ @KafkaInstance = kafkainstance
5764
+ @ServerAddr = serveraddr
5765
+ @IsEncryptionAddr = isencryptionaddr
5766
+ @Protocol = protocol
5767
+ @UserKafkaTopics = userkafkatopics
5768
+ @ConsumerGroupName = consumergroupname
5769
+ @LogRechargeRule = logrechargerule
5770
+ @StatusControl = statuscontrol
5771
+ end
5772
+
5773
+ def deserialize(params)
5774
+ @Id = params['Id']
5775
+ @TopicId = params['TopicId']
5776
+ @Name = params['Name']
5777
+ @KafkaType = params['KafkaType']
5778
+ @KafkaInstance = params['KafkaInstance']
5779
+ @ServerAddr = params['ServerAddr']
5780
+ @IsEncryptionAddr = params['IsEncryptionAddr']
5781
+ unless params['Protocol'].nil?
5782
+ @Protocol = KafkaProtocolInfo.new
5783
+ @Protocol.deserialize(params['Protocol'])
5784
+ end
5785
+ @UserKafkaTopics = params['UserKafkaTopics']
5786
+ @ConsumerGroupName = params['ConsumerGroupName']
5787
+ unless params['LogRechargeRule'].nil?
5788
+ @LogRechargeRule = LogRechargeRuleInfo.new
5789
+ @LogRechargeRule.deserialize(params['LogRechargeRule'])
5790
+ end
5791
+ @StatusControl = params['StatusControl']
5792
+ end
5793
+ end
5794
+
5795
+ # ModifyKafkaRecharge返回参数结构体
5796
+ class ModifyKafkaRechargeResponse < TencentCloud::Common::AbstractModel
5797
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5798
+ # @type RequestId: String
5799
+
5800
+ attr_accessor :RequestId
5801
+
5802
+ def initialize(requestid=nil)
5803
+ @RequestId = requestid
5804
+ end
5805
+
5806
+ def deserialize(params)
5807
+ @RequestId = params['RequestId']
5808
+ end
5809
+ end
5810
+
5244
5811
  # ModifyLogset请求参数结构体
5245
5812
  class ModifyLogsetRequest < TencentCloud::Common::AbstractModel
5246
5813
  # @param LogsetId: 日志集ID
@@ -5625,17 +6192,24 @@ module TencentCloud
5625
6192
  # @type FromTopicId: String
5626
6193
  # @param Compression: 压缩方式[0:NONE;2:SNAPPY;3:LZ4]
5627
6194
  # @type Compression: Integer
6195
+ # @param ConsumerContent: kafka协议消费数据格式
6196
+ # @type ConsumerContent: :class:`Tencentcloud::Cls.v20201016.models.KafkaConsumerContent`
5628
6197
 
5629
- attr_accessor :FromTopicId, :Compression
6198
+ attr_accessor :FromTopicId, :Compression, :ConsumerContent
5630
6199
 
5631
- def initialize(fromtopicid=nil, compression=nil)
6200
+ def initialize(fromtopicid=nil, compression=nil, consumercontent=nil)
5632
6201
  @FromTopicId = fromtopicid
5633
6202
  @Compression = compression
6203
+ @ConsumerContent = consumercontent
5634
6204
  end
5635
6205
 
5636
6206
  def deserialize(params)
5637
6207
  @FromTopicId = params['FromTopicId']
5638
6208
  @Compression = params['Compression']
6209
+ unless params['ConsumerContent'].nil?
6210
+ @ConsumerContent = KafkaConsumerContent.new
6211
+ @ConsumerContent.deserialize(params['ConsumerContent'])
6212
+ end
5639
6213
  end
5640
6214
  end
5641
6215
 
@@ -5744,6 +6318,89 @@ module TencentCloud
5744
6318
  end
5745
6319
  end
5746
6320
 
6321
+ # PreviewKafkaRecharge请求参数结构体
6322
+ class PreviewKafkaRechargeRequest < TencentCloud::Common::AbstractModel
6323
+ # @param PreviewType: 预览类型,1:源数据预览,2:导出结果预览
6324
+ # @type PreviewType: Integer
6325
+ # @param KafkaType: 导入Kafka类型,0: 腾讯云CKafka,1: 用户自建Kafka
6326
+ # @type KafkaType: Integer
6327
+ # @param UserKafkaTopics: 用户需要导入的Kafka相关topic列表,多个topic之间使用半角逗号隔开
6328
+ # @type UserKafkaTopics: String
6329
+ # @param Offset: 导入数据位置,-2:最早(默认),-1:最晚
6330
+ # @type Offset: Integer
6331
+ # @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
6332
+ # @type KafkaInstance: String
6333
+ # @param ServerAddr: 服务地址
6334
+ # @type ServerAddr: String
6335
+ # @param IsEncryptionAddr: ServerAddr是否为加密连接
6336
+ # @type IsEncryptionAddr: Boolean
6337
+ # @param Protocol: 加密访问协议,IsEncryptionAddr参数为true时必填
6338
+ # @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
6339
+ # @param ConsumerGroupName: 用户Kafka消费组
6340
+ # @type ConsumerGroupName: String
6341
+ # @param LogRechargeRule: 日志导入规则
6342
+ # @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
6343
+
6344
+ attr_accessor :PreviewType, :KafkaType, :UserKafkaTopics, :Offset, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :ConsumerGroupName, :LogRechargeRule
6345
+
6346
+ def initialize(previewtype=nil, kafkatype=nil, userkafkatopics=nil, offset=nil, kafkainstance=nil, serveraddr=nil, isencryptionaddr=nil, protocol=nil, consumergroupname=nil, logrechargerule=nil)
6347
+ @PreviewType = previewtype
6348
+ @KafkaType = kafkatype
6349
+ @UserKafkaTopics = userkafkatopics
6350
+ @Offset = offset
6351
+ @KafkaInstance = kafkainstance
6352
+ @ServerAddr = serveraddr
6353
+ @IsEncryptionAddr = isencryptionaddr
6354
+ @Protocol = protocol
6355
+ @ConsumerGroupName = consumergroupname
6356
+ @LogRechargeRule = logrechargerule
6357
+ end
6358
+
6359
+ def deserialize(params)
6360
+ @PreviewType = params['PreviewType']
6361
+ @KafkaType = params['KafkaType']
6362
+ @UserKafkaTopics = params['UserKafkaTopics']
6363
+ @Offset = params['Offset']
6364
+ @KafkaInstance = params['KafkaInstance']
6365
+ @ServerAddr = params['ServerAddr']
6366
+ @IsEncryptionAddr = params['IsEncryptionAddr']
6367
+ unless params['Protocol'].nil?
6368
+ @Protocol = KafkaProtocolInfo.new
6369
+ @Protocol.deserialize(params['Protocol'])
6370
+ end
6371
+ @ConsumerGroupName = params['ConsumerGroupName']
6372
+ unless params['LogRechargeRule'].nil?
6373
+ @LogRechargeRule = LogRechargeRuleInfo.new
6374
+ @LogRechargeRule.deserialize(params['LogRechargeRule'])
6375
+ end
6376
+ end
6377
+ end
6378
+
6379
+ # PreviewKafkaRecharge返回参数结构体
6380
+ class PreviewKafkaRechargeResponse < TencentCloud::Common::AbstractModel
6381
+ # @param LogSample: 日志样例,PreviewType为2时返回
6382
+ # @type LogSample: String
6383
+ # @param LogData: 日志预览结果
6384
+ # 注意:此字段可能返回 null,表示取不到有效值。
6385
+ # @type LogData: String
6386
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6387
+ # @type RequestId: String
6388
+
6389
+ attr_accessor :LogSample, :LogData, :RequestId
6390
+
6391
+ def initialize(logsample=nil, logdata=nil, requestid=nil)
6392
+ @LogSample = logsample
6393
+ @LogData = logdata
6394
+ @RequestId = requestid
6395
+ end
6396
+
6397
+ def deserialize(params)
6398
+ @LogSample = params['LogSample']
6399
+ @LogData = params['LogData']
6400
+ @RequestId = params['RequestId']
6401
+ end
6402
+ end
6403
+
5747
6404
  # RetryShipperTask请求参数结构体
5748
6405
  class RetryShipperTaskRequest < TencentCloud::Common::AbstractModel
5749
6406
  # @param ShipperId: 投递规则ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cls
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.604
4
+ version: 3.0.606
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-07-03 00:00:00.000000000 Z
11
+ date: 2023-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-cls.rb
37
- - lib/v20201016/models.rb
38
37
  - lib/v20201016/client.rb
38
+ - lib/v20201016/models.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: