Class: TencentCloud::Cbs::V20170312::Policy
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cbs::V20170312::Policy
- Defined in:
- lib/v20170312/models.rb
Overview
描述了定期快照的执行策略。可理解为在DayOfWeek/DayOfMonth指定的几天中,或者是IntervalDays设定的间隔的几天,在Hour指定的时刻点执行该条定期快照策。注:DayOfWeek/DayOfMonth/IntervalDays为互斥规则,必填且仅可设置其中一条策略规则。如果同时传入互斥规则,则只有一条生效,优先级为上文列出顺序:例如将三条规则全部设置,只有 DayOfWeek 生效。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(hour = nil, dayofweek = nil, dayofmonth = nil, intervaldays = nil) ⇒ Policy
constructor
A new instance of Policy.
Constructor Details
#initialize(hour = nil, dayofweek = nil, dayofmonth = nil, intervaldays = nil) ⇒ Policy
Returns a new instance of Policy.
3014 3015 3016 3017 3018 3019 |
# File 'lib/v20170312/models.rb', line 3014 def initialize(hour=nil, dayofweek=nil, dayofmonth=nil, intervaldays=nil) @Hour = hour @DayOfWeek = dayofweek @DayOfMonth = dayofmonth @IntervalDays = intervaldays end |
Instance Attribute Details
#DayOfMonth ⇒ Object
3012 3013 3014 |
# File 'lib/v20170312/models.rb', line 3012 def DayOfMonth @DayOfMonth end |
#DayOfWeek ⇒ Object
3012 3013 3014 |
# File 'lib/v20170312/models.rb', line 3012 def DayOfWeek @DayOfWeek end |
#Hour ⇒ Object
3012 3013 3014 |
# File 'lib/v20170312/models.rb', line 3012 def Hour @Hour end |
#IntervalDays ⇒ Object
3012 3013 3014 |
# File 'lib/v20170312/models.rb', line 3012 def IntervalDays @IntervalDays end |
Instance Method Details
#deserialize(params) ⇒ Object
3021 3022 3023 3024 3025 3026 |
# File 'lib/v20170312/models.rb', line 3021 def deserialize(params) @Hour = params['Hour'] @DayOfWeek = params['DayOfWeek'] @DayOfMonth = params['DayOfMonth'] @IntervalDays = params['IntervalDays'] end |