Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage: Make 'Blob.bucket' a readonly property. #9113

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Storage: Make 'Blob.bucket' a readonly property. #9113

merged 1 commit into from
Aug 27, 2019

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Aug 27, 2019

Closes #9107.

@tseaver tseaver added the api: storage Issues related to the Cloud Storage API. label Aug 27, 2019
@tseaver tseaver requested a review from tswast August 27, 2019 17:40
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 27, 2019
storage/google/cloud/storage/blob.py Show resolved Hide resolved
def bucket(self):
"""Bucket which contains the object.

:rtype: :class:`~google.cloud.storage.bucket.Bucket`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use Google-style docstrings on new methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems cleaner to make that a task to convert whole modules.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy if it matches the file in which it is added. Agree that we likely have a backlog task to do this though.

@tseaver
Copy link
Contributor Author

tseaver commented Aug 27, 2019

Unit test failures due to yesterday's google-resumable-media release: merge after #9119 is merged.

def bucket(self):
"""Bucket which contains the object.

:rtype: :class:`~google.cloud.storage.bucket.Bucket`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy if it matches the file in which it is added. Agree that we likely have a backlog task to do this though.

@tseaver tseaver merged commit 9289c52 into googleapis:master Aug 27, 2019
@tseaver tseaver deleted the 9107-storage-blob-bucket-readonly-property branch August 27, 2019 22:32
HemangChothani pushed a commit to HemangChothani/google-cloud-python that referenced this pull request Aug 29, 2019
emar-kar pushed a commit to MaxxleLLC/google-cloud-python that referenced this pull request Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Storage: Document public bucket property
5 participants