Skip to content

Commit 8c47c93

Browse files
committed
Update Bucket name docstring to define valid values.
1 parent 4e73251 commit 8c47c93

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

storage/google/cloud/storage/_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class _PropertyMixin(object):
3030
- path
3131
3232
:type name: str
33-
:param name: The name of the object.
33+
:param name: The name of the object. Bucket names must start and end with a
34+
number or letter.
3435
"""
3536

3637
def __init__(self, name=None):

storage/google/cloud/storage/bucket.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ class Bucket(_PropertyMixin):
8181
for the bucket (which requires a project).
8282
8383
:type name: str
84-
:param name: The name of the bucket.
84+
:param name: The name of the bucket. Bucket names must start and end with a
85+
number or letter.
8586
"""
8687

8788
_MAX_OBJECTS_FOR_ITERATION = 256

0 commit comments

Comments
 (0)