GCP Developers Missing Manual

2021-12-15

This chapter contains a series of articles covering about how you can use Google Cloud’s SDK for various uncommon tasks.

Most of the time, Google Cloud makes it easy to find the right snippet or pattern for a task at hand. For example, if you wan to download a file from GCS, a simple search will lead you to the developers page for Cloud Storage and from there the specific api and usage is shown in multiple languages. Its more or less a copy and paste from there for basic usage and getting started.

Occasionally you may need to extend your code to uncommon tasks like integrating a proxy server or manually managing a Long Running Operation. These are not necessarily product-specific tasks but agnostic enough that doing these just didn’t fit into documentation clearly enough or benefit sufficiently from discoverability (e.g. you need to know what a long running operation is to even code against it). These one-off seemingly easy tasks can take hours to find the specific incantation needed (it consistently takes me that long).

The intent of the articles below is to show in various languages how to achieve these tasks and background information about SDK libraries and authentication…It should save you hours of digging around.

There are many TODO’s for documentation as well as corresponding code snippets.


Done:
  • 2021-12-21 | Comparing Cloud Client vs GoogleAPI Libraries
  • 2021-12-21 | Using JWT AccessTokens
  • 2021-12-17 | Using FieldMask
  • 2021-12-17 | Using Standard HTTP headers
  • 2021-12-15 | Using Google Cloud SDK Emulators
  • 2021-12-12 | Using proxy servers
  • 2021-12-22 | Exponential Backoff and Retry
  • 2021-12-22 | Managing Long Running Operations (LRO)
  • 2021-12-16 | Override Trust certificates for TLS
  • 2021-12-15 | Exception Handling
  • 2021-12-15 | Pagination
  • 2021-12-15 | Trace and Transport logs
  • 2021-12-22 | Impersonation and Domain Wide Delegation
  • 2021-08-07 | Google Cloud Storage SignedURL with Cloud Run, Cloud Functions and GCE VMs

  • TODO:
  • 2021-12-15 | LTS supported libraries
  • 2021-12-15 | Measure API request latency
  • 2021-12-15 | Override Request Initializers/Interceptors
  • 2021-12-15 | Upgrading Google CloudSDK libraries

  • This site supports webmentions. Send me a mention via this form.