Class: TencentCloud::Cdb::V20170320::StartCpuExpandRequest

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

Overview

StartCpuExpand请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, type = nil, expandcpu = nil, autostrategy = nil, timeintervalstrategy = nil, periodstrategy = nil) ⇒ StartCpuExpandRequest

Returns a new instance of StartCpuExpandRequest.



13834
13835
13836
13837
13838
13839
13840
13841
# File 'lib/v20170320/models.rb', line 13834

def initialize(instanceid=nil, type=nil, expandcpu=nil, autostrategy=nil, timeintervalstrategy=nil, periodstrategy=nil)
  @InstanceId = instanceid
  @Type = type
  @ExpandCpu = expandcpu
  @AutoStrategy = autostrategy
  @TimeIntervalStrategy = timeintervalstrategy
  @PeriodStrategy = periodstrategy
end

Instance Attribute Details

#AutoStrategyObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。说明:1. Type 为 manual、timeInterval、period 时必传。2. 扩容的 CPU 核心数上限为当前实例 CPU 核心数,比如8核16G最大可手动扩容的 CPU 核心数为8,即范围为1 - 8。说明:当 Type 为 timeInterval 时,TimeIntervalStrategy 必填。说明:当 Type 为 period 时,PeriodStrategy 必填。

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • Type:

    扩容类型,支持自动扩容和自定义扩容。

  • ExpandCpu:

    自定义扩容时,扩容的 CPU 核心数。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时必传。

  • TimeIntervalStrategy:

    按时间段扩容策略。

  • PeriodStrategy:

    按周期扩容策略。



13832
13833
13834
# File 'lib/v20170320/models.rb', line 13832

def AutoStrategy
  @AutoStrategy
end

#ExpandCpuObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。说明:1. Type 为 manual、timeInterval、period 时必传。2. 扩容的 CPU 核心数上限为当前实例 CPU 核心数,比如8核16G最大可手动扩容的 CPU 核心数为8,即范围为1 - 8。说明:当 Type 为 timeInterval 时,TimeIntervalStrategy 必填。说明:当 Type 为 period 时,PeriodStrategy 必填。

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • Type:

    扩容类型,支持自动扩容和自定义扩容。

  • ExpandCpu:

    自定义扩容时,扩容的 CPU 核心数。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时必传。

  • TimeIntervalStrategy:

    按时间段扩容策略。

  • PeriodStrategy:

    按周期扩容策略。



13832
13833
13834
# File 'lib/v20170320/models.rb', line 13832

def ExpandCpu
  @ExpandCpu
end

#InstanceIdObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。说明:1. Type 为 manual、timeInterval、period 时必传。2. 扩容的 CPU 核心数上限为当前实例 CPU 核心数,比如8核16G最大可手动扩容的 CPU 核心数为8,即范围为1 - 8。说明:当 Type 为 timeInterval 时,TimeIntervalStrategy 必填。说明:当 Type 为 period 时,PeriodStrategy 必填。

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • Type:

    扩容类型,支持自动扩容和自定义扩容。

  • ExpandCpu:

    自定义扩容时,扩容的 CPU 核心数。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时必传。

  • TimeIntervalStrategy:

    按时间段扩容策略。

  • PeriodStrategy:

    按周期扩容策略。



13832
13833
13834
# File 'lib/v20170320/models.rb', line 13832

def InstanceId
  @InstanceId
end

#PeriodStrategyObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。说明:1. Type 为 manual、timeInterval、period 时必传。2. 扩容的 CPU 核心数上限为当前实例 CPU 核心数,比如8核16G最大可手动扩容的 CPU 核心数为8,即范围为1 - 8。说明:当 Type 为 timeInterval 时,TimeIntervalStrategy 必填。说明:当 Type 为 period 时,PeriodStrategy 必填。

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • Type:

    扩容类型,支持自动扩容和自定义扩容。

  • ExpandCpu:

    自定义扩容时,扩容的 CPU 核心数。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时必传。

  • TimeIntervalStrategy:

    按时间段扩容策略。

  • PeriodStrategy:

    按周期扩容策略。



13832
13833
13834
# File 'lib/v20170320/models.rb', line 13832

def PeriodStrategy
  @PeriodStrategy
end

#TimeIntervalStrategyObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。说明:1. Type 为 manual、timeInterval、period 时必传。2. 扩容的 CPU 核心数上限为当前实例 CPU 核心数,比如8核16G最大可手动扩容的 CPU 核心数为8,即范围为1 - 8。说明:当 Type 为 timeInterval 时,TimeIntervalStrategy 必填。说明:当 Type 为 period 时,PeriodStrategy 必填。

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • Type:

    扩容类型,支持自动扩容和自定义扩容。

  • ExpandCpu:

    自定义扩容时,扩容的 CPU 核心数。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时必传。

  • TimeIntervalStrategy:

    按时间段扩容策略。

  • PeriodStrategy:

    按周期扩容策略。



13832
13833
13834
# File 'lib/v20170320/models.rb', line 13832

def TimeIntervalStrategy
  @TimeIntervalStrategy
end

#TypeObject

说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。说明:1. Type 为 manual、timeInterval、period 时必传。2. 扩容的 CPU 核心数上限为当前实例 CPU 核心数,比如8核16G最大可手动扩容的 CPU 核心数为8,即范围为1 - 8。说明:当 Type 为 timeInterval 时,TimeIntervalStrategy 必填。说明:当 Type 为 period 时,PeriodStrategy 必填。

Parameters:

  • InstanceId:

    实例 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • Type:

    扩容类型,支持自动扩容和自定义扩容。

  • ExpandCpu:

    自定义扩容时,扩容的 CPU 核心数。

  • AutoStrategy:

    自动扩容策略。Type 为 auto 时必传。

  • TimeIntervalStrategy:

    按时间段扩容策略。

  • PeriodStrategy:

    按周期扩容策略。



13832
13833
13834
# File 'lib/v20170320/models.rb', line 13832

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
# File 'lib/v20170320/models.rb', line 13843

def deserialize(params)
  @InstanceId = params['InstanceId']
  @Type = params['Type']
  @ExpandCpu = params['ExpandCpu']
  unless params['AutoStrategy'].nil?
    @AutoStrategy = AutoStrategy.new
    @AutoStrategy.deserialize(params['AutoStrategy'])
  end
  unless params['TimeIntervalStrategy'].nil?
    @TimeIntervalStrategy = TimeIntervalStrategy.new
    @TimeIntervalStrategy.deserialize(params['TimeIntervalStrategy'])
  end
  unless params['PeriodStrategy'].nil?
    @PeriodStrategy = PeriodStrategy.new
    @PeriodStrategy.deserialize(params['PeriodStrategy'])
  end
end