Visitar URL original
docs: fix docstring example for 'blob.generate_signed_url' (#278) · cojenco/python-storage@8fdec81 · GitHub
Skip to content

Commit 8fdec81

Browse files
HemangChothanicojenco
authored andcommitted
docs: fix docstring example for 'blob.generate_signed_url' (googleapis#278)
1 parent c3f291d commit 8fdec81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎google/cloud/storage/blob.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def generate_signed_url(
407407
>>> from google.cloud import storage
408408
>>> client = storage.Client()
409409
>>> bucket = client.get_bucket('my-bucket-name')
410-
>>> blob = client.get_blob('my-blob-name')
410+
>>> blob = bucket.get_blob('my-blob-name')
411411
>>> url = blob.generate_signed_url(expiration='url-expiration-time', bucket_bound_hostname='mydomain.tld',
412412
>>> version='v4')
413413
>>> url = blob.generate_signed_url(expiration='url-expiration-time', bucket_bound_hostname='mydomain.tld',

0 commit comments

Comments
 (0)