Class: Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::RetentionDuration
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2019_06_15::Models::RetentionDuration
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb
Overview
Retention duration.
Instance Attribute Summary collapse
-
#count ⇒ Integer
obtained by the counting the duration type Count times.
-
#duration_type ⇒ RetentionDurationType
policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RetentionDuration class as Ruby Hash.
Instance Attribute Details
permalink #count ⇒ Integer
obtained by the counting the duration type Count times. For example, when Count = 3 and DurationType = Weeks, retention duration will be three weeks.
19 20 21 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb', line 19 def count @count end |
permalink #duration_type ⇒ RetentionDurationType
policy. Possible values include: ‘Invalid’, ‘Days’, ‘Weeks’, ‘Months’, ‘Years’
24 25 26 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb', line 24 def duration_type @duration_type end |
Class Method Details
permalink .mapper ⇒ Object
Mapper for RetentionDuration class as Ruby Hash. This will be used for serialization/deserialization.
31 32 33 34 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 |
# File 'lib/2019-06-15/generated/azure_mgmt_recovery_services_backup/models/retention_duration.rb', line 31 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: 'String' } } } } } end |