Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support daysSinceNoncurrentTime and noncurrentTimeBefore OLM options #332

Closed
jkwlui opened this issue May 21, 2020 · 0 comments · Fixed by #335
Closed

Support daysSinceNoncurrentTime and noncurrentTimeBefore OLM options #332

jkwlui opened this issue May 21, 2020 · 0 comments · Fixed by #335
Assignees
Labels
api: storage Issues related to the googleapis/java-storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@jkwlui
Copy link
Member

jkwlui commented May 21, 2020

bucket
    .toBuilder()
    .setLifecycleRules(
        ImmutableList.of(
            new LifecycleRule(
                LifecycleRule.LifecycleAction.newDeleteAction(),
                LifecycleRule.LifecycleCondition.newBuilder()
                    .setDaysSinceNoncurrentTime(30)
                    .setNoncurrentTimeBefore(/* Date object */)
                    .build())))
    .build()
    .update();
@athakor athakor transferred this issue from googleapis/google-cloud-java May 22, 2020
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/java-storage API. label May 22, 2020
@athakor athakor self-assigned this May 22, 2020
@athakor athakor added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
2 participants