LifecycleRule
with an action DeleteLifecycleAction
and a
condition LifecycleCondition.Builder.setCreatedBefore
instead.@Deprecated public static class BucketInfo.CreatedBeforeDeleteRule extends BucketInfo.DeleteRule
BucketInfo.DeleteRule.Type
Constructor and Description |
---|
CreatedBeforeDeleteRule(long timeMillis)
Deprecated.
Use
CreatedBeforeDeleteRule(OffsetDateTime) instead |
CreatedBeforeDeleteRule(OffsetDateTime time)
Deprecated.
Creates an
CreatedBeforeDeleteRule object. |
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
getTime()
Deprecated.
|
long |
getTimeMillis()
Deprecated.
|
equals, getType, hashCode
@Deprecated public CreatedBeforeDeleteRule(long timeMillis)
CreatedBeforeDeleteRule(OffsetDateTime)
insteadCreatedBeforeDeleteRule
object.timeMillis
- a date in UTC. Blobs that have been created before midnight of the provided
date meet the delete conditionpublic CreatedBeforeDeleteRule(OffsetDateTime time)
CreatedBeforeDeleteRule
object.time
- Blobs that have been created before midnight of the provided date meet the delete
condition@Deprecated public long getTimeMillis()
getTime()
public OffsetDateTime getTime()
Copyright © 2023 Google LLC. All rights reserved.