tencentcloud-sdk-tdmq 3.0.695 → 3.0.697
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 +96 -0
- 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: c079af6e9c653da659c06208fc7b50e1890995cf
|
4
|
+
data.tar.gz: e61500e5dda77423bfdf6518d883d3c46b0a34d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 505543605b21121c02b9327d0eab6ba1cd02113bec277b35b4bbccc696210a743e7c39711b42a3c0d031cd5adaf338b88756b2dcc7f7314147d153abb643ed8e
|
7
|
+
data.tar.gz: 7400c5f1abff540679555bc319db5efbc920cbd76bbc0b0c709b48379aaf11ece442364a135a76e209c2a1bb2bce380f0211327214eda6045cb411bf0867bf45
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.697
|
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
|
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.697
|
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-09 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:
|