From 2dc91c947e3693023b4478a15c460693808ea2d9 Mon Sep 17 00:00:00 2001 From: HemangChothani <50404902+HemangChothani@users.noreply.github.com> Date: Wed, 23 Sep 2020 20:47:57 +0530 Subject: [PATCH] docs: fix docstring example for 'blob.generate_signed_url' (#278) --- google/cloud/storage/blob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/storage/blob.py b/google/cloud/storage/blob.py index a7e6952bf..b1e13788d 100644 --- a/google/cloud/storage/blob.py +++ b/google/cloud/storage/blob.py @@ -407,7 +407,7 @@ def generate_signed_url( >>> from google.cloud import storage >>> client = storage.Client() >>> bucket = client.get_bucket('my-bucket-name') - >>> blob = client.get_blob('my-blob-name') + >>> blob = bucket.get_blob('my-blob-name') >>> url = blob.generate_signed_url(expiration='url-expiration-time', bucket_bound_hostname='mydomain.tld', >>> version='v4') >>> url = blob.generate_signed_url(expiration='url-expiration-time', bucket_bound_hostname='mydomain.tld',