From 8b52525bd8f2ec275fd9742943e7e795719529e9 Mon Sep 17 00:00:00 2001 From: Jan van der Lugt Date: Wed, 14 Mar 2018 15:58:09 -0700 Subject: [PATCH] Change GCS batch endpoint from /batch to /batch/storage/v1. This is in line with documentation at https://cloud.google.com/storage/docs/json_api/v1/how-tos/batch. --- .../java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java | 1 + 1 file changed, 1 insertion(+) diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java index d5268a1f5fef..b0a71387690a 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java +++ b/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java @@ -188,6 +188,7 @@ public void submit() { // TODO(hailongwen@): instrument 'google-api-java-client' to further break down the span. // Here we only add a annotation to at least know how much time each batch takes. span.addAnnotation("Execute batch request"); + batch.setBatchUrl(new GenericUrl("https://www.googleapis.com/batch/storage/v1")); batch.execute(); } } catch (IOException ex) {