Class: TencentCloud::Dlc::V20210125::ScheduleElasticityConf
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dlc::V20210125::ScheduleElasticityConf
- Defined in:
- lib/v20210125/models.rb
Overview
引擎资源弹性伸缩策略
Instance Attribute Summary collapse
- #ElasticPlans ⇒ Object
- #ScheduleDays ⇒ Object
- #ScheduledElasticityEnabled ⇒ Object
- #ScheduleType ⇒ Object
- #TimeZone ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(scheduledelasticityenabled = nil, scheduletype = nil, scheduledays = nil, timezone = nil, elasticplans = nil) ⇒ ScheduleElasticityConf
constructor
A new instance of ScheduleElasticityConf.
Constructor Details
#initialize(scheduledelasticityenabled = nil, scheduletype = nil, scheduledays = nil, timezone = nil, elasticplans = nil) ⇒ ScheduleElasticityConf
14007 14008 14009 14010 14011 14012 14013 |
# File 'lib/v20210125/models.rb', line 14007 def initialize(scheduledelasticityenabled=nil, scheduletype=nil, scheduledays=nil, timezone=nil, elasticplans=nil) @ScheduledElasticityEnabled = scheduledelasticityenabled @ScheduleType = scheduletype @ScheduleDays = scheduledays @TimeZone = timezone @ElasticPlans = elasticplans end |
Instance Attribute Details
#ElasticPlans ⇒ Object
14005 14006 14007 |
# File 'lib/v20210125/models.rb', line 14005 def ElasticPlans @ElasticPlans end |
#ScheduleDays ⇒ Object
14005 14006 14007 |
# File 'lib/v20210125/models.rb', line 14005 def ScheduleDays @ScheduleDays end |
#ScheduledElasticityEnabled ⇒ Object
14005 14006 14007 |
# File 'lib/v20210125/models.rb', line 14005 def ScheduledElasticityEnabled @ScheduledElasticityEnabled end |
#ScheduleType ⇒ Object
14005 14006 14007 |
# File 'lib/v20210125/models.rb', line 14005 def ScheduleType @ScheduleType end |
#TimeZone ⇒ Object
14005 14006 14007 |
# File 'lib/v20210125/models.rb', line 14005 def TimeZone @TimeZone end |
Instance Method Details
#deserialize(params) ⇒ Object
14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 |
# File 'lib/v20210125/models.rb', line 14015 def deserialize(params) @ScheduledElasticityEnabled = params['ScheduledElasticityEnabled'] @ScheduleType = params['ScheduleType'] @ScheduleDays = params['ScheduleDays'] @TimeZone = params['TimeZone'] unless params['ElasticPlans'].nil? @ElasticPlans = [] params['ElasticPlans'].each do |i| elasticplan_tmp = ElasticPlan.new elasticplan_tmp.deserialize(i) @ElasticPlans << elasticplan_tmp end end end |