Skip to content

Commit

Permalink
chore: add Autoclass.terminal_storage_class and ListObjectRequest.mat…
Browse files Browse the repository at this point in the history
…ch_glob (#2233)

- [ ] Regenerate this pull request now.

The terminal_storage_class field allows users to set the coldest storage class for Autoclass enabled buckets. An object in an Autoclass bucket will eventually cool down to the terminal storage class if there is no access to the object.

PiperOrigin-RevId: 569316060

Source-Link: https://togithub.com/googleapis/googleapis/commit/6152583cc73cc80ad4db8fb628b8cdc5ef771557

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4d0fb9143b3869e1d00104ba6983a0a66bfe6627
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGQwZmI5MTQzYjM4NjllMWQwMDEwNGJhNjk4M2EwYTY2YmZlNjYyNyJ9

BEGIN_NESTED_COMMIT
chore: add match_glob field to ListObjectsRequest
This new field allows filtering out objects or prefixes from the listing. This
can help improve performance by avoiding returning unwanted items. See
https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob.

PiperOrigin-RevId: 568887673

Source-Link: https://togithub.com/googleapis/googleapis/commit/cf24f76c17c84e976818811b607d79dac17e4ac6

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/8cbb1c0e2fadbd6ef6f61bc7b3899d5103ea1461
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGNiYjFjMGUyZmFkYmQ2ZWY2ZjYxYmM3YjM4OTlkNTEwM2VhMTQ2MSJ9
END_NESTED_COMMIT
  • Loading branch information
gcf-owl-bot[bot] authored Oct 9, 2023
1 parent f1740ee commit cf3e358
Show file tree
Hide file tree
Showing 7 changed files with 1,298 additions and 390 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2815,6 +2815,7 @@ public final ListObjectsPagedResponse listObjects(String parent) {
* .setReadMask(FieldMask.newBuilder().build())
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setMatchGlob("matchGlob613636317")
* .build();
* for (Object element : storageClient.listObjects(request).iterateAll()) {
* // doThingsWith(element);
Expand Down Expand Up @@ -2854,6 +2855,7 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
* .setReadMask(FieldMask.newBuilder().build())
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setMatchGlob("matchGlob613636317")
* .build();
* ApiFuture<Object> future = storageClient.listObjectsPagedCallable().futureCall(request);
* // Do something.
Expand Down Expand Up @@ -2893,6 +2895,7 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
* .setReadMask(FieldMask.newBuilder().build())
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setMatchGlob("matchGlob613636317")
* .build();
* while (true) {
* ListObjectsResponse response = storageClient.listObjectsCallable().call(request);
Expand Down
12 changes: 12 additions & 0 deletions proto-google-cloud-storage-v2/clirr-ignored-differences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
<method>* *ObjectChecksums*(*)</method>
</difference>

<difference>
<differenceType>7012</differenceType>
<className>com/google/storage/v2/Bucket*</className>
<method>* *TerminalStorageClass*(*)</method>
</difference>

<difference>
<differenceType>7012</differenceType>
<className>com/google/storage/v2/ListObjectsRequestOrBuilder</className>
<method>* *MatchGlob*(*)</method>
</difference>

<!-- Allow rename from Notification to NotificationConfig-->
<difference>
<differenceType>8001</differenceType>
Expand Down
Loading

0 comments on commit cf3e358

Please sign in to comment.