You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm noticing that "Connection" objects are slowly being phased out, in favor of gcloud.<service>.do_thing (ie gcloud.storage.get_bucket() or gcloud.datastore.Query(...)).
Did we make a specific call to remove the concept of a connection? Was the a discussion somewhere that I can read up on to understand the background behind that?
They aren't being phased out and they aren't going anywhere.
We've discussed in our meetings that they be stateless and are simply a way to make HTTP requests to the service.
Datastore: We allow connection as an optional argument in methods / functions that use one. Using implicitly set connections, a user can happily use the library without needing to know what a connection is.
This was spurred on by comments that there were "too many classes". We realized that we didn't need the typical user to worry about a Connection (beyond setting the right environment variable for credentials).
We still made sure one could be used.
Storage: We are in the process of making the API surface easier to use. In this attempt we are trying to "hide" the Connection class from typical users and do the same thing.
Activity
dhermes commentedon Feb 17, 2015
They aren't being phased out and they aren't going anywhere.
We've discussed in our meetings that they be stateless and are simply a way to make HTTP requests to the service.
Datastore: We allow
connectionas an optional argument in methods / functions that use one. Using implicitly set connections, a user can happily use the library without needing to know what a connection is.This was spurred on by comments that there were "too many classes". We realized that we didn't need the typical user to worry about a
Connection(beyond setting the right environment variable for credentials).We still made sure one could be used.
Storage: We are in the process of making the API surface easier to use. In this attempt we are trying to "hide" the
Connectionclass from typical users and do the same thing.I've created #632 for my proposal on storage, and @tseaver also made some previous remarks.
dhermes commentedon Feb 18, 2015
@jgeewax Do we still need this issue open?
jgeewax commentedon Feb 18, 2015
I think you answered the -- closing :)
Add quickstart sample for the Cloud Speech API. [(#658)](GoogleCloudP…
Add quickstart sample for the Cloud Speech API. [(#658)](GoogleCloudP…
Add quickstart sample for the Cloud Speech API. [(#658)](GoogleCloudP…
docs: Minor formatting (#658)
Add quickstart sample for the Cloud Speech API. [(#658)](GoogleCloudP…
build(deps): [autoapprove] bump certifi from 2022.12.7 to 2023.7.22 (#…
chore: release 0.35.3 (#658)
fix: avoid leaking sub-session created for '_auth_request' (#789)
feat(gapic): support mTLS certificates when available (#658)
chore: librarian release pull request: 20251216T133331Z (#659)
fix: Add emulator support to schema service (#658)
chore: add library type to .repo-metadata.json (#658)
chore(deps): update opentelemetry-python monorepo to v1.33.1 (#658)
chore: release 3.12.1 (#658)