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 \ V1Methods
__construct
Constructor.
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
↳ newer_than
getTagState
Match versions by tag status.
int
hasTagState
clearTagState
setTagState
Match versions by tag status.
var
int
$this
getTagPrefixes
Match versions by tag prefix. Applied on any prefix match.
setTagPrefixes
Match versions by tag prefix. Applied on any prefix match.
var
string[]
$this
getVersionNamePrefixes
Match versions by version name prefix. Applied on any prefix match.
setVersionNamePrefixes
Match versions by version name prefix. Applied on any prefix match.
var
string[]
$this
getPackageNamePrefixes
Match versions by package prefix. Applied on any prefix match.
setPackageNamePrefixes
Match versions by package prefix. Applied on any prefix match.
var
string[]
$this
getOlderThan
Match versions older than a duration.
hasOlderThan
clearOlderThan
setOlderThan
Match versions older than a duration.
$this
getNewerThan
Match versions newer than a duration.
hasNewerThan
clearNewerThan
setNewerThan
Match versions newer than a duration.
$this