Class: Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::SubProtectionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/sub_protection_policy.rb
Overview
Sub-protection policy which includes schedule and retention
Instance Attribute Summary collapse
-
#policy_type ⇒ String
Type of backup policy type.
-
#retention_policy ⇒ RetentionPolicy
copy retention ranges.
-
#schedule_policy ⇒ SchedulePolicy
policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SubProtectionPolicy class as Ruby Hash.
Instance Attribute Details
#policy_type ⇒ String
Returns Type of backup policy type.
20 21 22 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/sub_protection_policy.rb', line 20 def policy_type @policy_type end |
#retention_policy ⇒ RetentionPolicy
copy retention ranges.
28 29 30 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/sub_protection_policy.rb', line 28 def retention_policy @retention_policy end |
#schedule_policy ⇒ SchedulePolicy
policy.
24 25 26 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/sub_protection_policy.rb', line 24 def schedule_policy @schedule_policy end |
Class Method Details
.mapper ⇒ Object
Mapper for SubProtectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/sub_protection_policy.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SubProtectionPolicy', type: { name: 'Composite', class_name: 'SubProtectionPolicy', model_properties: { policy_type: { client_side_validation: true, required: false, serialized_name: 'policyType', type: { name: 'String' } }, schedule_policy: { client_side_validation: true, required: false, serialized_name: 'schedulePolicy', type: { name: 'Composite', polymorphic_discriminator: 'schedulePolicyType', uber_parent: 'SchedulePolicy', class_name: 'SchedulePolicy' } }, retention_policy: { client_side_validation: true, required: false, serialized_name: 'retentionPolicy', type: { name: 'Composite', polymorphic_discriminator: 'retentionPolicyType', uber_parent: 'RetentionPolicy', class_name: 'RetentionPolicy' } } } } } end |