Class: Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::YearlyRetentionSchedule
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2019_05_13::Models::YearlyRetentionSchedule
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb
Overview
Yearly retention schedule.
Instance Attribute Summary collapse
-
#months_of_year ⇒ Array<MonthOfYear>
policy.
-
#retention_duration ⇒ RetentionDuration
Retention duration of retention Policy.
-
#retention_schedule_daily ⇒ DailyRetentionFormat
retention policy.
-
#retention_schedule_format_type ⇒ RetentionScheduleFormat
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 YearlyRetentionSchedule class as Ruby Hash.
Instance Attribute Details
permalink #months_of_year ⇒ Array<MonthOfYear>
policy.
21 22 23 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb', line 21 def months_of_year @months_of_year end |
permalink #retention_duration ⇒ RetentionDuration
Returns Retention duration of retention Policy.
35 36 37 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb', line 35 def retention_duration @retention_duration end |
permalink #retention_schedule_daily ⇒ DailyRetentionFormat
retention policy.
25 26 27 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb', line 25 def retention_schedule_daily @retention_schedule_daily end |
permalink #retention_schedule_format_type ⇒ RetentionScheduleFormat
retention policy. Possible values include: ‘Invalid’, ‘Daily’, ‘Weekly’
17 18 19 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb', line 17 def retention_schedule_format_type @retention_schedule_format_type end |
permalink #retention_schedule_weekly ⇒ WeeklyRetentionFormat
retention policy.
29 30 31 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb', line 29 def retention_schedule_weekly @retention_schedule_weekly end |
permalink #retention_times ⇒ Array<DateTime>
Returns Retention times of retention policy.
32 33 34 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb', line 32 def retention_times @retention_times end |
Class Method Details
permalink .mapper ⇒ Object
Mapper for YearlyRetentionSchedule class as Ruby Hash. This will be used for serialization/deserialization.
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 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'YearlyRetentionSchedule', type: { name: 'Composite', class_name: 'YearlyRetentionSchedule', model_properties: { retention_schedule_format_type: { client_side_validation: true, required: false, serialized_name: 'retentionScheduleFormatType', type: { name: 'String' } }, months_of_year: { client_side_validation: true, required: false, serialized_name: 'monthsOfYear', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MonthOfYearElementType', type: { name: 'Enum', module: 'MonthOfYear' } } } }, 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 |