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.
17496 17497 17498 17499 17500 17501 |
# File 'lib/v20180525/models.rb', line 17496 def initialize(scope=nil, zone=nil, clusterid=nil, nodename=nil) @Scope = scope @Zone = zone @ClusterId = clusterid @NodeName = nodename end |
Instance Attribute Details
#ClusterId ⇒ Object
17494 17495 17496 |
# File 'lib/v20180525/models.rb', line 17494 def ClusterId @ClusterId end |
#NodeName ⇒ Object
17494 17495 17496 |
# File 'lib/v20180525/models.rb', line 17494 def NodeName @NodeName end |
#Scope ⇒ Object
17494 17495 17496 |
# File 'lib/v20180525/models.rb', line 17494 def Scope @Scope end |
#Zone ⇒ Object
17494 17495 17496 |
# File 'lib/v20180525/models.rb', line 17494 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
17503 17504 17505 17506 17507 17508 |
# File 'lib/v20180525/models.rb', line 17503 def deserialize(params) @Scope = params['Scope'] @Zone = params['Zone'] @ClusterId = params['ClusterId'] @NodeName = params['NodeName'] end |