Google Cloud Artifact Registry V1 Client - Class CleanupPolicyCondition (1.0.0)

Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client 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.

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

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ tag_state int

Match versions by tag status.

↳ tag_prefixes array

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

↳ version_name_prefixes array

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

↳ package_name_prefixes array

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

↳ older_than Google\Protobuf\Duration

Match versions older than a duration.

↳ newer_than Google\Protobuf\Duration

Match versions newer than a duration.

getTagState

Match versions by tag status.

Returns
Type Description
int

hasTagState

clearTagState

setTagState

Match versions by tag status.

Parameter
Name Description
var int
Returns
Type Description
$this

getTagPrefixes

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTagPrefixes

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

Parameter
Name Description
var string[]
Returns
Type Description
$this

getVersionNamePrefixes

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setVersionNamePrefixes

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

Parameter
Name Description
var string[]
Returns
Type Description
$this

getPackageNamePrefixes

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPackageNamePrefixes

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

Parameter
Name Description
var string[]
Returns
Type Description
$this

getOlderThan

Match versions older than a duration.

Returns
Type Description
Google\Protobuf\Duration|null

hasOlderThan

clearOlderThan

setOlderThan

Match versions older than a duration.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getNewerThan

Match versions newer than a duration.

Returns
Type Description
Google\Protobuf\Duration|null

hasNewerThan

clearNewerThan

setNewerThan

Match versions newer than a duration.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this