Send feedback
Class BucketInfo.AgeDeleteRule (2.8.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.8.1 keyboard_arrow_down
public static class BucketInfo . AgeDeleteRule extends BucketInfo . DeleteRule
Deprecated. Use a 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()))
Delete rule class that sets a Time To Live for blobs in the bucket.
See Also: Object Lifecycle Management
Constructors
AgeDeleteRule(int daysToLive) (deprecated)
public AgeDeleteRule ( int daysToLive )
Creates an AgeDeleteRule
object.
Parameter
Name
Description
daysToLive
int
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.
Methods
getDaysToLive() (deprecated)
public int getDaysToLive ()
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-10 UTC."}