Exemple #1
0
 def _datastore_api(self):
     """Getter for a wrapped API object."""
     if self._datastore_api_internal is None:
         if self._use_grpc:
             self._datastore_api_internal = make_datastore_api(self)
         else:
             self._datastore_api_internal = HTTPDatastoreAPI(self)
     return self._datastore_api_internal
Exemple #2
0
 def _datastore_api(self):
     """Getter for a wrapped API object."""
     if self._datastore_api_internal is None:
         if self._use_grpc:
             self._datastore_api_internal = make_datastore_api(self)
         else:
             self._datastore_api_internal = HTTPDatastoreAPI(self)
     return self._datastore_api_internal
    def _call_fut(self, client):
        from google.cloud.datastore._gapic import make_datastore_api

        return make_datastore_api(client)
Exemple #4
0
    def _call_fut(self, client):
        from google.cloud.datastore._gapic import make_datastore_api

        return make_datastore_api(client)