tencentcloud-sdk-cls 3.0.603 → 3.0.605
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201016/client.rb +144 -0
- data/lib/v20201016/models.rb +646 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d69fc297dbbde28ec7dc64cc6ecb382f1ec2382a
|
4
|
+
data.tar.gz: cf9780ff340cdb546e591624634bce3ed69455c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74ba244d12b320ade02223e6a9786dcf5f35e689664d6fe43620a6297f6855658f76553285e1c89eac12504b71d7a9caa5ce80feb71bea995a3f3837ab7c6ccc
|
7
|
+
data.tar.gz: c8e7ac4b17ec1317ad7fefb74b195ce1041784881c24e3f0839fb4e6d233bdcfa47e7031a1b27d65c80dc2409f3884cfe958e826f6852bdf45641686d367e563
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.605
|
data/lib/v20201016/client.rb
CHANGED
@@ -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.
|
data/lib/v20201016/models.rb
CHANGED
@@ -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
|
@@ -3902,7 +4131,7 @@ module TencentCloud
|
|
3902
4131
|
# @param BeginRegex: 行首匹配规则,只有log_type为multiline_log或fullregex_log时有效
|
3903
4132
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3904
4133
|
# @type BeginRegex: String
|
3905
|
-
# @param Keys: 取的每个字段的key名字,为空的key代表丢弃这个字段,只有log_type为delimiter_log时有效,json_log的日志使用json本身的key
|
4134
|
+
# @param Keys: 取的每个字段的key名字,为空的key代表丢弃这个字段,只有log_type为delimiter_log时有效,json_log的日志使用json本身的key。限制100个。
|
3906
4135
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3907
4136
|
# @type Keys: Array
|
3908
4137
|
# @param FilterKeyRegex: 需要过滤日志的key,及其对应的regex
|
@@ -4280,6 +4509,170 @@ module TencentCloud
|
|
4280
4509
|
end
|
4281
4510
|
end
|
4282
4511
|
|
4512
|
+
# kafka协议消费内容
|
4513
|
+
class KafkaConsumerContent < TencentCloud::Common::AbstractModel
|
4514
|
+
# @param Format: 消费格式 0:全文;1:json
|
4515
|
+
# @type Format: Integer
|
4516
|
+
# @param EnableTag: 是否投递 TAG 信息
|
4517
|
+
# Format为0时,此字段不需要赋值
|
4518
|
+
# @type EnableTag: Boolean
|
4519
|
+
# @param MetaFields: 元数据信息列表, 可选值为:\_\_SOURCE\_\_、\_\_FILENAME\_\_
|
4520
|
+
# 、\_\_TIMESTAMP\_\_、\_\_HOSTNAME\_\_、\_\_PKGID\_\_
|
4521
|
+
# Format为0时,此字段不需要赋值
|
4522
|
+
# @type MetaFields: Array
|
4523
|
+
# @param TagTransaction: tag数据处理方式:
|
4524
|
+
# 1:不平铺(默认值)
|
4525
|
+
# 2:平铺
|
4526
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4527
|
+
# @type TagTransaction: Integer
|
4528
|
+
# @param JsonType: 消费数据Json格式:
|
4529
|
+
# 1:不转义(默认格式)
|
4530
|
+
# 2:转义
|
4531
|
+
# @type JsonType: Integer
|
4532
|
+
|
4533
|
+
attr_accessor :Format, :EnableTag, :MetaFields, :TagTransaction, :JsonType
|
4534
|
+
|
4535
|
+
def initialize(format=nil, enabletag=nil, metafields=nil, tagtransaction=nil, jsontype=nil)
|
4536
|
+
@Format = format
|
4537
|
+
@EnableTag = enabletag
|
4538
|
+
@MetaFields = metafields
|
4539
|
+
@TagTransaction = tagtransaction
|
4540
|
+
@JsonType = jsontype
|
4541
|
+
end
|
4542
|
+
|
4543
|
+
def deserialize(params)
|
4544
|
+
@Format = params['Format']
|
4545
|
+
@EnableTag = params['EnableTag']
|
4546
|
+
@MetaFields = params['MetaFields']
|
4547
|
+
@TagTransaction = params['TagTransaction']
|
4548
|
+
@JsonType = params['JsonType']
|
4549
|
+
end
|
4550
|
+
end
|
4551
|
+
|
4552
|
+
# Kafka访问协议
|
4553
|
+
class KafkaProtocolInfo < TencentCloud::Common::AbstractModel
|
4554
|
+
# @param Protocol: 协议类型,支持的协议类型包括 plaintext、sasl_plaintext 或 sasl_ssl。建议使用 sasl_ssl,此协议会进行连接加密同时需要用户认证
|
4555
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4556
|
+
# @type Protocol: String
|
4557
|
+
# @param Mechanism: 加密类型,支持 PLAIN、SCRAM-SHA-256 或 SCRAM-SHA-512
|
4558
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4559
|
+
# @type Mechanism: String
|
4560
|
+
# @param UserName: 用户名
|
4561
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4562
|
+
# @type UserName: String
|
4563
|
+
# @param Password: 用户密码
|
4564
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4565
|
+
# @type Password: String
|
4566
|
+
|
4567
|
+
attr_accessor :Protocol, :Mechanism, :UserName, :Password
|
4568
|
+
|
4569
|
+
def initialize(protocol=nil, mechanism=nil, username=nil, password=nil)
|
4570
|
+
@Protocol = protocol
|
4571
|
+
@Mechanism = mechanism
|
4572
|
+
@UserName = username
|
4573
|
+
@Password = password
|
4574
|
+
end
|
4575
|
+
|
4576
|
+
def deserialize(params)
|
4577
|
+
@Protocol = params['Protocol']
|
4578
|
+
@Mechanism = params['Mechanism']
|
4579
|
+
@UserName = params['UserName']
|
4580
|
+
@Password = params['Password']
|
4581
|
+
end
|
4582
|
+
end
|
4583
|
+
|
4584
|
+
# Kafka导入配置信息
|
4585
|
+
class KafkaRechargeInfo < TencentCloud::Common::AbstractModel
|
4586
|
+
# @param Id: 主键ID
|
4587
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4588
|
+
# @type Id: String
|
4589
|
+
# @param TopicId: 日志主题ID
|
4590
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4591
|
+
# @type TopicId: String
|
4592
|
+
# @param Name: Kafka导入任务名称
|
4593
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4594
|
+
# @type Name: String
|
4595
|
+
# @param KafkaType: 导入Kafka类型,0: 腾讯云CKafka,1: 用户自建Kafka
|
4596
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4597
|
+
# @type KafkaType: Integer
|
4598
|
+
# @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
|
4599
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4600
|
+
# @type KafkaInstance: String
|
4601
|
+
# @param ServerAddr: 服务地址
|
4602
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4603
|
+
# @type ServerAddr: String
|
4604
|
+
# @param IsEncryptionAddr: ServerAddr是否为加密连接
|
4605
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4606
|
+
# @type IsEncryptionAddr: Boolean
|
4607
|
+
# @param Protocol: 加密访问协议,IsEncryptionAddr参数为true时必填
|
4608
|
+
# @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
|
4609
|
+
# @param UserKafkaTopics: 用户需要导入的Kafka相关topic列表,多个topic之间使用半角逗号隔开
|
4610
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4611
|
+
# @type UserKafkaTopics: String
|
4612
|
+
# @param ConsumerGroupName: 用户Kafka消费组名称
|
4613
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4614
|
+
# @type ConsumerGroupName: String
|
4615
|
+
# @param Status: 状态 status 1: 运行中, 2: 暂停 ...
|
4616
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4617
|
+
# @type Status: Integer
|
4618
|
+
# @param Offset: 导入数据位置,-1:最早(默认),-2:最晚,大于等于0: 指定offset
|
4619
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4620
|
+
# @type Offset: Integer
|
4621
|
+
# @param CreateTime: 创建时间
|
4622
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4623
|
+
# @type CreateTime: String
|
4624
|
+
# @param UpdateTime: 更新时间
|
4625
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4626
|
+
# @type UpdateTime: String
|
4627
|
+
# @param LogRechargeRule: 日志导入规则
|
4628
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4629
|
+
# @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
|
4630
|
+
|
4631
|
+
attr_accessor :Id, :TopicId, :Name, :KafkaType, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :UserKafkaTopics, :ConsumerGroupName, :Status, :Offset, :CreateTime, :UpdateTime, :LogRechargeRule
|
4632
|
+
|
4633
|
+
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)
|
4634
|
+
@Id = id
|
4635
|
+
@TopicId = topicid
|
4636
|
+
@Name = name
|
4637
|
+
@KafkaType = kafkatype
|
4638
|
+
@KafkaInstance = kafkainstance
|
4639
|
+
@ServerAddr = serveraddr
|
4640
|
+
@IsEncryptionAddr = isencryptionaddr
|
4641
|
+
@Protocol = protocol
|
4642
|
+
@UserKafkaTopics = userkafkatopics
|
4643
|
+
@ConsumerGroupName = consumergroupname
|
4644
|
+
@Status = status
|
4645
|
+
@Offset = offset
|
4646
|
+
@CreateTime = createtime
|
4647
|
+
@UpdateTime = updatetime
|
4648
|
+
@LogRechargeRule = logrechargerule
|
4649
|
+
end
|
4650
|
+
|
4651
|
+
def deserialize(params)
|
4652
|
+
@Id = params['Id']
|
4653
|
+
@TopicId = params['TopicId']
|
4654
|
+
@Name = params['Name']
|
4655
|
+
@KafkaType = params['KafkaType']
|
4656
|
+
@KafkaInstance = params['KafkaInstance']
|
4657
|
+
@ServerAddr = params['ServerAddr']
|
4658
|
+
@IsEncryptionAddr = params['IsEncryptionAddr']
|
4659
|
+
unless params['Protocol'].nil?
|
4660
|
+
@Protocol = KafkaProtocolInfo.new
|
4661
|
+
@Protocol.deserialize(params['Protocol'])
|
4662
|
+
end
|
4663
|
+
@UserKafkaTopics = params['UserKafkaTopics']
|
4664
|
+
@ConsumerGroupName = params['ConsumerGroupName']
|
4665
|
+
@Status = params['Status']
|
4666
|
+
@Offset = params['Offset']
|
4667
|
+
@CreateTime = params['CreateTime']
|
4668
|
+
@UpdateTime = params['UpdateTime']
|
4669
|
+
unless params['LogRechargeRule'].nil?
|
4670
|
+
@LogRechargeRule = LogRechargeRuleInfo.new
|
4671
|
+
@LogRechargeRule.deserialize(params['LogRechargeRule'])
|
4672
|
+
end
|
4673
|
+
end
|
4674
|
+
end
|
4675
|
+
|
4283
4676
|
# 需要过滤日志的key,及其对应的regex
|
4284
4677
|
class KeyRegexInfo < TencentCloud::Common::AbstractModel
|
4285
4678
|
# @param Key: 需要过滤日志的key
|
@@ -4483,6 +4876,84 @@ module TencentCloud
|
|
4483
4876
|
end
|
4484
4877
|
end
|
4485
4878
|
|
4879
|
+
# 日志导入规则
|
4880
|
+
class LogRechargeRuleInfo < TencentCloud::Common::AbstractModel
|
4881
|
+
# @param RechargeType: 导入类型,支持json_log:json格式日志,minimalist_log: 单行全文,fullregex_log: 单行完全正则
|
4882
|
+
# @type RechargeType: String
|
4883
|
+
# @param EncodingFormat: 解析编码格式,0: UTF-8(默认值),1: GBK
|
4884
|
+
# @type EncodingFormat: Integer
|
4885
|
+
# @param DefaultTimeSwitch: 使用默认时间,true:开启(默认值), flase:关闭
|
4886
|
+
# @type DefaultTimeSwitch: Boolean
|
4887
|
+
# @param LogRegex: 整条日志匹配规则,只有RechargeType为fullregex_log时有效
|
4888
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4889
|
+
# @type LogRegex: String
|
4890
|
+
# @param UnMatchLogSwitch: 解析失败日志是否上传,true表示上传,false表示不上传
|
4891
|
+
# @type UnMatchLogSwitch: Boolean
|
4892
|
+
# @param UnMatchLogKey: 解析失败日志的键名称
|
4893
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4894
|
+
# @type UnMatchLogKey: String
|
4895
|
+
# @param UnMatchLogTimeSrc: 解析失败日志时间来源,0: 系统当前时间,1: Kafka消息时间戳
|
4896
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4897
|
+
# @type UnMatchLogTimeSrc: Integer
|
4898
|
+
# @param DefaultTimeSrc: 默认时间来源,0: 系统当前时间,1: Kafka消息时间戳
|
4899
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4900
|
+
# @type DefaultTimeSrc: Integer
|
4901
|
+
# @param TimeKey: 时间字段
|
4902
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4903
|
+
# @type TimeKey: String
|
4904
|
+
# @param TimeRegex: 时间提取正则表达式
|
4905
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4906
|
+
# @type TimeRegex: String
|
4907
|
+
# @param TimeFormat: 时间字段格式
|
4908
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4909
|
+
# @type TimeFormat: String
|
4910
|
+
# @param TimeZone: 时间字段时区
|
4911
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4912
|
+
# @type TimeZone: String
|
4913
|
+
# @param Metadata: 元数据信息,Kafka导入支持kafka_topic,kafka_partition,kafka_offset,kafka_timestamp
|
4914
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4915
|
+
# @type Metadata: Array
|
4916
|
+
# @param Keys: 日志Key列表,RechargeType为full_regex_log时必填
|
4917
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4918
|
+
# @type Keys: Array
|
4919
|
+
|
4920
|
+
attr_accessor :RechargeType, :EncodingFormat, :DefaultTimeSwitch, :LogRegex, :UnMatchLogSwitch, :UnMatchLogKey, :UnMatchLogTimeSrc, :DefaultTimeSrc, :TimeKey, :TimeRegex, :TimeFormat, :TimeZone, :Metadata, :Keys
|
4921
|
+
|
4922
|
+
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)
|
4923
|
+
@RechargeType = rechargetype
|
4924
|
+
@EncodingFormat = encodingformat
|
4925
|
+
@DefaultTimeSwitch = defaulttimeswitch
|
4926
|
+
@LogRegex = logregex
|
4927
|
+
@UnMatchLogSwitch = unmatchlogswitch
|
4928
|
+
@UnMatchLogKey = unmatchlogkey
|
4929
|
+
@UnMatchLogTimeSrc = unmatchlogtimesrc
|
4930
|
+
@DefaultTimeSrc = defaulttimesrc
|
4931
|
+
@TimeKey = timekey
|
4932
|
+
@TimeRegex = timeregex
|
4933
|
+
@TimeFormat = timeformat
|
4934
|
+
@TimeZone = timezone
|
4935
|
+
@Metadata = metadata
|
4936
|
+
@Keys = keys
|
4937
|
+
end
|
4938
|
+
|
4939
|
+
def deserialize(params)
|
4940
|
+
@RechargeType = params['RechargeType']
|
4941
|
+
@EncodingFormat = params['EncodingFormat']
|
4942
|
+
@DefaultTimeSwitch = params['DefaultTimeSwitch']
|
4943
|
+
@LogRegex = params['LogRegex']
|
4944
|
+
@UnMatchLogSwitch = params['UnMatchLogSwitch']
|
4945
|
+
@UnMatchLogKey = params['UnMatchLogKey']
|
4946
|
+
@UnMatchLogTimeSrc = params['UnMatchLogTimeSrc']
|
4947
|
+
@DefaultTimeSrc = params['DefaultTimeSrc']
|
4948
|
+
@TimeKey = params['TimeKey']
|
4949
|
+
@TimeRegex = params['TimeRegex']
|
4950
|
+
@TimeFormat = params['TimeFormat']
|
4951
|
+
@TimeZone = params['TimeZone']
|
4952
|
+
@Metadata = params['Metadata']
|
4953
|
+
@Keys = params['Keys']
|
4954
|
+
end
|
4955
|
+
end
|
4956
|
+
|
4486
4957
|
# 日志集相关信息
|
4487
4958
|
class LogsetInfo < TencentCloud::Common::AbstractModel
|
4488
4959
|
# @param LogsetId: 日志集ID
|
@@ -5241,6 +5712,88 @@ module TencentCloud
|
|
5241
5712
|
end
|
5242
5713
|
end
|
5243
5714
|
|
5715
|
+
# ModifyKafkaRecharge请求参数结构体
|
5716
|
+
class ModifyKafkaRechargeRequest < TencentCloud::Common::AbstractModel
|
5717
|
+
# @param Id: Kafka导入配置ID
|
5718
|
+
# @type Id: String
|
5719
|
+
# @param TopicId: 导入CLS目标topic ID
|
5720
|
+
# @type TopicId: String
|
5721
|
+
# @param Name: Kafka导入配置名称
|
5722
|
+
# @type Name: String
|
5723
|
+
# @param KafkaType: 导入Kafka类型,0: 腾讯云CKafka,1: 用户自建Kafka
|
5724
|
+
# @type KafkaType: Integer
|
5725
|
+
# @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
|
5726
|
+
# @type KafkaInstance: String
|
5727
|
+
# @param ServerAddr: 服务地址
|
5728
|
+
# @type ServerAddr: String
|
5729
|
+
# @param IsEncryptionAddr: ServerAddr是否为加密连接
|
5730
|
+
# @type IsEncryptionAddr: Boolean
|
5731
|
+
# @param Protocol: 加密访问协议,IsEncryptionAddr参数为true时必填
|
5732
|
+
# @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
|
5733
|
+
# @param UserKafkaTopics: 用户需要导入的Kafka相关topic列表,多个topic之间使用半角逗号隔开
|
5734
|
+
# @type UserKafkaTopics: String
|
5735
|
+
# @param ConsumerGroupName: 用户Kafka消费组名称
|
5736
|
+
# @type ConsumerGroupName: String
|
5737
|
+
# @param LogRechargeRule: 日志导入规则
|
5738
|
+
# @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
|
5739
|
+
# @param StatusControl: 导入控制,1:暂停,2:继续
|
5740
|
+
# @type StatusControl: Integer
|
5741
|
+
|
5742
|
+
attr_accessor :Id, :TopicId, :Name, :KafkaType, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :UserKafkaTopics, :ConsumerGroupName, :LogRechargeRule, :StatusControl
|
5743
|
+
|
5744
|
+
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)
|
5745
|
+
@Id = id
|
5746
|
+
@TopicId = topicid
|
5747
|
+
@Name = name
|
5748
|
+
@KafkaType = kafkatype
|
5749
|
+
@KafkaInstance = kafkainstance
|
5750
|
+
@ServerAddr = serveraddr
|
5751
|
+
@IsEncryptionAddr = isencryptionaddr
|
5752
|
+
@Protocol = protocol
|
5753
|
+
@UserKafkaTopics = userkafkatopics
|
5754
|
+
@ConsumerGroupName = consumergroupname
|
5755
|
+
@LogRechargeRule = logrechargerule
|
5756
|
+
@StatusControl = statuscontrol
|
5757
|
+
end
|
5758
|
+
|
5759
|
+
def deserialize(params)
|
5760
|
+
@Id = params['Id']
|
5761
|
+
@TopicId = params['TopicId']
|
5762
|
+
@Name = params['Name']
|
5763
|
+
@KafkaType = params['KafkaType']
|
5764
|
+
@KafkaInstance = params['KafkaInstance']
|
5765
|
+
@ServerAddr = params['ServerAddr']
|
5766
|
+
@IsEncryptionAddr = params['IsEncryptionAddr']
|
5767
|
+
unless params['Protocol'].nil?
|
5768
|
+
@Protocol = KafkaProtocolInfo.new
|
5769
|
+
@Protocol.deserialize(params['Protocol'])
|
5770
|
+
end
|
5771
|
+
@UserKafkaTopics = params['UserKafkaTopics']
|
5772
|
+
@ConsumerGroupName = params['ConsumerGroupName']
|
5773
|
+
unless params['LogRechargeRule'].nil?
|
5774
|
+
@LogRechargeRule = LogRechargeRuleInfo.new
|
5775
|
+
@LogRechargeRule.deserialize(params['LogRechargeRule'])
|
5776
|
+
end
|
5777
|
+
@StatusControl = params['StatusControl']
|
5778
|
+
end
|
5779
|
+
end
|
5780
|
+
|
5781
|
+
# ModifyKafkaRecharge返回参数结构体
|
5782
|
+
class ModifyKafkaRechargeResponse < TencentCloud::Common::AbstractModel
|
5783
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5784
|
+
# @type RequestId: String
|
5785
|
+
|
5786
|
+
attr_accessor :RequestId
|
5787
|
+
|
5788
|
+
def initialize(requestid=nil)
|
5789
|
+
@RequestId = requestid
|
5790
|
+
end
|
5791
|
+
|
5792
|
+
def deserialize(params)
|
5793
|
+
@RequestId = params['RequestId']
|
5794
|
+
end
|
5795
|
+
end
|
5796
|
+
|
5244
5797
|
# ModifyLogset请求参数结构体
|
5245
5798
|
class ModifyLogsetRequest < TencentCloud::Common::AbstractModel
|
5246
5799
|
# @param LogsetId: 日志集ID
|
@@ -5625,17 +6178,24 @@ module TencentCloud
|
|
5625
6178
|
# @type FromTopicId: String
|
5626
6179
|
# @param Compression: 压缩方式[0:NONE;2:SNAPPY;3:LZ4]
|
5627
6180
|
# @type Compression: Integer
|
6181
|
+
# @param ConsumerContent: kafka协议消费数据格式
|
6182
|
+
# @type ConsumerContent: :class:`Tencentcloud::Cls.v20201016.models.KafkaConsumerContent`
|
5628
6183
|
|
5629
|
-
attr_accessor :FromTopicId, :Compression
|
6184
|
+
attr_accessor :FromTopicId, :Compression, :ConsumerContent
|
5630
6185
|
|
5631
|
-
def initialize(fromtopicid=nil, compression=nil)
|
6186
|
+
def initialize(fromtopicid=nil, compression=nil, consumercontent=nil)
|
5632
6187
|
@FromTopicId = fromtopicid
|
5633
6188
|
@Compression = compression
|
6189
|
+
@ConsumerContent = consumercontent
|
5634
6190
|
end
|
5635
6191
|
|
5636
6192
|
def deserialize(params)
|
5637
6193
|
@FromTopicId = params['FromTopicId']
|
5638
6194
|
@Compression = params['Compression']
|
6195
|
+
unless params['ConsumerContent'].nil?
|
6196
|
+
@ConsumerContent = KafkaConsumerContent.new
|
6197
|
+
@ConsumerContent.deserialize(params['ConsumerContent'])
|
6198
|
+
end
|
5639
6199
|
end
|
5640
6200
|
end
|
5641
6201
|
|
@@ -5744,6 +6304,89 @@ module TencentCloud
|
|
5744
6304
|
end
|
5745
6305
|
end
|
5746
6306
|
|
6307
|
+
# PreviewKafkaRecharge请求参数结构体
|
6308
|
+
class PreviewKafkaRechargeRequest < TencentCloud::Common::AbstractModel
|
6309
|
+
# @param PreviewType: 预览类型,1:源数据预览,2:导出结果预览
|
6310
|
+
# @type PreviewType: Integer
|
6311
|
+
# @param KafkaType: 导入Kafka类型,0: 腾讯云CKafka,1: 用户自建Kafka
|
6312
|
+
# @type KafkaType: Integer
|
6313
|
+
# @param UserKafkaTopics: 用户需要导入的Kafka相关topic列表,多个topic之间使用半角逗号隔开
|
6314
|
+
# @type UserKafkaTopics: String
|
6315
|
+
# @param Offset: 导入数据位置,-2:最早(默认),-1:最晚
|
6316
|
+
# @type Offset: Integer
|
6317
|
+
# @param KafkaInstance: 腾讯云CKafka实例ID,KafkaType为0时必填
|
6318
|
+
# @type KafkaInstance: String
|
6319
|
+
# @param ServerAddr: 服务地址
|
6320
|
+
# @type ServerAddr: String
|
6321
|
+
# @param IsEncryptionAddr: ServerAddr是否为加密连接
|
6322
|
+
# @type IsEncryptionAddr: Boolean
|
6323
|
+
# @param Protocol: 加密访问协议,IsEncryptionAddr参数为true时必填
|
6324
|
+
# @type Protocol: :class:`Tencentcloud::Cls.v20201016.models.KafkaProtocolInfo`
|
6325
|
+
# @param ConsumerGroupName: 用户Kafka消费组
|
6326
|
+
# @type ConsumerGroupName: String
|
6327
|
+
# @param LogRechargeRule: 日志导入规则
|
6328
|
+
# @type LogRechargeRule: :class:`Tencentcloud::Cls.v20201016.models.LogRechargeRuleInfo`
|
6329
|
+
|
6330
|
+
attr_accessor :PreviewType, :KafkaType, :UserKafkaTopics, :Offset, :KafkaInstance, :ServerAddr, :IsEncryptionAddr, :Protocol, :ConsumerGroupName, :LogRechargeRule
|
6331
|
+
|
6332
|
+
def initialize(previewtype=nil, kafkatype=nil, userkafkatopics=nil, offset=nil, kafkainstance=nil, serveraddr=nil, isencryptionaddr=nil, protocol=nil, consumergroupname=nil, logrechargerule=nil)
|
6333
|
+
@PreviewType = previewtype
|
6334
|
+
@KafkaType = kafkatype
|
6335
|
+
@UserKafkaTopics = userkafkatopics
|
6336
|
+
@Offset = offset
|
6337
|
+
@KafkaInstance = kafkainstance
|
6338
|
+
@ServerAddr = serveraddr
|
6339
|
+
@IsEncryptionAddr = isencryptionaddr
|
6340
|
+
@Protocol = protocol
|
6341
|
+
@ConsumerGroupName = consumergroupname
|
6342
|
+
@LogRechargeRule = logrechargerule
|
6343
|
+
end
|
6344
|
+
|
6345
|
+
def deserialize(params)
|
6346
|
+
@PreviewType = params['PreviewType']
|
6347
|
+
@KafkaType = params['KafkaType']
|
6348
|
+
@UserKafkaTopics = params['UserKafkaTopics']
|
6349
|
+
@Offset = params['Offset']
|
6350
|
+
@KafkaInstance = params['KafkaInstance']
|
6351
|
+
@ServerAddr = params['ServerAddr']
|
6352
|
+
@IsEncryptionAddr = params['IsEncryptionAddr']
|
6353
|
+
unless params['Protocol'].nil?
|
6354
|
+
@Protocol = KafkaProtocolInfo.new
|
6355
|
+
@Protocol.deserialize(params['Protocol'])
|
6356
|
+
end
|
6357
|
+
@ConsumerGroupName = params['ConsumerGroupName']
|
6358
|
+
unless params['LogRechargeRule'].nil?
|
6359
|
+
@LogRechargeRule = LogRechargeRuleInfo.new
|
6360
|
+
@LogRechargeRule.deserialize(params['LogRechargeRule'])
|
6361
|
+
end
|
6362
|
+
end
|
6363
|
+
end
|
6364
|
+
|
6365
|
+
# PreviewKafkaRecharge返回参数结构体
|
6366
|
+
class PreviewKafkaRechargeResponse < TencentCloud::Common::AbstractModel
|
6367
|
+
# @param LogSample: 日志样例,PreviewType为2时返回
|
6368
|
+
# @type LogSample: String
|
6369
|
+
# @param LogData: 日志预览结果
|
6370
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6371
|
+
# @type LogData: String
|
6372
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6373
|
+
# @type RequestId: String
|
6374
|
+
|
6375
|
+
attr_accessor :LogSample, :LogData, :RequestId
|
6376
|
+
|
6377
|
+
def initialize(logsample=nil, logdata=nil, requestid=nil)
|
6378
|
+
@LogSample = logsample
|
6379
|
+
@LogData = logdata
|
6380
|
+
@RequestId = requestid
|
6381
|
+
end
|
6382
|
+
|
6383
|
+
def deserialize(params)
|
6384
|
+
@LogSample = params['LogSample']
|
6385
|
+
@LogData = params['LogData']
|
6386
|
+
@RequestId = params['RequestId']
|
6387
|
+
end
|
6388
|
+
end
|
6389
|
+
|
5747
6390
|
# RetryShipperTask请求参数结构体
|
5748
6391
|
class RetryShipperTaskRequest < TencentCloud::Common::AbstractModel
|
5749
6392
|
# @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.
|
4
|
+
version: 3.0.605
|
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-
|
11
|
+
date: 2023-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
+
- lib/tencentcloud-sdk-cls.rb
|
36
37
|
- lib/v20201016/client.rb
|
37
38
|
- lib/v20201016/models.rb
|
38
|
-
- lib/tencentcloud-sdk-cls.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|