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."],[[["This document provides reference information for the `CleanupPolicyMostRecentVersions` class within version 2.7.0 of the Google Cloud Artifact Registry v1 API."],["`CleanupPolicyMostRecentVersions` serves as an alternative condition within a `CleanupPolicy` to maintain a specific minimum number of versions."],["The `CleanupPolicyMostRecentVersions` class implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["Key properties of the class include `HasKeepCount` (boolean), `KeepCount` (integer), and `PackageNamePrefixes` (a list of strings), which define the version retention policy and the scope of package name prefixes for which it applies."],["The documentation covers the constructor methods and inherited members from the base `object` class, such as `GetHashCode`, `GetType`, and `ToString`."]]],[]]