@@ -93,25 +93,28 @@ def from_api_repr(cls, resource):
9393class Client (ClientWithProject ):
9494 """Client to bundle configuration needed for API requests.
9595
96- :type project: str
97- :param project: the project which the client acts on behalf of. Will be
98- passed when creating a dataset / job. If not passed,
99- falls back to the default inferred from the environment.
100-
101- :type credentials: :class:`~google.auth.credentials.Credentials`
102- :param credentials: (Optional) The OAuth2 Credentials to use for this
103- client. If not passed (and if no ``_http`` object is
104- passed), falls back to the default inferred from the
105- environment.
106-
107- :type _http: :class:`~requests.Session`
108- :param _http: (Optional) HTTP object to make requests. Can be any object
109- that defines ``request()`` with the same interface as
110- :meth:`requests.Session.request`. If not passed, an
111- ``_http`` object is created that is bound to the
112- ``credentials`` for the current object.
113- This parameter should be considered private, and could
114- change in the future.
96+ Args:
97+ project (str):
98+ Project ID for the project which the client acts on behalf of.
99+ Will be passed when creating a dataset / job. If not passed,
100+ falls back to the default inferred from the environment.
101+ credentials (google.auth.credentials.Credentials):
102+ (Optional) The OAuth2 Credentials to use for this client. If not
103+ passed (and if no ``_http`` object is passed), falls back to the
104+ default inferred from the environment.
105+ _http (requests.Session):
106+ (Optional) HTTP object to make requests. Can be any object that
107+ defines ``request()`` with the same interface as
108+ :meth:`requests.Session.request`. If not passed, an ``_http``
109+ object is created that is bound to the ``credentials`` for the
110+ current object.
111+ This parameter should be considered private, and could change in
112+ the future.
113+
114+ Raises:
115+ google.auth.exceptions.DefaultCredentialsError:
116+ Raised if ``credentials`` is not specified and the library fails
117+ to acquire default credentials.
115118 """
116119
117120 SCOPE = ('https://www.googleapis.com/auth/bigquery' ,
0 commit comments