Python 3.9 is now generally available.

google.appengine.api.blobstore.create_gs_key

Creates an encoded key for a Google Cloud Storage file.

It is safe to persist this key for future use.

filename The file name of the Google Cloud Storage object for which you want to create the key.
rpc Optional UserRPC object.

An encrypted BlobKey string.