@@ -32,25 +32,26 @@ class Client(JSONClient):
3232 passed when creating a topic. If not passed,
3333 falls back to the default inferred from the environment.
3434
35- :type credentials: :class:`oauth2client.client.OAuth2Credentials` or
36- :class:`NoneType`
37- :param credentials: The OAuth2 Credentials to use for the connection
38- owned by this client. If not passed (and if no ``http``
39- object is passed), falls back to the default inferred
40- from the environment.
41-
42- :type http: :class:`httplib2.Http` or class that defines ``request()``.
43- :param http: An optional HTTP object to make requests. If not passed, an
35+ :type credentials: :class:`~google.auth.credentials.Credentials`
36+ :param credentials: (Optional) The OAuth2 Credentials to use for this
37+ client. If not passed (and if no ``http`` object is
38+ passed), falls back to the default inferred from the
39+ environment.
40+
41+ :type http: :class:`~httplib2.Http`
42+ :param http: (Optional) HTTP object to make requests. Can be any object
43+ that defines ``request()`` with the same interface as
44+ :meth:`~httplib2.Http.request`. If not passed, an
4445 ``http`` object is created that is bound to the
4546 ``credentials`` for the current object.
4647 """
4748
48- _connection_class = Connection
49-
5049 def __init__ (self , project = None , credentials = None , http = None ):
5150 self ._base_connection = None
5251 super (Client , self ).__init__ (project = project , credentials = credentials ,
5352 http = http )
53+ self ._connection = Connection (
54+ credentials = self ._credentials , http = self ._http )
5455 self ._batch_stack = _LocalStack ()
5556
5657 @property
0 commit comments