Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now generally available.

google.appengine.datastore.datastore_stub_util.CheckReference

Check this key.

request_trusted If the request is trusted.
request_app_id The application ID of the app making the request.
key entity_pb2.Reference
require_id_or_name Boolean indicating if we should enforce the presence of an id or name in the last element of the key's path.

apiproxy_errors.ApplicationError if the key is invalid