Class: TencentCloud::Cfs::V20190719::CreateAutoSnapshotPolicyRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfs::V20190719::CreateAutoSnapshotPolicyRequest
- Defined in:
- lib/v20190719/models.rb
Overview
CreateAutoSnapshotPolicy请求参数结构体
Instance Attribute Summary collapse
- #AliveDays ⇒ Object
- #DayOfMonth ⇒ Object
- #DayOfWeek ⇒ Object
- #Hour ⇒ Object
- #IntervalDays ⇒ Object
- #PolicyName ⇒ Object
- #ResourceTags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(hour = nil, policyname = nil, dayofweek = nil, alivedays = nil, dayofmonth = nil, intervaldays = nil, resourcetags = nil) ⇒ CreateAutoSnapshotPolicyRequest
constructor
A new instance of CreateAutoSnapshotPolicyRequest.
Constructor Details
#initialize(hour = nil, policyname = nil, dayofweek = nil, alivedays = nil, dayofmonth = nil, intervaldays = nil, resourcetags = nil) ⇒ CreateAutoSnapshotPolicyRequest
Returns a new instance of CreateAutoSnapshotPolicyRequest.
479 480 481 482 483 484 485 486 487 |
# File 'lib/v20190719/models.rb', line 479 def initialize(hour=nil, policyname=nil, dayofweek=nil, alivedays=nil, dayofmonth=nil, intervaldays=nil, =nil) @Hour = hour @PolicyName = policyname @DayOfWeek = dayofweek @AliveDays = alivedays @DayOfMonth = dayofmonth @IntervalDays = intervaldays @ResourceTags = end |
Instance Attribute Details
#AliveDays ⇒ Object
477 478 479 |
# File 'lib/v20190719/models.rb', line 477 def AliveDays @AliveDays end |
#DayOfMonth ⇒ Object
477 478 479 |
# File 'lib/v20190719/models.rb', line 477 def DayOfMonth @DayOfMonth end |
#DayOfWeek ⇒ Object
477 478 479 |
# File 'lib/v20190719/models.rb', line 477 def DayOfWeek @DayOfWeek end |
#Hour ⇒ Object
477 478 479 |
# File 'lib/v20190719/models.rb', line 477 def Hour @Hour end |
#IntervalDays ⇒ Object
477 478 479 |
# File 'lib/v20190719/models.rb', line 477 def IntervalDays @IntervalDays end |
#PolicyName ⇒ Object
477 478 479 |
# File 'lib/v20190719/models.rb', line 477 def PolicyName @PolicyName end |
#ResourceTags ⇒ Object
477 478 479 |
# File 'lib/v20190719/models.rb', line 477 def ResourceTags @ResourceTags end |
Instance Method Details
#deserialize(params) ⇒ Object
489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 |
# File 'lib/v20190719/models.rb', line 489 def deserialize(params) @Hour = params['Hour'] @PolicyName = params['PolicyName'] @DayOfWeek = params['DayOfWeek'] @AliveDays = params['AliveDays'] @DayOfMonth = params['DayOfMonth'] @IntervalDays = params['IntervalDays'] unless params['ResourceTags'].nil? @ResourceTags = [] params['ResourceTags'].each do |i| taginfo_tmp = TagInfo.new taginfo_tmp.deserialize(i) @ResourceTags << taginfo_tmp end end end |