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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200217/client.rb +24 -0
- data/lib/v20200217/models.rb +52 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63e647541838f13b04d179299ff518eeb5968570
|
4
|
+
data.tar.gz: 5a3f2ff5a24dcff39736d8a0e27bf11099733291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f82c8109ca38f329b9e423b3b3a891c7b6b1b5576404115362f56005b15b72eaf044d91e841cabae3652a40a5042102641df1c0cb12175513ee1c3e54e1de6a9
|
7
|
+
data.tar.gz: 4556bdb915bd008e3a1f389924cde560267ee24af322b9c16895a5a745579f3a036167cfdb7ec943d62f60c09cb0dbaef81ea139322f5543f4ee91886b138023
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.285
|
data/lib/v20200217/client.rb
CHANGED
@@ -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.
|
data/lib/v20200217/models.rb
CHANGED
@@ -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: 消息保留时长
|