Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::RetentionDuration
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::RetentionDuration
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb
Overview
Retention duration.
Instance Attribute Summary collapse
-
#count ⇒ Integer
determined by the combining the Count times and durationType.
-
#duration_type ⇒ RetentionDurationType
retention policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RetentionDuration class as Ruby Hash.
Instance Attribute Details
#count ⇒ Integer
determined by the combining the Count times and durationType. For example, if Count = 3 and durationType = Weeks, then the retention duration is three weeks.
23 24 25 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb', line 23 def count @count end |
#duration_type ⇒ RetentionDurationType
retention policy. Possible values include: ‘Invalid’, ‘Days’, ‘Weeks’, ‘Months’, ‘Years’
28 29 30 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb', line 28 def duration_type @duration_type end |
Class Method Details
.mapper ⇒ Object
Mapper for RetentionDuration 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 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RetentionDuration', type: { name: 'Composite', class_name: 'RetentionDuration', model_properties: { count: { client_side_validation: true, required: false, serialized_name: 'count', type: { name: 'Number' } }, duration_type: { client_side_validation: true, required: false, serialized_name: 'durationType', type: { name: 'Enum', module: 'RetentionDurationType' } } } } } end |