Class: TencentCloud::Dlc::V20210125::ScheduleElasticityConf

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

Overview

引擎资源弹性伸缩策略

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ElasticPlansObject



14005
14006
14007
# File 'lib/v20210125/models.rb', line 14005

def ElasticPlans
  @ElasticPlans
end

#ScheduleDaysObject



14005
14006
14007
# File 'lib/v20210125/models.rb', line 14005

def ScheduleDays
  @ScheduleDays
end

#ScheduledElasticityEnabledObject



14005
14006
14007
# File 'lib/v20210125/models.rb', line 14005

def ScheduledElasticityEnabled
  @ScheduledElasticityEnabled
end

#ScheduleTypeObject



14005
14006
14007
# File 'lib/v20210125/models.rb', line 14005

def ScheduleType
  @ScheduleType
end

#TimeZoneObject



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