Class: TencentCloud::Cdb::V20170320::DescribeCPUExpandStrategyInfoResponse
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::DescribeCPUExpandStrategyInfoResponse
- Defined in:
- lib/v20170320/models.rb
Overview
DescribeCPUExpandStrategyInfo返回参数结构体
Instance Attribute Summary collapse
-
#AutoStrategy ⇒ Object
说明:1.
-
#ExpandCpu ⇒ Object
说明:1.
-
#PeriodStrategy ⇒ Object
说明:1.
-
#RequestId ⇒ Object
说明:1.
-
#TimeIntervalStrategy ⇒ Object
说明:1.
-
#Type ⇒ Object
说明:1.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, expandcpu = nil, autostrategy = nil, periodstrategy = nil, timeintervalstrategy = nil, requestid = nil) ⇒ DescribeCPUExpandStrategyInfoResponse
constructor
A new instance of DescribeCPUExpandStrategyInfoResponse.
Constructor Details
#initialize(type = nil, expandcpu = nil, autostrategy = nil, periodstrategy = nil, timeintervalstrategy = nil, requestid = nil) ⇒ DescribeCPUExpandStrategyInfoResponse
Returns a new instance of DescribeCPUExpandStrategyInfoResponse.
5630 5631 5632 5633 5634 5635 5636 5637 |
# File 'lib/v20170320/models.rb', line 5630 def initialize(type=nil, =nil, autostrategy=nil, periodstrategy=nil, timeintervalstrategy=nil, requestid=nil) @Type = type @ExpandCpu = @AutoStrategy = autostrategy @PeriodStrategy = periodstrategy @TimeIntervalStrategy = timeintervalstrategy @RequestId = requestid end |
Instance Attribute Details
#AutoStrategy ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5628 5629 5630 |
# File 'lib/v20170320/models.rb', line 5628 def AutoStrategy @AutoStrategy end |
#ExpandCpu ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5628 5629 5630 |
# File 'lib/v20170320/models.rb', line 5628 def ExpandCpu @ExpandCpu end |
#PeriodStrategy ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5628 5629 5630 |
# File 'lib/v20170320/models.rb', line 5628 def PeriodStrategy @PeriodStrategy end |
#RequestId ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5628 5629 5630 |
# File 'lib/v20170320/models.rb', line 5628 def RequestId @RequestId end |
#TimeIntervalStrategy ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5628 5629 5630 |
# File 'lib/v20170320/models.rb', line 5628 def TimeIntervalStrategy @TimeIntervalStrategy end |
#Type ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5628 5629 5630 |
# File 'lib/v20170320/models.rb', line 5628 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 |
# File 'lib/v20170320/models.rb', line 5639 def deserialize(params) @Type = params['Type'] @ExpandCpu = params['ExpandCpu'] unless params['AutoStrategy'].nil? @AutoStrategy = AutoStrategy.new @AutoStrategy.deserialize(params['AutoStrategy']) end unless params['PeriodStrategy'].nil? @PeriodStrategy = PeriodStrategy.new @PeriodStrategy.deserialize(params['PeriodStrategy']) end unless params['TimeIntervalStrategy'].nil? @TimeIntervalStrategy = TimeIntervalStrategy.new @TimeIntervalStrategy.deserialize(params['TimeIntervalStrategy']) end @RequestId = params['RequestId'] end |