Skip to content

Commit 112ff67

Browse files
committed
Merge pull request #1499 from dhermes/move-gce-gae-oauth2client
Accomodating oauth2client moves of GCE/App Engine modules.
2 parents 860059b + bf0a097 commit 112ff67

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docs/gcloud-auth.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,25 @@ you can pass it directly to a :class:`Client <gcloud.client.Client>`:
9191
Google App Engine Environment
9292
-----------------------------
9393

94-
To create :class:`credentials <oauth2client.appengine.AppAssertionCredentials>`
94+
To create
95+
:class:`credentials <oauth2client.contrib.appengine.AppAssertionCredentials>`
9596
just for Google App Engine:
9697

9798
.. code:: python
9899
99-
from oauth2client.appengine import AppAssertionCredentials
100+
from oauth2client.contrib.appengine import AppAssertionCredentials
100101
credentials = AppAssertionCredentials([])
101102
102103
Google Compute Engine Environment
103104
---------------------------------
104105

105-
To create :class:`credentials <oauth2client.gce.AppAssertionCredentials>`
106+
To create
107+
:class:`credentials <oauth2client.contrib.gce.AppAssertionCredentials>`
106108
just for Google Compute Engine:
107109

108110
.. code:: python
109111
110-
from oauth2client.gce import AppAssertionCredentials
112+
from oauth2client.contrib.gce import AppAssertionCredentials
111113
credentials = AppAssertionCredentials([])
112114
113115
Service Accounts

gcloud/credentials.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
from oauth2client import crypt
3232
from oauth2client.service_account import ServiceAccountCredentials
3333
try:
34-
from oauth2client.appengine import AppAssertionCredentials as _GAECreds
34+
from oauth2client.contrib.appengine import (
35+
AppAssertionCredentials as _GAECreds)
3536
except ImportError:
3637
class _GAECreds(object):
3738
"""Dummy class if not in App Engine environment."""

0 commit comments

Comments
 (0)