@@ -33,20 +33,25 @@ class Client(BaseClient):
3333 >>> from google.cloud import resource_manager
3434 >>> client = resource_manager.Client()
3535
36- :type credentials: :class:`oauth2client.client.OAuth2Credentials` or
37- :class:`NoneType`
38- :param credentials: The OAuth2 Credentials to use for the connection
39- owned by this client. If not passed (and if no ``http``
40- object is passed), falls back to the default inferred
41- from the environment.
42-
43- :type http: :class:`httplib2.Http` or class that defines ``request()``.
44- :param http: An optional HTTP object to make requests. If not passed, an
36+ :type credentials: :class:`~google.auth.credentials.Credentials`
37+ :param credentials: (Optional) The OAuth2 Credentials to use for this
38+ client. If not passed (and if no ``http`` object is
39+ passed), falls back to the default inferred from the
40+ environment.
41+
42+ :type http: :class:`~httplib2.Http`
43+ :param http: (Optional) HTTP object to make requests. Can be any object
44+ that defines ``request()`` with the same interface as
45+ :meth:`~httplib2.Http.request`. If not passed, an
4546 ``http`` object is created that is bound to the
4647 ``credentials`` for the current object.
4748 """
4849
49- _connection_class = Connection
50+ def __init__ (self , credentials = None , http = None ):
51+ super (Client , self ).__init__ (
52+ credentials = credentials , http = http )
53+ self ._connection = Connection (
54+ credentials = self ._credentials , http = self ._http )
5055
5156 def new_project (self , project_id , name = None , labels = None ):
5257 """Create a project bound to the current client.
0 commit comments