From 927869096a15c8c8ff5c88883174a0c1fa1fa5ba Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Thu, 8 Jan 2026 10:53:29 +0000 Subject: [PATCH 1/4] chore: Migrate gsutil usage to gcloud storage --- flexible/java-11/cloudstorage/README.md | 4 ++-- flexible/java-17/cloudstorage/README.md | 4 ++-- flexible/java-8/cloudstorage/README.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flexible/java-11/cloudstorage/README.md b/flexible/java-11/cloudstorage/README.md index 07436e7ebd0..f8633dd6faf 100644 --- a/flexible/java-11/cloudstorage/README.md +++ b/flexible/java-11/cloudstorage/README.md @@ -18,7 +18,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gsutil mb gs://[your-bucket-name] + gcloud storage buckets create gs://[your-bucket-name] ``` 1. Set the default ACL on your bucket to public read in order to serve files @@ -26,7 +26,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gsutil defacl set public-read gs://[your-bucket-name] + gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=public-read ``` 1. Update the bucket name in `src/main/appengine/app.yaml`. This makes the diff --git a/flexible/java-17/cloudstorage/README.md b/flexible/java-17/cloudstorage/README.md index 07436e7ebd0..f8633dd6faf 100644 --- a/flexible/java-17/cloudstorage/README.md +++ b/flexible/java-17/cloudstorage/README.md @@ -18,7 +18,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gsutil mb gs://[your-bucket-name] + gcloud storage buckets create gs://[your-bucket-name] ``` 1. Set the default ACL on your bucket to public read in order to serve files @@ -26,7 +26,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gsutil defacl set public-read gs://[your-bucket-name] + gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=public-read ``` 1. Update the bucket name in `src/main/appengine/app.yaml`. This makes the diff --git a/flexible/java-8/cloudstorage/README.md b/flexible/java-8/cloudstorage/README.md index 986d2d6621a..651bb50d6d5 100644 --- a/flexible/java-8/cloudstorage/README.md +++ b/flexible/java-8/cloudstorage/README.md @@ -12,12 +12,12 @@ Before you can run or deploy the sample, you will need to do the following: 2. Create a Cloud Storage Bucket. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk) using the following command: ``` - $ gsutil mb gs://[your-bucket-name] + $ gcloud storage buckets create gs://[your-bucket-name] ``` 3. Set the default ACL on your bucket to public read in order to serve files directly from Cloud Storage. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk) using the following command: ``` - $ gsutil defacl set public-read gs://[your-bucket-name] + $ gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=public-read ``` 4. Update the bucket name in `src/main/appengine/app.yaml`. This makes the bucket name an environment variable in deployment. You still need to set the environment variable when running locally, as shown below. From bb9e9ade65ee1e6786a94aaa6fa2eb66c37d5506 Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Thu, 8 Jan 2026 16:39:01 +0530 Subject: [PATCH 2/4] Update README.md --- flexible/java-11/cloudstorage/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexible/java-11/cloudstorage/README.md b/flexible/java-11/cloudstorage/README.md index f8633dd6faf..1a8b51f1446 100644 --- a/flexible/java-11/cloudstorage/README.md +++ b/flexible/java-11/cloudstorage/README.md @@ -26,7 +26,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=public-read + gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead ``` 1. Update the bucket name in `src/main/appengine/app.yaml`. This makes the From bd7baecb9bca495d8601d226a4ec46428087d7a2 Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Thu, 8 Jan 2026 16:39:20 +0530 Subject: [PATCH 3/4] Update README.md --- flexible/java-17/cloudstorage/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexible/java-17/cloudstorage/README.md b/flexible/java-17/cloudstorage/README.md index f8633dd6faf..1a8b51f1446 100644 --- a/flexible/java-17/cloudstorage/README.md +++ b/flexible/java-17/cloudstorage/README.md @@ -26,7 +26,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=public-read + gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead ``` 1. Update the bucket name in `src/main/appengine/app.yaml`. This makes the From ddc281b740e53f0641cd5f4edd4a619f1e53ff22 Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Thu, 8 Jan 2026 16:39:49 +0530 Subject: [PATCH 4/4] Update README.md --- flexible/java-8/cloudstorage/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexible/java-8/cloudstorage/README.md b/flexible/java-8/cloudstorage/README.md index 651bb50d6d5..4c821531bf5 100644 --- a/flexible/java-8/cloudstorage/README.md +++ b/flexible/java-8/cloudstorage/README.md @@ -17,7 +17,7 @@ Before you can run or deploy the sample, you will need to do the following: 3. Set the default ACL on your bucket to public read in order to serve files directly from Cloud Storage. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk) using the following command: ``` - $ gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=public-read + $ gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead ``` 4. Update the bucket name in `src/main/appengine/app.yaml`. This makes the bucket name an environment variable in deployment. You still need to set the environment variable when running locally, as shown below.