@@ -270,7 +270,7 @@ async def delete(self, option=None):
270
270
still return the time that the request was received by the server.
271
271
"""
272
272
write_pb = _helpers .pb_for_delete (self ._document_path , option )
273
- commit_response = self ._client ._firestore_api .commit (
273
+ commit_response = await self ._client ._firestore_api .commit (
274
274
request = {
275
275
"database" : self ._client ._database_string ,
276
276
"writes" : [write_pb ],
@@ -284,7 +284,7 @@ async def delete(self, option=None):
284
284
async def get (self , field_paths = None , transaction = None ):
285
285
"""Retrieve a snapshot of the current document.
286
286
287
- See :meth:`~google.cloud.firestore_v1.client.Client .field_path` for
287
+ See :meth:`~google.cloud.firestore_v1.base_client.BaseClient .field_path` for
288
288
more information on **field paths**.
289
289
290
290
If a ``transaction`` is used and it already has write operations
@@ -296,12 +296,12 @@ async def get(self, field_paths=None, transaction=None):
296
296
paths (``.``-delimited list of field names) to use as a
297
297
projection of document fields in the returned results. If
298
298
no value is provided, all fields will be returned.
299
- transaction (Optional[:class:`~google.cloud.firestore_v1.transaction.Transaction `]):
299
+ transaction (Optional[:class:`~google.cloud.firestore_v1.async_transaction.AsyncTransaction `]):
300
300
An existing transaction that this reference
301
301
will be retrieved in.
302
302
303
303
Returns:
304
- :class:`~google.cloud.firestore_v1.document .DocumentSnapshot`:
304
+ :class:`~google.cloud.firestore_v1.base_document .DocumentSnapshot`:
305
305
A snapshot of the current document. If the document does not
306
306
exist at the time of the snapshot is taken, the snapshot's
307
307
:attr:`reference`, :attr:`data`, :attr:`update_time`, and
@@ -318,7 +318,7 @@ async def get(self, field_paths=None, transaction=None):
318
318
319
319
firestore_api = self ._client ._firestore_api
320
320
try :
321
- document_pb = firestore_api .get_document (
321
+ document_pb = await firestore_api .get_document (
322
322
request = {
323
323
"name" : self ._document_path ,
324
324
"mask" : mask ,
@@ -360,7 +360,7 @@ async def collections(self, page_size=None):
360
360
document does not exist at the time of `snapshot`, the
361
361
iterator will be empty
362
362
"""
363
- iterator = self ._client ._firestore_api .list_collection_ids (
363
+ iterator = await self ._client ._firestore_api .list_collection_ids (
364
364
request = {"parent" : self ._document_path , "page_size" : page_size },
365
365
metadata = self ._client ._rpc_metadata ,
366
366
)
@@ -369,7 +369,7 @@ async def collections(self, page_size=None):
369
369
for i in iterator .collection_ids :
370
370
yield self .collection (i )
371
371
if iterator .next_page_token :
372
- iterator = self ._client ._firestore_api .list_collection_ids (
372
+ iterator = await self ._client ._firestore_api .list_collection_ids (
373
373
request = {
374
374
"parent" : self ._document_path ,
375
375
"page_size" : page_size ,
0 commit comments