Skip to content

Commit 87f27e4

Browse files
updating signed url samples (#1531)
1 parent 2ad77c7 commit 87f27e4

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

samples/snippets/storage_generate_signed_url_v2.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
def generate_signed_url(bucket_name, blob_name):
2727
"""Generates a v2 signed URL for downloading a blob.
2828
29-
Note that this method requires a service account key file. You can not use
30-
this if you are using Application Default Credentials from Google Compute
31-
Engine or from the Google Cloud SDK.
29+
Note that this method requires a service account key file.
3230
"""
3331
# bucket_name = 'your-bucket-name'
3432
# blob_name = 'your-object-name'

samples/snippets/storage_generate_signed_url_v4.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
def generate_download_signed_url_v4(bucket_name, blob_name):
2828
"""Generates a v4 signed URL for downloading a blob.
2929
30-
Note that this method requires a service account key file. You can not use
31-
this if you are using Application Default Credentials from Google Compute
32-
Engine or from the Google Cloud SDK.
30+
Note that this method requires a service account key file.
3331
"""
3432
# bucket_name = 'your-bucket-name'
3533
# blob_name = 'your-object-name'

samples/snippets/storage_generate_upload_signed_url_v4.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
def generate_upload_signed_url_v4(bucket_name, blob_name):
2828
"""Generates a v4 signed URL for uploading a blob using HTTP PUT.
2929
30-
Note that this method requires a service account key file. You can not use
31-
this if you are using Application Default Credentials from Google Compute
32-
Engine or from the Google Cloud SDK.
30+
Note that this method requires a service account key file.
3331
"""
3432
# bucket_name = 'your-bucket-name'
3533
# blob_name = 'your-object-name'

0 commit comments

Comments
 (0)