Class: Azure::Storage::Mgmt::V2021_01_01::Models::DeleteRetentionPolicy
- Inherits:
-
Object
- Object
- Azure::Storage::Mgmt::V2021_01_01::Models::DeleteRetentionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2021-01-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb
Overview
The service properties for soft delete.
Instance Attribute Summary collapse
-
#days ⇒ Integer
should be retained.
-
#enabled ⇒ Boolean
Indicates whether DeleteRetentionPolicy is enabled.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DeleteRetentionPolicy class as Ruby Hash.
Instance Attribute Details
#days ⇒ Integer
should be retained. The minimum specified value can be 1 and the maximum value can be 365.
21 22 23 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb', line 21 def days @days end |
#enabled ⇒ Boolean
Returns Indicates whether DeleteRetentionPolicy is enabled.
16 17 18 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb', line 16 def enabled @enabled end |
Class Method Details
.mapper ⇒ Object
Mapper for DeleteRetentionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
28 29 30 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 60 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb', line 28 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DeleteRetentionPolicy', type: { name: 'Composite', class_name: 'DeleteRetentionPolicy', model_properties: { enabled: { client_side_validation: true, required: false, serialized_name: 'enabled', type: { name: 'Boolean' } }, days: { client_side_validation: true, required: false, serialized_name: 'days', constraints: { InclusiveMaximum: 365, InclusiveMinimum: 1 }, type: { name: 'Number' } } } } } end |