Skip to content

Instantly share code, notes, and snippets.

@vhbui02
Last active December 13, 2023 18:24
Show Gist options
  • Save vhbui02/50a5a349bea589a870c1a6ff2ec6fd57 to your computer and use it in GitHub Desktop.
Save vhbui02/50a5a349bea589a870c1a6ff2ec6fd57 to your computer and use it in GitHub Desktop.
[Google Cloud] Anything that i can't google in 5 min

Google Cloud APIs

2 types of Client Libraries: Google API Client Libraries vs Cloud Client Libraries: https://stackoverflow.com/a/41354013/9122512

Example of Google API Client Libraries: https://github.com/googleapis/google-api-python-client

Cloud Client Libraries only support connection to PaaS (Pub/Sub, Dataflow, AutoML, ...), not SaaS (Drive, Sheets, Keep, ...)

Google Workspace works with SaaS like Gmail, Google Drive, Google Sheets, ...

3 ways to access Google Cloud APIs:

1 - Cloud Client Libraries/Google API Client Libraries

2 - Google Cloud CLI (gcloud)

3 - Google Cloud console (GUI Dashboard)

Google SDK

SDK is a general term, it's a wrapper of 2 things:

1 - Google Cloud CLI/Cloud Shell/Cloud Code

2 - Cloud Client Libraries for Java, Go, Python, Ruby, PHP, C#, C++, Nodejs, Other...

Google Workspace

Shows many common Google Workspace API SaaS, like Drive, Sheets, Keep, ...
If you want to work directly with Google applications, this is the place you need to go
Each task is given a section, each section has Overview, Guides, Reference, Sample (optional) and Support
Google Sheets APIs Guides: https://developers.google.com/sheets/api/guides/concepts
Google Drive APIs Guides: https://developers.google.com/drive/api/guides/about-sdk
Google Keep APIs Guides: https://developers.google.com/keep/api/guides

Using the provided GUI, try out different APIs (NOTE: this tool acts on real data and and authenticates with Google Account, proceed with cautious)

Guides, Support, ...

Cloud SDK - Google Cloud CLI

A set of tools that manage resources and apps hosted on Google Cloud. These tools include: gcloud, gsutil, and bq

gcloud

Overview: https://cloud.google.com/sdk/docs
Guides, Reference, Support, Resources, ...
Cheatsheet: https://cloud.google.com/sdk/docs/cheatsheet
Cheatsheet gcloud: gcloud gcloud cheat-sheet
Help gcloud: gcloud help <iam, services, config, ...>
Dynamic reference: gcloud beta interaction Manual reference: https://cloud.google.com/sdk/gcloud/reference/

gsutil

bq

Python

Reference (Cl

Google Apps Script

https://developers.google.com/apps-script/overview

https://stackoverflow.com/questions/50942469/what-is-difference-between-google-sheets-script-and-google-sheets-api

List of services

gcloud services list --available

List of roles

https://cloud.google.com/iam/docs/understanding-roles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment