BucketLifecycleRuleItemCondition class

The condition(s) under which the action will be taken.

Constructors

BucketLifecycleRuleItemCondition({Input<int>? age, Input<String>? createdBefore, Input<String>? customTimeBefore, Input<int>? daysSinceCustomTime, Input<int>? daysSinceNoncurrentTime, Input<bool>? isLive, Input<String>? matchesPattern, Input<List<String>>? matchesPrefix, Input<List<String>>? matchesStorageClass, Input<List<String>>? matchesSuffix, Input<String>? noncurrentTimeBefore, Input<int>? numNewerVersions})
Creates a new BucketLifecycleRuleItemCondition. age Age of an object (in days). This condition is satisfied when an object reaches the specified age. createdBefore A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified date in UTC. customTimeBefore A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when the custom time on an object is before this date in UTC. daysSinceCustomTime Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply. daysSinceNoncurrentTime Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it's zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent. isLive Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects. matchesPattern A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the "Early Access" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released. matchesPrefix List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name. matchesStorageClass Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY. matchesSuffix List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name. noncurrentTimeBefore A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects. numNewerVersions Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
const
BucketLifecycleRuleItemCondition.fromMap(Map<String, dynamic> map)
factory

Properties

age → Input<int>?
Age of an object (in days). This condition is satisfied when an object reaches the specified age.
final
createdBefore → Input<String>?
A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified date in UTC.
final
customTimeBefore → Input<String>?
A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when the custom time on an object is before this date in UTC.
final
daysSinceCustomTime → Input<int>?
Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.
final
daysSinceNoncurrentTime → Input<int>?
Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it's zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.
final
hashCode → int
The hash code for this object.
no setterinherited
isLive → Input<bool>?
Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
final
matchesPattern → Input<String>?
A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the "Early Access" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.
final
matchesPrefix → Input<List<String>>?
List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.
final
matchesStorageClass → Input<List<String>>?
Objects having any of the storage classes specified by this condition will be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE_REDUCED_AVAILABILITY.
final
matchesSuffix → Input<List<String>>?
List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.
final
noncurrentTimeBefore → Input<String>?
A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.
final
numNewerVersions → Input<int>?
Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited