ArmContainerRegistryModelFactory.ContainerRegistryRetentionPolicy Method

Definition

Initializes a new instance of ContainerRegistryRetentionPolicy.

public static Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryRetentionPolicy ContainerRegistryRetentionPolicy (int? days = default, DateTimeOffset? lastUpdatedOn = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryPolicyStatus? status = default);
static member ContainerRegistryRetentionPolicy : Nullable<int> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryPolicyStatus> -> Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryRetentionPolicy
Public Shared Function ContainerRegistryRetentionPolicy (Optional days As Nullable(Of Integer) = Nothing, Optional lastUpdatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional status As Nullable(Of ContainerRegistryPolicyStatus) = Nothing) As ContainerRegistryRetentionPolicy

Parameters

days
Nullable<Int32>

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

lastUpdatedOn
Nullable<DateTimeOffset>

The timestamp when the policy was last updated.

status
Nullable<ContainerRegistryPolicyStatus>

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

Returns

A new ContainerRegistryRetentionPolicy instance for mocking.

Applies to