-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Ensure bucket upload methods return the blob. #597
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
Ensure bucket upload methods return the blob. #597
Conversation
|
@tseaver WDYT of having As an aside (outside of this PR), I feel like having a single We have (happily, for me) moved away from multi-type behavior for inputs, e.g. Somehow I feel like this is slightly different since there is only one action (
As another aside (outside of this PR), shall we cut a release tomorrow? |
|
dceabc6 drops the I'm not sure that a single def upload(self, name, file_obj):
"""Upload a blob into this bucket.
:type name: string
:param name: name of the blob within the bucket.
:type file_obj: readable file-like object
:param blob: an object that can be read like a file.
:rtype: :class:`Blob`
:returns: The created / updated Blob object.
"""
def download(self, name, file_obj):
"""Download a blob from this bucket
:type name: string
:param name: name of the blob within the bucket.
:type file_obj: writeable file-like object
:param blob: an object that can be written like a file.
"""A release today seems like a good plan. Is it just a matter of making a tag, or does somebody need to to PyPI stuff manually? |
|
LGTM. Yeah I think the single-use I will prepare the tag today. Our Travis config deals with PyPI for us, so no issues there. The only effort is put release notes in the tag (which will be copious here). |
…ad_file_obj Ensure bucket upload methods return the blob.
Source-Link: googleapis/synthtool@6ed3a83 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
* chore: updates python version to 3.11 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: meredithslota <[email protected]>
Fixes #596.