@@ -88,7 +88,7 @@ class Event(_core.CloudEvent[_core.T]):
88
88
_C2 = _typing .Callable [[_E2 ], None ]
89
89
90
90
AuthType = _typing .Literal ["service_account" , "api_key" , "system" ,
91
- "unauthenticated" , "unknown" ]
91
+ "unauthenticated" , "unknown" ]
92
92
93
93
94
94
@_dataclass .dataclass (frozen = True )
@@ -106,10 +106,10 @@ class EventWithAuthContext(Event[_core.T]):
106
106
107
107
108
108
def _firestore_endpoint_handler (
109
- func : _C1 | _C2 | _C3 | _C4 ,
110
- event_type : str ,
111
- document_pattern : _path_pattern .PathPattern ,
112
- raw : _ce .CloudEvent ,
109
+ func : _C1 | _C2 | _C3 | _C4 ,
110
+ event_type : str ,
111
+ document_pattern : _path_pattern .PathPattern ,
112
+ raw : _ce .CloudEvent ,
113
113
) -> None :
114
114
event_attributes = raw ._get_attributes ()
115
115
event_data : _typing .Any = raw .get_data ()
@@ -266,7 +266,7 @@ def on_document_written_wrapped(raw: _ce.CloudEvent):
266
266
267
267
@_util .copy_func_kwargs (FirestoreOptions )
268
268
def on_document_written_with_auth_context (** kwargs
269
- ) -> _typing .Callable [[_C1 ], _C1 ]:
269
+ ) -> _typing .Callable [[_C1 ], _C1 ]:
270
270
"""
271
271
Event handler that triggers when a document is created, updated, or deleted in Firestore.
272
272
This trigger will also provide the authentication context of the principal who triggered
@@ -365,7 +365,7 @@ def on_document_updated_wrapped(raw: _ce.CloudEvent):
365
365
366
366
@_util .copy_func_kwargs (FirestoreOptions )
367
367
def on_document_updated_with_auth_context (** kwargs
368
- ) -> _typing .Callable [[_C1 ], _C1 ]:
368
+ ) -> _typing .Callable [[_C1 ], _C1 ]:
369
369
"""
370
370
Event handler that triggers when a document is updated in Firestore.
371
371
This trigger will also provide the authentication context of the principal who triggered
@@ -464,7 +464,7 @@ def on_document_created_wrapped(raw: _ce.CloudEvent):
464
464
465
465
@_util .copy_func_kwargs (FirestoreOptions )
466
466
def on_document_created_with_auth_context (** kwargs
467
- ) -> _typing .Callable [[_C2 ], _C2 ]:
467
+ ) -> _typing .Callable [[_C2 ], _C2 ]:
468
468
"""
469
469
Event handler that triggers when a document is created in Firestore.
470
470
This trigger will also provide the authentication context of the principal who triggered
@@ -563,7 +563,7 @@ def on_document_deleted_wrapped(raw: _ce.CloudEvent):
563
563
564
564
@_util .copy_func_kwargs (FirestoreOptions )
565
565
def on_document_deleted_with_auth_context (** kwargs
566
- ) -> _typing .Callable [[_C2 ], _C2 ]:
566
+ ) -> _typing .Callable [[_C2 ], _C2 ]:
567
567
"""
568
568
Event handler that triggers when a document is deleted in Firestore.
569
569
This trigger will also provide the authentication context of the principal who triggered
0 commit comments