From 1a496520a84695e6d5ef97f576e110cda5408076 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Thu, 30 Mar 2017 08:43:22 -0700 Subject: [PATCH] Renaming http argument(s) as _http. (#3235) --- .../google/cloud/monitoring/client.py | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/google-cloud-monitoring/google/cloud/monitoring/client.py b/packages/google-cloud-monitoring/google/cloud/monitoring/client.py index 88052bddd760..7712a072d793 100644 --- a/packages/google-cloud-monitoring/google/cloud/monitoring/client.py +++ b/packages/google-cloud-monitoring/google/cloud/monitoring/client.py @@ -58,16 +58,18 @@ class Client(ClientWithProject): :type credentials: :class:`~google.auth.credentials.Credentials` :param credentials: (Optional) The OAuth2 Credentials to use for this - client. If not passed (and if no ``http`` object is + client. If not passed (and if no ``_http`` object is passed), falls back to the default inferred from the environment. - :type http: :class:`~httplib2.Http` - :param http: (Optional) HTTP object to make requests. Can be any object - that defines ``request()`` with the same interface as - :meth:`~httplib2.Http.request`. If not passed, an - ``http`` object is created that is bound to the - ``credentials`` for the current object. + :type _http: :class:`~httplib2.Http` + :param _http: (Optional) HTTP object to make requests. Can be any object + that defines ``request()`` with the same interface as + :meth:`~httplib2.Http.request`. If not passed, an + ``_http`` object is created that is bound to the + ``credentials`` for the current object. + This parameter should be considered private, and could + change in the future. """ SCOPE = ('https://www.googleapis.com/auth/monitoring.read', @@ -75,9 +77,9 @@ class Client(ClientWithProject): 'https://www.googleapis.com/auth/cloud-platform') """The scopes required for authenticating as a Monitoring consumer.""" - def __init__(self, project=None, credentials=None, http=None): + def __init__(self, project=None, credentials=None, _http=None): super(Client, self).__init__( - project=project, credentials=credentials, http=http) + project=project, credentials=credentials, _http=_http) self._connection = Connection(self) def query(self,