Artifact Registry v1 API - Class CleanupPolicyCondition (2.7.0)

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.

Inheritance

object > CleanupPolicyCondition

Namespace

Google.Cloud.ArtifactRegistry.V1

Assembly

Google.Cloud.ArtifactRegistry.V1.dll

Constructors

CleanupPolicyCondition()

public CleanupPolicyCondition()

CleanupPolicyCondition(CleanupPolicyCondition)

public CleanupPolicyCondition(CleanupPolicyCondition other)
Parameter
Name Description
other CleanupPolicyCondition

Properties

HasTagState

public bool HasTagState { get; }

Gets whether the "tag_state" field is set

Property Value
Type Description
bool

NewerThan

public Duration NewerThan { get; set; }

Match versions newer than a duration.

Property Value
Type Description
Duration

OlderThan

public Duration OlderThan { get; set; }

Match versions older than a duration.

Property Value
Type Description
Duration

PackageNamePrefixes

public RepeatedField<string> PackageNamePrefixes { get; }

Match versions by package prefix. Applied on any prefix match.

Property Value
Type Description
RepeatedFieldstring

TagPrefixes

public RepeatedField<string> TagPrefixes { get; }

Match versions by tag prefix. Applied on any prefix match.

Property Value
Type Description
RepeatedFieldstring

TagState

public CleanupPolicyCondition.Types.TagState TagState { get; set; }

Match versions by tag status.

Property Value
Type Description
CleanupPolicyConditionTypesTagState

VersionNamePrefixes

public RepeatedField<string> VersionNamePrefixes { get; }

Match versions by version name prefix. Applied on any prefix match.

Property Value
Type Description
RepeatedFieldstring