BucketLifecycleRuleCondition class

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


BucketLifecycleRuleCondition.fromJson(Map _json)


age int
Age of an object (in days). This condition is satisfied when an object reaches the specified age.
read / write
createdBefore DateTime
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.
read / write
customTimeBefore DateTime
A timestamp in RFC 3339 format. This condition is satisfied when the custom time on an object is before this timestamp.
read / write
daysSinceCustomTime 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.
read / write
isLive 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.
read / write
matchesPattern 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.
read / write
matchesStorageClass 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.
read / write
numNewerVersions 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.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


toJson() Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator ==(dynamic other) bool
The equality operator. [...]