ArmContainerRegistryModelFactory.ContainerRegistryRetentionPolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- lastUpdatedOn
- Nullable<DateTimeOffset>
The timestamp when the policy was last updated.
The value that indicates whether the policy is enabled or not.
Returns
A new ContainerRegistryRetentionPolicy instance for mocking.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET