LifecycleRule
with a DeleteLifecycleAction
and use LifecycleCondition.Builder.setAge
instead.
For example, new DeleteLifecycleAction(1)
is equivalent to new
LifecycleRule( LifecycleAction.newDeleteAction(),
LifecycleCondition.newBuilder().setAge(1).build()))
@Deprecated public static class BucketInfo.AgeDeleteRule extends BucketInfo.DeleteRule
BucketInfo.DeleteRule.Type
Constructor and Description |
---|
AgeDeleteRule(int daysToLive)
Deprecated.
Creates an
AgeDeleteRule object. |
Modifier and Type | Method and Description |
---|---|
int |
getDaysToLive()
Deprecated.
|
equals, getType, hashCode
public AgeDeleteRule(int daysToLive)
AgeDeleteRule
object.daysToLive
- blobs' Time To Live expressed in days. The time when the age condition is
considered to be satisfied is computed by adding daysToLive
days to the midnight
following blob's creation time in UTC.Copyright © 2023 Google LLC. All rights reserved.