Class: TencentCloud::Cbs::V20170312::CreateAutoSnapshotPolicyRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cbs::V20170312::CreateAutoSnapshotPolicyRequest
- Defined in:
- lib/v20170312/models.rb
Overview
CreateAutoSnapshotPolicy请求参数结构体
Instance Attribute Summary collapse
- #AutoSnapshotPolicyName ⇒ Object
- #DryRun ⇒ Object
- #IsActivated ⇒ Object
- #IsPermanent ⇒ Object
- #Policy ⇒ Object
- #RetentionDays ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(policy = nil, dryrun = nil, isactivated = nil, autosnapshotpolicyname = nil, ispermanent = nil, retentiondays = nil) ⇒ CreateAutoSnapshotPolicyRequest
constructor
A new instance of CreateAutoSnapshotPolicyRequest.
Constructor Details
#initialize(policy = nil, dryrun = nil, isactivated = nil, autosnapshotpolicyname = nil, ispermanent = nil, retentiondays = nil) ⇒ CreateAutoSnapshotPolicyRequest
Returns a new instance of CreateAutoSnapshotPolicyRequest.
589 590 591 592 593 594 595 596 |
# File 'lib/v20170312/models.rb', line 589 def initialize(policy=nil, dryrun=nil, isactivated=nil, autosnapshotpolicyname=nil, ispermanent=nil, retentiondays=nil) @Policy = policy @DryRun = dryrun @IsActivated = isactivated @AutoSnapshotPolicyName = autosnapshotpolicyname @IsPermanent = ispermanent @RetentionDays = retentiondays end |
Instance Attribute Details
#AutoSnapshotPolicyName ⇒ Object
587 588 589 |
# File 'lib/v20170312/models.rb', line 587 def AutoSnapshotPolicyName @AutoSnapshotPolicyName end |
#DryRun ⇒ Object
587 588 589 |
# File 'lib/v20170312/models.rb', line 587 def DryRun @DryRun end |
#IsActivated ⇒ Object
587 588 589 |
# File 'lib/v20170312/models.rb', line 587 def IsActivated @IsActivated end |
#IsPermanent ⇒ Object
587 588 589 |
# File 'lib/v20170312/models.rb', line 587 def IsPermanent @IsPermanent end |
#Policy ⇒ Object
587 588 589 |
# File 'lib/v20170312/models.rb', line 587 def Policy @Policy end |
#RetentionDays ⇒ Object
587 588 589 |
# File 'lib/v20170312/models.rb', line 587 def RetentionDays @RetentionDays end |
Instance Method Details
#deserialize(params) ⇒ Object
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 |
# File 'lib/v20170312/models.rb', line 598 def deserialize(params) unless params['Policy'].nil? @Policy = [] params['Policy'].each do |i| policy_tmp = Policy.new policy_tmp.deserialize(i) @Policy << policy_tmp end end @DryRun = params['DryRun'] @IsActivated = params['IsActivated'] @AutoSnapshotPolicyName = params['AutoSnapshotPolicyName'] @IsPermanent = params['IsPermanent'] @RetentionDays = params['RetentionDays'] end |