Class: TencentCloud::Tke::V20180525::ReservedInstanceScope

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

预留券抵扣范围的描述信息,当抵扣范围为 Region 时,表示地域抵扣,其他参数不需要传;当抵扣范围为 Zone 时,表示可用区抵扣,Zone 参数必传;当抵扣范围为 Node 时,表示节点抵扣,参数 Zone、ClusterId和NodeName均必传。

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ClusterIdObject

Parameters:

  • Scope:

    抵扣范围,取值:Region、Zone 和 Node

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点名称



17494
17495
17496
# File 'lib/v20180525/models.rb', line 17494

def ClusterId
  @ClusterId
end

#NodeNameObject

Parameters:

  • Scope:

    抵扣范围,取值:Region、Zone 和 Node

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点名称



17494
17495
17496
# File 'lib/v20180525/models.rb', line 17494

def NodeName
  @NodeName
end

#ScopeObject

Parameters:

  • Scope:

    抵扣范围,取值:Region、Zone 和 Node

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点名称



17494
17495
17496
# File 'lib/v20180525/models.rb', line 17494

def Scope
  @Scope
end

#ZoneObject

Parameters:

  • Scope:

    抵扣范围,取值:Region、Zone 和 Node

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点名称



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