Class: TencentCloud::Tke::V20180525::ReservedInstanceScope
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::ReservedInstanceScope
- Defined in:
- lib/v20180525/models.rb
Overview
预留券抵扣范围的描述信息,当抵扣范围为 Region 时,表示地域抵扣,其他参数不需要传;当抵扣范围为 Zone 时,表示可用区抵扣,Zone 参数必传;当抵扣范围为 Node 时,表示节点抵扣,参数 Zone、ClusterId和NodeName均必传。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(scope = nil, zone = nil, clusterid = nil, nodename = nil) ⇒ ReservedInstanceScope
constructor
A new instance of ReservedInstanceScope.
Constructor Details
#initialize(scope = nil, zone = nil, clusterid = nil, nodename = nil) ⇒ ReservedInstanceScope
Returns a new instance of ReservedInstanceScope.
17512 17513 17514 17515 17516 17517 |
# File 'lib/v20180525/models.rb', line 17512 def initialize(scope=nil, zone=nil, clusterid=nil, nodename=nil) @Scope = scope @Zone = zone @ClusterId = clusterid @NodeName = nodename end |
Instance Attribute Details
#ClusterId ⇒ Object
17510 17511 17512 |
# File 'lib/v20180525/models.rb', line 17510 def ClusterId @ClusterId end |
#NodeName ⇒ Object
17510 17511 17512 |
# File 'lib/v20180525/models.rb', line 17510 def NodeName @NodeName end |
#Scope ⇒ Object
17510 17511 17512 |
# File 'lib/v20180525/models.rb', line 17510 def Scope @Scope end |
#Zone ⇒ Object
17510 17511 17512 |
# File 'lib/v20180525/models.rb', line 17510 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
17519 17520 17521 17522 17523 17524 |
# File 'lib/v20180525/models.rb', line 17519 def deserialize(params) @Scope = params['Scope'] @Zone = params['Zone'] @ClusterId = params['ClusterId'] @NodeName = params['NodeName'] end |