FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Replace optional connection with client in storage methods and functions. by dhermes · Pull Request #984 · googleapis/google-cloud-python · GitHub

Replace optional connection with client in storage methods and functions. - #984

Merged
dhermes merged 11 commits into
googleapis:masterfrom
dhermes:replace-connection-in-storage
Jul 14, 2015
Merged

Replace optional connection with client in storage methods and functions.#984
dhermes merged 11 commits into
googleapis:masterfrom
dhermes:replace-connection-in-storage

Conversation

dhermes commented Jul 13, 2015

Copy link
Copy Markdown
Contributor

Towards #952.

Did this for all but Bucket.create (since it also requires a project, built for just a client)

Will continue to remove connection from the Bucket and Batch constructors in forthcoming PR.

dhermes added 11 commits July 13, 2015 12:10
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.

Also adding a temporary Blob._client_or_connection method
to allow switching from an explicit client to an implicit
connection.
Towards googleapis#952, removing connection from methods / constructors.

Also adding a temporary Bucket._client_or_connection method
to allow switching from an explicit client to an implicit
connection.
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
Also updating all code which calls those methods.

Towards googleapis#952, removing connection from methods / constructors.
Towards googleapis#952, removing connection from methods / constructors.
dhermes added the api: storage Issues related to the Cloud Storage API. label Jul 13, 2015
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 13, 2015

tseaver commented Jul 13, 2015

Copy link
Copy Markdown
Contributor

Hmm, before finishing review here, it feels to me like swapping out the connection=None for client=None is premature: shouldn't we establish a client attribute, so that we can fall back to using it? Otherwise we have to revisit all these methods when we do have the client attribute.

dhermes commented Jul 13, 2015

Copy link
Copy Markdown
Contributor Author

I just wanted to make a bunch of small commits so review was easier for you. I have the client attribute at the ready, it just takes a bit more effort to review (it reaches deep into many parts of the code).

dhermes commented Jul 13, 2015

Copy link
Copy Markdown
Contributor Author

@tseaver Can we push forward on this? I want to wrap up the client stuff and cut a release ASAP.

tseaver commented Jul 14, 2015

Copy link
Copy Markdown
Contributor

LGTM

dhermes commented Jul 14, 2015

Copy link
Copy Markdown
Contributor Author

@tseaver We've got an LGTM here but a few pending commets. Good to merge?

dhermes commented Jul 14, 2015

Copy link
Copy Markdown
Contributor Author

Oh I'm sorry 8b1ecb2 was in #987. Merging and will rebase that.

dhermes added a commit that referenced this pull request Jul 14, 2015
Replace optional connection with client in storage methods and functions.
dhermes merged commit 247899b into googleapis:master Jul 14, 2015
dhermes deleted the replace-connection-in-storage branch July 14, 2015 14:54
dhermes mentioned this pull request Jul 21, 2015
parthea pushed a commit that referenced this pull request Nov 22, 2025
parthea added a commit that referenced this pull request Nov 24, 2025
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.6.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620
<details><summary>pandas-gbq: 0.31.0</summary>

##
[0.31.0](googleapis/python-bigquery-pandas@v0.30.0...v0.31.0)
(2025-11-17)

### Features

* add pandas_gbq.sample (#983)
([ac771c12](googleapis/python-bigquery-pandas@ac771c12))

</details>

---------

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
parthea pushed a commit that referenced this pull request Mar 2, 2026
parthea added a commit that referenced this pull request Mar 9, 2026
…984)

Source-Link: googleapis/synthtool@395d53a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:6c1cbc75c74b8bdd71dada2fa1677e9d6d78a889e9a70ee75b93d1d0543f96e1

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL