This repo folder is the corresponding Python 2 code to the forthcoming Module 21 codelab. The tutorial STARTs with the Python 2 code in the Module 20 repo folder and leads developers through a migration to Cloud Identity Platform, culminating in the code in this (mod21a-idenplat
) folder. Also included is a migration from App Engine ndb
to Google Cloud NDB, mirroring the content covered in Module 2. There is also a Python 3 version of the app in the Module 21b folder.
NOTE: While we generally recommend using Google Cloud client libraries for GCP API access, we have an exception here because the final Python 2 version of the Cloud Resource Manager client library (before the 2.x support was deprecated) did not have an implemented get IAM policy feature, hence the need to use the lower-level Google APIs client library to access this functionality from the API. See the Python 3 main.py
which uses latest Resource Manager client library.