in azure/durable_functions/models/DurableEntityContext.py [0:0]
def __init__(self,
name: str,
key: str,
exists: bool,
state: Any):
"""Context of the durable entity context.
Describes the API used to specify durable entity user code.
Parameters
----------
name: str
The name of the Durable Entity
key: str
The key of the Durable Entity
exists: bool
Flag to determine if the entity exists
state: Any
The internal state of the Durable Entity
"""
self._entity_name: str = name
self._entity_key: str = key
self._exists: bool = exists
self._is_newly_constructed: bool = False
self._state: Any = state
self._input: Any = None
self._operation: Optional[str] = None
self._result: Any = None