public sealed class CleanupPolicyCondition : IMessage<CleanupPolicyCondition>, IEquatable<CleanupPolicyCondition>, IDeepCloneable<CleanupPolicyCondition>, IBufferMessage, IMessage
Reference documentation and code samples for the Artifact Registry v1 API class CleanupPolicyCondition.
CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy.
If multiple entries are set, all must be satisfied for the condition to be
satisfied.
[[["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 current documentation version is 2.8.0, with version 2.9.0 being the latest available, and provides access to a range of previous versions dating back to 1.0.0 for Google.Cloud.ArtifactRegistry.V1.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e is a class within the Google Cloud Artifact Registry v1 API, used to define the set of conditions that are used for a \u003ccode\u003eCleanupPolicy\u003c/code\u003e with multiple conditions all having to be satisfied.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for different operations and comparisons.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e class offers several properties for specifying criteria, such as \u003ccode\u003eNewerThan\u003c/code\u003e, \u003ccode\u003eOlderThan\u003c/code\u003e, \u003ccode\u003ePackageNamePrefixes\u003c/code\u003e, \u003ccode\u003eTagPrefixes\u003c/code\u003e, \u003ccode\u003eTagState\u003c/code\u003e, and \u003ccode\u003eVersionNamePrefixes\u003c/code\u003e, and each one is designed to match specific conditions.\u003c/p\u003e\n"],["\u003cp\u003eThe class is available within the \u003ccode\u003eGoogle.Cloud.ArtifactRegistry.V1\u003c/code\u003e namespace and it's assembly, \u003ccode\u003eGoogle.Cloud.ArtifactRegistry.V1.dll\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]