Class: TencentCloud::As::V20180419::StartInstanceRefreshRequest

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

Overview

StartInstanceRefresh请求参数结构体

Instance Attribute Summary collapse

  • #RefreshMode ⇒ Object
  • ROLLING_UPDATE_RESET:重装系统进行滚动更新
  • ROLLING_UPDATE_REPLACE:新建实例替换进行滚动更新,该模式暂不支持回滚接口
  • .
  • #RefreshSettings ⇒ Object
  • ROLLING_UPDATE_RESET:重装系统进行滚动更新
  • ROLLING_UPDATE_REPLACE:新建实例替换进行滚动更新,该模式暂不支持回滚接口
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(autoscalinggroupid = nil, refreshsettings = nil, refreshmode = nil) ⇒ StartInstanceRefreshRequest

    Returns a new instance of StartInstanceRefreshRequest.

    
    
    5626
    5627
    5628
    5629
    5630
    # File 'lib/v20180419/models.rb', line 5626
    
    def initialize(autoscalinggroupid=nil, refreshsettings=nil, refreshmode=nil)
      @AutoScalingGroupId = autoscalinggroupid
      @RefreshSettings = refreshsettings
      @RefreshMode = refreshmode
    end
    

    Instance Attribute Details

    #AutoScalingGroupIdObject

  • ROLLING_UPDATE_RESET:重装系统进行滚动更新
  • ROLLING_UPDATE_REPLACE:新建实例替换进行滚动更新,该模式暂不支持回滚接口
  • Parameters:

    • 伸缩组ID。可通过登录 控制台 或调用接口 DescribeAutoScalingGroups ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。

    • 刷新设置。

    • 刷新模式。默认值为 ROLLING_UPDATE_RESET,取值范围:

    
    
    5624
    5625
    5626
    # File 'lib/v20180419/models.rb', line 5624
    
    def AutoScalingGroupId
      @AutoScalingGroupId
    end
    

    #RefreshModeObject

  • ROLLING_UPDATE_RESET:重装系统进行滚动更新
  • ROLLING_UPDATE_REPLACE:新建实例替换进行滚动更新,该模式暂不支持回滚接口
  • Parameters:

    • 伸缩组ID。可通过登录 控制台 或调用接口 DescribeAutoScalingGroups ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。

    • 刷新设置。

    • 刷新模式。默认值为 ROLLING_UPDATE_RESET,取值范围:

    
    
    5624
    5625
    5626
    # File 'lib/v20180419/models.rb', line 5624
    
    def RefreshMode
      @RefreshMode
    end
    

    #RefreshSettingsObject

  • ROLLING_UPDATE_RESET:重装系统进行滚动更新
  • ROLLING_UPDATE_REPLACE:新建实例替换进行滚动更新,该模式暂不支持回滚接口
  • Parameters:

    • 伸缩组ID。可通过登录 控制台 或调用接口 DescribeAutoScalingGroups ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。

    • 刷新设置。

    • 刷新模式。默认值为 ROLLING_UPDATE_RESET,取值范围:

    
    
    5624
    5625
    5626
    # File 'lib/v20180419/models.rb', line 5624
    
    def RefreshSettings
      @RefreshSettings
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    5632
    5633
    5634
    5635
    5636
    5637
    5638
    5639
    # File 'lib/v20180419/models.rb', line 5632
    
    def deserialize(params)
      @AutoScalingGroupId = params['AutoScalingGroupId']
      unless params['RefreshSettings'].nil?
        @RefreshSettings = RefreshSettings.new
        @RefreshSettings.deserialize(params['RefreshSettings'])
      end
      @RefreshMode = params['RefreshMode']
    end