tencentcloud-sdk-tdmq 3.0.691 → 3.0.692
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/v20200217/client.rb +24 -0
- data/lib/v20200217/models.rb +103 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dddf5ce6855f5503fc558c6a6d73f4c6563f68b
|
4
|
+
data.tar.gz: 8ba3c53434ba9f794b39876fc4ea0f8c9df3a572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cd3896e5ad60dbd1b91c0621eed798882fdfae19dd6abdf1fba264b28eb249233207146e336b5f726ed826df2fb40b3d9988e09046358e5f99103729ba12ea1
|
7
|
+
data.tar.gz: 83a4454491645ad14d6c3611c85c66293e9438d7475d4bbcc12c5365724f6100f148bc9ce1c173c7ce1cb9328820549180df12b3ed4049695daca05b25eb8698
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.692
|
data/lib/v20200217/client.rb
CHANGED
@@ -2117,6 +2117,30 @@ module TencentCloud
|
|
2117
2117
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2118
2118
|
end
|
2119
2119
|
|
2120
|
+
# 消息查询
|
2121
|
+
|
2122
|
+
# @param request: Request instance for DescribeTopicMsgs.
|
2123
|
+
# @type request: :class:`Tencentcloud::tdmq::V20200217::DescribeTopicMsgsRequest`
|
2124
|
+
# @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribeTopicMsgsResponse`
|
2125
|
+
def DescribeTopicMsgs(request)
|
2126
|
+
body = send_request('DescribeTopicMsgs', request.serialize)
|
2127
|
+
response = JSON.parse(body)
|
2128
|
+
if response['Response'].key?('Error') == false
|
2129
|
+
model = DescribeTopicMsgsResponse.new
|
2130
|
+
model.deserialize(response['Response'])
|
2131
|
+
model
|
2132
|
+
else
|
2133
|
+
code = response['Response']['Error']['Code']
|
2134
|
+
message = response['Response']['Error']['Message']
|
2135
|
+
reqid = response['Response']['RequestId']
|
2136
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2137
|
+
end
|
2138
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2139
|
+
raise e
|
2140
|
+
rescue StandardError => e
|
2141
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2142
|
+
end
|
2143
|
+
|
2120
2144
|
# 获取环境下主题列表
|
2121
2145
|
|
2122
2146
|
# @param request: Request instance for DescribeTopics.
|
data/lib/v20200217/models.rb
CHANGED
@@ -6330,6 +6330,81 @@ module TencentCloud
|
|
6330
6330
|
end
|
6331
6331
|
end
|
6332
6332
|
|
6333
|
+
# DescribeTopicMsgs请求参数结构体
|
6334
|
+
class DescribeTopicMsgsRequest < TencentCloud::Common::AbstractModel
|
6335
|
+
# @param EnvironmentId: 环境(命名空间)名称。
|
6336
|
+
# @type EnvironmentId: String
|
6337
|
+
# @param TopicName: 主题名。
|
6338
|
+
# @type TopicName: String
|
6339
|
+
# @param StartTime: 开始时间。
|
6340
|
+
# @type StartTime: String
|
6341
|
+
# @param EndTime: 结束时间。
|
6342
|
+
# @type EndTime: String
|
6343
|
+
# @param Offset: 起始下标,不填默认为0。
|
6344
|
+
# @type Offset: Integer
|
6345
|
+
# @param Limit: 返回数量,不填则默认为10,最大值为20。
|
6346
|
+
# @type Limit: Integer
|
6347
|
+
# @param MsgId: 消息ID。
|
6348
|
+
# @type MsgId: String
|
6349
|
+
# @param ClusterId: Pulsar 集群的ID
|
6350
|
+
# @type ClusterId: String
|
6351
|
+
|
6352
|
+
attr_accessor :EnvironmentId, :TopicName, :StartTime, :EndTime, :Offset, :Limit, :MsgId, :ClusterId
|
6353
|
+
|
6354
|
+
def initialize(environmentid=nil, topicname=nil, starttime=nil, endtime=nil, offset=nil, limit=nil, msgid=nil, clusterid=nil)
|
6355
|
+
@EnvironmentId = environmentid
|
6356
|
+
@TopicName = topicname
|
6357
|
+
@StartTime = starttime
|
6358
|
+
@EndTime = endtime
|
6359
|
+
@Offset = offset
|
6360
|
+
@Limit = limit
|
6361
|
+
@MsgId = msgid
|
6362
|
+
@ClusterId = clusterid
|
6363
|
+
end
|
6364
|
+
|
6365
|
+
def deserialize(params)
|
6366
|
+
@EnvironmentId = params['EnvironmentId']
|
6367
|
+
@TopicName = params['TopicName']
|
6368
|
+
@StartTime = params['StartTime']
|
6369
|
+
@EndTime = params['EndTime']
|
6370
|
+
@Offset = params['Offset']
|
6371
|
+
@Limit = params['Limit']
|
6372
|
+
@MsgId = params['MsgId']
|
6373
|
+
@ClusterId = params['ClusterId']
|
6374
|
+
end
|
6375
|
+
end
|
6376
|
+
|
6377
|
+
# DescribeTopicMsgs返回参数结构体
|
6378
|
+
class DescribeTopicMsgsResponse < TencentCloud::Common::AbstractModel
|
6379
|
+
# @param TotalCount: 总记录数。
|
6380
|
+
# @type TotalCount: Integer
|
6381
|
+
# @param TopicMsgLogSets: 消息日志列表。
|
6382
|
+
# @type TopicMsgLogSets: Array
|
6383
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6384
|
+
# @type RequestId: String
|
6385
|
+
|
6386
|
+
attr_accessor :TotalCount, :TopicMsgLogSets, :RequestId
|
6387
|
+
|
6388
|
+
def initialize(totalcount=nil, topicmsglogsets=nil, requestid=nil)
|
6389
|
+
@TotalCount = totalcount
|
6390
|
+
@TopicMsgLogSets = topicmsglogsets
|
6391
|
+
@RequestId = requestid
|
6392
|
+
end
|
6393
|
+
|
6394
|
+
def deserialize(params)
|
6395
|
+
@TotalCount = params['TotalCount']
|
6396
|
+
unless params['TopicMsgLogSets'].nil?
|
6397
|
+
@TopicMsgLogSets = []
|
6398
|
+
params['TopicMsgLogSets'].each do |i|
|
6399
|
+
msglog_tmp = MsgLog.new
|
6400
|
+
msglog_tmp.deserialize(i)
|
6401
|
+
@TopicMsgLogSets << msglog_tmp
|
6402
|
+
end
|
6403
|
+
end
|
6404
|
+
@RequestId = params['RequestId']
|
6405
|
+
end
|
6406
|
+
end
|
6407
|
+
|
6333
6408
|
# DescribeTopics请求参数结构体
|
6334
6409
|
class DescribeTopicsRequest < TencentCloud::Common::AbstractModel
|
6335
6410
|
# @param EnvironmentId: 环境(命名空间)名称。
|
@@ -7847,6 +7922,34 @@ module TencentCloud
|
|
7847
7922
|
end
|
7848
7923
|
end
|
7849
7924
|
|
7925
|
+
# 消息日志
|
7926
|
+
class MsgLog < TencentCloud::Common::AbstractModel
|
7927
|
+
# @param MsgId: 消息ID。
|
7928
|
+
# @type MsgId: String
|
7929
|
+
# @param ProducerName: 生产者名称。
|
7930
|
+
# @type ProducerName: String
|
7931
|
+
# @param ProduceTime: 生产时间。
|
7932
|
+
# @type ProduceTime: String
|
7933
|
+
# @param ProducerAddr: 生产客户端地址。
|
7934
|
+
# @type ProducerAddr: String
|
7935
|
+
|
7936
|
+
attr_accessor :MsgId, :ProducerName, :ProduceTime, :ProducerAddr
|
7937
|
+
|
7938
|
+
def initialize(msgid=nil, producername=nil, producetime=nil, produceraddr=nil)
|
7939
|
+
@MsgId = msgid
|
7940
|
+
@ProducerName = producername
|
7941
|
+
@ProduceTime = producetime
|
7942
|
+
@ProducerAddr = produceraddr
|
7943
|
+
end
|
7944
|
+
|
7945
|
+
def deserialize(params)
|
7946
|
+
@MsgId = params['MsgId']
|
7947
|
+
@ProducerName = params['ProducerName']
|
7948
|
+
@ProduceTime = params['ProduceTime']
|
7949
|
+
@ProducerAddr = params['ProducerAddr']
|
7950
|
+
end
|
7951
|
+
end
|
7952
|
+
|
7850
7953
|
# 分区topic
|
7851
7954
|
class PartitionsTopic < TencentCloud::Common::AbstractModel
|
7852
7955
|
# @param AverageMsgSize: 最后一次间隔内发布消息的平均byte大小。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tdmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.692
|
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-
|
11
|
+
date: 2023-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|