class Azure::Storage::Mgmt::V2018_07_01::Models::DeleteRetentionPolicy
The blob service properties for soft delete.
Attributes
days[RW]
@return [Integer] Indicates the number of days that the deleted blob should be retained. The minimum specified value can be 1 and the maximum value can be 365.
enabled[RW]
@return [Boolean] Indicates whether DeleteRetentionPolicy is enabled for the Blob service.
Public Class Methods
mapper()
click to toggle source
Mapper for DeleteRetentionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-07-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