Skip to content

Remove connection from base Client class - #2870

Merged
dhermes merged 2 commits into
googleapis:masterfrom
dhermes:rm-connection-from-base
Dec 15, 2016
Merged

Remove connection from base Client class#2870
dhermes merged 2 commits into
googleapis:masterfrom
dhermes:rm-connection-from-base

Conversation

@dhermes

Copy link
Copy Markdown
Contributor

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

@googlebotgooglebot 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
Copy Markdown
Contributor

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

@dhermes

Copy link
Copy Markdown
ContributorAuthor

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


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

This comment was marked as spam.

: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:masterDec 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
parthea pushed a commit that referenced this pull request Nov 24, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: corecla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@dhermes@daspecster@tseaver@googlebot