Share via


DeleteRetentionPolicy Class

Definition

The service properties for soft delete.

public class DeleteRetentionPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy>
public class DeleteRetentionPolicy
type DeleteRetentionPolicy = class
    interface IJsonModel<DeleteRetentionPolicy>
    interface IPersistableModel<DeleteRetentionPolicy>
type DeleteRetentionPolicy = class
Public Class DeleteRetentionPolicy
Implements IJsonModel(Of DeleteRetentionPolicy), IPersistableModel(Of DeleteRetentionPolicy)
Public Class DeleteRetentionPolicy
Inheritance
DeleteRetentionPolicy
Implements

Constructors

DeleteRetentionPolicy()

Initializes a new instance of DeleteRetentionPolicy.

Properties

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.

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.

IsEnabled

Indicates whether DeleteRetentionPolicy is enabled.

Explicit Interface Implementations

IJsonModel<DeleteRetentionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DeleteRetentionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DeleteRetentionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DeleteRetentionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DeleteRetentionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to