Share via


RetentionPolicy Constructors

Definition

Overloads

RetentionPolicy()

Initializes a new instance of the RetentionPolicy class.

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

Initializes a new instance of the RetentionPolicy class.

RetentionPolicy()

Initializes a new instance of the RetentionPolicy class.

public RetentionPolicy ();
Public Sub New ()

Applies to

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

Initializes a new instance of the RetentionPolicy class.

public RetentionPolicy (int? days = default, DateTime? lastUpdatedTime = default, string status = default);
new Microsoft.Azure.Management.ContainerRegistry.Models.RetentionPolicy : Nullable<int> * Nullable<DateTime> * string -> Microsoft.Azure.Management.ContainerRegistry.Models.RetentionPolicy
Public Sub New (Optional days As Nullable(Of Integer) = Nothing, Optional lastUpdatedTime As Nullable(Of DateTime) = Nothing, Optional status As String = Nothing)

Parameters

days
Nullable<Int32>

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

lastUpdatedTime
Nullable<DateTime>

The timestamp when the policy was last updated.

status
String

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

Applies to