DeleteRetentionPolicy Class
The service properties for soft delete.
- Inheritance
-
azure.mgmt.storage._serialization.ModelDeleteRetentionPolicy
Constructor
DeleteRetentionPolicy(*, enabled: bool | None = None, days: int | None = None, allow_permanent_delete: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
enabled
|
Indicates whether DeleteRetentionPolicy is enabled. |
days
|
Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365. |
allow_permanent_delete
|
This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share. |
Variables
Name | Description |
---|---|
enabled
|
Indicates whether DeleteRetentionPolicy is enabled. |
days
|
Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365. |
allow_permanent_delete
|
This property when set to true allows deletion of the soft deleted blob versions and snapshots. This property cannot be used blob restore policy. This property only applies to blob service and does not apply to containers or file share. |
Azure SDK for Python