Google Cloud Artifact Registry V1 Client - Class CleanupPolicyMostRecentVersions (0.5.1)

Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class CleanupPolicyMostRecentVersions.

CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy for retaining a minimum number of versions.

Generated from protobuf message google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ package_name_prefixes array

List of package name prefixes that will apply this rule.

↳ keep_count int

Minimum number of versions to keep.

getPackageNamePrefixes

List of package name prefixes that will apply this rule.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPackageNamePrefixes

List of package name prefixes that will apply this rule.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getKeepCount

Minimum number of versions to keep.

Returns
TypeDescription
int

hasKeepCount

clearKeepCount

setKeepCount

Minimum number of versions to keep.

Parameter
NameDescription
var int
Returns
TypeDescription
$this