View source on GitHub |
Check this key.
google.appengine.datastore.datastore_stub_util.CheckReference(
request_trusted, request_app_id, key, require_id_or_name=True
)
Args | |
---|---|
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. |
Raises | |
---|---|
apiproxy_errors.ApplicationError
|
if the key is invalid |