From e2f516a7a7c9dabd247c8cf1ca5a727331d4653a Mon Sep 17 00:00:00 2001 From: Ricardo Lui Geh Date: Tue, 30 May 2017 16:22:48 -0300 Subject: [PATCH] Show how to create credentials object (#3454) --- docs/google-cloud-auth.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/google-cloud-auth.rst b/docs/google-cloud-auth.rst index e7f9c67802833..ac3c4b29528ae 100644 --- a/docs/google-cloud-auth.rst +++ b/docs/google-cloud-auth.rst @@ -87,14 +87,19 @@ However, you may want to be explicit because from different projects In these situations, you can create an explicit -:class:`~google.auth.credentials.Credentials` object suited to your -environment. After creation, you can pass it directly to a -:class:`Client `: +:class:`~google.auth.credentials.Credentials` object suited to your environment. +After creation, you can pass it directly to a :class:`Client `: .. code:: python client = Client(credentials=credentials) +.. tip:: + To create a credentials object, follow the `google-auth-guide`_. + +.. _google-auth-guide: https://google-auth.readthedocs.io/en/latest/user-guide.html#service-account-private-key-files + + Google App Engine Environment -----------------------------