DeleteRetentionPolicy Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The service properties for soft delete.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DeleteRetentionPolicyTypeConverter))]
public class DeleteRetentionPolicy : Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IDeleteRetentionPolicy
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.DeleteRetentionPolicyTypeConverter))>]
type DeleteRetentionPolicy = class
interface IDeleteRetentionPolicy
interface IJsonSerializable
Public Class DeleteRetentionPolicy
Implements IDeleteRetentionPolicy
- Inheritance
-
DeleteRetentionPolicy
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| DeleteRetentionPolicy() |
Creates an new DeleteRetentionPolicy instance. |
Properties
| Name | Description |
|---|---|
| AllowPermanentDelete |
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. |
| Day |
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. |
| Enabled |
Indicates whether DeleteRetentionPolicy is enabled. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of DeleteRetentionPolicy. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of DeleteRetentionPolicy. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IDeleteRetentionPolicy. |
| FromJsonString(String) |
Creates a new instance of DeleteRetentionPolicy, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of DeleteRetentionPolicy into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |
| ToString() | |