tencentcloud-sdk-trocket 3.0.656 → 3.0.657

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: 7abbbc38bbddedc5582902abeed14372ca98480b
4
- data.tar.gz: c837946dac6b54b76d1851c9a7a91da1b839b882
3
+ metadata.gz: 04e793373e9fabbcf5d954f9754af2c021e1c427
4
+ data.tar.gz: 56e6376288875cdaded2754183b32c4ea80fa1c1
5
5
  SHA512:
6
- metadata.gz: 83154744ca1fdff6b2f60b938522e0c8982ebb329b10422bad18f8b9b5bd489483024d35774d5ffcabef9bedd5cfb46b66159860584e005ca16da5c9aa55830f
7
- data.tar.gz: 4220362827bfbeff1a7467bb661c8933e453622257e480f165aeb9f3ade1071eb8c4092859d7238f116a379d3a980013f9bc36993c6908741b45dcf7a0ef8a83
6
+ metadata.gz: 69ee4a3b6463c80402a51a613b763fe4adb4ea033c654c19d67d252fb4fd37af9d8ee83586df78ef47960e24b998451df634f9ff8402df73fbc8b12a6ccb40b5
7
+ data.tar.gz: 0a3d8bc2ca08245c4c0b82febdd9a6d061fbc257e9e3fb35a2e65d07022e100b53fe366f36fe5b3037ffdb6af16ad9308637fa84e3a4885739acba30a90d75d6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.656
1
+ 3.0.657
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建消费组
33
+
34
+ # @param request: Request instance for CreateConsumerGroup.
35
+ # @type request: :class:`Tencentcloud::trocket::V20230308::CreateConsumerGroupRequest`
36
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::CreateConsumerGroupResponse`
37
+ def CreateConsumerGroup(request)
38
+ body = send_request('CreateConsumerGroup', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateConsumerGroupResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 购买新实例
33
57
 
34
58
  # @param request: Request instance for CreateInstance.
@@ -53,6 +77,54 @@ module TencentCloud
53
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
78
  end
55
79
 
80
+ # 创建主题
81
+
82
+ # @param request: Request instance for CreateTopic.
83
+ # @type request: :class:`Tencentcloud::trocket::V20230308::CreateTopicRequest`
84
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::CreateTopicResponse`
85
+ def CreateTopic(request)
86
+ body = send_request('CreateTopic', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateTopicResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 删除消费组
105
+
106
+ # @param request: Request instance for DeleteConsumerGroup.
107
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DeleteConsumerGroupRequest`
108
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DeleteConsumerGroupResponse`
109
+ def DeleteConsumerGroup(request)
110
+ body = send_request('DeleteConsumerGroup', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DeleteConsumerGroupResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
56
128
  # 删除实例
57
129
 
58
130
  # @param request: Request instance for DeleteInstance.
@@ -77,6 +149,54 @@ module TencentCloud
77
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
150
  end
79
151
 
152
+ # 删除主题
153
+
154
+ # @param request: Request instance for DeleteTopic.
155
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DeleteTopicRequest`
156
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DeleteTopicResponse`
157
+ def DeleteTopic(request)
158
+ body = send_request('DeleteTopic', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DeleteTopicResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 查询消费组详情
177
+
178
+ # @param request: Request instance for DescribeConsumerGroup.
179
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeConsumerGroupRequest`
180
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeConsumerGroupResponse`
181
+ def DescribeConsumerGroup(request)
182
+ body = send_request('DescribeConsumerGroup', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeConsumerGroupResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
80
200
  # 查询实例信息
81
201
 
82
202
  # @param request: Request instance for DescribeInstance.
@@ -131,6 +251,32 @@ module TencentCloud
131
251
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
132
252
  end
133
253
 
254
+ # 查询主题详情,Offset和Limit参数是指订阅该主题的消费组查询分页参数,Filter参数使用说明如下:
255
+
256
+ # ConsumerGroup,消费组名称过滤
257
+
258
+ # @param request: Request instance for DescribeTopic.
259
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeTopicRequest`
260
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeTopicResponse`
261
+ def DescribeTopic(request)
262
+ body = send_request('DescribeTopic', request.serialize)
263
+ response = JSON.parse(body)
264
+ if response['Response'].key?('Error') == false
265
+ model = DescribeTopicResponse.new
266
+ model.deserialize(response['Response'])
267
+ model
268
+ else
269
+ code = response['Response']['Error']['Code']
270
+ message = response['Response']['Error']['Message']
271
+ reqid = response['Response']['RequestId']
272
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
273
+ end
274
+ rescue TencentCloud::Common::TencentCloudSDKException => e
275
+ raise e
276
+ rescue StandardError => e
277
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
278
+ end
279
+
134
280
  # 获取主题列表,Filter参数使用说明如下:
135
281
 
136
282
  # 1. TopicName,主题名称模糊搜索
@@ -158,6 +304,54 @@ module TencentCloud
158
304
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
159
305
  end
160
306
 
307
+ # 运营端查询topicStata
308
+
309
+ # @param request: Request instance for DescribeTopicStatsOp.
310
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeTopicStatsOpRequest`
311
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeTopicStatsOpResponse`
312
+ def DescribeTopicStatsOp(request)
313
+ body = send_request('DescribeTopicStatsOp', request.serialize)
314
+ response = JSON.parse(body)
315
+ if response['Response'].key?('Error') == false
316
+ model = DescribeTopicStatsOpResponse.new
317
+ model.deserialize(response['Response'])
318
+ model
319
+ else
320
+ code = response['Response']['Error']['Code']
321
+ message = response['Response']['Error']['Message']
322
+ reqid = response['Response']['RequestId']
323
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
324
+ end
325
+ rescue TencentCloud::Common::TencentCloudSDKException => e
326
+ raise e
327
+ rescue StandardError => e
328
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
329
+ end
330
+
331
+ # 修改消费组属性
332
+
333
+ # @param request: Request instance for ModifyConsumerGroup.
334
+ # @type request: :class:`Tencentcloud::trocket::V20230308::ModifyConsumerGroupRequest`
335
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::ModifyConsumerGroupResponse`
336
+ def ModifyConsumerGroup(request)
337
+ body = send_request('ModifyConsumerGroup', request.serialize)
338
+ response = JSON.parse(body)
339
+ if response['Response'].key?('Error') == false
340
+ model = ModifyConsumerGroupResponse.new
341
+ model.deserialize(response['Response'])
342
+ model
343
+ else
344
+ code = response['Response']['Error']['Code']
345
+ message = response['Response']['Error']['Message']
346
+ reqid = response['Response']['RequestId']
347
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
348
+ end
349
+ rescue TencentCloud::Common::TencentCloudSDKException => e
350
+ raise e
351
+ rescue StandardError => e
352
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
353
+ end
354
+
161
355
  # 修改实例属性
162
356
 
163
357
  # @param request: Request instance for ModifyInstance.
@@ -182,6 +376,30 @@ module TencentCloud
182
376
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
183
377
  end
184
378
 
379
+ # 修改主题属性
380
+
381
+ # @param request: Request instance for ModifyTopic.
382
+ # @type request: :class:`Tencentcloud::trocket::V20230308::ModifyTopicRequest`
383
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::ModifyTopicResponse`
384
+ def ModifyTopic(request)
385
+ body = send_request('ModifyTopic', request.serialize)
386
+ response = JSON.parse(body)
387
+ if response['Response'].key?('Error') == false
388
+ model = ModifyTopicResponse.new
389
+ model.deserialize(response['Response'])
390
+ model
391
+ else
392
+ code = response['Response']['Error']['Code']
393
+ message = response['Response']['Error']['Message']
394
+ reqid = response['Response']['RequestId']
395
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
396
+ end
397
+ rescue TencentCloud::Common::TencentCloudSDKException => e
398
+ raise e
399
+ rescue StandardError => e
400
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
401
+ end
402
+
185
403
 
186
404
  end
187
405
  end
@@ -17,6 +17,67 @@
17
17
  module TencentCloud
18
18
  module Trocket
19
19
  module V20230308
20
+ # CreateConsumerGroup请求参数结构体
21
+ class CreateConsumerGroupRequest < TencentCloud::Common::AbstractModel
22
+ # @param InstanceId: 实例ID
23
+ # @type InstanceId: String
24
+ # @param ConsumerGroup: 消费组名称
25
+ # @type ConsumerGroup: String
26
+ # @param MaxRetryTimes: 最大重试次数
27
+ # @type MaxRetryTimes: Integer
28
+ # @param ConsumeEnable: 是否开启消费
29
+ # @type ConsumeEnable: Boolean
30
+ # @param ConsumeMessageOrderly: 顺序投递:true
31
+ # 并发投递:false
32
+ # @type ConsumeMessageOrderly: Boolean
33
+ # @param Remark: 备注
34
+ # @type Remark: String
35
+
36
+ attr_accessor :InstanceId, :ConsumerGroup, :MaxRetryTimes, :ConsumeEnable, :ConsumeMessageOrderly, :Remark
37
+
38
+ def initialize(instanceid=nil, consumergroup=nil, maxretrytimes=nil, consumeenable=nil, consumemessageorderly=nil, remark=nil)
39
+ @InstanceId = instanceid
40
+ @ConsumerGroup = consumergroup
41
+ @MaxRetryTimes = maxretrytimes
42
+ @ConsumeEnable = consumeenable
43
+ @ConsumeMessageOrderly = consumemessageorderly
44
+ @Remark = remark
45
+ end
46
+
47
+ def deserialize(params)
48
+ @InstanceId = params['InstanceId']
49
+ @ConsumerGroup = params['ConsumerGroup']
50
+ @MaxRetryTimes = params['MaxRetryTimes']
51
+ @ConsumeEnable = params['ConsumeEnable']
52
+ @ConsumeMessageOrderly = params['ConsumeMessageOrderly']
53
+ @Remark = params['Remark']
54
+ end
55
+ end
56
+
57
+ # CreateConsumerGroup返回参数结构体
58
+ class CreateConsumerGroupResponse < TencentCloud::Common::AbstractModel
59
+ # @param InstanceId: 实例ID
60
+ # @type InstanceId: String
61
+ # @param ConsumerGroup: 消费组
62
+ # @type ConsumerGroup: String
63
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
64
+ # @type RequestId: String
65
+
66
+ attr_accessor :InstanceId, :ConsumerGroup, :RequestId
67
+
68
+ def initialize(instanceid=nil, consumergroup=nil, requestid=nil)
69
+ @InstanceId = instanceid
70
+ @ConsumerGroup = consumergroup
71
+ @RequestId = requestid
72
+ end
73
+
74
+ def deserialize(params)
75
+ @InstanceId = params['InstanceId']
76
+ @ConsumerGroup = params['ConsumerGroup']
77
+ @RequestId = params['RequestId']
78
+ end
79
+ end
80
+
20
81
  # CreateInstance请求参数结构体
21
82
  class CreateInstanceRequest < TencentCloud::Common::AbstractModel
22
83
  # @param InstanceType: 实例类型,
@@ -119,6 +180,103 @@ module TencentCloud
119
180
  end
120
181
  end
121
182
 
183
+ # CreateTopic请求参数结构体
184
+ class CreateTopicRequest < TencentCloud::Common::AbstractModel
185
+ # @param InstanceId: 实例ID
186
+ # @type InstanceId: String
187
+ # @param Topic: 主题
188
+ # @type Topic: String
189
+ # @param TopicType: 主题类型
190
+ # UNSPECIFIED:未指定,
191
+ # NORMAL:普通消息,
192
+ # FIFO:顺序消息,
193
+ # DELAY:延时消息,
194
+ # TRANSACTION:事务消息
195
+ # @type TopicType: String
196
+ # @param QueueNum: 队列数量
197
+ # @type QueueNum: Integer
198
+ # @param Remark: 备注
199
+ # @type Remark: String
200
+
201
+ attr_accessor :InstanceId, :Topic, :TopicType, :QueueNum, :Remark
202
+
203
+ def initialize(instanceid=nil, topic=nil, topictype=nil, queuenum=nil, remark=nil)
204
+ @InstanceId = instanceid
205
+ @Topic = topic
206
+ @TopicType = topictype
207
+ @QueueNum = queuenum
208
+ @Remark = remark
209
+ end
210
+
211
+ def deserialize(params)
212
+ @InstanceId = params['InstanceId']
213
+ @Topic = params['Topic']
214
+ @TopicType = params['TopicType']
215
+ @QueueNum = params['QueueNum']
216
+ @Remark = params['Remark']
217
+ end
218
+ end
219
+
220
+ # CreateTopic返回参数结构体
221
+ class CreateTopicResponse < TencentCloud::Common::AbstractModel
222
+ # @param InstanceId: 实例ID
223
+ # @type InstanceId: String
224
+ # @param Topic: 主题
225
+ # @type Topic: String
226
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
227
+ # @type RequestId: String
228
+
229
+ attr_accessor :InstanceId, :Topic, :RequestId
230
+
231
+ def initialize(instanceid=nil, topic=nil, requestid=nil)
232
+ @InstanceId = instanceid
233
+ @Topic = topic
234
+ @RequestId = requestid
235
+ end
236
+
237
+ def deserialize(params)
238
+ @InstanceId = params['InstanceId']
239
+ @Topic = params['Topic']
240
+ @RequestId = params['RequestId']
241
+ end
242
+ end
243
+
244
+ # DeleteConsumerGroup请求参数结构体
245
+ class DeleteConsumerGroupRequest < TencentCloud::Common::AbstractModel
246
+ # @param InstanceId: 实例ID
247
+ # @type InstanceId: String
248
+ # @param ConsumerGroup: 消费组名称
249
+ # @type ConsumerGroup: String
250
+
251
+ attr_accessor :InstanceId, :ConsumerGroup
252
+
253
+ def initialize(instanceid=nil, consumergroup=nil)
254
+ @InstanceId = instanceid
255
+ @ConsumerGroup = consumergroup
256
+ end
257
+
258
+ def deserialize(params)
259
+ @InstanceId = params['InstanceId']
260
+ @ConsumerGroup = params['ConsumerGroup']
261
+ end
262
+ end
263
+
264
+ # DeleteConsumerGroup返回参数结构体
265
+ class DeleteConsumerGroupResponse < TencentCloud::Common::AbstractModel
266
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
267
+ # @type RequestId: String
268
+
269
+ attr_accessor :RequestId
270
+
271
+ def initialize(requestid=nil)
272
+ @RequestId = requestid
273
+ end
274
+
275
+ def deserialize(params)
276
+ @RequestId = params['RequestId']
277
+ end
278
+ end
279
+
122
280
  # DeleteInstance请求参数结构体
123
281
  class DeleteInstanceRequest < TencentCloud::Common::AbstractModel
124
282
  # @param InstanceId: 实例ID
@@ -151,6 +309,115 @@ module TencentCloud
151
309
  end
152
310
  end
153
311
 
312
+ # DeleteTopic请求参数结构体
313
+ class DeleteTopicRequest < TencentCloud::Common::AbstractModel
314
+ # @param InstanceId: 实例ID
315
+ # @type InstanceId: String
316
+ # @param Topic: 主题
317
+ # @type Topic: String
318
+
319
+ attr_accessor :InstanceId, :Topic
320
+
321
+ def initialize(instanceid=nil, topic=nil)
322
+ @InstanceId = instanceid
323
+ @Topic = topic
324
+ end
325
+
326
+ def deserialize(params)
327
+ @InstanceId = params['InstanceId']
328
+ @Topic = params['Topic']
329
+ end
330
+ end
331
+
332
+ # DeleteTopic返回参数结构体
333
+ class DeleteTopicResponse < TencentCloud::Common::AbstractModel
334
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
335
+ # @type RequestId: String
336
+
337
+ attr_accessor :RequestId
338
+
339
+ def initialize(requestid=nil)
340
+ @RequestId = requestid
341
+ end
342
+
343
+ def deserialize(params)
344
+ @RequestId = params['RequestId']
345
+ end
346
+ end
347
+
348
+ # DescribeConsumerGroup请求参数结构体
349
+ class DescribeConsumerGroupRequest < TencentCloud::Common::AbstractModel
350
+ # @param InstanceId: 实例ID
351
+ # @type InstanceId: String
352
+ # @param ConsumerGroup: 消费组名称
353
+ # @type ConsumerGroup: String
354
+
355
+ attr_accessor :InstanceId, :ConsumerGroup
356
+
357
+ def initialize(instanceid=nil, consumergroup=nil)
358
+ @InstanceId = instanceid
359
+ @ConsumerGroup = consumergroup
360
+ end
361
+
362
+ def deserialize(params)
363
+ @InstanceId = params['InstanceId']
364
+ @ConsumerGroup = params['ConsumerGroup']
365
+ end
366
+ end
367
+
368
+ # DescribeConsumerGroup返回参数结构体
369
+ class DescribeConsumerGroupResponse < TencentCloud::Common::AbstractModel
370
+ # @param ConsumerNum: 在线消费者数量
371
+ # @type ConsumerNum: Integer
372
+ # @param Tps: TPS
373
+ # @type Tps: Integer
374
+ # @param ConsumerLag: 消息堆积数量
375
+ # @type ConsumerLag: Integer
376
+ # @param ConsumeType: 消费者类型
377
+ # @type ConsumeType: String
378
+ # @param CreatedTime: 创建时间,秒为单位
379
+ # @type CreatedTime: Integer
380
+ # @param ConsumeMessageOrderly: 顺序投递:true
381
+ # 并发投递:false
382
+ # @type ConsumeMessageOrderly: Boolean
383
+ # @param ConsumeEnable: 是否开启消费
384
+ # @type ConsumeEnable: Boolean
385
+ # @param MaxRetryTimes: 最大重试次数
386
+ # @type MaxRetryTimes: Integer
387
+ # @param Remark: 备注
388
+ # @type Remark: String
389
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
390
+ # @type RequestId: String
391
+
392
+ attr_accessor :ConsumerNum, :Tps, :ConsumerLag, :ConsumeType, :CreatedTime, :ConsumeMessageOrderly, :ConsumeEnable, :MaxRetryTimes, :Remark, :RequestId
393
+
394
+ def initialize(consumernum=nil, tps=nil, consumerlag=nil, consumetype=nil, createdtime=nil, consumemessageorderly=nil, consumeenable=nil, maxretrytimes=nil, remark=nil, requestid=nil)
395
+ @ConsumerNum = consumernum
396
+ @Tps = tps
397
+ @ConsumerLag = consumerlag
398
+ @ConsumeType = consumetype
399
+ @CreatedTime = createdtime
400
+ @ConsumeMessageOrderly = consumemessageorderly
401
+ @ConsumeEnable = consumeenable
402
+ @MaxRetryTimes = maxretrytimes
403
+ @Remark = remark
404
+ @RequestId = requestid
405
+ end
406
+
407
+ def deserialize(params)
408
+ @ConsumerNum = params['ConsumerNum']
409
+ @Tps = params['Tps']
410
+ @ConsumerLag = params['ConsumerLag']
411
+ @ConsumeType = params['ConsumeType']
412
+ @CreatedTime = params['CreatedTime']
413
+ @ConsumeMessageOrderly = params['ConsumeMessageOrderly']
414
+ @ConsumeEnable = params['ConsumeEnable']
415
+ @MaxRetryTimes = params['MaxRetryTimes']
416
+ @Remark = params['Remark']
417
+ @RequestId = params['RequestId']
418
+ end
419
+ end
420
+
154
421
  # DescribeInstanceList请求参数结构体
155
422
  class DescribeInstanceListRequest < TencentCloud::Common::AbstractModel
156
423
  # @param Offset: 查询起始位置
@@ -437,6 +704,137 @@ module TencentCloud
437
704
  end
438
705
  end
439
706
 
707
+ # DescribeTopic请求参数结构体
708
+ class DescribeTopicRequest < TencentCloud::Common::AbstractModel
709
+ # @param InstanceId: 实例ID
710
+ # @type InstanceId: String
711
+ # @param Topic: 主题
712
+ # @type Topic: String
713
+ # @param Offset: 查询起始位置
714
+ # @type Offset: Integer
715
+ # @param Limit: 查询结果限制数量
716
+ # @type Limit: Integer
717
+ # @param Filters: 查询条件列表
718
+ # @type Filters: Array
719
+
720
+ attr_accessor :InstanceId, :Topic, :Offset, :Limit, :Filters
721
+
722
+ def initialize(instanceid=nil, topic=nil, offset=nil, limit=nil, filters=nil)
723
+ @InstanceId = instanceid
724
+ @Topic = topic
725
+ @Offset = offset
726
+ @Limit = limit
727
+ @Filters = filters
728
+ end
729
+
730
+ def deserialize(params)
731
+ @InstanceId = params['InstanceId']
732
+ @Topic = params['Topic']
733
+ @Offset = params['Offset']
734
+ @Limit = params['Limit']
735
+ unless params['Filters'].nil?
736
+ @Filters = []
737
+ params['Filters'].each do |i|
738
+ filter_tmp = Filter.new
739
+ filter_tmp.deserialize(i)
740
+ @Filters << filter_tmp
741
+ end
742
+ end
743
+ end
744
+ end
745
+
746
+ # DescribeTopic返回参数结构体
747
+ class DescribeTopicResponse < TencentCloud::Common::AbstractModel
748
+ # @param InstanceId: 实例ID
749
+ # @type InstanceId: String
750
+ # @param Topic: 主题名称
751
+ # @type Topic: String
752
+ # @param TopicType: 主题类型
753
+ # UNSPECIFIED:未指定,
754
+ # NORMAL:普通消息,
755
+ # FIFO:顺序消息,
756
+ # DELAY:延时消息,
757
+ # TRANSACTION:事务消息
758
+ # @type TopicType: String
759
+ # @param Remark: 备注
760
+ # @type Remark: String
761
+ # @param CreatedTime: 创建时间,秒为单位
762
+ # @type CreatedTime: Integer
763
+ # @param LastUpdateTime: 最后写入时间,秒为单位
764
+ # @type LastUpdateTime: Integer
765
+ # @param SubscriptionCount: 订阅数量
766
+ # @type SubscriptionCount: Integer
767
+ # @param SubscriptionData: 订阅关系列表
768
+ # @type SubscriptionData: Array
769
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
770
+ # @type RequestId: String
771
+
772
+ attr_accessor :InstanceId, :Topic, :TopicType, :Remark, :CreatedTime, :LastUpdateTime, :SubscriptionCount, :SubscriptionData, :RequestId
773
+
774
+ def initialize(instanceid=nil, topic=nil, topictype=nil, remark=nil, createdtime=nil, lastupdatetime=nil, subscriptioncount=nil, subscriptiondata=nil, requestid=nil)
775
+ @InstanceId = instanceid
776
+ @Topic = topic
777
+ @TopicType = topictype
778
+ @Remark = remark
779
+ @CreatedTime = createdtime
780
+ @LastUpdateTime = lastupdatetime
781
+ @SubscriptionCount = subscriptioncount
782
+ @SubscriptionData = subscriptiondata
783
+ @RequestId = requestid
784
+ end
785
+
786
+ def deserialize(params)
787
+ @InstanceId = params['InstanceId']
788
+ @Topic = params['Topic']
789
+ @TopicType = params['TopicType']
790
+ @Remark = params['Remark']
791
+ @CreatedTime = params['CreatedTime']
792
+ @LastUpdateTime = params['LastUpdateTime']
793
+ @SubscriptionCount = params['SubscriptionCount']
794
+ unless params['SubscriptionData'].nil?
795
+ @SubscriptionData = []
796
+ params['SubscriptionData'].each do |i|
797
+ subscriptiondata_tmp = SubscriptionData.new
798
+ subscriptiondata_tmp.deserialize(i)
799
+ @SubscriptionData << subscriptiondata_tmp
800
+ end
801
+ end
802
+ @RequestId = params['RequestId']
803
+ end
804
+ end
805
+
806
+ # DescribeTopicStatsOp请求参数结构体
807
+ class DescribeTopicStatsOpRequest < TencentCloud::Common::AbstractModel
808
+ # @param Topic: 主题
809
+ # @type Topic: String
810
+
811
+ attr_accessor :Topic
812
+
813
+ def initialize(topic=nil)
814
+ @Topic = topic
815
+ end
816
+
817
+ def deserialize(params)
818
+ @Topic = params['Topic']
819
+ end
820
+ end
821
+
822
+ # DescribeTopicStatsOp返回参数结构体
823
+ class DescribeTopicStatsOpResponse < TencentCloud::Common::AbstractModel
824
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
825
+ # @type RequestId: String
826
+
827
+ attr_accessor :RequestId
828
+
829
+ def initialize(requestid=nil)
830
+ @RequestId = requestid
831
+ end
832
+
833
+ def deserialize(params)
834
+ @RequestId = params['RequestId']
835
+ end
836
+ end
837
+
440
838
  # 接入点信息
441
839
  class Endpoint < TencentCloud::Common::AbstractModel
442
840
  # @param Type: 接入点类型,
@@ -660,6 +1058,59 @@ module TencentCloud
660
1058
  end
661
1059
  end
662
1060
 
1061
+ # ModifyConsumerGroup请求参数结构体
1062
+ class ModifyConsumerGroupRequest < TencentCloud::Common::AbstractModel
1063
+ # @param InstanceId: 实例ID
1064
+ # @type InstanceId: String
1065
+ # @param ConsumerGroup: 消费组名称
1066
+ # @type ConsumerGroup: String
1067
+ # @param ConsumeEnable: 是否开启消费
1068
+ # @type ConsumeEnable: Boolean
1069
+ # @param ConsumeMessageOrderly: 顺序投递:true
1070
+ # 并发投递:false
1071
+ # @type ConsumeMessageOrderly: Boolean
1072
+ # @param MaxRetryTimes: 最大重试次数
1073
+ # @type MaxRetryTimes: Integer
1074
+ # @param Remark: 备注
1075
+ # @type Remark: String
1076
+
1077
+ attr_accessor :InstanceId, :ConsumerGroup, :ConsumeEnable, :ConsumeMessageOrderly, :MaxRetryTimes, :Remark
1078
+
1079
+ def initialize(instanceid=nil, consumergroup=nil, consumeenable=nil, consumemessageorderly=nil, maxretrytimes=nil, remark=nil)
1080
+ @InstanceId = instanceid
1081
+ @ConsumerGroup = consumergroup
1082
+ @ConsumeEnable = consumeenable
1083
+ @ConsumeMessageOrderly = consumemessageorderly
1084
+ @MaxRetryTimes = maxretrytimes
1085
+ @Remark = remark
1086
+ end
1087
+
1088
+ def deserialize(params)
1089
+ @InstanceId = params['InstanceId']
1090
+ @ConsumerGroup = params['ConsumerGroup']
1091
+ @ConsumeEnable = params['ConsumeEnable']
1092
+ @ConsumeMessageOrderly = params['ConsumeMessageOrderly']
1093
+ @MaxRetryTimes = params['MaxRetryTimes']
1094
+ @Remark = params['Remark']
1095
+ end
1096
+ end
1097
+
1098
+ # ModifyConsumerGroup返回参数结构体
1099
+ class ModifyConsumerGroupResponse < TencentCloud::Common::AbstractModel
1100
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1101
+ # @type RequestId: String
1102
+
1103
+ attr_accessor :RequestId
1104
+
1105
+ def initialize(requestid=nil)
1106
+ @RequestId = requestid
1107
+ end
1108
+
1109
+ def deserialize(params)
1110
+ @RequestId = params['RequestId']
1111
+ end
1112
+ end
1113
+
663
1114
  # ModifyInstance请求参数结构体
664
1115
  class ModifyInstanceRequest < TencentCloud::Common::AbstractModel
665
1116
  # @param InstanceId: 实例ID
@@ -716,6 +1167,132 @@ module TencentCloud
716
1167
  end
717
1168
  end
718
1169
 
1170
+ # ModifyTopic请求参数结构体
1171
+ class ModifyTopicRequest < TencentCloud::Common::AbstractModel
1172
+ # @param InstanceId: 实例ID
1173
+ # @type InstanceId: String
1174
+ # @param Topic: 主题
1175
+ # @type Topic: String
1176
+ # @param QueueNum: 队列数量
1177
+ # @type QueueNum: Integer
1178
+ # @param Remark: 备注信息
1179
+ # @type Remark: String
1180
+
1181
+ attr_accessor :InstanceId, :Topic, :QueueNum, :Remark
1182
+
1183
+ def initialize(instanceid=nil, topic=nil, queuenum=nil, remark=nil)
1184
+ @InstanceId = instanceid
1185
+ @Topic = topic
1186
+ @QueueNum = queuenum
1187
+ @Remark = remark
1188
+ end
1189
+
1190
+ def deserialize(params)
1191
+ @InstanceId = params['InstanceId']
1192
+ @Topic = params['Topic']
1193
+ @QueueNum = params['QueueNum']
1194
+ @Remark = params['Remark']
1195
+ end
1196
+ end
1197
+
1198
+ # ModifyTopic返回参数结构体
1199
+ class ModifyTopicResponse < TencentCloud::Common::AbstractModel
1200
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1201
+ # @type RequestId: String
1202
+
1203
+ attr_accessor :RequestId
1204
+
1205
+ def initialize(requestid=nil)
1206
+ @RequestId = requestid
1207
+ end
1208
+
1209
+ def deserialize(params)
1210
+ @RequestId = params['RequestId']
1211
+ end
1212
+ end
1213
+
1214
+ # 主题与消费组的订阅关系数据
1215
+ class SubscriptionData < TencentCloud::Common::AbstractModel
1216
+ # @param InstanceId: 实例ID
1217
+ # 注意:此字段可能返回 null,表示取不到有效值。
1218
+ # @type InstanceId: String
1219
+ # @param Topic: 主题名称
1220
+ # 注意:此字段可能返回 null,表示取不到有效值。
1221
+ # @type Topic: String
1222
+ # @param TopicType: 主题类型
1223
+ # 注意:此字段可能返回 null,表示取不到有效值。
1224
+ # @type TopicType: String
1225
+ # @param TopicQueueNum: 单个节点上主题队列数
1226
+ # 注意:此字段可能返回 null,表示取不到有效值。
1227
+ # @type TopicQueueNum: Integer
1228
+ # @param ConsumerGroup: 消费组名称
1229
+ # 注意:此字段可能返回 null,表示取不到有效值。
1230
+ # @type ConsumerGroup: String
1231
+ # @param IsOnline: 是否在线
1232
+ # 注意:此字段可能返回 null,表示取不到有效值。
1233
+ # @type IsOnline: Boolean
1234
+ # @param ConsumeType: 消费类型
1235
+ # 注意:此字段可能返回 null,表示取不到有效值。
1236
+ # @type ConsumeType: String
1237
+ # @param SubString: 订阅规则
1238
+ # 注意:此字段可能返回 null,表示取不到有效值。
1239
+ # @type SubString: String
1240
+ # @param ExpressionType: 过滤类型
1241
+ # 注意:此字段可能返回 null,表示取不到有效值。
1242
+ # @type ExpressionType: String
1243
+ # @param Consistency: 订阅一致性
1244
+ # 注意:此字段可能返回 null,表示取不到有效值。
1245
+ # @type Consistency: Integer
1246
+ # @param ConsumerLag: 消费堆积
1247
+ # 注意:此字段可能返回 null,表示取不到有效值。
1248
+ # @type ConsumerLag: Integer
1249
+ # @param LastUpdateTime: 最后消费进度更新时间,秒为单位
1250
+ # 注意:此字段可能返回 null,表示取不到有效值。
1251
+ # @type LastUpdateTime: Integer
1252
+ # @param MaxRetryTimes: 最大重试次数
1253
+ # 注意:此字段可能返回 null,表示取不到有效值。
1254
+ # @type MaxRetryTimes: Integer
1255
+ # @param ConsumeMessageOrderly: 是否顺序消费
1256
+ # 注意:此字段可能返回 null,表示取不到有效值。
1257
+ # @type ConsumeMessageOrderly: Boolean
1258
+
1259
+ attr_accessor :InstanceId, :Topic, :TopicType, :TopicQueueNum, :ConsumerGroup, :IsOnline, :ConsumeType, :SubString, :ExpressionType, :Consistency, :ConsumerLag, :LastUpdateTime, :MaxRetryTimes, :ConsumeMessageOrderly
1260
+
1261
+ def initialize(instanceid=nil, topic=nil, topictype=nil, topicqueuenum=nil, consumergroup=nil, isonline=nil, consumetype=nil, substring=nil, expressiontype=nil, consistency=nil, consumerlag=nil, lastupdatetime=nil, maxretrytimes=nil, consumemessageorderly=nil)
1262
+ @InstanceId = instanceid
1263
+ @Topic = topic
1264
+ @TopicType = topictype
1265
+ @TopicQueueNum = topicqueuenum
1266
+ @ConsumerGroup = consumergroup
1267
+ @IsOnline = isonline
1268
+ @ConsumeType = consumetype
1269
+ @SubString = substring
1270
+ @ExpressionType = expressiontype
1271
+ @Consistency = consistency
1272
+ @ConsumerLag = consumerlag
1273
+ @LastUpdateTime = lastupdatetime
1274
+ @MaxRetryTimes = maxretrytimes
1275
+ @ConsumeMessageOrderly = consumemessageorderly
1276
+ end
1277
+
1278
+ def deserialize(params)
1279
+ @InstanceId = params['InstanceId']
1280
+ @Topic = params['Topic']
1281
+ @TopicType = params['TopicType']
1282
+ @TopicQueueNum = params['TopicQueueNum']
1283
+ @ConsumerGroup = params['ConsumerGroup']
1284
+ @IsOnline = params['IsOnline']
1285
+ @ConsumeType = params['ConsumeType']
1286
+ @SubString = params['SubString']
1287
+ @ExpressionType = params['ExpressionType']
1288
+ @Consistency = params['Consistency']
1289
+ @ConsumerLag = params['ConsumerLag']
1290
+ @LastUpdateTime = params['LastUpdateTime']
1291
+ @MaxRetryTimes = params['MaxRetryTimes']
1292
+ @ConsumeMessageOrderly = params['ConsumeMessageOrderly']
1293
+ end
1294
+ end
1295
+
719
1296
  # 标签数据
720
1297
  class Tag < TencentCloud::Common::AbstractModel
721
1298
  # @param TagKey: 标签名称
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.656
4
+ version: 3.0.657
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-09-11 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common