tencentcloud-sdk-tdmq 1.0.224 → 1.0.228
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 +48 -0
- data/lib/v20200217/models.rb +219 -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: cf1077977fb60e850bbb45a7e8fbab8e4fac2b9f
|
4
|
+
data.tar.gz: 0bf19ad882cce9c989974b1b0ece3e76d0956473
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dff2736e81c939f751715391b9a0aa065ca5d44bfa3eb52ee772c3ca019772010f74f55bcc6386edcd3897f413e0a918d8b3af8af98446551a09a6b05399161
|
7
|
+
data.tar.gz: 11356b172e4e0b4bb103e29c09cd9a70c19af74936b4468a5a6e83bbfe3a00871bf89a561735126c43f4898ef78da4830547f8c3a2736456fc69a60d52410ae9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.228
|
data/lib/v20200217/client.rb
CHANGED
@@ -1541,6 +1541,54 @@ module TencentCloud
|
|
1541
1541
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1542
1542
|
end
|
1543
1543
|
|
1544
|
+
# 获取消息生产概览信息
|
1545
|
+
|
1546
|
+
# @param request: Request instance for DescribePublisherSummary.
|
1547
|
+
# @type request: :class:`Tencentcloud::tdmq::V20200217::DescribePublisherSummaryRequest`
|
1548
|
+
# @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribePublisherSummaryResponse`
|
1549
|
+
def DescribePublisherSummary(request)
|
1550
|
+
body = send_request('DescribePublisherSummary', request.serialize)
|
1551
|
+
response = JSON.parse(body)
|
1552
|
+
if response['Response'].key?('Error') == false
|
1553
|
+
model = DescribePublisherSummaryResponse.new
|
1554
|
+
model.deserialize(response['Response'])
|
1555
|
+
model
|
1556
|
+
else
|
1557
|
+
code = response['Response']['Error']['Code']
|
1558
|
+
message = response['Response']['Error']['Message']
|
1559
|
+
reqid = response['Response']['RequestId']
|
1560
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1561
|
+
end
|
1562
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1563
|
+
raise e
|
1564
|
+
rescue StandardError => e
|
1565
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
# 获取生产者信息列表
|
1569
|
+
|
1570
|
+
# @param request: Request instance for DescribePublishers.
|
1571
|
+
# @type request: :class:`Tencentcloud::tdmq::V20200217::DescribePublishersRequest`
|
1572
|
+
# @rtype: :class:`Tencentcloud::tdmq::V20200217::DescribePublishersResponse`
|
1573
|
+
def DescribePublishers(request)
|
1574
|
+
body = send_request('DescribePublishers', request.serialize)
|
1575
|
+
response = JSON.parse(body)
|
1576
|
+
if response['Response'].key?('Error') == false
|
1577
|
+
model = DescribePublishersResponse.new
|
1578
|
+
model.deserialize(response['Response'])
|
1579
|
+
model
|
1580
|
+
else
|
1581
|
+
code = response['Response']['Error']['Code']
|
1582
|
+
message = response['Response']['Error']['Message']
|
1583
|
+
reqid = response['Response']['RequestId']
|
1584
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1585
|
+
end
|
1586
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1587
|
+
raise e
|
1588
|
+
rescue StandardError => e
|
1589
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1590
|
+
end
|
1591
|
+
|
1544
1592
|
# 获取单个RocketMQ集群信息
|
1545
1593
|
|
1546
1594
|
# @param request: Request instance for DescribeRocketMQCluster.
|
data/lib/v20200217/models.rb
CHANGED
@@ -4389,6 +4389,148 @@ module TencentCloud
|
|
4389
4389
|
end
|
4390
4390
|
end
|
4391
4391
|
|
4392
|
+
# DescribePublisherSummary请求参数结构体
|
4393
|
+
class DescribePublisherSummaryRequest < TencentCloud::Common::AbstractModel
|
4394
|
+
# @param ClusterId: 集群ID
|
4395
|
+
# @type ClusterId: String
|
4396
|
+
# @param Namespace: 命名空间名称
|
4397
|
+
# @type Namespace: String
|
4398
|
+
# @param Topic: 主题名称
|
4399
|
+
# @type Topic: String
|
4400
|
+
|
4401
|
+
attr_accessor :ClusterId, :Namespace, :Topic
|
4402
|
+
|
4403
|
+
def initialize(clusterid=nil, namespace=nil, topic=nil)
|
4404
|
+
@ClusterId = clusterid
|
4405
|
+
@Namespace = namespace
|
4406
|
+
@Topic = topic
|
4407
|
+
end
|
4408
|
+
|
4409
|
+
def deserialize(params)
|
4410
|
+
@ClusterId = params['ClusterId']
|
4411
|
+
@Namespace = params['Namespace']
|
4412
|
+
@Topic = params['Topic']
|
4413
|
+
end
|
4414
|
+
end
|
4415
|
+
|
4416
|
+
# DescribePublisherSummary返回参数结构体
|
4417
|
+
class DescribePublisherSummaryResponse < TencentCloud::Common::AbstractModel
|
4418
|
+
# @param MsgRateIn: 生产速率(条/秒)
|
4419
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4420
|
+
# @type MsgRateIn: Float
|
4421
|
+
# @param MsgThroughputIn: 生产速率(字节/秒)
|
4422
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4423
|
+
# @type MsgThroughputIn: Float
|
4424
|
+
# @param PublisherCount: 生产者数量
|
4425
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4426
|
+
# @type PublisherCount: Integer
|
4427
|
+
# @param StorageSize: 消息存储大小,以字节为单位
|
4428
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4429
|
+
# @type StorageSize: Integer
|
4430
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4431
|
+
# @type RequestId: String
|
4432
|
+
|
4433
|
+
attr_accessor :MsgRateIn, :MsgThroughputIn, :PublisherCount, :StorageSize, :RequestId
|
4434
|
+
|
4435
|
+
def initialize(msgratein=nil, msgthroughputin=nil, publishercount=nil, storagesize=nil, requestid=nil)
|
4436
|
+
@MsgRateIn = msgratein
|
4437
|
+
@MsgThroughputIn = msgthroughputin
|
4438
|
+
@PublisherCount = publishercount
|
4439
|
+
@StorageSize = storagesize
|
4440
|
+
@RequestId = requestid
|
4441
|
+
end
|
4442
|
+
|
4443
|
+
def deserialize(params)
|
4444
|
+
@MsgRateIn = params['MsgRateIn']
|
4445
|
+
@MsgThroughputIn = params['MsgThroughputIn']
|
4446
|
+
@PublisherCount = params['PublisherCount']
|
4447
|
+
@StorageSize = params['StorageSize']
|
4448
|
+
@RequestId = params['RequestId']
|
4449
|
+
end
|
4450
|
+
end
|
4451
|
+
|
4452
|
+
# DescribePublishers请求参数结构体
|
4453
|
+
class DescribePublishersRequest < TencentCloud::Common::AbstractModel
|
4454
|
+
# @param ClusterId: 集群ID
|
4455
|
+
# @type ClusterId: String
|
4456
|
+
# @param Namespace: 命名空间名称
|
4457
|
+
# @type Namespace: String
|
4458
|
+
# @param Topic: 主题名称
|
4459
|
+
# @type Topic: String
|
4460
|
+
# @param Filters: 参数过滤器,支持ProducerName,Address字段
|
4461
|
+
# @type Filters: Array
|
4462
|
+
# @param Offset: 查询偏移量,默认为0
|
4463
|
+
# @type Offset: Integer
|
4464
|
+
# @param Limit: 查询条数,默认为20
|
4465
|
+
# @type Limit: Integer
|
4466
|
+
# @param Sort: 排序器
|
4467
|
+
# @type Sort: :class:`Tencentcloud::Tdmq.v20200217.models.Sort`
|
4468
|
+
|
4469
|
+
attr_accessor :ClusterId, :Namespace, :Topic, :Filters, :Offset, :Limit, :Sort
|
4470
|
+
|
4471
|
+
def initialize(clusterid=nil, namespace=nil, topic=nil, filters=nil, offset=nil, limit=nil, sort=nil)
|
4472
|
+
@ClusterId = clusterid
|
4473
|
+
@Namespace = namespace
|
4474
|
+
@Topic = topic
|
4475
|
+
@Filters = filters
|
4476
|
+
@Offset = offset
|
4477
|
+
@Limit = limit
|
4478
|
+
@Sort = sort
|
4479
|
+
end
|
4480
|
+
|
4481
|
+
def deserialize(params)
|
4482
|
+
@ClusterId = params['ClusterId']
|
4483
|
+
@Namespace = params['Namespace']
|
4484
|
+
@Topic = params['Topic']
|
4485
|
+
unless params['Filters'].nil?
|
4486
|
+
@Filters = []
|
4487
|
+
params['Filters'].each do |i|
|
4488
|
+
filter_tmp = Filter.new
|
4489
|
+
filter_tmp.deserialize(i)
|
4490
|
+
@Filters << filter_tmp
|
4491
|
+
end
|
4492
|
+
end
|
4493
|
+
@Offset = params['Offset']
|
4494
|
+
@Limit = params['Limit']
|
4495
|
+
unless params['Sort'].nil?
|
4496
|
+
@Sort = Sort.new
|
4497
|
+
@Sort.deserialize(params['Sort'])
|
4498
|
+
end
|
4499
|
+
end
|
4500
|
+
end
|
4501
|
+
|
4502
|
+
# DescribePublishers返回参数结构体
|
4503
|
+
class DescribePublishersResponse < TencentCloud::Common::AbstractModel
|
4504
|
+
# @param TotalCount: 总条数
|
4505
|
+
# @type TotalCount: Integer
|
4506
|
+
# @param Publishers: 生产者信息列表
|
4507
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4508
|
+
# @type Publishers: Array
|
4509
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4510
|
+
# @type RequestId: String
|
4511
|
+
|
4512
|
+
attr_accessor :TotalCount, :Publishers, :RequestId
|
4513
|
+
|
4514
|
+
def initialize(totalcount=nil, publishers=nil, requestid=nil)
|
4515
|
+
@TotalCount = totalcount
|
4516
|
+
@Publishers = publishers
|
4517
|
+
@RequestId = requestid
|
4518
|
+
end
|
4519
|
+
|
4520
|
+
def deserialize(params)
|
4521
|
+
@TotalCount = params['TotalCount']
|
4522
|
+
unless params['Publishers'].nil?
|
4523
|
+
@Publishers = []
|
4524
|
+
params['Publishers'].each do |i|
|
4525
|
+
publisher_tmp = Publisher.new
|
4526
|
+
publisher_tmp.deserialize(i)
|
4527
|
+
@Publishers << publisher_tmp
|
4528
|
+
end
|
4529
|
+
end
|
4530
|
+
@RequestId = params['RequestId']
|
4531
|
+
end
|
4532
|
+
end
|
4533
|
+
|
4392
4534
|
# DescribeRocketMQCluster请求参数结构体
|
4393
4535
|
class DescribeRocketMQClusterRequest < TencentCloud::Common::AbstractModel
|
4394
4536
|
# @param ClusterId: 集群ID
|
@@ -6186,6 +6328,63 @@ module TencentCloud
|
|
6186
6328
|
end
|
6187
6329
|
end
|
6188
6330
|
|
6331
|
+
# 生产者信息
|
6332
|
+
class Publisher < TencentCloud::Common::AbstractModel
|
6333
|
+
# @param ProducerId: 生产者id
|
6334
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6335
|
+
# @type ProducerId: Integer
|
6336
|
+
# @param ProducerName: 生产者名称
|
6337
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6338
|
+
# @type ProducerName: String
|
6339
|
+
# @param Address: 生产者地址
|
6340
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6341
|
+
# @type Address: String
|
6342
|
+
# @param ClientVersion: 客户端版本
|
6343
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6344
|
+
# @type ClientVersion: String
|
6345
|
+
# @param MsgRateIn: 消息生产速率(条/秒)
|
6346
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6347
|
+
# @type MsgRateIn: Float
|
6348
|
+
# @param MsgThroughputIn: 消息生产吞吐速率(字节/秒)
|
6349
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6350
|
+
# @type MsgThroughputIn: Float
|
6351
|
+
# @param AverageMsgSize: 平均消息大小(字节)
|
6352
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6353
|
+
# @type AverageMsgSize: Float
|
6354
|
+
# @param ConnectedSince: 连接时间
|
6355
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6356
|
+
# @type ConnectedSince: String
|
6357
|
+
# @param Partition: 生产者连接的主题分区号
|
6358
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6359
|
+
# @type Partition: Integer
|
6360
|
+
|
6361
|
+
attr_accessor :ProducerId, :ProducerName, :Address, :ClientVersion, :MsgRateIn, :MsgThroughputIn, :AverageMsgSize, :ConnectedSince, :Partition
|
6362
|
+
|
6363
|
+
def initialize(producerid=nil, producername=nil, address=nil, clientversion=nil, msgratein=nil, msgthroughputin=nil, averagemsgsize=nil, connectedsince=nil, partition=nil)
|
6364
|
+
@ProducerId = producerid
|
6365
|
+
@ProducerName = producername
|
6366
|
+
@Address = address
|
6367
|
+
@ClientVersion = clientversion
|
6368
|
+
@MsgRateIn = msgratein
|
6369
|
+
@MsgThroughputIn = msgthroughputin
|
6370
|
+
@AverageMsgSize = averagemsgsize
|
6371
|
+
@ConnectedSince = connectedsince
|
6372
|
+
@Partition = partition
|
6373
|
+
end
|
6374
|
+
|
6375
|
+
def deserialize(params)
|
6376
|
+
@ProducerId = params['ProducerId']
|
6377
|
+
@ProducerName = params['ProducerName']
|
6378
|
+
@Address = params['Address']
|
6379
|
+
@ClientVersion = params['ClientVersion']
|
6380
|
+
@MsgRateIn = params['MsgRateIn']
|
6381
|
+
@MsgThroughputIn = params['MsgThroughputIn']
|
6382
|
+
@AverageMsgSize = params['AverageMsgSize']
|
6383
|
+
@ConnectedSince = params['ConnectedSince']
|
6384
|
+
@Partition = params['Partition']
|
6385
|
+
end
|
6386
|
+
end
|
6387
|
+
|
6189
6388
|
# ReceiveMessage请求参数结构体
|
6190
6389
|
class ReceiveMessageRequest < TencentCloud::Common::AbstractModel
|
6191
6390
|
# @param Topic: 接收消息的topic的名字, 这里尽量需要使用topic的全路径,如果不指定,即:tenant/namespace/topic。默认使用的是:public/default
|
@@ -6898,6 +7097,26 @@ module TencentCloud
|
|
6898
7097
|
end
|
6899
7098
|
end
|
6900
7099
|
|
7100
|
+
# 排序器
|
7101
|
+
class Sort < TencentCloud::Common::AbstractModel
|
7102
|
+
# @param Name: 排序字段
|
7103
|
+
# @type Name: String
|
7104
|
+
# @param Order: 升序ASC,降序DESC
|
7105
|
+
# @type Order: String
|
7106
|
+
|
7107
|
+
attr_accessor :Name, :Order
|
7108
|
+
|
7109
|
+
def initialize(name=nil, order=nil)
|
7110
|
+
@Name = name
|
7111
|
+
@Order = order
|
7112
|
+
end
|
7113
|
+
|
7114
|
+
def deserialize(params)
|
7115
|
+
@Name = params['Name']
|
7116
|
+
@Order = params['Order']
|
7117
|
+
end
|
7118
|
+
end
|
7119
|
+
|
6901
7120
|
# 订阅者
|
6902
7121
|
class Subscription < TencentCloud::Common::AbstractModel
|
6903
7122
|
# @param TopicName: 主题名称。
|
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: 1.0.
|
4
|
+
version: 1.0.228
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|