Releases: talkiq/gcloud-rest
3.0.0
DEPRECATION
This repository and the gcloud-rest
project is now officially deprecated and will see no future development. Please see the gcloud-aio repository for all future work.
We now autogenerate gcloud-rest-*
from the gcloud-aio
codebase; eg. if you were using gcloud-rest-datastore
, that project is still ongoing (but it is now generated from the gcloud-aio
repository and has seen a major version bump!). If you were using the gcloud-rest
package, you can migrate to using the individual gcloud-rest-*
packages as need be, eg. gcloud-rest-kms
for KMS support.
Please submit any issues, PRs, comments, etc to the gcloud-aio repository!
datastore-1.2.0
Features
Add support for projection
and distinctOn
in queries (#49)
datastore-1.1.0
Features
Add support for geoPointValue (#40)
2.0.0
Removals
gcloud.rest.taskqueue
has been removed from this library -- the v2beta2 API (which was the last Google API to support Pull Queues) has officially been sunset, so our code may as well follow suit. In the future, we will likely re-introduce this library to support Push queues.
If you were using Pull Queues, Google recommends switching over to Pub/Sub.
datastore-1.0.0
Features
This marks the first release of gcloud-rest-datastore
, our first project released independently from gcloud-rest
-- we will be continuing work on refactoring this project to allow independent release cycles for each utility; ie. gcloud-rest
's KMS module will soon become gcloud-rest-kms
, etc.
As mentioned in the 1.6.0 release notes, we are now working on the unification of the gcloud-aio
and gcloud-rest
projects. As such, gcloud-rest-datastore==1.0.0
is pretty much a carbon copy of gcloud-aio-datastore==4.3.0
(latest at the time of this release), modified to fit in the -rest
ecosystem.
The new features are too many to list; gcloud-rest-datastore
supports a whole slew of Google Datastore features as outlined in its README. For a release-by-release breakdown, see the gcloud-aio release log.
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.
1.5.2
TaskManager
- remove some instances of double-logging
- handle 429s silently -- the pre-existing backoff logic was correct, so there's not much need to log the HTTPResponse
1.5.1
Fixes
- Ensure
cryptography
is a dependency, rather than relying onrequests[security]
. This should help avoid edge cases withpip
's dependency resolver (see pypa/pip#4957)
Minor
- attach more info to exception logs
1.5.0
TaskManager
- fix: add early guard for tasks which have failed more than
retry_limit
but have not yet been deadlettered
1.4.0
KMS
- implement first version of KMS API (
encrypt
anddecrypt
)