Artifact Registry v1 API - Class CleanupPolicyMostRecentVersions (2.8.0)

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.

Inheritance

object > CleanupPolicyMostRecentVersions

Namespace

Google.Cloud.ArtifactRegistry.V1

Assembly

Google.Cloud.ArtifactRegistry.V1.dll

Constructors

CleanupPolicyMostRecentVersions()

public CleanupPolicyMostRecentVersions()

CleanupPolicyMostRecentVersions(CleanupPolicyMostRecentVersions)

public CleanupPolicyMostRecentVersions(CleanupPolicyMostRecentVersions other)
Parameter
Name Description
other CleanupPolicyMostRecentVersions

Properties

HasKeepCount

public bool HasKeepCount { get; }

Gets whether the "keep_count" field is set

Property Value
Type Description
bool

KeepCount

public int KeepCount { get; set; }

Minimum number of versions to keep.

Property Value
Type Description
int

PackageNamePrefixes

public RepeatedField<string> PackageNamePrefixes { get; }

List of package name prefixes that will apply this rule.

Property Value
Type Description
RepeatedFieldstring