Created
January 22, 2021 16:43
-
-
Save minherz/2724befd176461bb7d9f781213860f17 to your computer and use it in GitHub Desktop.
initialize Google client library in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
creds, project_id = google.auth.default(scopes=['https://www.googleapis.com/auth/compute']) | |
compute = googleapiclient.discovery.build('compute', 'v1', credentials=creds) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment