@@ -51,15 +51,16 @@ class Client(JSONClient):
5151 passed when creating a topic. If not passed,
5252 falls back to the default inferred from the environment.
5353
54- :type credentials: :class:`oauth2client.client.OAuth2Credentials` or
55- :class:`NoneType`
56- :param credentials: The OAuth2 Credentials to use for the connection
57- owned by this client. If not passed (and if no ``http``
58- object is passed), falls back to the default inferred
59- from the environment.
60-
61- :type http: :class:`httplib2.Http` or class that defines ``request()``.
62- :param http: An optional HTTP object to make requests. If not passed, an
54+ :type credentials: :class:`~google.auth.credentials.Credentials`
55+ :param credentials: (Optional) The OAuth2 Credentials to use for this
56+ client. If not passed (and if no ``http`` object is
57+ passed), falls back to the default inferred from the
58+ environment.
59+
60+ :type http: :class:`~httplib2.Http`
61+ :param http: (Optional) HTTP object to make requests. Can be any object
62+ that defines ``request()`` with the same interface as
63+ :meth:`~httplib2.Http.request`. If not passed, an
6364 ``http`` object is created that is bound to the
6465 ``credentials`` for the current object.
6566
@@ -69,17 +70,22 @@ class Client(JSONClient):
6970 falls back to the ``GOOGLE_CLOUD_DISABLE_GRPC`` environment
7071 variable
7172 """
73+
74+ _publisher_api = None
75+ _subscriber_api = None
76+ _iam_policy_api = None
77+
7278 def __init__ (self , project = None , credentials = None ,
7379 http = None , use_gax = None ):
74- super (Client , self ).__init__ (project , credentials , http )
80+ super (Client , self ).__init__ (
81+ project = project , credentials = credentials , http = http )
82+ self ._connection = Connection (
83+ credentials = self ._credentials , http = self ._http )
7584 if use_gax is None :
7685 self ._use_gax = _USE_GAX
7786 else :
7887 self ._use_gax = use_gax
7988
80- _connection_class = Connection
81- _publisher_api = _subscriber_api = _iam_policy_api = None
82-
8389 @property
8490 def publisher_api (self ):
8591 """Helper for publisher-related API calls."""
0 commit comments