public sealed class CleanupPolicyMostRecentVersions : IMessage<CleanupPolicyMostRecentVersions>, IEquatable<CleanupPolicyMostRecentVersions>, IDeepCloneable<CleanupPolicyMostRecentVersions>, IBufferMessage, IMessage
Reference documentation and code samples for the Artifact Registry v1 API class CleanupPolicyMostRecentVersions.
CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy
for retaining a minimum number of versions.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version available for the `CleanupPolicyMostRecentVersions` class is 2.9.0, with multiple previous versions also documented, ranging down to version 1.0.0."],["The `CleanupPolicyMostRecentVersions` class is part of the Google.Cloud.ArtifactRegistry.V1 namespace within the Artifact Registry v1 API and is designed as an alternative condition of a CleanupPolicy that focuses on retaining a set minimum number of versions."],["This class implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, making it compatible with Google's Protocol Buffers and .NET."],["Key properties of `CleanupPolicyMostRecentVersions` include `HasKeepCount`, which indicates if the `keep_count` is set, `KeepCount` which specifies the minimum number of versions to keep, and `PackageNamePrefixes` for listing package name prefixes where this rule applies."]]],[]]