Class: Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::LongTermRetentionPolicy
- Inherits:
-
RetentionPolicy
- Object
- RetentionPolicy
- Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::LongTermRetentionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb
Overview
Long term retention policy.
Instance Attribute Summary collapse
-
#daily_schedule ⇒ DailyRetentionSchedule
protection policy.
-
#monthly_schedule ⇒ MonthlyRetentionSchedule
protection policy.
-
#retentionPolicyType ⇒ Object
Returns the value of attribute retentionPolicyType.
-
#weekly_schedule ⇒ WeeklyRetentionSchedule
protection policy.
-
#yearly_schedule ⇒ YearlyRetentionSchedule
protection policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LongTermRetentionPolicy class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ LongTermRetentionPolicy
constructor
A new instance of LongTermRetentionPolicy.
Constructor Details
permalink #initialize ⇒ LongTermRetentionPolicy
Returns a new instance of LongTermRetentionPolicy.
16 17 18 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 16 def initialize @retentionPolicyType = "LongTermRetentionPolicy" end |
Instance Attribute Details
permalink #daily_schedule ⇒ DailyRetentionSchedule
protection policy.
24 25 26 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 24 def daily_schedule @daily_schedule end |
permalink #monthly_schedule ⇒ MonthlyRetentionSchedule
protection policy.
32 33 34 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 32 def monthly_schedule @monthly_schedule end |
permalink #retentionPolicyType ⇒ Object
Returns the value of attribute retentionPolicyType.
20 21 22 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 20 def retentionPolicyType @retentionPolicyType end |
permalink #weekly_schedule ⇒ WeeklyRetentionSchedule
protection policy.
28 29 30 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 28 def weekly_schedule @weekly_schedule end |
permalink #yearly_schedule ⇒ YearlyRetentionSchedule
protection policy.
36 37 38 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 36 def yearly_schedule @yearly_schedule end |
Class Method Details
permalink .mapper ⇒ Object
Mapper for LongTermRetentionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/long_term_retention_policy.rb', line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'LongTermRetentionPolicy', type: { name: 'Composite', class_name: 'LongTermRetentionPolicy', model_properties: { retentionPolicyType: { client_side_validation: true, required: true, serialized_name: 'retentionPolicyType', type: { name: 'String' } }, daily_schedule: { client_side_validation: true, required: false, serialized_name: 'dailySchedule', type: { name: 'Composite', class_name: 'DailyRetentionSchedule' } }, weekly_schedule: { client_side_validation: true, required: false, serialized_name: 'weeklySchedule', type: { name: 'Composite', class_name: 'WeeklyRetentionSchedule' } }, monthly_schedule: { client_side_validation: true, required: false, serialized_name: 'monthlySchedule', type: { name: 'Composite', class_name: 'MonthlyRetentionSchedule' } }, yearly_schedule: { client_side_validation: true, required: false, serialized_name: 'yearlySchedule', type: { name: 'Composite', class_name: 'YearlyRetentionSchedule' } } } } } end |