Skip to content

Commit aef540b

Browse files
authored
Merge branch 'main' into fix-fhir-stores-list
2 parents 579810e + aa83d93 commit aef540b

24 files changed

Lines changed: 546 additions & 25 deletions

File tree

appengine/storage/flexible/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Before you can run or deploy the sample, you will need to do the following:
1212
1. Create a Cloud Storage Bucket. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk)
1313
with the following command:
1414

15-
gsutil mb gs://<your-bucket-name>
15+
gcloud storage buckets create gs://<your-bucket-name>
1616

1717
1. Set the default ACL on your bucket to public read in order to serve files
1818
directly from Cloud Storage. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk)
1919
with the following command:
2020

21-
gsutil defacl set public-read gs://<your-bucket-name>
21+
gcloud storage buckets update gs://<your-bucket-name> --predefined-default-object-acl=publicRead
2222

2323
1. Update the environment variables in `app.yaml`.
2424

appengine/storage/flexible_nodejs16_and_earlier/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Before you can run or deploy the sample, you will need to do the following:
1212
1. Create a Cloud Storage Bucket. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk)
1313
with the following command:
1414

15-
gsutil mb gs://<your-bucket-name>
15+
gcloud storage buckets create gs://<your-bucket-name>
1616

1717
1. Set the default ACL on your bucket to public read in order to serve files
1818
directly from Cloud Storage. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk)
1919
with the following command:
2020

21-
gsutil defacl set public-read gs://<your-bucket-name>
21+
gcloud storage buckets update gs://<your-bucket-name> --predefined-default-object-acl=publicRead
2222

2323
1. Update the environment variables in `app.yaml`.
2424

appengine/storage/standard/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Before you can run or deploy the sample, you will need to do the following:
1212
1. Create a Cloud Storage Bucket. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk)
1313
with the following command:
1414

15-
gsutil mb gs://<your-bucket-name>
15+
gcloud storage buckets create gs://<your-bucket-name>
1616

1717
1. Set the default ACL on your bucket to public read in order to serve files
1818
directly from Cloud Storage. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk)
1919
with the following command:
2020

21-
gsutil defacl set public-read gs://<your-bucket-name>
21+
gcloud storage buckets update --predefined-default-object-acl=publicRead gs://<your-bucket-name>
2222

2323
1. Update the environment variables in `app.yaml`.
2424

eventarc/audit-storage/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ gcloud run deploy $MY_RUN_SERVICE \
3535
Create a _single region_ Cloud Storage bucket:
3636

3737
```sh
38-
gsutil mb -p $(gcloud config get-value project) \
39-
-l us-central1 \
38+
gcloud storage buckets create --project=$(gcloud config get-value project) \
39+
--location=us-central1 \
4040
gs://"$MY_GCS_BUCKET"
4141
```
4242

@@ -56,7 +56,7 @@ gcloud beta eventarc triggers create my-gcs-trigger \
5656
Test your Cloud Run service by creating a GCS event:
5757

5858
```sh
59-
gsutil defstorageclass set NEARLINE gs://"$MY_GCS_BUCKET"
59+
gcloud storage buckets update --default-storage-class=NEARLINE gs://"$MY_GCS_BUCKET"
6060
```
6161

6262
Observe the Cloud Run service printing upon receiving an event in Cloud Logging:

functions/imagemagick/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Functions for your project.
2121

2222
1. Create a Cloud Storage Bucket:
2323

24-
gsutil mb gs://YOUR_INPUT_BUCKET_NAME
24+
gcloud storage buckets create gs://YOUR_INPUT_BUCKET_NAME
2525

2626
This storage bucket is used to upload images for the function to check.
2727

2828
1. Create a second Cloud Storage Bucket:
2929

30-
gsutil mb gs://YOUR_OUTPUT_BUCKET_NAME
30+
gcloud storage buckets create gs://YOUR_OUTPUT_BUCKET_NAME
3131

3232
This second storage bucket is used to store blurred images. (Un-blurred images will not be saved to this bucket.)
3333

functions/v2/imagemagick/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Functions for your project.
2121

2222
1. Create a Cloud Storage Bucket:
2323

24-
gsutil mb gs://YOUR_INPUT_BUCKET_NAME
24+
gcloud storage buckets create gs://YOUR_INPUT_BUCKET_NAME
2525

2626
This storage bucket is used to upload images for the function to check.
2727

2828
1. Create a second Cloud Storage Bucket:
2929

30-
gsutil mb gs://YOUR_OUTPUT_BUCKET_NAME
30+
gcloud storage buckets create gs://YOUR_OUTPUT_BUCKET_NAME
3131

3232
This second storage bucket is used to store blurred images. (Un-blurred images will not be saved to this bucket.)
3333

healthcare/fhir/deleteFhirStore.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const main = (
2727
auth: new google.auth.GoogleAuth({
2828
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2929
}),
30+
responseType: 'json',
3031
});
3132

3233
const deleteFhirStore = async () => {
@@ -38,8 +39,12 @@ const main = (
3839
const name = `projects/${projectId}/locations/${cloudRegion}/datasets/${datasetId}/fhirStores/${fhirStoreId}`;
3940
const request = {name};
4041

41-
await healthcare.projects.locations.datasets.fhirStores.delete(request);
42-
console.log(`Deleted FHIR store: ${fhirStoreId}`);
42+
try {
43+
await healthcare.projects.locations.datasets.fhirStores.delete(request);
44+
console.log(`Deleted FHIR store: ${fhirStoreId}`);
45+
} catch (error) {
46+
console.error('Error deleting FHIR store:', error.message || error);
47+
}
4348
};
4449

4550
deleteFhirStore();

memorystore/redis/gce_deployment/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636

3737
#Upload the tar to GCS
3838
tar -cvf app.tar -C .. package.json server.js
39-
gsutil cp app.tar gs://"$GCS_BUCKET_NAME"/gce/
39+
gcloud storage cp app.tar gs://"$GCS_BUCKET_NAME"/gce/
4040

4141
# Create an instance
4242
gcloud compute instances create my-instance \

memorystore/redis/gce_deployment/startup-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ apt-get install -yq ca-certificates supervisor nodejs build-essential
3434
curl -s "https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh" | bash
3535
service google-fluentd restart &
3636

37-
gsutil cp gs://"$GCS_BUCKET_NAME"/gce/app.tar /app.tar
37+
gcloud storage cp gs://"$GCS_BUCKET_NAME"/gce/app.tar /app.tar
3838
mkdir -p /app
3939
tar -x -f /app.tar -C /app
4040
cd /app

run/image-processing/test/e2e_test_cleanup.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ steps:
2424
"gcloud pubsub subscriptions delete ${_SERVICE}_sub"
2525
2626
- id: 'Delete GCS buckets'
27-
name: 'gcr.io/cloud-builders/gsutil:latest'
27+
name: 'gcr.io/cloud-builders/gcloud:latest'
2828
entrypoint: /bin/bash
2929
args:
3030
- '-c'
3131
- |
32-
./test/retry.sh "gsutil rm -r gs://${_SERVICE}_input"
33-
./test/retry.sh "gsutil rm -r gs://${_SERVICE}_output"
32+
./test/retry.sh "gcloud storage rm --recursive gs://${_SERVICE}_input"
33+
./test/retry.sh "gcloud storage rm --recursive gs://${_SERVICE}_output"
3434
3535
substitutions:
3636
_SERVICE: image-processing

0 commit comments

Comments
 (0)