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

Remove connection from base Client class #2870

Merged
merged 2 commits into from
Dec 15, 2016

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Dec 15, 2016

This is part of #2606. The idea behind this PR: we can drop support for Connection classes on a package-by-package basis rather than all at once.

/cc @tseaver and @mckoss this will have teeny implications on downstream clients

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 15, 2016
self._connection = self._connection_class(
credentials=credentials, http=http)
self._credentials = credentials
self._http = http

This comment was marked as spam.

This comment was marked as spam.

@daspecster
Copy link
Contributor

I would assume you would want @tseaver to take a look too, but this looks pretty straight forward and LGTM.

@dhermes
Copy link
Contributor Author

dhermes commented Dec 15, 2016

@daspecster Yup I'll wait for @tseaver. Thanks

``http`` object is created that is bound to the
``credentials`` for the current object.
"""
_connection_class = Connection

def __init__(self, project=None, namespace=None,
credentials=None, http=None):
_ClientProjectMixin.__init__(self, project=project)

This comment was marked as spam.

:type http: :class:`~httplib2.Http`
:param http: (Optional) HTTP object to make requests. Can be any object
that defines ``request()`` with the same interface as
:meth:`~httplib2.Http.request`. If not passed, an
``http`` object is created that is bound to the
``credentials`` for the current object.
"""

This comment was marked as spam.

This comment was marked as spam.

@dhermes dhermes merged commit cf1fc28 into googleapis:master Dec 15, 2016
@dhermes dhermes deleted the rm-connection-from-base branch December 15, 2016 20:26
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: core cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants