共用方式為


RetentionPolicy Class

Definition

The retention policy for a container registry.

public class RetentionPolicy
type RetentionPolicy = class
Public Class RetentionPolicy
Inheritance
RetentionPolicy

Constructors

RetentionPolicy()

Initializes a new instance of the RetentionPolicy class.

RetentionPolicy(Nullable<Int32>, Nullable<DateTime>, String)

Initializes a new instance of the RetentionPolicy class.

Properties

Days

Gets or sets the number of days to retain an untagged manifest after which it gets purged.

LastUpdatedTime

Gets the timestamp when the policy was last updated.

Status

Gets or sets the value that indicates whether the policy is enabled or not. Possible values include: 'enabled', 'disabled'

Applies to