1.6.0
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 DeprecationWarning
s 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 nowToken(service_file)
Token(timeout)
is no longer usedToken.acquire()
is nowToken.acquire_access_token()
. Unchanged: you still probably don't need to call this manually.Token.ensure()
is nowToken.ensure_token()
. Unchanged: you still probably don't need to call this manually.