A CloudEvent is the base of a cross-platform format for encoding a serverless event.
More information can be found at https://github.com/cloudevents/spec.
data:T
Information about this specific event.
id:str
A globally unique ID for this event.
source:str
The resource which published this event.
specversion:str
Version of the CloudEvents spec for this event.
subject:str|None
The resource, provided by source, that this event relates to.
Registers a function that should be run when in a production environment
before executing any functions code.
Calling this decorator more than once leads to undefined behavior.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-20 UTC."],[],[],null,["# firebase_functions.core module\n\nPublic code that is shared across modules.\n\nClasses\n-------\n\n| ### Change *class* firebase_functions.core.Change(*before: T* , *after: T* ) |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Bases: Generic\\[T\\] The Cloud Functions interface for events that change state, such as Realtime Database on_value_written. after*: T* : The state of data after the change. before*: T* : The state of data before the change. |\n\n| ### CloudEvent *class* firebase_functions.core.CloudEvent(*specversion: str* , *id: str* , *source: str* , *type: str* , *time: datetime* , *data: T* , *subject: str \\| None* ) |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Bases: Generic\\[T\\] A CloudEvent is the base of a cross-platform format for encoding a serverless event. More information can be found at \u003chttps://github.com/cloudevents/spec\u003e. data*: T* : Information about this specific event. id*: str* : A globally unique ID for this event. source*: str* : The resource which published this event. specversion*: str* : Version of the CloudEvents spec for this event. subject*: str \\| None* : The resource, provided by source, that this event relates to. time*: datetime* : When this event occurred. type*: str* : The type of event that this represents. |\n\nFunctions\n---------\n\n| ### init firebase_functions.core.init(*callback: Callable\\[\\[\\], Any\\]* ) → None |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Registers a function that should be run when in a production environment before executing any functions code. Calling this decorator more than once leads to undefined behavior. |"]]