Class: TencentCloud::Tke::V20220501::RebootMachinesRequest

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

Overview

RebootMachines请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, machinenames = nil, stoptype = nil) ⇒ RebootMachinesRequest

Returns a new instance of RebootMachinesRequest.



2041
2042
2043
2044
2045
# File 'lib/v20220501/models.rb', line 2041

def initialize(clusterid=nil, machinenames=nil, stoptype=nil)
  @ClusterId = clusterid
  @MachineNames = machinenames
  @StopType = stoptype
end

Instance Attribute Details

#ClusterIdObject

soft_first:表示在正常关闭失败后进行强制关闭 hard:直接强制关闭 soft:仅软关机默认取值:soft。

Parameters:

  • ClusterId:

    集群 ID

  • MachineNames:

    节点名字列表,一次请求,传入节点数量上限为100个

  • StopType:

    实例的关闭模式。取值范围:



2039
2040
2041
# File 'lib/v20220501/models.rb', line 2039

def ClusterId
  @ClusterId
end

#MachineNamesObject

soft_first:表示在正常关闭失败后进行强制关闭 hard:直接强制关闭 soft:仅软关机默认取值:soft。

Parameters:

  • ClusterId:

    集群 ID

  • MachineNames:

    节点名字列表,一次请求,传入节点数量上限为100个

  • StopType:

    实例的关闭模式。取值范围:



2039
2040
2041
# File 'lib/v20220501/models.rb', line 2039

def MachineNames
  @MachineNames
end

#StopTypeObject

soft_first:表示在正常关闭失败后进行强制关闭 hard:直接强制关闭 soft:仅软关机默认取值:soft。

Parameters:

  • ClusterId:

    集群 ID

  • MachineNames:

    节点名字列表,一次请求,传入节点数量上限为100个

  • StopType:

    实例的关闭模式。取值范围:



2039
2040
2041
# File 'lib/v20220501/models.rb', line 2039

def StopType
  @StopType
end

Instance Method Details

#deserialize(params) ⇒ Object



2047
2048
2049
2050
2051
# File 'lib/v20220501/models.rb', line 2047

def deserialize(params)
  @ClusterId = params['ClusterId']
  @MachineNames = params['MachineNames']
  @StopType = params['StopType']
end