tencentcloud-sdk-trocket 3.0.707 → 3.0.708
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/v20230308/client.rb +48 -0
- data/lib/v20230308/models.rb +191 -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: ddd4b6957b5510cb14d5ea98272824c370d304cd
|
4
|
+
data.tar.gz: c65de0cfa05c42ea599a9d181042cc6f568d4f94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbbdbce299380b0e9f1a83b180b0b95b86773126b76f11f3e8f1bcba4fc03960eb3f59f128279eb3ef1dcbc63d0089e9af119bf99d57cf85a5b915883e26e443
|
7
|
+
data.tar.gz: 52fdaef85e85340e7f40dd6f752ab6d41b8efe2a12bd6e264dc58190d026e643511fb90684da8c2e1e08c4d3de123a1eca1dca16c7615e2155ea36663d593b78
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.708
|
data/lib/v20230308/client.rb
CHANGED
@@ -429,6 +429,54 @@ module TencentCloud
|
|
429
429
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
430
430
|
end
|
431
431
|
|
432
|
+
# 导入消费者组列表
|
433
|
+
|
434
|
+
# @param request: Request instance for ImportSourceClusterConsumerGroups.
|
435
|
+
# @type request: :class:`Tencentcloud::trocket::V20230308::ImportSourceClusterConsumerGroupsRequest`
|
436
|
+
# @rtype: :class:`Tencentcloud::trocket::V20230308::ImportSourceClusterConsumerGroupsResponse`
|
437
|
+
def ImportSourceClusterConsumerGroups(request)
|
438
|
+
body = send_request('ImportSourceClusterConsumerGroups', request.serialize)
|
439
|
+
response = JSON.parse(body)
|
440
|
+
if response['Response'].key?('Error') == false
|
441
|
+
model = ImportSourceClusterConsumerGroupsResponse.new
|
442
|
+
model.deserialize(response['Response'])
|
443
|
+
model
|
444
|
+
else
|
445
|
+
code = response['Response']['Error']['Code']
|
446
|
+
message = response['Response']['Error']['Message']
|
447
|
+
reqid = response['Response']['RequestId']
|
448
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
449
|
+
end
|
450
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
451
|
+
raise e
|
452
|
+
rescue StandardError => e
|
453
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
454
|
+
end
|
455
|
+
|
456
|
+
# 导入topic列表
|
457
|
+
|
458
|
+
# @param request: Request instance for ImportSourceClusterTopics.
|
459
|
+
# @type request: :class:`Tencentcloud::trocket::V20230308::ImportSourceClusterTopicsRequest`
|
460
|
+
# @rtype: :class:`Tencentcloud::trocket::V20230308::ImportSourceClusterTopicsResponse`
|
461
|
+
def ImportSourceClusterTopics(request)
|
462
|
+
body = send_request('ImportSourceClusterTopics', request.serialize)
|
463
|
+
response = JSON.parse(body)
|
464
|
+
if response['Response'].key?('Error') == false
|
465
|
+
model = ImportSourceClusterTopicsResponse.new
|
466
|
+
model.deserialize(response['Response'])
|
467
|
+
model
|
468
|
+
else
|
469
|
+
code = response['Response']['Error']['Code']
|
470
|
+
message = response['Response']['Error']['Message']
|
471
|
+
reqid = response['Response']['RequestId']
|
472
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
473
|
+
end
|
474
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
475
|
+
raise e
|
476
|
+
rescue StandardError => e
|
477
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
478
|
+
end
|
479
|
+
|
432
480
|
# 修改消费组属性
|
433
481
|
|
434
482
|
# @param request: Request instance for ModifyConsumerGroup.
|
data/lib/v20230308/models.rb
CHANGED
@@ -1182,6 +1182,92 @@ module TencentCloud
|
|
1182
1182
|
end
|
1183
1183
|
end
|
1184
1184
|
|
1185
|
+
# ImportSourceClusterConsumerGroups请求参数结构体
|
1186
|
+
class ImportSourceClusterConsumerGroupsRequest < TencentCloud::Common::AbstractModel
|
1187
|
+
# @param TaskId: 任务ID
|
1188
|
+
# @type TaskId: String
|
1189
|
+
# @param GroupList: 待导入的消费组列表
|
1190
|
+
# @type GroupList: Array
|
1191
|
+
|
1192
|
+
attr_accessor :TaskId, :GroupList
|
1193
|
+
|
1194
|
+
def initialize(taskid=nil, grouplist=nil)
|
1195
|
+
@TaskId = taskid
|
1196
|
+
@GroupList = grouplist
|
1197
|
+
end
|
1198
|
+
|
1199
|
+
def deserialize(params)
|
1200
|
+
@TaskId = params['TaskId']
|
1201
|
+
unless params['GroupList'].nil?
|
1202
|
+
@GroupList = []
|
1203
|
+
params['GroupList'].each do |i|
|
1204
|
+
sourceclustergroupconfig_tmp = SourceClusterGroupConfig.new
|
1205
|
+
sourceclustergroupconfig_tmp.deserialize(i)
|
1206
|
+
@GroupList << sourceclustergroupconfig_tmp
|
1207
|
+
end
|
1208
|
+
end
|
1209
|
+
end
|
1210
|
+
end
|
1211
|
+
|
1212
|
+
# ImportSourceClusterConsumerGroups返回参数结构体
|
1213
|
+
class ImportSourceClusterConsumerGroupsResponse < TencentCloud::Common::AbstractModel
|
1214
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1215
|
+
# @type RequestId: String
|
1216
|
+
|
1217
|
+
attr_accessor :RequestId
|
1218
|
+
|
1219
|
+
def initialize(requestid=nil)
|
1220
|
+
@RequestId = requestid
|
1221
|
+
end
|
1222
|
+
|
1223
|
+
def deserialize(params)
|
1224
|
+
@RequestId = params['RequestId']
|
1225
|
+
end
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# ImportSourceClusterTopics请求参数结构体
|
1229
|
+
class ImportSourceClusterTopicsRequest < TencentCloud::Common::AbstractModel
|
1230
|
+
# @param TaskId: 任务ID
|
1231
|
+
# @type TaskId: String
|
1232
|
+
# @param TopicList: 待导入的主题列表
|
1233
|
+
# @type TopicList: Array
|
1234
|
+
|
1235
|
+
attr_accessor :TaskId, :TopicList
|
1236
|
+
|
1237
|
+
def initialize(taskid=nil, topiclist=nil)
|
1238
|
+
@TaskId = taskid
|
1239
|
+
@TopicList = topiclist
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
def deserialize(params)
|
1243
|
+
@TaskId = params['TaskId']
|
1244
|
+
unless params['TopicList'].nil?
|
1245
|
+
@TopicList = []
|
1246
|
+
params['TopicList'].each do |i|
|
1247
|
+
sourceclustertopicconfig_tmp = SourceClusterTopicConfig.new
|
1248
|
+
sourceclustertopicconfig_tmp.deserialize(i)
|
1249
|
+
@TopicList << sourceclustertopicconfig_tmp
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
end
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
# ImportSourceClusterTopics返回参数结构体
|
1256
|
+
class ImportSourceClusterTopicsResponse < TencentCloud::Common::AbstractModel
|
1257
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1258
|
+
# @type RequestId: String
|
1259
|
+
|
1260
|
+
attr_accessor :RequestId
|
1261
|
+
|
1262
|
+
def initialize(requestid=nil)
|
1263
|
+
@RequestId = requestid
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
def deserialize(params)
|
1267
|
+
@RequestId = params['RequestId']
|
1268
|
+
end
|
1269
|
+
end
|
1270
|
+
|
1185
1271
|
# 实例列表页中的实例信息
|
1186
1272
|
class InstanceItem < TencentCloud::Common::AbstractModel
|
1187
1273
|
# @param InstanceId: 实例ID
|
@@ -1566,6 +1652,111 @@ module TencentCloud
|
|
1566
1652
|
end
|
1567
1653
|
end
|
1568
1654
|
|
1655
|
+
# 消费组配置信息
|
1656
|
+
class SourceClusterGroupConfig < TencentCloud::Common::AbstractModel
|
1657
|
+
# @param GroupName: 消费组名称
|
1658
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1659
|
+
# @type GroupName: String
|
1660
|
+
# @param Remark: 备注信息
|
1661
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1662
|
+
# @type Remark: String
|
1663
|
+
# @param Imported: 是否已导入,作为入参时无效
|
1664
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1665
|
+
# @type Imported: Boolean
|
1666
|
+
# @param Namespace: 命名空间,仅4.x集群有效
|
1667
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1668
|
+
# @type Namespace: String
|
1669
|
+
# @param ImportStatus: 导入状态
|
1670
|
+
# Unknown 未知
|
1671
|
+
# Success 成功
|
1672
|
+
# Failure 失败
|
1673
|
+
# AlreadyExists 已存在
|
1674
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1675
|
+
# @type ImportStatus: String
|
1676
|
+
|
1677
|
+
attr_accessor :GroupName, :Remark, :Imported, :Namespace, :ImportStatus
|
1678
|
+
|
1679
|
+
def initialize(groupname=nil, remark=nil, imported=nil, namespace=nil, importstatus=nil)
|
1680
|
+
@GroupName = groupname
|
1681
|
+
@Remark = remark
|
1682
|
+
@Imported = imported
|
1683
|
+
@Namespace = namespace
|
1684
|
+
@ImportStatus = importstatus
|
1685
|
+
end
|
1686
|
+
|
1687
|
+
def deserialize(params)
|
1688
|
+
@GroupName = params['GroupName']
|
1689
|
+
@Remark = params['Remark']
|
1690
|
+
@Imported = params['Imported']
|
1691
|
+
@Namespace = params['Namespace']
|
1692
|
+
@ImportStatus = params['ImportStatus']
|
1693
|
+
end
|
1694
|
+
end
|
1695
|
+
|
1696
|
+
# 源集群主题配置
|
1697
|
+
class SourceClusterTopicConfig < TencentCloud::Common::AbstractModel
|
1698
|
+
# @param TopicName: 主题名称
|
1699
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1700
|
+
# @type TopicName: String
|
1701
|
+
# @param TopicType: 主题类型,
|
1702
|
+
# 5.x版本
|
1703
|
+
# UNSPECIFIED 未指定
|
1704
|
+
# NORMAL 普通消息
|
1705
|
+
# FIFO 顺序消息
|
1706
|
+
# DELAY 延迟消息
|
1707
|
+
# TRANSACTION 事务消息
|
1708
|
+
|
1709
|
+
# 4.x版本
|
1710
|
+
# Normal 普通消息
|
1711
|
+
# PartitionedOrder 分区顺序消息
|
1712
|
+
# Transaction 事务消息
|
1713
|
+
# DelayScheduled 延时消息
|
1714
|
+
|
1715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1716
|
+
# @type TopicType: String
|
1717
|
+
# @param QueueNum: 队列数
|
1718
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1719
|
+
# @type QueueNum: Integer
|
1720
|
+
# @param Remark: 备注信息
|
1721
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1722
|
+
# @type Remark: String
|
1723
|
+
# @param Imported: 是否已导入,作为入参时无效
|
1724
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1725
|
+
# @type Imported: Boolean
|
1726
|
+
# @param Namespace: 命名空间,仅4.x集群有效
|
1727
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1728
|
+
# @type Namespace: String
|
1729
|
+
# @param ImportStatus: 导入状态,
|
1730
|
+
# Unknown 未知,
|
1731
|
+
# AlreadyExists 已存在,
|
1732
|
+
# Success 成功,
|
1733
|
+
# Failure 失败
|
1734
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1735
|
+
# @type ImportStatus: String
|
1736
|
+
|
1737
|
+
attr_accessor :TopicName, :TopicType, :QueueNum, :Remark, :Imported, :Namespace, :ImportStatus
|
1738
|
+
|
1739
|
+
def initialize(topicname=nil, topictype=nil, queuenum=nil, remark=nil, imported=nil, namespace=nil, importstatus=nil)
|
1740
|
+
@TopicName = topicname
|
1741
|
+
@TopicType = topictype
|
1742
|
+
@QueueNum = queuenum
|
1743
|
+
@Remark = remark
|
1744
|
+
@Imported = imported
|
1745
|
+
@Namespace = namespace
|
1746
|
+
@ImportStatus = importstatus
|
1747
|
+
end
|
1748
|
+
|
1749
|
+
def deserialize(params)
|
1750
|
+
@TopicName = params['TopicName']
|
1751
|
+
@TopicType = params['TopicType']
|
1752
|
+
@QueueNum = params['QueueNum']
|
1753
|
+
@Remark = params['Remark']
|
1754
|
+
@Imported = params['Imported']
|
1755
|
+
@Namespace = params['Namespace']
|
1756
|
+
@ImportStatus = params['ImportStatus']
|
1757
|
+
end
|
1758
|
+
end
|
1759
|
+
|
1569
1760
|
# 主题与消费组的订阅关系数据
|
1570
1761
|
class SubscriptionData < TencentCloud::Common::AbstractModel
|
1571
1762
|
# @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.
|
4
|
+
version: 3.0.708
|
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-
|
11
|
+
date: 2023-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|