From eae3cf2735cd4adab598d311fd64b8906972ffc3 Mon Sep 17 00:00:00 2001 From: sundarrajanraman <106651904+sundarrajanraman@users.noreply.github.com> Date: Wed, 19 Oct 2022 02:22:49 +0530 Subject: [PATCH] fix: update BucketInfo.LifecycleRule#fromPb to wire through MatchesPrefix & MatchesSuffix (#1717) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../src/main/java/com/google/cloud/storage/BucketInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java index bee76fd0f..7e06de27b 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java +++ b/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java @@ -662,7 +662,9 @@ public StorageClass apply(String storageClass) { .setDaysSinceNoncurrentTime(condition.getDaysSinceNoncurrentTime()) .setNoncurrentTimeBefore(condition.getNoncurrentTimeBefore()) .setCustomTimeBefore(condition.getCustomTimeBefore()) - .setDaysSinceCustomTime(condition.getDaysSinceCustomTime()); + .setDaysSinceCustomTime(condition.getDaysSinceCustomTime()) + .setMatchesPrefix(condition.getMatchesPrefix()) + .setMatchesSuffix(condition.getMatchesSuffix()); return new LifecycleRule(lifecycleAction, conditionBuilder.build()); }