Udostępnij przez


DeleteRetentionPolicy Class

Definition

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()

Applies to