42
42
@_dataclass .dataclass (frozen = True )
43
43
class Event (_core .CloudEvent [_core .T ]):
44
44
"""
45
- A CloudEvent that contains a DocumentSnapshot or a Change<DocumentSnapshot>.
45
+ A CloudEvent that contains a `` DocumentSnapshot`` or a `` Change<DocumentSnapshot>`` .
46
46
"""
47
47
48
48
location : str
49
49
"""
50
- The location of the database
50
+ The location of the database.
51
51
"""
52
52
53
53
project : str
@@ -184,7 +184,7 @@ def _firestore_endpoint_handler(
184
184
@_util .copy_func_kwargs (FirestoreOptions )
185
185
def on_document_written (** kwargs ) -> _typing .Callable [[_C1 ], _C1 ]:
186
186
"""
187
- Event handler which triggers when a document is created, updated, or deleted in Firestore.
187
+ Event handler that triggers when a document is created, updated, or deleted in Firestore.
188
188
189
189
Example:
190
190
@@ -199,7 +199,7 @@ def example(event: Event[Change[DocumentSnapshot]]) -> None:
199
199
:rtype: :exc:`typing.Callable`
200
200
\\ [ \\ [ :exc:`firebase_functions.firestore_fn.Event` \\ [
201
201
:exc:`firebase_functions.db.Change` \\ ] \\ ], `None` \\ ]
202
- A function that takes a Firestore Event and returns None.
202
+ A function that takes a Firestore event and returns `` None`` .
203
203
"""
204
204
options = FirestoreOptions (** kwargs )
205
205
@@ -232,7 +232,7 @@ def on_document_written_wrapped(raw: _ce.CloudEvent):
232
232
@_util .copy_func_kwargs (FirestoreOptions )
233
233
def on_document_updated (** kwargs ) -> _typing .Callable [[_C1 ], _C1 ]:
234
234
"""
235
- Event handler which triggers when a document is updated in Firestore.
235
+ Event handler that triggers when a document is updated in Firestore.
236
236
237
237
Example:
238
238
@@ -247,7 +247,7 @@ def example(event: Event[Change[DocumentSnapshot]]) -> None:
247
247
:rtype: :exc:`typing.Callable`
248
248
\\ [ \\ [ :exc:`firebase_functions.firestore_fn.Event` \\ [
249
249
:exc:`firebase_functions.db.Change` \\ ] \\ ], `None` \\ ]
250
- A function that takes a Firestore Event and returns None.
250
+ A function that takes a Firestore event and returns `` None`` .
251
251
"""
252
252
options = FirestoreOptions (** kwargs )
253
253
@@ -280,7 +280,7 @@ def on_document_updated_wrapped(raw: _ce.CloudEvent):
280
280
@_util .copy_func_kwargs (FirestoreOptions )
281
281
def on_document_created (** kwargs ) -> _typing .Callable [[_C2 ], _C2 ]:
282
282
"""
283
- Event handler which triggers when a document is created in Firestore.
283
+ Event handler that triggers when a document is created in Firestore.
284
284
285
285
Example:
286
286
@@ -295,7 +295,7 @@ def example(event: Event[DocumentSnapshot]):
295
295
:rtype: :exc:`typing.Callable`
296
296
\\ [ \\ [ :exc:`firebase_functions.firestore_fn.Event` \\ [
297
297
:exc:`object` \\ ] \\ ], `None` \\ ]
298
- A function that takes a Firestore Event and returns None.
298
+ A function that takes a Firestore event and returns `` None`` .
299
299
"""
300
300
options = FirestoreOptions (** kwargs )
301
301
@@ -328,7 +328,7 @@ def on_document_created_wrapped(raw: _ce.CloudEvent):
328
328
@_util .copy_func_kwargs (FirestoreOptions )
329
329
def on_document_deleted (** kwargs ) -> _typing .Callable [[_C2 ], _C2 ]:
330
330
"""
331
- Event handler which triggers when a document is deleted in Firestore.
331
+ Event handler that triggers when a document is deleted in Firestore.
332
332
333
333
Example:
334
334
@@ -343,7 +343,7 @@ def example(event: Event[DocumentSnapshot]) -> None:
343
343
:rtype: :exc:`typing.Callable`
344
344
\\ [ \\ [ :exc:`firebase_functions.firestore_fn.Event` \\ [
345
345
:exc:`object` \\ ] \\ ], `None` \\ ]
346
- A function that takes a Firestore Event and returns None.
346
+ A function that takes a Firestore event and returns `` None`` .
347
347
"""
348
348
options = FirestoreOptions (** kwargs )
349
349
0 commit comments