tencentcloud-sdk-ckafka 3.0.381 → 3.0.382

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: 30c4726f9340f21bd6f12a889105b42db466beb3
4
- data.tar.gz: db057dd06593220661cead255823ab823b617cf4
3
+ metadata.gz: 3e036deaef417349815ed4951e2e906c5ae89d50
4
+ data.tar.gz: cc8cc2250a6ef4a511543f2ce4d2a70461c4a7a3
5
5
  SHA512:
6
- metadata.gz: 5549c333825c61c92df7524fca2c2f53cc759227599f5ddf433f6794046282a964a81e8b81cdb0bf0721f1ff9a6bc8d4ac62b884744a52f469338f61b25b1265
7
- data.tar.gz: 4cbd5b48f2faa68c4d8beac1838ef7115ab37b26dd0458cced8eb8eba108ec9dd5cb933573f74d2a070271b80354bfad62cc0bf590741d79a3aabb37c210cf2f
6
+ metadata.gz: 2c717b52f86df0822d94d9142bd47bd9a16c0225d5238afe15a4fe3e24d12f25615332923030700952969e25412a7324d3e8bf5b5379f6352d927a194e5a3b20
7
+ data.tar.gz: 1d4523c5d22d65e0ddeb135fd55db2e637c54e2d54a953242570a1969a18a6b01f9ecb44e972a534b6820d7e2843576eb7e08c7185cfe1df7734a304e95546f5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.381
1
+ 3.0.382
@@ -1374,6 +1374,30 @@ module TencentCloud
1374
1374
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1375
1375
  end
1376
1376
 
1377
+ # 根据位点查询消息列表
1378
+
1379
+ # @param request: Request instance for FetchMessageListByOffset.
1380
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::FetchMessageListByOffsetRequest`
1381
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::FetchMessageListByOffsetResponse`
1382
+ def FetchMessageListByOffset(request)
1383
+ body = send_request('FetchMessageListByOffset', request.serialize)
1384
+ response = JSON.parse(body)
1385
+ if response['Response'].key?('Error') == false
1386
+ model = FetchMessageListByOffsetResponse.new
1387
+ model.deserialize(response['Response'])
1388
+ model
1389
+ else
1390
+ code = response['Response']['Error']['Code']
1391
+ message = response['Response']['Error']['Message']
1392
+ reqid = response['Response']['RequestId']
1393
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1394
+ end
1395
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1396
+ raise e
1397
+ rescue StandardError => e
1398
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1399
+ end
1400
+
1377
1401
  # 编辑Datahub连接源
1378
1402
 
1379
1403
  # @param request: Request instance for ModifyConnectResource.
@@ -5230,6 +5230,65 @@ module TencentCloud
5230
5230
  end
5231
5231
  end
5232
5232
 
5233
+ # FetchMessageListByOffset请求参数结构体
5234
+ class FetchMessageListByOffsetRequest < TencentCloud::Common::AbstractModel
5235
+ # @param InstanceId: 实例Id
5236
+ # @type InstanceId: String
5237
+ # @param Topic: 主题名
5238
+ # @type Topic: String
5239
+ # @param Partition: 分区id
5240
+ # @type Partition: Integer
5241
+ # @param Offset: 位点信息
5242
+ # @type Offset: Integer
5243
+ # @param SinglePartitionRecordNumber: 最大查询条数,默认20,最大20
5244
+ # @type SinglePartitionRecordNumber: Integer
5245
+
5246
+ attr_accessor :InstanceId, :Topic, :Partition, :Offset, :SinglePartitionRecordNumber
5247
+
5248
+ def initialize(instanceid=nil, topic=nil, partition=nil, offset=nil, singlepartitionrecordnumber=nil)
5249
+ @InstanceId = instanceid
5250
+ @Topic = topic
5251
+ @Partition = partition
5252
+ @Offset = offset
5253
+ @SinglePartitionRecordNumber = singlepartitionrecordnumber
5254
+ end
5255
+
5256
+ def deserialize(params)
5257
+ @InstanceId = params['InstanceId']
5258
+ @Topic = params['Topic']
5259
+ @Partition = params['Partition']
5260
+ @Offset = params['Offset']
5261
+ @SinglePartitionRecordNumber = params['SinglePartitionRecordNumber']
5262
+ end
5263
+ end
5264
+
5265
+ # FetchMessageListByOffset返回参数结构体
5266
+ class FetchMessageListByOffsetResponse < TencentCloud::Common::AbstractModel
5267
+ # @param Result: 返回结果。注意,列表中不返回具体的消息内容(key、value),如果需要查询具体消息内容,请使用FetchMessageByOffset接口
5268
+ # @type Result: Array
5269
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5270
+ # @type RequestId: String
5271
+
5272
+ attr_accessor :Result, :RequestId
5273
+
5274
+ def initialize(result=nil, requestid=nil)
5275
+ @Result = result
5276
+ @RequestId = requestid
5277
+ end
5278
+
5279
+ def deserialize(params)
5280
+ unless params['Result'].nil?
5281
+ @Result = []
5282
+ params['Result'].each do |i|
5283
+ consumerrecord_tmp = ConsumerRecord.new
5284
+ consumerrecord_tmp.deserialize(i)
5285
+ @Result << consumerrecord_tmp
5286
+ end
5287
+ end
5288
+ @RequestId = params['RequestId']
5289
+ end
5290
+ end
5291
+
5233
5292
  # 数据处理——处理链
5234
5293
  class FieldParam < TencentCloud::Common::AbstractModel
5235
5294
  # @param Analyse: 解析
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.381
4
+ version: 3.0.382
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-05 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common