Skip to content

Commit 4ecdb29

Browse files
authored
[Storage] Bucket Lock (#3727)
* [Storage] Replay GCS Bucket Lock (#3645) * Add support for defaultEventBasedHold * Add support for Blob eventBasedHold * Add support for blob temporary holds * Remove Beta launch annotations for CMEK * Add support for lockRetentionPolicy and RetentionPolicy * Update FakeStorageRPC * codacy-bot review fix (final only) * Update getRetentionPolicyIsLocked() -> retentionPolicyIsLocked() and misc. * Address comments * Address comments * Address comments. * Small nits * Fix additional comments * [Storage] Bucket lock samples and bug fixes. (#3709) * Fix issue in tests, write bucket lock samples, and resolve issue in client library * Update documentation around Boolean returns to clarify different return caes. * Fix broken unit test * Address feedback * Fix typo in comments
1 parent a348f18 commit 4ecdb29

File tree

1 file changed

+6
-0
lines changed
  • java-storage-nio/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/testing

1 file changed

+6
-0
lines changed

java-storage-nio/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/testing/FakeStorageRpc.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
* <li>createBatch
6666
* <li>checksums, etags
6767
* <li>IAM operations</li>
68+
* <li>BucketLock operations</li>
6869
* </ul>
6970
* </ul>
7071
*/
@@ -520,6 +521,11 @@ public Notification createNotification(String bucket, Notification notification)
520521
throw new UnsupportedOperationException();
521522
}
522523

524+
@Override
525+
public Bucket lockRetentionPolicy(Bucket bucket, Map<Option, ?> options) {
526+
throw new UnsupportedOperationException();
527+
}
528+
523529
@Override
524530
public ServiceAccount getServiceAccount(String projectId) {
525531
return null;

0 commit comments

Comments
 (0)