Replace optional connection with client in storage methods and functions.#984
Merged
dhermes merged 11 commits intogoogleapis:masterfrom Jul 14, 2015
Merged
Conversation
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.
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.
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.
7 tasks
Contributor
|
Hmm, before finishing review here, it feels to me like swapping out the |
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). |
Contributor
Author
|
@tseaver Can we push forward on this? I want to wrap up the client stuff and cut a release ASAP. |
Contributor
|
LGTM |
Contributor
Author
|
@tseaver We've got an LGTM here but a few pending commets. Good to merge? |
Contributor
Author
dhermes
added a commit
that referenced
this pull request
Jul 14, 2015
Replace optional connection with client in storage methods and functions.
parthea
pushed a commit
that referenced
this pull request
Nov 22, 2025
parthea
pushed a commit
that referenced
this pull request
Nov 24, 2025
🤖 I have created a release \*beep\* \*boop\* --- ### [0.51.2](https://www.github.com/googleapis/gapic-generator-python/compare/v0.51.1...v0.51.2) (2021-09-13) ### Bug Fixes * add a separate DEFAULT_CLIENT_INFO for rest clients ([#988](https://www.github.com/googleapis/gapic-generator-python/issues/988)) ([22ac400](https://www.github.com/googleapis/gapic-generator-python/commit/22ac40097ab50bb2d3a7f1a2d35d659c391e0927)) * **snippetgen:** use f-strings in print statements ([#975](https://www.github.com/googleapis/gapic-generator-python/issues/975)) ([122e85c](https://www.github.com/googleapis/gapic-generator-python/commit/122e85c37ff6aa0a99f64361397eb3df5495a3b4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Towards #952.
Did this for all but
Bucket.create(since it also requires a project, built for just aclient)Will continue to remove
connectionfrom theBucketandBatchconstructors in forthcoming PR.