diff --git a/google/cloud/storage/blob.py b/google/cloud/storage/blob.py index fb329d08d..e8299d424 100644 --- a/google/cloud/storage/blob.py +++ b/google/cloud/storage/blob.py @@ -174,6 +174,10 @@ def __init__( kms_key_name=None, generation=None, ): + """ + property :attr:`name` + Get the blob's name. + """ name = _bytes_to_unicode(name) super(Blob, self).__init__(name=name) diff --git a/google/cloud/storage/bucket.py b/google/cloud/storage/bucket.py index c2a909357..0b977f65f 100644 --- a/google/cloud/storage/bucket.py +++ b/google/cloud/storage/bucket.py @@ -505,6 +505,10 @@ class Bucket(_PropertyMixin): """Allowed values for :attr:`location_type`.""" def __init__(self, client, name=None, user_project=None): + """ + property :attr:`name` + Get the bucket's name. + """ name = _validate_name(name) super(Bucket, self).__init__(name=name) self._client = client