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\u003eVersion 2.9.0 is the latest version available for the Artifact Registry v1 API class CleanupPolicyMostRecentVersions, with version 2.8.0 being the current focus of the documentation.\u003c/p\u003e\n"],["\u003cp\u003eCleanupPolicyMostRecentVersions is a class within the Google.Cloud.ArtifactRegistry.V1 namespace, providing a way to retain a minimum number of versions.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces such as IMessage, IEquatable, IDeepCloneable, and IBufferMessage, and inherits from the object class.\u003c/p\u003e\n"],["\u003cp\u003eThe class features properties such as HasKeepCount, KeepCount, and PackageNamePrefixes, which manage the version retention and application rules.\u003c/p\u003e\n"],["\u003cp\u003eConstructors for the class allow for creation of an empty instance or creation from an existing CleanupPolicyMostRecentVersions object.\u003c/p\u003e\n"]]],[],null,[]]