-
Notifications
You must be signed in to change notification settings - Fork 85
Closed
Labels
api: storageIssues related to the googleapis/java-storage API.Issues related to the googleapis/java-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Request to support a new customTime metadata and associated custom timestamp based OLM conditions:
DateTime customTimeBefore = DateTime.parseRfc3339("2020-01-01T00:00:00Z");
bucket
.toBuilder()
.setLifecycleRules(
ImmutableList.of(
new LifecycleRule(
LifecycleRule.LifecycleAction.newDeleteAction(),
LifecycleRule.LifecycleCondition.newBuilder()
.setDaysSinceCustomTime(30)
.setCustomTimeBefore(customTimeBefore)
.build())))
.build()
.update();
// New metadata field:
Map<String, String> newMetadata = new HashMap<>();
newMetadata.put(
"customTime", DateTime.parseRfc3339("2020-01-01T00:00:00Z"));
Blob blob = storage.get(bucketName, objectName);
blob.toBuilder().setMetadata(newMetadata).build().update();Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/java-storage API.Issues related to the googleapis/java-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.