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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCleanupPolicyMostRecentVersions\u003c/code\u003e class is a part of the Artifact Registry v1 API, used for defining a policy to retain a minimum number of versions.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, facilitating its use within the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eKeepCount\u003c/code\u003e, which specifies the minimum number of versions to keep, and \u003ccode\u003ePackageNamePrefixes\u003c/code\u003e, which lists package name prefixes for rule application.\u003c/p\u003e\n"],["\u003cp\u003eThe document contains access to multiple different versions of the API including the latest version 2.9.0 as well as going as far back as version 1.0.0.\u003c/p\u003e\n"]]],[],null,[]]