Class: TencentCloud::Cdb::V20170320::StartCpuExpandRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::StartCpuExpandRequest
- Defined in:
- lib/v20170320/models.rb
Overview
StartCpuExpand请求参数结构体
Instance Attribute Summary collapse
-
#AutoStrategy ⇒ Object
说明:1.
-
#ExpandCpu ⇒ Object
说明:1.
-
#InstanceId ⇒ Object
说明:1.
-
#PeriodStrategy ⇒ Object
说明:1.
-
#TimeIntervalStrategy ⇒ Object
说明:1.
-
#Type ⇒ Object
说明:1.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, type = nil, expandcpu = nil, autostrategy = nil, timeintervalstrategy = nil, periodstrategy = nil) ⇒ StartCpuExpandRequest
constructor
A new instance of StartCpuExpandRequest.
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, =nil, autostrategy=nil, timeintervalstrategy=nil, periodstrategy=nil) @InstanceId = instanceid @Type = type @ExpandCpu = @AutoStrategy = autostrategy @TimeIntervalStrategy = timeintervalstrategy @PeriodStrategy = periodstrategy end |
Instance Attribute Details
#AutoStrategy ⇒ Object
说明: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 必填。
13832 13833 13834 |
# File 'lib/v20170320/models.rb', line 13832 def AutoStrategy @AutoStrategy end |
#ExpandCpu ⇒ Object
说明: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 必填。
13832 13833 13834 |
# File 'lib/v20170320/models.rb', line 13832 def ExpandCpu @ExpandCpu end |
#InstanceId ⇒ Object
说明: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 必填。
13832 13833 13834 |
# File 'lib/v20170320/models.rb', line 13832 def InstanceId @InstanceId end |
#PeriodStrategy ⇒ Object
说明: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 必填。
13832 13833 13834 |
# File 'lib/v20170320/models.rb', line 13832 def PeriodStrategy @PeriodStrategy end |
#TimeIntervalStrategy ⇒ Object
说明: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 必填。
13832 13833 13834 |
# File 'lib/v20170320/models.rb', line 13832 def TimeIntervalStrategy @TimeIntervalStrategy end |
#Type ⇒ Object
说明: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 必填。
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 |