Skip to content

Commit 63e028b

Browse files
janlugtpongad
authored andcommitted
storage: change batch endpoint from /batch to /batch/storage/v1 (#3046)
This is in line with documentation at https://cloud.google.com/storage/docs/json_api/v1/how-tos/batch.
1 parent 4fbe331 commit 63e028b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ public void submit() {
188188
// TODO(hailongwen@): instrument 'google-api-java-client' to further break down the span.
189189
// Here we only add a annotation to at least know how much time each batch takes.
190190
span.addAnnotation("Execute batch request");
191+
batch.setBatchUrl(new GenericUrl("https://www.googleapis.com/batch/storage/v1"));
191192
batch.execute();
192193
}
193194
} catch (IOException ex) {

0 commit comments

Comments
 (0)