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.
634 635 636 637 638 639 640 641 |
# File 'lib/v20170312/models.rb', line 634 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
632 633 634 |
# File 'lib/v20170312/models.rb', line 632 def AutoSnapshotPolicyName @AutoSnapshotPolicyName end |
#DryRun ⇒ Object
632 633 634 |
# File 'lib/v20170312/models.rb', line 632 def DryRun @DryRun end |
#IsActivated ⇒ Object
632 633 634 |
# File 'lib/v20170312/models.rb', line 632 def IsActivated @IsActivated end |
#IsPermanent ⇒ Object
632 633 634 |
# File 'lib/v20170312/models.rb', line 632 def IsPermanent @IsPermanent end |
#Policy ⇒ Object
632 633 634 |
# File 'lib/v20170312/models.rb', line 632 def Policy @Policy end |
#RetentionDays ⇒ Object
632 633 634 |
# File 'lib/v20170312/models.rb', line 632 def RetentionDays @RetentionDays end |
Instance Method Details
#deserialize(params) ⇒ Object
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 |
# File 'lib/v20170312/models.rb', line 643 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 |