Class: TencentCloud::Tdmq::V20200217::CreateProClusterRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::CreateProClusterRequest
- Defined in:
- lib/v20200217/models.rb
Overview
CreateProCluster请求参数结构体
Instance Attribute Summary collapse
-
#AutoRenewFlag ⇒ Object
0: false,关闭自动按月续费.
-
#AutoVoucher ⇒ Object
0: false,关闭自动按月续费.
-
#ClusterName ⇒ Object
0: false,关闭自动按月续费.
-
#ProductName ⇒ Object
0: false,关闭自动按月续费.
-
#StorageSize ⇒ Object
0: false,关闭自动按月续费.
-
#Tags ⇒ Object
0: false,关闭自动按月续费.
-
#TimeSpan ⇒ Object
0: false,关闭自动按月续费.
-
#Vpc ⇒ Object
0: false,关闭自动按月续费.
-
#ZoneIds ⇒ Object
0: false,关闭自动按月续费.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(zoneids = nil, productname = nil, storagesize = nil, autorenewflag = nil, timespan = nil, clustername = nil, autovoucher = nil, vpc = nil, tags = nil) ⇒ CreateProClusterRequest
constructor
A new instance of CreateProClusterRequest.
Constructor Details
#initialize(zoneids = nil, productname = nil, storagesize = nil, autorenewflag = nil, timespan = nil, clustername = nil, autovoucher = nil, vpc = nil, tags = nil) ⇒ CreateProClusterRequest
Returns a new instance of CreateProClusterRequest.
1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 |
# File 'lib/v20200217/models.rb', line 1556 def initialize(zoneids=nil, productname=nil, storagesize=nil, autorenewflag=nil, timespan=nil, clustername=nil, autovoucher=nil, vpc=nil, =nil) @ZoneIds = zoneids @ProductName = productname @StorageSize = storagesize @AutoRenewFlag = autorenewflag @TimeSpan = timespan @ClusterName = clustername @AutoVoucher = autovoucher @Vpc = vpc @Tags = end |
Instance Attribute Details
#AutoRenewFlag ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def AutoRenewFlag @AutoRenewFlag end |
#AutoVoucher ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def AutoVoucher @AutoVoucher end |
#ClusterName ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def ClusterName @ClusterName end |
#ProductName ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def ProductName @ProductName end |
#StorageSize ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def StorageSize @StorageSize end |
#Tags ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def Tags @Tags end |
#TimeSpan ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def TimeSpan @TimeSpan end |
#Vpc ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def Vpc @Vpc end |
#ZoneIds ⇒ Object
0: false,关闭自动按月续费
1554 1555 1556 |
# File 'lib/v20200217/models.rb', line 1554 def ZoneIds @ZoneIds end |
Instance Method Details
#deserialize(params) ⇒ Object
1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 |
# File 'lib/v20200217/models.rb', line 1568 def deserialize(params) @ZoneIds = params['ZoneIds'] @ProductName = params['ProductName'] @StorageSize = params['StorageSize'] @AutoRenewFlag = params['AutoRenewFlag'] @TimeSpan = params['TimeSpan'] @ClusterName = params['ClusterName'] @AutoVoucher = params['AutoVoucher'] unless params['Vpc'].nil? @Vpc = VpcInfo.new @Vpc.deserialize(params['Vpc']) end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |