Skip to content

Commit 62dd433

Browse files
chore: Migrate gsutil usage to gcloud storage (#406)
* chore: Migrate gsutil usage to gcloud storage * Update python/dynamic-commands/README.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 2645f86 commit 62dd433

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

python/dynamic-commands/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ These are the dynamic commands that the Chat App will recognize and load.
9393
This can be done from the command line with the following command:
9494

9595
```
96-
gsutil -m cp command_files/* gs://<PROJECT>-dynamic-commands
96+
gcloud storage cp command_files/* gs://<PROJECT>-dynamic-commands
9797
```
9898

9999
## Set up the Chat App in Cloud Console
@@ -192,7 +192,7 @@ The bucket can be created in the
192192
the `gsutil` CLI as follows:
193193

194194
```
195-
gsutil mb -p <PROJECT> gs://<PROJECT>-dynamic-commands
195+
gcloud storage buckets create --project <PROJECT> gs://<PROJECT>-dynamic-commands
196196
```
197197

198198

python/dynamic-commands/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ if [ ${DEPLOY_STORAGE} -eq 1 ]; then
109109
BUCKET=${PROJECT}-dynamic-commands
110110

111111
# Create bucket if it's not already present
112-
${DRY_RUN} gsutil ls -p ${PROJECT} gs://${BUCKET} > /dev/null 2>&1
112+
${DRY_RUN} gcloud storage ls --project=${PROJECT} gs://${BUCKET} > /dev/null 2>&1
113113
RETVAL=$?
114114
if (( ${RETVAL} != "0" )); then
115-
${DRY_RUN} gsutil mb -p ${PROJECT} gs://${BUCKET}
115+
${DRY_RUN} gcloud storage buckets create --project=${PROJECT} gs://${BUCKET}
116116
fi
117117
fi
118118

0 commit comments

Comments
 (0)