Class: TencentCloud::Emr::V20190103::RepeatStrategy

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

Overview

定时伸缩任务策略

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repeattype = nil, dayrepeat = nil, weekrepeat = nil, monthrepeat = nil, notrepeat = nil, expire = nil, starttime = nil) ⇒ RepeatStrategy

Returns a new instance of RepeatStrategy.



11924
11925
11926
11927
11928
11929
11930
11931
11932
# File 'lib/v20190103/models.rb', line 11924

def initialize(repeattype=nil, dayrepeat=nil, weekrepeat=nil, monthrepeat=nil, notrepeat=nil, expire=nil, starttime=nil)
  @RepeatType = repeattype
  @DayRepeat = dayrepeat
  @WeekRepeat = weekrepeat
  @MonthRepeat = monthrepeat
  @NotRepeat = notrepeat
  @Expire = expire
  @StartTime = starttime
end

Instance Attribute Details

#DayRepeatObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RepeatType:

    取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写

  • DayRepeat:

    按天重复规则,当RepeatType为"DAY"时有效

  • WeekRepeat:

    按周重复规则,当RepeatType为"DOW"时有效

  • MonthRepeat:

    按月重复规则,当RepeatType为"DOM"时有效

  • NotRepeat:

    一次执行规则,当RepeatType为"NONE"时有效

  • Expire:

    规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写

  • StartTime:

    周期性规则开始时间



11922
11923
11924
# File 'lib/v20190103/models.rb', line 11922

def DayRepeat
  @DayRepeat
end

#ExpireObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RepeatType:

    取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写

  • DayRepeat:

    按天重复规则,当RepeatType为"DAY"时有效

  • WeekRepeat:

    按周重复规则,当RepeatType为"DOW"时有效

  • MonthRepeat:

    按月重复规则,当RepeatType为"DOM"时有效

  • NotRepeat:

    一次执行规则,当RepeatType为"NONE"时有效

  • Expire:

    规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写

  • StartTime:

    周期性规则开始时间



11922
11923
11924
# File 'lib/v20190103/models.rb', line 11922

def Expire
  @Expire
end

#MonthRepeatObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RepeatType:

    取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写

  • DayRepeat:

    按天重复规则,当RepeatType为"DAY"时有效

  • WeekRepeat:

    按周重复规则,当RepeatType为"DOW"时有效

  • MonthRepeat:

    按月重复规则,当RepeatType为"DOM"时有效

  • NotRepeat:

    一次执行规则,当RepeatType为"NONE"时有效

  • Expire:

    规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写

  • StartTime:

    周期性规则开始时间



11922
11923
11924
# File 'lib/v20190103/models.rb', line 11922

def MonthRepeat
  @MonthRepeat
end

#NotRepeatObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RepeatType:

    取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写

  • DayRepeat:

    按天重复规则,当RepeatType为"DAY"时有效

  • WeekRepeat:

    按周重复规则,当RepeatType为"DOW"时有效

  • MonthRepeat:

    按月重复规则,当RepeatType为"DOM"时有效

  • NotRepeat:

    一次执行规则,当RepeatType为"NONE"时有效

  • Expire:

    规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写

  • StartTime:

    周期性规则开始时间



11922
11923
11924
# File 'lib/v20190103/models.rb', line 11922

def NotRepeat
  @NotRepeat
end

#RepeatTypeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RepeatType:

    取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写

  • DayRepeat:

    按天重复规则,当RepeatType为"DAY"时有效

  • WeekRepeat:

    按周重复规则,当RepeatType为"DOW"时有效

  • MonthRepeat:

    按月重复规则,当RepeatType为"DOM"时有效

  • NotRepeat:

    一次执行规则,当RepeatType为"NONE"时有效

  • Expire:

    规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写

  • StartTime:

    周期性规则开始时间



11922
11923
11924
# File 'lib/v20190103/models.rb', line 11922

def RepeatType
  @RepeatType
end

#StartTimeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RepeatType:

    取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写

  • DayRepeat:

    按天重复规则,当RepeatType为"DAY"时有效

  • WeekRepeat:

    按周重复规则,当RepeatType为"DOW"时有效

  • MonthRepeat:

    按月重复规则,当RepeatType为"DOM"时有效

  • NotRepeat:

    一次执行规则,当RepeatType为"NONE"时有效

  • Expire:

    规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写

  • StartTime:

    周期性规则开始时间



11922
11923
11924
# File 'lib/v20190103/models.rb', line 11922

def StartTime
  @StartTime
end

#WeekRepeatObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RepeatType:

    取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写

  • DayRepeat:

    按天重复规则,当RepeatType为"DAY"时有效

  • WeekRepeat:

    按周重复规则,当RepeatType为"DOW"时有效

  • MonthRepeat:

    按月重复规则,当RepeatType为"DOM"时有效

  • NotRepeat:

    一次执行规则,当RepeatType为"NONE"时有效

  • Expire:

    规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写

  • StartTime:

    周期性规则开始时间



11922
11923
11924
# File 'lib/v20190103/models.rb', line 11922

def WeekRepeat
  @WeekRepeat
end

Instance Method Details

#deserialize(params) ⇒ Object



11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
# File 'lib/v20190103/models.rb', line 11934

def deserialize(params)
  @RepeatType = params['RepeatType']
  unless params['DayRepeat'].nil?
    @DayRepeat = DayRepeatStrategy.new
    @DayRepeat.deserialize(params['DayRepeat'])
  end
  unless params['WeekRepeat'].nil?
    @WeekRepeat = WeekRepeatStrategy.new
    @WeekRepeat.deserialize(params['WeekRepeat'])
  end
  unless params['MonthRepeat'].nil?
    @MonthRepeat = MonthRepeatStrategy.new
    @MonthRepeat.deserialize(params['MonthRepeat'])
  end
  unless params['NotRepeat'].nil?
    @NotRepeat = NotRepeatStrategy.new
    @NotRepeat.deserialize(params['NotRepeat'])
  end
  @Expire = params['Expire']
  @StartTime = params['StartTime']
end