I want to auto generate ids in cloud datastore that doesn't exceed more than 7 digits in length.
In previous version of python cloud datastore library one was able to provide a max parameter to ensure that the auto generated id doesn't exceed a maximum limit. Ref: https://cloud.google.com/appengine/docs/standard/python/ndb/creating-entity-keys
Since now this feature has been removed from the latest python datastore library: Ref: https://googleapis.dev/python/datastore/latest/_modules/google/cloud/datastore/client.html#Client.key
How can one achieve the same ?