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.



18845
18846
18847
18848
18849
18850
# File 'lib/v20180525/models.rb', line 18845

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:

    节点 ID



18843
18844
18845
# File 'lib/v20180525/models.rb', line 18843

def ClusterId
  @ClusterId
end

#NodeNameObject

Parameters:

  • Scope:

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

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID



18843
18844
18845
# File 'lib/v20180525/models.rb', line 18843

def NodeName
  @NodeName
end

#ScopeObject

Parameters:

  • Scope:

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

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID



18843
18844
18845
# File 'lib/v20180525/models.rb', line 18843

def Scope
  @Scope
end

#ZoneObject

Parameters:

  • Scope:

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

  • Zone:

    可用区

  • ClusterId:

    集群 ID

  • NodeName:

    节点 ID



18843
18844
18845
# File 'lib/v20180525/models.rb', line 18843

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



18852
18853
18854
18855
18856
18857
# File 'lib/v20180525/models.rb', line 18852

def deserialize(params)
  @Scope = params['Scope']
  @Zone = params['Zone']
  @ClusterId = params['ClusterId']
  @NodeName = params['NodeName']
end