tencentcloud-sdk-tdmq 1.0.284 → 1.0.285

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: 5a8e71b642a9ebd6652554adf142674a67c84326
4
- data.tar.gz: 9df939a2652a2f60df0cc4042a674955c68a9f84
3
+ metadata.gz: 63e647541838f13b04d179299ff518eeb5968570
4
+ data.tar.gz: 5a3f2ff5a24dcff39736d8a0e27bf11099733291
5
5
  SHA512:
6
- metadata.gz: 3f5412267d55c95a96b8db21489696ceb2d23f2c8629dfbf3769f4b85d3b9503c7ae6626abeeb7591d8e5cea6b189768e32a95f0523449796458fc88809b9494
7
- data.tar.gz: ca09a7322a7f2ddcd117b06cb6de70cbe03548d10a5d86a1508ed77a9fd4634a3dfffa45a16b4fe1a3635c8d724035802e4f483e374926baf6037ab1431590da
6
+ metadata.gz: f82c8109ca38f329b9e423b3b3a891c7b6b1b5576404115362f56005b15b72eaf044d91e841cabae3652a40a5042102641df1c0cb12175513ee1c3e54e1de6a9
7
+ data.tar.gz: 4556bdb915bd008e3a1f389924cde560267ee24af322b9c16895a5a745579f3a036167cfdb7ec943d62f60c09cb0dbaef81ea139322f5543f4ee91886b138023
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.284
1
+ 1.0.285
@@ -2213,6 +2213,30 @@ module TencentCloud
2213
2213
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2214
2214
  end
2215
2215
 
2216
+ # 重置指定Group的消费位点到指定时间戳
2217
+
2218
+ # @param request: Request instance for ResetRocketMQConsumerOffSet.
2219
+ # @type request: :class:`Tencentcloud::tdmq::V20200217::ResetRocketMQConsumerOffSetRequest`
2220
+ # @rtype: :class:`Tencentcloud::tdmq::V20200217::ResetRocketMQConsumerOffSetResponse`
2221
+ def ResetRocketMQConsumerOffSet(request)
2222
+ body = send_request('ResetRocketMQConsumerOffSet', request.serialize)
2223
+ response = JSON.parse(body)
2224
+ if response['Response'].key?('Error') == false
2225
+ model = ResetRocketMQConsumerOffSetResponse.new
2226
+ model.deserialize(response['Response'])
2227
+ model
2228
+ else
2229
+ code = response['Response']['Error']['Code']
2230
+ message = response['Response']['Error']['Message']
2231
+ reqid = response['Response']['RequestId']
2232
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2233
+ end
2234
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2235
+ raise e
2236
+ rescue StandardError => e
2237
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2238
+ end
2239
+
2216
2240
  # 回溯cmq队列
2217
2241
 
2218
2242
  # @param request: Request instance for RewindCmqQueue.
@@ -6443,6 +6443,58 @@ module TencentCloud
6443
6443
  end
6444
6444
  end
6445
6445
 
6446
+ # ResetRocketMQConsumerOffSet请求参数结构体
6447
+ class ResetRocketMQConsumerOffSetRequest < TencentCloud::Common::AbstractModel
6448
+ # @param ClusterId: 集群ID
6449
+ # @type ClusterId: String
6450
+ # @param NamespaceId: 命名空间名称
6451
+ # @type NamespaceId: String
6452
+ # @param GroupId: 消费组名称
6453
+ # @type GroupId: String
6454
+ # @param Topic: 主题名称
6455
+ # @type Topic: String
6456
+ # @param Type: 重置方式,0表示从最新位点开始,1表示从指定时间点开始
6457
+ # @type Type: Integer
6458
+ # @param ResetTimestamp: 重置指定的时间戳,仅在 Type 为1是生效,以毫秒为单位
6459
+ # @type ResetTimestamp: Integer
6460
+
6461
+ attr_accessor :ClusterId, :NamespaceId, :GroupId, :Topic, :Type, :ResetTimestamp
6462
+
6463
+ def initialize(clusterid=nil, namespaceid=nil, groupid=nil, topic=nil, type=nil, resettimestamp=nil)
6464
+ @ClusterId = clusterid
6465
+ @NamespaceId = namespaceid
6466
+ @GroupId = groupid
6467
+ @Topic = topic
6468
+ @Type = type
6469
+ @ResetTimestamp = resettimestamp
6470
+ end
6471
+
6472
+ def deserialize(params)
6473
+ @ClusterId = params['ClusterId']
6474
+ @NamespaceId = params['NamespaceId']
6475
+ @GroupId = params['GroupId']
6476
+ @Topic = params['Topic']
6477
+ @Type = params['Type']
6478
+ @ResetTimestamp = params['ResetTimestamp']
6479
+ end
6480
+ end
6481
+
6482
+ # ResetRocketMQConsumerOffSet返回参数结构体
6483
+ class ResetRocketMQConsumerOffSetResponse < TencentCloud::Common::AbstractModel
6484
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6485
+ # @type RequestId: String
6486
+
6487
+ attr_accessor :RequestId
6488
+
6489
+ def initialize(requestid=nil)
6490
+ @RequestId = requestid
6491
+ end
6492
+
6493
+ def deserialize(params)
6494
+ @RequestId = params['RequestId']
6495
+ end
6496
+ end
6497
+
6446
6498
  # 消息保留策略
6447
6499
  class RetentionPolicy < TencentCloud::Common::AbstractModel
6448
6500
  # @param TimeInMinutes: 消息保留时长
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tdmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.284
4
+ version: 1.0.285
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud