Skip to content

Commit

Permalink
chore(feat): add hns to bucket metadata and include_folders_as_prefix…
Browse files Browse the repository at this point in the history
… to protos (#2433)

* fix(deps): Update the Java code generator (gapic-generator-java) to 2.37.0

PiperOrigin-RevId: 611816371

Source-Link: googleapis/googleapis@2a40f63

Source-Link: googleapis/googleapis-gen@d30ff07
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDMwZmYwNzY3Nzc3YjM4MWZiMTYxN2Y2N2E5MGUzYWJkM2JkYzZkYyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: Support for creating HNS Bucket in C++ SDK

PiperOrigin-RevId: 613689182

Source-Link: googleapis/googleapis@8e2fbae

Source-Link: googleapis/googleapis-gen@fb6e4b5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmI2ZTRiNTAyYmU3MDY2YzlkMGVlYzcyMTM0ODc0NjNhZGUyMWIwMCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix clirr

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Lovelace <[email protected]>
  • Loading branch information
3 people committed Mar 12, 2024
1 parent 1352203 commit 254d2ea
Show file tree
Hide file tree
Showing 11 changed files with 1,525 additions and 427 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3576,6 +3576,7 @@ public final ListObjectsPagedResponse listObjects(String parent) {
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setSoftDeleted(true)
* .setIncludeFoldersAsPrefixes(true)
* .setMatchGlob("matchGlob613636317")
* .build();
* for (Object element : storageClient.listObjects(request).iterateAll()) {
Expand Down Expand Up @@ -3617,6 +3618,7 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setSoftDeleted(true)
* .setIncludeFoldersAsPrefixes(true)
* .setMatchGlob("matchGlob613636317")
* .build();
* ApiFuture<Object> future = storageClient.listObjectsPagedCallable().futureCall(request);
Expand Down Expand Up @@ -3658,6 +3660,7 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) {
* .setLexicographicStart("lexicographicStart-2093413008")
* .setLexicographicEnd("lexicographicEnd1646968169")
* .setSoftDeleted(true)
* .setIncludeFoldersAsPrefixes(true)
* .setMatchGlob("matchGlob613636317")
* .build();
* while (true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$HierarchicalNamespace",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$HierarchicalNamespace$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.storage.v2.Bucket$IamConfig",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public void getBucketTest() throws Exception {
.setSatisfiesPzs(true)
.setCustomPlacementConfig(Bucket.CustomPlacementConfig.newBuilder().build())
.setAutoclass(Bucket.Autoclass.newBuilder().build())
.setHierarchicalNamespace(Bucket.HierarchicalNamespace.newBuilder().build())
.setSoftDeletePolicy(Bucket.SoftDeletePolicy.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);
Expand Down Expand Up @@ -268,6 +269,7 @@ public void getBucketTest2() throws Exception {
.setSatisfiesPzs(true)
.setCustomPlacementConfig(Bucket.CustomPlacementConfig.newBuilder().build())
.setAutoclass(Bucket.Autoclass.newBuilder().build())
.setHierarchicalNamespace(Bucket.HierarchicalNamespace.newBuilder().build())
.setSoftDeletePolicy(Bucket.SoftDeletePolicy.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);
Expand Down Expand Up @@ -334,6 +336,7 @@ public void createBucketTest() throws Exception {
.setSatisfiesPzs(true)
.setCustomPlacementConfig(Bucket.CustomPlacementConfig.newBuilder().build())
.setAutoclass(Bucket.Autoclass.newBuilder().build())
.setHierarchicalNamespace(Bucket.HierarchicalNamespace.newBuilder().build())
.setSoftDeletePolicy(Bucket.SoftDeletePolicy.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);
Expand Down Expand Up @@ -406,6 +409,7 @@ public void createBucketTest2() throws Exception {
.setSatisfiesPzs(true)
.setCustomPlacementConfig(Bucket.CustomPlacementConfig.newBuilder().build())
.setAutoclass(Bucket.Autoclass.newBuilder().build())
.setHierarchicalNamespace(Bucket.HierarchicalNamespace.newBuilder().build())
.setSoftDeletePolicy(Bucket.SoftDeletePolicy.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);
Expand Down Expand Up @@ -566,6 +570,7 @@ public void lockBucketRetentionPolicyTest() throws Exception {
.setSatisfiesPzs(true)
.setCustomPlacementConfig(Bucket.CustomPlacementConfig.newBuilder().build())
.setAutoclass(Bucket.Autoclass.newBuilder().build())
.setHierarchicalNamespace(Bucket.HierarchicalNamespace.newBuilder().build())
.setSoftDeletePolicy(Bucket.SoftDeletePolicy.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);
Expand Down Expand Up @@ -633,6 +638,7 @@ public void lockBucketRetentionPolicyTest2() throws Exception {
.setSatisfiesPzs(true)
.setCustomPlacementConfig(Bucket.CustomPlacementConfig.newBuilder().build())
.setAutoclass(Bucket.Autoclass.newBuilder().build())
.setHierarchicalNamespace(Bucket.HierarchicalNamespace.newBuilder().build())
.setSoftDeletePolicy(Bucket.SoftDeletePolicy.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);
Expand Down Expand Up @@ -954,6 +960,7 @@ public void updateBucketTest() throws Exception {
.setSatisfiesPzs(true)
.setCustomPlacementConfig(Bucket.CustomPlacementConfig.newBuilder().build())
.setAutoclass(Bucket.Autoclass.newBuilder().build())
.setHierarchicalNamespace(Bucket.HierarchicalNamespace.newBuilder().build())
.setSoftDeletePolicy(Bucket.SoftDeletePolicy.newBuilder().build())
.build();
mockStorage.addResponse(expectedResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GaxProperties;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
Expand Down Expand Up @@ -533,8 +532,6 @@ public UnaryCallSettings.Builder<RenameFolderRequest, Operation> renameFolderSet
}

/** Returns the builder for the settings used for calls to renameFolder. */
@BetaApi(
"The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallSettings.Builder<RenameFolderRequest, Folder, RenameFolderMetadata>
renameFolderOperationSettings() {
return renameFolderOperationSettings;
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 @@ -66,4 +66,16 @@
<className>com/google/storage/v2/*</className>
<method>* *HardDeleteTime*(*)</method>
</difference>

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

<difference>
<differenceType>7012</differenceType>
<className>com/google/storage/v2/*</className>
<method>* *IncludeFoldersAsPrefixes*(*)</method>
</difference>
</differences>

0 comments on commit 254d2ea

Please sign in to comment.