Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

1.6.0

Compare
Choose a tag to compare
@talkiq-ops talkiq-ops released this 02 Jul 00:02
· 21 commits to master since this release
ce885ce

Auth

This release marks the first step in unification of gcloud-aio and gcloud-rest; this project has been deprecated for a while, so -aio got pretty far ahead in feature support and fixes. Over the next several releases, we will be migrating all new features from gcloud-aio into this RESTful version!

Features

This release includes the new IamClient class, which includes support for getting and listing service account keys (IamClient.get_public_key() and IamClient.list_public_key()) and blob signing (IamClient.sign_blob()).

The Token class has been updated to include support for personal CloudSDK credentials and credential-less usage on GCE/GKE/GAEv2 instances through the GCP metadata server. Furthermore, token retreival should be all around more resilient to any issues such as network blips.

Deprecations

In keeping with the above, we want to make sure that the APIs of gcloud-aio and gcloud-rest are the same. That mostly means changing some variable names and types and moving around some methods. This release will start printing DeprecationWarnings on some usages of Token -- we encourage you to update following the advice in those warnings. We will be removing fallback code in v2.0, at which point your old code will start failing if you've not updated it accordingly.

The changes should be very straightforward, assuming you're using only the publically exposed APIs of gcloud-rest:

  • Token(creds, ...) is now Token(service_file)
  • Token(timeout) is no longer used
  • Token.acquire() is now Token.acquire_access_token(). Unchanged: you still probably don't need to call this manually.
  • Token.ensure() is now Token.ensure_token(). Unchanged: you still probably don't need to call this manually.