你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RetentionPolicy Class

Definition

The retention policy for a container registry.

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

Constructors

RetentionPolicy()

Creates an new RetentionPolicy instance.

Properties

Day

The number of days to retain an untagged manifest after which it gets purged.

LastUpdatedTime

The timestamp when the policy was last updated.

Status

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

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of RetentionPolicy.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of RetentionPolicy.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of RetentionPolicy into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to