tencentcloud-sdk-tdmq 3.0.694 → 3.0.696
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200217/client.rb +24 -0
- data/lib/v20200217/models.rb +145 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00715fd2b149ab5da213550601174b544349c17d
|
4
|
+
data.tar.gz: 751b41bb2ef4bc1e57d41242afe67fa6e6171900
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68f53a49789a25d0a5120bc777e73d9fade4034c9787658866f58bdb2048b06b92a7db45f9089e9e39457c3213c625c837304ff2fbde09ed1d8ada033e2ebd23
|
7
|
+
data.tar.gz: f8560f4235a56669d878ee3dec847af9c20ba117ad21497bcac52de85bd159ca639340874392648ff22a86cf44ee406bd3d1f7a05ec7cc0b57712b3aeb82ab7c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.696
|
data/lib/v20200217/client.rb
CHANGED
@@ -245,6 +245,30 @@ module TencentCloud
|
|
245
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
246
|
end
|
247
247
|
|
248
|
+
# 创建专业集群——预付费,仅通过api调用
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateProCluster.
|
251
|
+
# @type request: :class:`Tencentcloud::tdmq::V20200217::CreateProClusterRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::tdmq::V20200217::CreateProClusterResponse`
|
253
|
+
def CreateProCluster(request)
|
254
|
+
body = send_request('CreateProCluster', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateProClusterResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
248
272
|
# 创建RabbitMQ的用户
|
249
273
|
|
250
274
|
# @param request: Request instance for CreateRabbitMQUser.
|
data/lib/v20200217/models.rb
CHANGED
@@ -1489,6 +1489,102 @@ module TencentCloud
|
|
1489
1489
|
end
|
1490
1490
|
end
|
1491
1491
|
|
1492
|
+
# CreateProCluster请求参数结构体
|
1493
|
+
class CreateProClusterRequest < TencentCloud::Common::AbstractModel
|
1494
|
+
# @param ZoneIds: 多可用区部署选择三个可用区,示例"200002","200003","200004"
|
1495
|
+
|
1496
|
+
# 单可用区部署选择一个可用区,示例"200002"
|
1497
|
+
# @type ZoneIds: String
|
1498
|
+
# @param ProductName: 集群规格代号
|
1499
|
+
# 参考 [专业集群规格](https://cloud.tencent.com/document/product/1179/83705)
|
1500
|
+
# @type ProductName: String
|
1501
|
+
# @param StorageSize: 存储规格
|
1502
|
+
# 参考 [专业集群规格](https://cloud.tencent.com/document/product/1179/83705)
|
1503
|
+
# @type StorageSize: Integer
|
1504
|
+
# @param AutoRenewFlag: 1: true,开启自动按月续费
|
1505
|
+
|
1506
|
+
# 0: false,关闭自动按月续费
|
1507
|
+
# @type AutoRenewFlag: Integer
|
1508
|
+
# @param TimeSpan: 购买时长,取值范围:1~50
|
1509
|
+
# @type TimeSpan: Integer
|
1510
|
+
# @param Tags: 集群的标签列表(已废弃)
|
1511
|
+
# @type Tags: Array
|
1512
|
+
# @param ClusterName: 集群名称,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。
|
1513
|
+
# @type ClusterName: String
|
1514
|
+
# @param AutoVoucher: 是否自动选择代金券 1是 0否 默认为0
|
1515
|
+
# @type AutoVoucher: Integer
|
1516
|
+
# @param Vpcs: vpc网络标签
|
1517
|
+
# @type Vpcs: :class:`Tencentcloud::Tdmq.v20200217.models.VpcInfo`
|
1518
|
+
|
1519
|
+
attr_accessor :ZoneIds, :ProductName, :StorageSize, :AutoRenewFlag, :TimeSpan, :Tags, :ClusterName, :AutoVoucher, :Vpcs
|
1520
|
+
|
1521
|
+
def initialize(zoneids=nil, productname=nil, storagesize=nil, autorenewflag=nil, timespan=nil, tags=nil, clustername=nil, autovoucher=nil, vpcs=nil)
|
1522
|
+
@ZoneIds = zoneids
|
1523
|
+
@ProductName = productname
|
1524
|
+
@StorageSize = storagesize
|
1525
|
+
@AutoRenewFlag = autorenewflag
|
1526
|
+
@TimeSpan = timespan
|
1527
|
+
@Tags = tags
|
1528
|
+
@ClusterName = clustername
|
1529
|
+
@AutoVoucher = autovoucher
|
1530
|
+
@Vpcs = vpcs
|
1531
|
+
end
|
1532
|
+
|
1533
|
+
def deserialize(params)
|
1534
|
+
@ZoneIds = params['ZoneIds']
|
1535
|
+
@ProductName = params['ProductName']
|
1536
|
+
@StorageSize = params['StorageSize']
|
1537
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
1538
|
+
@TimeSpan = params['TimeSpan']
|
1539
|
+
unless params['Tags'].nil?
|
1540
|
+
@Tags = []
|
1541
|
+
params['Tags'].each do |i|
|
1542
|
+
tag_tmp = Tag.new
|
1543
|
+
tag_tmp.deserialize(i)
|
1544
|
+
@Tags << tag_tmp
|
1545
|
+
end
|
1546
|
+
end
|
1547
|
+
@ClusterName = params['ClusterName']
|
1548
|
+
@AutoVoucher = params['AutoVoucher']
|
1549
|
+
unless params['Vpcs'].nil?
|
1550
|
+
@Vpcs = VpcInfo.new
|
1551
|
+
@Vpcs.deserialize(params['Vpcs'])
|
1552
|
+
end
|
1553
|
+
end
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
# CreateProCluster返回参数结构体
|
1557
|
+
class CreateProClusterResponse < TencentCloud::Common::AbstractModel
|
1558
|
+
# @param DealName: 子订单号
|
1559
|
+
# @type DealName: String
|
1560
|
+
# @param BigDealId: 订单号
|
1561
|
+
# @type BigDealId: String
|
1562
|
+
# @param ClusterId: 集群Id
|
1563
|
+
# @type ClusterId: String
|
1564
|
+
# @param ClusterName: 集群名称
|
1565
|
+
# @type ClusterName: String
|
1566
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1567
|
+
# @type RequestId: String
|
1568
|
+
|
1569
|
+
attr_accessor :DealName, :BigDealId, :ClusterId, :ClusterName, :RequestId
|
1570
|
+
|
1571
|
+
def initialize(dealname=nil, bigdealid=nil, clusterid=nil, clustername=nil, requestid=nil)
|
1572
|
+
@DealName = dealname
|
1573
|
+
@BigDealId = bigdealid
|
1574
|
+
@ClusterId = clusterid
|
1575
|
+
@ClusterName = clustername
|
1576
|
+
@RequestId = requestid
|
1577
|
+
end
|
1578
|
+
|
1579
|
+
def deserialize(params)
|
1580
|
+
@DealName = params['DealName']
|
1581
|
+
@BigDealId = params['BigDealId']
|
1582
|
+
@ClusterId = params['ClusterId']
|
1583
|
+
@ClusterName = params['ClusterName']
|
1584
|
+
@RequestId = params['RequestId']
|
1585
|
+
end
|
1586
|
+
end
|
1587
|
+
|
1492
1588
|
# CreateRabbitMQUser请求参数结构体
|
1493
1589
|
class CreateRabbitMQUserRequest < TencentCloud::Common::AbstractModel
|
1494
1590
|
# @param InstanceId: 集群实例Id
|
@@ -4926,7 +5022,7 @@ module TencentCloud
|
|
4926
5022
|
# @type ClusterInfo: :class:`Tencentcloud::Tdmq.v20200217.models.RocketMQClusterInfo`
|
4927
5023
|
# @param ClusterConfig: 集群配置
|
4928
5024
|
# @type ClusterConfig: :class:`Tencentcloud::Tdmq.v20200217.models.RocketMQClusterConfig`
|
4929
|
-
# @param ClusterStats:
|
5025
|
+
# @param ClusterStats: 集群最近使用量,即将废弃,请使用云监控获取相关数据。
|
4930
5026
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4931
5027
|
# @type ClusterStats: :class:`Tencentcloud::Tdmq.v20200217.models.RocketMQClusterRecentStats`
|
4932
5028
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
@@ -9483,10 +9579,13 @@ module TencentCloud
|
|
9483
9579
|
# @param MaxQueuesPerTopic: 单个主题最大队列数
|
9484
9580
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
9485
9581
|
# @type MaxQueuesPerTopic: Integer
|
9582
|
+
# @param TopicDistribution: topic分布
|
9583
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9584
|
+
# @type TopicDistribution: Array
|
9486
9585
|
|
9487
|
-
attr_accessor :MaxTpsPerNamespace, :MaxNamespaceNum, :UsedNamespaceNum, :MaxTopicNum, :UsedTopicNum, :MaxGroupNum, :UsedGroupNum, :MaxRetentionTime, :MaxLatencyTime, :MaxQueuesPerTopic
|
9586
|
+
attr_accessor :MaxTpsPerNamespace, :MaxNamespaceNum, :UsedNamespaceNum, :MaxTopicNum, :UsedTopicNum, :MaxGroupNum, :UsedGroupNum, :MaxRetentionTime, :MaxLatencyTime, :MaxQueuesPerTopic, :TopicDistribution
|
9488
9587
|
|
9489
|
-
def initialize(maxtpspernamespace=nil, maxnamespacenum=nil, usednamespacenum=nil, maxtopicnum=nil, usedtopicnum=nil, maxgroupnum=nil, usedgroupnum=nil, maxretentiontime=nil, maxlatencytime=nil, maxqueuespertopic=nil)
|
9588
|
+
def initialize(maxtpspernamespace=nil, maxnamespacenum=nil, usednamespacenum=nil, maxtopicnum=nil, usedtopicnum=nil, maxgroupnum=nil, usedgroupnum=nil, maxretentiontime=nil, maxlatencytime=nil, maxqueuespertopic=nil, topicdistribution=nil)
|
9490
9589
|
@MaxTpsPerNamespace = maxtpspernamespace
|
9491
9590
|
@MaxNamespaceNum = maxnamespacenum
|
9492
9591
|
@UsedNamespaceNum = usednamespacenum
|
@@ -9497,6 +9596,7 @@ module TencentCloud
|
|
9497
9596
|
@MaxRetentionTime = maxretentiontime
|
9498
9597
|
@MaxLatencyTime = maxlatencytime
|
9499
9598
|
@MaxQueuesPerTopic = maxqueuespertopic
|
9599
|
+
@TopicDistribution = topicdistribution
|
9500
9600
|
end
|
9501
9601
|
|
9502
9602
|
def deserialize(params)
|
@@ -9510,6 +9610,14 @@ module TencentCloud
|
|
9510
9610
|
@MaxRetentionTime = params['MaxRetentionTime']
|
9511
9611
|
@MaxLatencyTime = params['MaxLatencyTime']
|
9512
9612
|
@MaxQueuesPerTopic = params['MaxQueuesPerTopic']
|
9613
|
+
unless params['TopicDistribution'].nil?
|
9614
|
+
@TopicDistribution = []
|
9615
|
+
params['TopicDistribution'].each do |i|
|
9616
|
+
rocketmqtopicdistribution_tmp = RocketMQTopicDistribution.new
|
9617
|
+
rocketmqtopicdistribution_tmp.deserialize(i)
|
9618
|
+
@TopicDistribution << rocketmqtopicdistribution_tmp
|
9619
|
+
end
|
9620
|
+
end
|
9513
9621
|
end
|
9514
9622
|
end
|
9515
9623
|
|
@@ -9591,10 +9699,28 @@ module TencentCloud
|
|
9591
9699
|
# @param HttpInternalEndpoint: HTTP协议内部接入地址
|
9592
9700
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
9593
9701
|
# @type HttpInternalEndpoint: String
|
9702
|
+
# @param AclEnabled: 是否开启ACL鉴权,专享实例支持关闭
|
9703
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9704
|
+
# @type AclEnabled: Boolean
|
9705
|
+
# @param PublicClbId: 公网CLB实例ID
|
9706
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9707
|
+
# @type PublicClbId: String
|
9708
|
+
# @param Vip: vip
|
9709
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9710
|
+
# @type Vip: String
|
9711
|
+
# @param VpcId: 所属VPC
|
9712
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9713
|
+
# @type VpcId: String
|
9714
|
+
# @param SupportMigration: 是否支持迁移
|
9715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9716
|
+
# @type SupportMigration: Boolean
|
9717
|
+
# @param InstanceStatus: 实例状态,0表示创建中,1表示正常,2表示隔离中,3表示已销毁,4 - 异常, 5 - 发货失败,6 - 变配中,7 - 变配失败
|
9718
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9719
|
+
# @type InstanceStatus: Integer
|
9594
9720
|
|
9595
|
-
attr_accessor :ClusterId, :ClusterName, :Region, :CreateTime, :Remark, :PublicEndPoint, :VpcEndPoint, :SupportNamespaceEndpoint, :Vpcs, :IsVip, :RocketMQFlag, :Status, :IsolateTime, :HttpPublicEndpoint, :HttpVpcEndpoint, :InternalEndpoint, :HttpInternalEndpoint
|
9721
|
+
attr_accessor :ClusterId, :ClusterName, :Region, :CreateTime, :Remark, :PublicEndPoint, :VpcEndPoint, :SupportNamespaceEndpoint, :Vpcs, :IsVip, :RocketMQFlag, :Status, :IsolateTime, :HttpPublicEndpoint, :HttpVpcEndpoint, :InternalEndpoint, :HttpInternalEndpoint, :AclEnabled, :PublicClbId, :Vip, :VpcId, :SupportMigration, :InstanceStatus
|
9596
9722
|
|
9597
|
-
def initialize(clusterid=nil, clustername=nil, region=nil, createtime=nil, remark=nil, publicendpoint=nil, vpcendpoint=nil, supportnamespaceendpoint=nil, vpcs=nil, isvip=nil, rocketmqflag=nil, status=nil, isolatetime=nil, httppublicendpoint=nil, httpvpcendpoint=nil, internalendpoint=nil, httpinternalendpoint=nil)
|
9723
|
+
def initialize(clusterid=nil, clustername=nil, region=nil, createtime=nil, remark=nil, publicendpoint=nil, vpcendpoint=nil, supportnamespaceendpoint=nil, vpcs=nil, isvip=nil, rocketmqflag=nil, status=nil, isolatetime=nil, httppublicendpoint=nil, httpvpcendpoint=nil, internalendpoint=nil, httpinternalendpoint=nil, aclenabled=nil, publicclbid=nil, vip=nil, vpcid=nil, supportmigration=nil, instancestatus=nil)
|
9598
9724
|
@ClusterId = clusterid
|
9599
9725
|
@ClusterName = clustername
|
9600
9726
|
@Region = region
|
@@ -9612,6 +9738,12 @@ module TencentCloud
|
|
9612
9738
|
@HttpVpcEndpoint = httpvpcendpoint
|
9613
9739
|
@InternalEndpoint = internalendpoint
|
9614
9740
|
@HttpInternalEndpoint = httpinternalendpoint
|
9741
|
+
@AclEnabled = aclenabled
|
9742
|
+
@PublicClbId = publicclbid
|
9743
|
+
@Vip = vip
|
9744
|
+
@VpcId = vpcid
|
9745
|
+
@SupportMigration = supportmigration
|
9746
|
+
@InstanceStatus = instancestatus
|
9615
9747
|
end
|
9616
9748
|
|
9617
9749
|
def deserialize(params)
|
@@ -9639,6 +9771,12 @@ module TencentCloud
|
|
9639
9771
|
@HttpVpcEndpoint = params['HttpVpcEndpoint']
|
9640
9772
|
@InternalEndpoint = params['InternalEndpoint']
|
9641
9773
|
@HttpInternalEndpoint = params['HttpInternalEndpoint']
|
9774
|
+
@AclEnabled = params['AclEnabled']
|
9775
|
+
@PublicClbId = params['PublicClbId']
|
9776
|
+
@Vip = params['Vip']
|
9777
|
+
@VpcId = params['VpcId']
|
9778
|
+
@SupportMigration = params['SupportMigration']
|
9779
|
+
@InstanceStatus = params['InstanceStatus']
|
9642
9780
|
end
|
9643
9781
|
end
|
9644
9782
|
|
@@ -11034,8 +11172,10 @@ module TencentCloud
|
|
11034
11172
|
# 标签的key/value的类型
|
11035
11173
|
class Tag < TencentCloud::Common::AbstractModel
|
11036
11174
|
# @param TagKey: 标签的key的值
|
11175
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11037
11176
|
# @type TagKey: String
|
11038
11177
|
# @param TagValue: 标签的Value的值
|
11178
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
11039
11179
|
# @type TagValue: String
|
11040
11180
|
|
11041
11181
|
attr_accessor :TagKey, :TagValue
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tdmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.696
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/tencentcloud-sdk-tdmq.rb
|
37
|
-
- lib/v20200217/models.rb
|
38
36
|
- lib/v20200217/client.rb
|
37
|
+
- lib/v20200217/models.rb
|
38
|
+
- lib/tencentcloud-sdk-tdmq.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|