SoftDeletePolicy Class

Definition

The soft delete policy for a container registry

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.SoftDeletePolicyTypeConverter))]
public class SoftDeletePolicy : Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.ISoftDeletePolicy
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.SoftDeletePolicyTypeConverter))>]
type SoftDeletePolicy = class
    interface ISoftDeletePolicy
    interface IJsonSerializable
Public Class SoftDeletePolicy
Implements ISoftDeletePolicy
Inheritance
SoftDeletePolicy
Attributes
Implements

Constructors

SoftDeletePolicy()

Creates an new SoftDeletePolicy instance.

Properties

LastUpdatedTime

The timestamp when the policy was last updated.

RetentionDay

The number of days after which a soft-deleted item is permanently deleted.

Status

The value that indicates whether the policy is enabled or not.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SoftDeletePolicy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SoftDeletePolicy.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.ISoftDeletePolicy.

FromJsonString(String)

Creates a new instance of SoftDeletePolicy, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of SoftDeletePolicy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to