Class: TencentCloud::Cvm::V20170312::RebootInstancesRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/v20170312/models.rb

Overview

RebootInstances请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceids = nil, forcereboot = nil, stoptype = nil) ⇒ RebootInstancesRequest

Returns a new instance of RebootInstancesRequest.



7250
7251
7252
7253
7254
# File 'lib/v20170312/models.rb', line 7250

def initialize(instanceids=nil, forcereboot=nil, stoptype=nil)
  @InstanceIds = instanceids
  @ForceReboot = forcereboot
  @StopType = stoptype
end

Instance Attribute Details

#ForceReboot ⇒ Object

Parameters:

  • InstanceIds: —

    一个或多个待操作的实例ID。可通过 DescribeInstances 接口返回值中的InstanceId获取。每次请求批量实例的上限为100。

  • ForceReboot: —

    本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常重启失败后选择强制重启实例。取值范围:

  • true:表示在正常重启失败后进行强制重启
  • false:表示在正常重启失败后不进行强制重启

  • 默认取值:false。

  • StopType: —

    关机类型。取值范围:

  • SOFT:表示软关机
  • HARD:表示硬关机
  • SOFT_FIRST:表示优先软关机,失败再执行硬关机

  • 默认取值:SOFT。

    
    
    7245
    7246
    7247
    # File 'lib/v20170312/models.rb', line 7245
    
    def ForceReboot
      @ForceReboot
    end

    #InstanceIds ⇒ Object

    Parameters:

    • InstanceIds: —

      一个或多个待操作的实例ID。可通过 DescribeInstances 接口返回值中的InstanceId获取。每次请求批量实例的上限为100。

    • ForceReboot: —

      本参数已弃用,推荐使用StopType,不可以与参数StopType同时使用。表示是否在正常重启失败后选择强制重启实例。取值范围:

    • true:表示在正常重启失败后进行强制重启
    • false:表示在正常重启失败后不进行强制重启

    • 默认取值:false。

  • StopType: —

    关机类型。取值范围:

  • SOFT:表示软关机
  • HARD:表示硬关机
  • SOFT_FIRST:表示优先软关机,失败再执行硬关机

  • 默认取值:SOFT。

    
    
    7245
    7246
    7247
    # File 'lib/v20170312/models.rb', line 7245
    
    def InstanceIds
      @InstanceIds
    end

    #StopType ⇒ Object

    Parameters:

  • StopType: —

    关机类型。取值范围:

  • SOFT:表示软关机
  • HARD:表示硬关机
  • SOFT_FIRST:表示优先软关机,失败再执行硬关机

  • 默认取值:SOFT。

    
    
    7245
    7246
    7247
    # File 'lib/v20170312/models.rb', line 7245
    
    def StopType
      @StopType
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    7256
    7257
    7258
    7259
    7260
    # File 'lib/v20170312/models.rb', line 7256
    
    def deserialize(params)
      @InstanceIds = params['InstanceIds']
      @ForceReboot = params['ForceReboot']
      @StopType = params['StopType']
    end