LifecycleRule class

A rule of a bucket's lifecycle policy.

Rules apply to every object in the bucket. The only action the server accepts today is noncurrentVersionExpiration, which has nothing to act on until the bucket's VersioningStatus has been VersioningStatus.enabled.

Constructors

LifecycleRule({required NoncurrentVersionExpiration noncurrentVersionExpiration, String? id, LifecycleRuleStatus status = LifecycleRuleStatus.enabled})
const
LifecycleRule.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String?
The identifier of the rule, unique within the policy and at most 255 characters. The server generates one when it is omitted.
final
noncurrentVersionExpiration → NoncurrentVersionExpiration
When the previous versions of an object expire.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → LifecycleRuleStatus
Whether the rule is applied.
final

Methods

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

Operators

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