App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.ext.datastore_admin.remote_api_put_stub.RemoteApiDatastoreStub Class Reference
Inheritance diagram for google.appengine.ext.datastore_admin.remote_api_put_stub.RemoteApiDatastoreStub:
google.appengine.ext.datastore_admin.remote_api_put_stub.RemoteApiDatastoreV3Stub google.appengine.ext.datastore_admin.remote_api_put_stub.RemoteApiDatastoreV4Stub

Public Member Functions

def __init__
 
def CreateRPC
 
def ServiceName
 
def MakeSyncCall
 

Public Attributes

 remote_url
 
 target_app_id
 
 extra_headers
 
 normal_stub
 

Detailed Description

A specialised stub for writing to a remote App Engine datastore.

This class supports checking the app_id of a datastore op and either passing
the request through to the local app or sending it to a remote app.
Subclassed to implement supported services datastore_v3 and datastore_v4.

Constructor & Destructor Documentation

def google.appengine.ext.datastore_admin.remote_api_put_stub.RemoteApiDatastoreStub.__init__ (   self,
  remote_url,
  target_app_id,
  extra_headers,
  normal_stub 
)
Constructor.

Args:
  remote_url: The URL of the remote_api handler.
  target_app_id: The app_id to intercept calls for.
  extra_headers: Headers to send (for authentication).
  normal_stub: The standard stub to delegate most calls to.

Member Function Documentation

def google.appengine.ext.datastore_admin.remote_api_put_stub.RemoteApiDatastoreStub.CreateRPC (   self)
Creates RPC object instance.

Returns:
  a instance of RPC.
def google.appengine.ext.datastore_admin.remote_api_put_stub.RemoteApiDatastoreStub.MakeSyncCall (   self,
  service,
  call,
  request,
  response 
)
Handle all calls to this stub; delegate as appropriate.
def google.appengine.ext.datastore_admin.remote_api_put_stub.RemoteApiDatastoreStub.ServiceName (   cls)
Return the name of the datastore service supported by this stub.

The documentation for this class was generated from the following file: