예제 #1
0
    def delete(self, key):
        """Proxy to :func:`gcloud.datastore.api.delete`.

        Passes our ``dataset_id``.
        """
        return delete(key, connection=self.connection,
                      dataset_id=self.dataset_id)
예제 #2
0
    def delete(self, keys):
        """Proxy to :func:`gcloud.datastore.api.delete`.

        Passes our ``dataset_id``.
        """
        return delete(keys,
                      connection=self.connection,
                      dataset_id=self.dataset_id)
예제 #3
0
 def delete(self):
     """Remove this model instance from the datastore."""
     return api.delete([self._key])
예제 #4
0
 def _callFUT(self, keys, connection=None):
     from gcloud.datastore.api import delete
     return delete(keys, connection=connection)
예제 #5
0
 def _callFUT(self, key, connection=None, dataset_id=None):
     from gcloud.datastore.api import delete
     return delete(key, connection=connection, dataset_id=dataset_id)