Skip to content

Commit

Permalink
Align BPO docstrings with discovery document comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jan 21, 2019
1 parent dc281af commit c071753
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions storage/google/cloud/storage/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def bucket(self):

@property
def bucket_policy_only(self):
"""Is the bucket configured to allow only IAM policy?
"""If set, access checks only use bucket-level IAM policies or above.
:rtype: bool
:returns: whether the bucket is configured to allow only IAM.
Expand All @@ -336,10 +336,17 @@ def bucket_policy_only(self, value):

@property
def locked_time(self):
"""When was the bucket configured to allow only IAM policy?
"""Deadline for changing :attr:`bucket_policy_only` from true to false.
If the bucket's :attr:`bucket_policy_only` is true, this property
is time time after which that setting becomes immutable.
If the bucket's :attr:`bucket_policy_only` is false, this property
is ``None``.
:rtype: Union[:class:`datetime.datetime`, None]
:returns: (readonly) the time the bucket's IAM-only policy was set.
:returns: (readonly) Time after which :attr:`bucket_policy_only` will
be frozen as true.
"""
bpo = self.get("bucketPolicyOnly", {})
stamp = bpo.get("lockedTime")
Expand Down

0 comments on commit c071753

Please sign in to comment.