~2-minute lightning talk follow-up to Dan Bikle's material (http://cs101.us [lesson 18]) on G Suite/Google Apps developer tools & APIs to further enhance/clarify Dan's talk at the BayPIGgies (Silicon Valley Python users group) meeting in Aug 2019: http://meetup.com/BAyPIGgies/events/264160722
2. What is Google Cloud?
● Organization at Google producing 2 well-known platforms
● GCP == Google Cloud Platform
○ Normal cloud services like AWS
○ "Users" are generally developers
● G Suite == Gmail, Google Drive, Calendar, Docs, Sheets, Slides, etc.
○ "Users" are consumer users, but developer APIs available
● Access cloud console at console.cloud.google.com
3. Billing, free trial, "Always Free" tier
● GCP == Google Cloud Platform
○ Billed, need CC to enable GCP APIs
○ Free trial: $300 (12-mo clock starts immediately)
○ "Always Free" tier: always free every month "forever"
○ More on both at cloud.google.com/free
● G Suite == Gmail, Google Drive, Calendar, Docs, Sheets, Slides, etc.
○ Covered by monthly G Suite subscription fee
○ Includes "free" service for Gmail accts
○ APIs free to use, i.e., no billing, no CC
4. User auth vs. service acct auth
● For cloud-based apps, generally server-to-server
○ Service or robot accounts; primarily GCP APIs
● G Suite APIs == special case
○ G Suite data generally owned by actual users
○ Use user auth for data owned by users
■ Create OAuth client ID credentials
○ Everything else can be service accts
■ Create Service account key credentials
○ Can generate documents via service accts
■ Then share w/real users like Dan's example
5. Project ID vs. project name
● Project name: it's for you; can edit/change as desired
● Project ID: immutable, permanent, namespace-limited
● Dan suggested mup0822: perfectly fine for project name BUT
○ Can't (re)use for project IDs
○ Recommend login-mup0822 if custom ID desired
6. Need to make a VM?
● Get basic VM for free (monthly)
○ 1 free F1-micro instance
■ US-only; exc. Nor VA (us-east4)
○ 600MB RAM, 30 GB-months HDD
○ 5 GB-months snapshot in select regions
○ 1 GB NW egress from NorAm to all regions/mo
■ Exc. China & Australia
● Anything beyond this costs $$
● Again, see cloud.google.com/free
7. Alternative: Google Cloud Shell
● Little blue shell thingy @ top of console
● Definitely free (vs. VM)
● 2.2GHz CPU, 5GB PD
● No ssh needed; access shell via browser
● Linux environment (Debian-based) configured for Google Cloud
○ Google Cloud SDK (gcloud)
○ Google App Engine SDK (appcfg.py, dev_appserver.py )
● Developer tools pre-installed
● Popular language support
● cloud.google.com/shell
8. Cloud Shell developer features
● Developer tools pre-installed
○ Docker
○ Git
○ Text editors (emacs, vim)
○ Build tools
● Popular language support
○ Python (2 and 3)
○ Node.js and npm
○ Java
○ Go
○ Ruby
○ PHP
9. Other references
● G Suite developer overviews & platform video
○ developers.google.com/gsuite
● Gmail, Google Drive, Docs, Sheets, Slides API docs, etc.
○ developers.google.com/{gmail,drive,docs,sheets,slides}
● Working with field masks (docs page; videos forthcoming)
○ developers.google.com/slides/how-tos/field-masks
○ Videos: goo.gl/9kmAEf and goo.gl/1Xhm04
● Markdown-to-Google Slides generator code repo (JS)
○ github.com/gsuitedevs/md2googleslides
● "G Suite Dev Show" video series
○ goo.gl/JpBQ40
● Link to Dan's material (lesson 18)
○ cs101.us
● Link(s) to Wesley's May 2019 and Aug 2016 talks
○ meetup.com/BAyPIGgies/events/260872440
● Contact
○ @wescpy@