tencentcloud-sdk-trocket 3.0.697 → 3.0.699

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: c427f5a9c1f77e170188b3d7e766c949c5bfd20d
4
- data.tar.gz: 8b879613cb5122eacd628ec5085471c181a45407
3
+ metadata.gz: efe3d0bdd4d471903b4dcec2b797d8930bc929c5
4
+ data.tar.gz: bd36612f5cc0ef9b3ff4097b7b17606c93b86c36
5
5
  SHA512:
6
- metadata.gz: 9a237b44df4367d910c376c7bf041f523267af93ceedc1a17480ad5b6b27fa94971722141ca68c0f8471deee3afcf2c9544f34ce0aadb14b60b5921fc8f6e23a
7
- data.tar.gz: 29713d6fe3994a1198e0712d419d8d3b73b66a63225e5a24cb881cace6f66f69286d85323d26fdd89d45aca65cc8cfeff3495e4d214fd18dad8874821f5575f3
6
+ metadata.gz: a41194020f18cc93c892cdc2ca1eabbad43b67bec61e962a1dfe2264e5c352aeb54d33a8463b7e346bd2116c99f40cdcc7a082708ef7d8f01fb611034f5a462f
7
+ data.tar.gz: cda122207a45d3f34295ad85c317c2e8fbbde1eeda04efd9f031288794619006c8cbd54d4f2453f544991c05822d373077d1c707ad4e0cedd570fc65e7908de5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.697
1
+ 3.0.699
@@ -245,6 +245,33 @@ module TencentCloud
245
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
246
  end
247
247
 
248
+ # 获取消费组列表,Filter参数使用说明如下:
249
+
250
+ # 1. ConsumerGroupName,名称模糊查询
251
+ # 2. ConsumeMessageOrderly,投递顺序性。"true":顺序投递;"false":并发投递
252
+
253
+ # @param request: Request instance for DescribeConsumerGroupList.
254
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeConsumerGroupListRequest`
255
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeConsumerGroupListResponse`
256
+ def DescribeConsumerGroupList(request)
257
+ body = send_request('DescribeConsumerGroupList', request.serialize)
258
+ response = JSON.parse(body)
259
+ if response['Response'].key?('Error') == false
260
+ model = DescribeConsumerGroupListResponse.new
261
+ model.deserialize(response['Response'])
262
+ model
263
+ else
264
+ code = response['Response']['Error']['Code']
265
+ message = response['Response']['Error']['Message']
266
+ reqid = response['Response']['RequestId']
267
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
268
+ end
269
+ rescue TencentCloud::Common::TencentCloudSDKException => e
270
+ raise e
271
+ rescue StandardError => e
272
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
273
+ end
274
+
248
275
  # 查询实例信息
249
276
 
250
277
  # @param request: Request instance for DescribeInstance.
@@ -17,6 +17,43 @@
17
17
  module TencentCloud
18
18
  module Trocket
19
19
  module V20230308
20
+ # 消费组信息
21
+ class ConsumeGroupItem < TencentCloud::Common::AbstractModel
22
+ # @param InstanceId: 实例ID
23
+ # @type InstanceId: String
24
+ # @param ConsumerGroup: 消费组名称
25
+ # @type ConsumerGroup: String
26
+ # @param ConsumeEnable: 是否开启消费
27
+ # @type ConsumeEnable: Boolean
28
+ # @param ConsumeMessageOrderly: 顺序投递:true
29
+ # 并发投递:false
30
+ # @type ConsumeMessageOrderly: Boolean
31
+ # @param MaxRetryTimes: 最大重试次数
32
+ # @type MaxRetryTimes: Integer
33
+ # @param Remark: 备注
34
+ # @type Remark: String
35
+
36
+ attr_accessor :InstanceId, :ConsumerGroup, :ConsumeEnable, :ConsumeMessageOrderly, :MaxRetryTimes, :Remark
37
+
38
+ def initialize(instanceid=nil, consumergroup=nil, consumeenable=nil, consumemessageorderly=nil, maxretrytimes=nil, remark=nil)
39
+ @InstanceId = instanceid
40
+ @ConsumerGroup = consumergroup
41
+ @ConsumeEnable = consumeenable
42
+ @ConsumeMessageOrderly = consumemessageorderly
43
+ @MaxRetryTimes = maxretrytimes
44
+ @Remark = remark
45
+ end
46
+
47
+ def deserialize(params)
48
+ @InstanceId = params['InstanceId']
49
+ @ConsumerGroup = params['ConsumerGroup']
50
+ @ConsumeEnable = params['ConsumeEnable']
51
+ @ConsumeMessageOrderly = params['ConsumeMessageOrderly']
52
+ @MaxRetryTimes = params['MaxRetryTimes']
53
+ @Remark = params['Remark']
54
+ end
55
+ end
56
+
20
57
  # CreateConsumerGroup请求参数结构体
21
58
  class CreateConsumerGroupRequest < TencentCloud::Common::AbstractModel
22
59
  # @param InstanceId: 实例ID
@@ -433,6 +470,77 @@ module TencentCloud
433
470
  end
434
471
  end
435
472
 
473
+ # DescribeConsumerGroupList请求参数结构体
474
+ class DescribeConsumerGroupListRequest < TencentCloud::Common::AbstractModel
475
+ # @param InstanceId: 实例ID
476
+ # @type InstanceId: String
477
+ # @param Offset: 查询起始位置
478
+ # @type Offset: Integer
479
+ # @param Limit: 查询结果限制数量
480
+ # @type Limit: Integer
481
+ # @param Filters: 查询条件列表
482
+ # @type Filters: Array
483
+ # @param FromTopic: 查询指定主题下的消费组
484
+ # @type FromTopic: String
485
+
486
+ attr_accessor :InstanceId, :Offset, :Limit, :Filters, :FromTopic
487
+
488
+ def initialize(instanceid=nil, offset=nil, limit=nil, filters=nil, fromtopic=nil)
489
+ @InstanceId = instanceid
490
+ @Offset = offset
491
+ @Limit = limit
492
+ @Filters = filters
493
+ @FromTopic = fromtopic
494
+ end
495
+
496
+ def deserialize(params)
497
+ @InstanceId = params['InstanceId']
498
+ @Offset = params['Offset']
499
+ @Limit = params['Limit']
500
+ unless params['Filters'].nil?
501
+ @Filters = []
502
+ params['Filters'].each do |i|
503
+ filter_tmp = Filter.new
504
+ filter_tmp.deserialize(i)
505
+ @Filters << filter_tmp
506
+ end
507
+ end
508
+ @FromTopic = params['FromTopic']
509
+ end
510
+ end
511
+
512
+ # DescribeConsumerGroupList返回参数结构体
513
+ class DescribeConsumerGroupListResponse < TencentCloud::Common::AbstractModel
514
+ # @param TotalCount: 查询总数
515
+ # 注意:此字段可能返回 null,表示取不到有效值。
516
+ # @type TotalCount: Integer
517
+ # @param Data: 消费组列表
518
+ # @type Data: Array
519
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
520
+ # @type RequestId: String
521
+
522
+ attr_accessor :TotalCount, :Data, :RequestId
523
+
524
+ def initialize(totalcount=nil, data=nil, requestid=nil)
525
+ @TotalCount = totalcount
526
+ @Data = data
527
+ @RequestId = requestid
528
+ end
529
+
530
+ def deserialize(params)
531
+ @TotalCount = params['TotalCount']
532
+ unless params['Data'].nil?
533
+ @Data = []
534
+ params['Data'].each do |i|
535
+ consumegroupitem_tmp = ConsumeGroupItem.new
536
+ consumegroupitem_tmp.deserialize(i)
537
+ @Data << consumegroupitem_tmp
538
+ end
539
+ end
540
+ @RequestId = params['RequestId']
541
+ end
542
+ end
543
+
436
544
  # DescribeConsumerGroup请求参数结构体
437
545
  class DescribeConsumerGroupRequest < TencentCloud::Common::AbstractModel
438
546
  # @param InstanceId: 实例ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.697
4
+ version: 3.0.699
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-09 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common