ArmContainerRegistryModelFactory.ContainerRegistrySoftDeletePolicy 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 ContainerRegistrySoftDeletePolicy.
public static Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistrySoftDeletePolicy ContainerRegistrySoftDeletePolicy(int? retentionDays = default, DateTimeOffset? lastUpdatedOn = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryPolicyStatus? status = default);
static member ContainerRegistrySoftDeletePolicy : Nullable<int> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryPolicyStatus> -> Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistrySoftDeletePolicy
Public Shared Function ContainerRegistrySoftDeletePolicy (Optional retentionDays As Nullable(Of Integer) = Nothing, Optional lastUpdatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional status As Nullable(Of ContainerRegistryPolicyStatus) = Nothing) As ContainerRegistrySoftDeletePolicy
Parameters
The number of days after which a soft-deleted item is permanently deleted.
- 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 ContainerRegistrySoftDeletePolicy instance for mocking.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET