tencentcloud-sdk-cls 1.0.292 → 1.0.293

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: 2c85da2cf6279ce073fd5a380b8448a4cf5a00eb
4
- data.tar.gz: 136559c4b667f3b0b538ecfd05cbe524f42d5306
3
+ metadata.gz: 396b43ab9cb4a52da99c8325644ef02bc3b4b067
4
+ data.tar.gz: ccd9e7fad4da0f5b94d8618b46ce5ce0d0970422
5
5
  SHA512:
6
- metadata.gz: 7942ecb3f6bb78b9a860f120c015c33b0337abf1a542baffb650ee8c6227d26e370df419e66ba8d1cfa9fdd39463257eb5f129d0c3d9d0f74df337d4df11f9dc
7
- data.tar.gz: 4c5425e90b373c94892b2924050c2504c053254bd14966cf6620990a7e7a991507d73d8052ec22f24b94f32e50d4531cf797476b8e066549754610309b4179d8
6
+ metadata.gz: eea31b092eceb5704e41a072419165dca9deb5a8a31be034be77b6d46ea5796795b3a07dedef427404ebe73910af51956659a9426f705a55206f3ea6ea3c3c29
7
+ data.tar.gz: 2faeb9e0e4ccd25810be5cd35cade5e77ce78643ce93ca149e04d8c044a42e2a5b36f658f60929176026aab25a4b6dc8b31cc262b2a88d31167827a1078a724e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.292
1
+ 1.0.293
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 关闭Kafka协议消费
57
+
58
+ # @param request: Request instance for CloseKafkaConsumer.
59
+ # @type request: :class:`Tencentcloud::cls::V20201016::CloseKafkaConsumerRequest`
60
+ # @rtype: :class:`Tencentcloud::cls::V20201016::CloseKafkaConsumerResponse`
61
+ def CloseKafkaConsumer(request)
62
+ body = send_request('CloseKafkaConsumer', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CloseKafkaConsumerResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 本接口用于创建告警策略。
57
81
 
58
82
  # @param request: Request instance for CreateAlarm.
@@ -1421,6 +1445,30 @@ module TencentCloud
1421
1445
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1422
1446
  end
1423
1447
 
1448
+ # 打开kafka协议消费
1449
+
1450
+ # @param request: Request instance for OpenKafkaConsumer.
1451
+ # @type request: :class:`Tencentcloud::cls::V20201016::OpenKafkaConsumerRequest`
1452
+ # @rtype: :class:`Tencentcloud::cls::V20201016::OpenKafkaConsumerResponse`
1453
+ def OpenKafkaConsumer(request)
1454
+ body = send_request('OpenKafkaConsumer', request.serialize)
1455
+ response = JSON.parse(body)
1456
+ if response['Response'].key?('Error') == false
1457
+ model = OpenKafkaConsumerResponse.new
1458
+ model.deserialize(response['Response'])
1459
+ model
1460
+ else
1461
+ code = response['Response']['Error']['Code']
1462
+ message = response['Response']['Error']['Message']
1463
+ reqid = response['Response']['RequestId']
1464
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1465
+ end
1466
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1467
+ raise e
1468
+ rescue StandardError => e
1469
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1470
+ end
1471
+
1424
1472
  # 重试失败的投递任务
1425
1473
 
1426
1474
  # @param request: Request instance for RetryShipperTask.
@@ -367,6 +367,38 @@ module TencentCloud
367
367
  end
368
368
  end
369
369
 
370
+ # CloseKafkaConsumer请求参数结构体
371
+ class CloseKafkaConsumerRequest < TencentCloud::Common::AbstractModel
372
+ # @param FromTopicId: CLS对应的topic标识
373
+ # @type FromTopicId: String
374
+
375
+ attr_accessor :FromTopicId
376
+
377
+ def initialize(fromtopicid=nil)
378
+ @FromTopicId = fromtopicid
379
+ end
380
+
381
+ def deserialize(params)
382
+ @FromTopicId = params['FromTopicId']
383
+ end
384
+ end
385
+
386
+ # CloseKafkaConsumer返回参数结构体
387
+ class CloseKafkaConsumerResponse < TencentCloud::Common::AbstractModel
388
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
389
+ # @type RequestId: String
390
+
391
+ attr_accessor :RequestId
392
+
393
+ def initialize(requestid=nil)
394
+ @RequestId = requestid
395
+ end
396
+
397
+ def deserialize(params)
398
+ @RequestId = params['RequestId']
399
+ end
400
+ end
401
+
370
402
  # 日志分析的列属性
371
403
  class Column < TencentCloud::Common::AbstractModel
372
404
  # @param Name: 列的名字
@@ -5081,6 +5113,42 @@ module TencentCloud
5081
5113
  end
5082
5114
  end
5083
5115
 
5116
+ # OpenKafkaConsumer请求参数结构体
5117
+ class OpenKafkaConsumerRequest < TencentCloud::Common::AbstractModel
5118
+ # @param FromTopicId: CLS控制台创建的TopicId
5119
+ # @type FromTopicId: String
5120
+
5121
+ attr_accessor :FromTopicId
5122
+
5123
+ def initialize(fromtopicid=nil)
5124
+ @FromTopicId = fromtopicid
5125
+ end
5126
+
5127
+ def deserialize(params)
5128
+ @FromTopicId = params['FromTopicId']
5129
+ end
5130
+ end
5131
+
5132
+ # OpenKafkaConsumer返回参数结构体
5133
+ class OpenKafkaConsumerResponse < TencentCloud::Common::AbstractModel
5134
+ # @param TopicID: 待消费TopicId
5135
+ # @type TopicID: String
5136
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5137
+ # @type RequestId: String
5138
+
5139
+ attr_accessor :TopicID, :RequestId
5140
+
5141
+ def initialize(topicid=nil, requestid=nil)
5142
+ @TopicID = topicid
5143
+ @RequestId = requestid
5144
+ end
5145
+
5146
+ def deserialize(params)
5147
+ @TopicID = params['TopicID']
5148
+ @RequestId = params['RequestId']
5149
+ end
5150
+ end
5151
+
5084
5152
  # 日志主题分区信息
5085
5153
  class PartitionInfo < TencentCloud::Common::AbstractModel
5086
5154
  # @param PartitionId: 分区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: 1.0.292
4
+ version: 1.0.293
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-04-07 00:00:00.000000000 Z
11
+ date: 2022-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common