Class: Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::MonthlyRetentionSchedule
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::MonthlyRetentionSchedule
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb
Overview
Monthly retention schedule.
Instance Attribute Summary collapse
-
#retention_duration ⇒ RetentionDuration
Retention duration of retention Policy.
-
#retention_schedule_daily ⇒ DailyRetentionFormat
retention policy.
-
#retention_schedule_format_type ⇒ RetentionScheduleFormat
monthly retention policy.
-
#retention_schedule_weekly ⇒ WeeklyRetentionFormat
retention policy.
-
#retention_times ⇒ Array<DateTime>
Retention times of retention policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MonthlyRetentionSchedule class as Ruby Hash.
Instance Attribute Details
#retention_duration ⇒ RetentionDuration
Returns Retention duration of retention Policy.
32 33 34 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb', line 32 def retention_duration @retention_duration end |
#retention_schedule_daily ⇒ DailyRetentionFormat
retention policy.
22 23 24 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb', line 22 def retention_schedule_daily @retention_schedule_daily end |
#retention_schedule_format_type ⇒ RetentionScheduleFormat
monthly retention policy. Possible values include: ‘Invalid’, ‘Daily’, ‘Weekly’
18 19 20 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb', line 18 def retention_schedule_format_type @retention_schedule_format_type end |
#retention_schedule_weekly ⇒ WeeklyRetentionFormat
retention policy.
26 27 28 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb', line 26 def retention_schedule_weekly @retention_schedule_weekly end |
#retention_times ⇒ Array<DateTime>
Returns Retention times of retention policy.
29 30 31 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb', line 29 def retention_times @retention_times end |
Class Method Details
.mapper ⇒ Object
Mapper for MonthlyRetentionSchedule class as Ruby Hash. This will be used for serialization/deserialization.
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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/monthly_retention_schedule.rb', line 39 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MonthlyRetentionSchedule', type: { name: 'Composite', class_name: 'MonthlyRetentionSchedule', model_properties: { retention_schedule_format_type: { client_side_validation: true, required: false, serialized_name: 'retentionScheduleFormatType', type: { name: 'String' } }, retention_schedule_daily: { client_side_validation: true, required: false, serialized_name: 'retentionScheduleDaily', type: { name: 'Composite', class_name: 'DailyRetentionFormat' } }, retention_schedule_weekly: { client_side_validation: true, required: false, serialized_name: 'retentionScheduleWeekly', type: { name: 'Composite', class_name: 'WeeklyRetentionFormat' } }, retention_times: { client_side_validation: true, required: false, serialized_name: 'retentionTimes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'DateTimeElementType', type: { name: 'DateTime' } } } }, retention_duration: { client_side_validation: true, required: false, serialized_name: 'retentionDuration', type: { name: 'Composite', class_name: 'RetentionDuration' } } } } } end |