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.api.datastore.CreateRPC

Create an rpc for use in configuring datastore calls.

NOTE: This functions exists for backwards compatibility. Please use CreateConfig() instead. NOTE: the latter uses 'on_completion', which is a function taking an argument, wherease CreateRPC uses 'callback' which is a function without arguments.

service Optional string; for backwards compatibility, must be 'datastore_v3'.
deadline Optional int or float, deadline for calls in seconds.
callback Optional callable, a callback triggered when this rpc completes; takes no arguments.
read_policy Optional read policy; set to EVENTUAL_CONSISTENCY to enable eventually consistent reads (i.e. reads that may be satisfied from an older version of the datastore in some cases). The default read policy may have to wait until in-flight transactions are committed.

A UserRPC instance.