class TencentCloud::Emr::V20190103::TimeAutoScaleStrategy

时间扩缩容规则

def deserialize(params)

def deserialize(params)
  @StrategyName = params['StrategyName']
  @IntervalTime = params['IntervalTime']
  @ScaleAction = params['ScaleAction']
  @ScaleNum = params['ScaleNum']
  @StrategyStatus = params['StrategyStatus']
  @Priority = params['Priority']
  @RetryValidTime = params['RetryValidTime']
  unless params['RepeatStrategy'].nil?
    @RepeatStrategy = RepeatStrategy.new
    @RepeatStrategy.deserialize(params['RepeatStrategy'])
  end
  @StrategyId = params['StrategyId']
  @GraceDownFlag = params['GraceDownFlag']
  @GraceDownTime = params['GraceDownTime']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
  @ConfigGroupAssigned = params['ConfigGroupAssigned']
  @MeasureMethod = params['MeasureMethod']
  @TerminatePolicy = params['TerminatePolicy']
  @MaxUse = params['MaxUse']
  @SoftDeployInfo = params['SoftDeployInfo']
  @ServiceNodeInfo = params['ServiceNodeInfo']
  @CompensateFlag = params['CompensateFlag']
  @GroupId = params['GroupId']
end

def initialize(strategyname=nil, intervaltime=nil, scaleaction=nil, scalenum=nil, strategystatus=nil, priority=nil, retryvalidtime=nil, repeatstrategy=nil, strategyid=nil, gracedownflag=nil, gracedowntime=nil, tags=nil, configgroupassigned=nil, measuremethod=nil, terminatepolicy=nil, maxuse=nil, softdeployinfo=nil, servicenodeinfo=nil, compensateflag=nil, groupid=nil)

def initialize(strategyname=nil, intervaltime=nil, scaleaction=nil, scalenum=nil, strategystatus=nil, priority=nil, retryvalidtime=nil, repeatstrategy=nil, strategyid=nil, gracedownflag=nil, gracedowntime=nil, tags=nil, configgroupassigned=nil, measuremethod=nil, terminatepolicy=nil, maxuse=nil, softdeployinfo=nil, servicenodeinfo=nil, compensateflag=nil, groupid=nil)
  @StrategyName = strategyname
  @IntervalTime = intervaltime
  @ScaleAction = scaleaction
  @ScaleNum = scalenum
  @StrategyStatus = strategystatus
  @Priority = priority
  @RetryValidTime = retryvalidtime
  @RepeatStrategy = repeatstrategy
  @StrategyId = strategyid
  @GraceDownFlag = gracedownflag
  @GraceDownTime = gracedowntime
  @Tags = tags
  @ConfigGroupAssigned = configgroupassigned
  @MeasureMethod = measuremethod
  @TerminatePolicy = terminatepolicy
  @MaxUse = maxuse
  @SoftDeployInfo = softdeployinfo
  @ServiceNodeInfo = servicenodeinfo
  @CompensateFlag = compensateflag
  @GroupId = groupid
end