lib/gce.py: Use the new usable auth feature
I spoke with the Google API Python client library authors. They confirmed that a
complete solution for service account json keys is not yet available, but there
is already a publich API that we can use in non-interpersonate cases.
GoogleCredentials implements whatever I had to manually do for json key parsing.
TEST=Unit tests in CL:299694 and a trybot run against a config that has GCE
Commit-Ready: Daniel Wang <firstname.lastname@example.org>
Tested-by: Daniel Wang <email@example.com>
Reviewed-by: Fang Deng <firstname.lastname@example.org>
1 file changed