Skip to content

Commit cecc7ac

Browse files
docs(storage): add documentation for blob and bucket name property (#89)
Fixes #82
1 parent 9550dad commit cecc7ac

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

google/cloud/storage/blob.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ def __init__(
174174
kms_key_name=None,
175175
generation=None,
176176
):
177+
"""
178+
property :attr:`name`
179+
Get the blob's name.
180+
"""
177181
name = _bytes_to_unicode(name)
178182
super(Blob, self).__init__(name=name)
179183

google/cloud/storage/bucket.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@ class Bucket(_PropertyMixin):
505505
"""Allowed values for :attr:`location_type`."""
506506

507507
def __init__(self, client, name=None, user_project=None):
508+
"""
509+
property :attr:`name`
510+
Get the bucket's name.
511+
"""
508512
name = _validate_name(name)
509513
super(Bucket, self).__init__(name=name)
510514
self._client = client

0 commit comments

Comments
 (0)