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.
5601 5602 5603 5604 5605 5606 5607 5608 |
# File 'lib/v20170320/models.rb', line 5601 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,表示取不到有效值。
5599 5600 5601 |
# File 'lib/v20170320/models.rb', line 5599 def AutoStrategy @AutoStrategy end |
#ExpandCpu ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5599 5600 5601 |
# File 'lib/v20170320/models.rb', line 5599 def ExpandCpu @ExpandCpu end |
#PeriodStrategy ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5599 5600 5601 |
# File 'lib/v20170320/models.rb', line 5599 def PeriodStrategy @PeriodStrategy end |
#RequestId ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5599 5600 5601 |
# File 'lib/v20170320/models.rb', line 5599 def RequestId @RequestId end |
#TimeIntervalStrategy ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5599 5600 5601 |
# File 'lib/v20170320/models.rb', line 5599 def TimeIntervalStrategy @TimeIntervalStrategy end |
#Type ⇒ Object
说明:1. auto 表示自动扩容。2. manual 表示自定义扩容,扩容时间为立即生效。3. timeInterval 表示自定义扩容,扩容时间为按时间段。4. period 表示自定义扩容,扩容时间为按周期。5. 如果返回为 NULL 说明尚未开通弹性扩容策略。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
5599 5600 5601 |
# File 'lib/v20170320/models.rb', line 5599 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 |
# File 'lib/v20170320/models.rb', line 5610 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 |