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

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
NameDescription
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
TypeDescription
int

hasTagState

clearTagState

setTagState

Match versions by tag status.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTagPrefixes

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTagPrefixes

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getVersionNamePrefixes

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setVersionNamePrefixes

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getPackageNamePrefixes

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPackageNamePrefixes

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getOlderThan

Match versions older than a duration.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasOlderThan

clearOlderThan

setOlderThan

Match versions older than a duration.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getNewerThan

Match versions newer than a duration.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasNewerThan

clearNewerThan

setNewerThan

Match versions newer than a duration.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this