Class: TencentCloud::Tke::V20220501::StopMachinesRequest

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

Overview

StopMachines请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of StopMachinesRequest.



2252
2253
2254
2255
2256
# File 'lib/v20220501/models.rb', line 2252

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

Instance Attribute Details

#ClusterIdObject

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

Parameters:

  • ClusterId:

    集群 ID

  • MachineNames:

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

  • StopType:

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



2250
2251
2252
# File 'lib/v20220501/models.rb', line 2250

def ClusterId
  @ClusterId
end

#MachineNamesObject

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

Parameters:

  • ClusterId:

    集群 ID

  • MachineNames:

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

  • StopType:

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



2250
2251
2252
# File 'lib/v20220501/models.rb', line 2250

def MachineNames
  @MachineNames
end

#StopTypeObject

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

Parameters:

  • ClusterId:

    集群 ID

  • MachineNames:

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

  • StopType:

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



2250
2251
2252
# File 'lib/v20220501/models.rb', line 2250

def StopType
  @StopType
end

Instance Method Details

#deserialize(params) ⇒ Object



2258
2259
2260
2261
2262
# File 'lib/v20220501/models.rb', line 2258

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