[docs]classContainer(BaseModel):"""Represents a container to be created during on_poll. This class allows users to specify container properties when yielding from an on_poll function. """model_config=ConfigDict(extra="forbid")name:strlabel:str|None=Nonedescription:str|None=Nonesource_data_identifier:str|None=Noneexternal_id:str|None=Noneseverity:str|None=Nonestatus:str|None=Nonetags:list[str]|str|None=Noneowner_id:int|str|None=Nonesensitivity:str|None=Noneartifacts:list[dict[str,Any]]|None=Noneasset_id:int|None=Noneclose_time:str|None=Nonecustom_fields:dict[str,Any]|None=Nonedata:dict[str,Any]|None=Nonedue_time:str|None=Noneend_time:str|None=Noneingest_app_id:int|None=Nonekill_chain:str|None=Nonerole_id:int|str|None=Nonerun_automation:bool=Falsestart_time:str|None=Noneopen_time:str|None=Nonetenant_id:int|str|None=Nonecontainer_type:str|None=Nonetemplate_id:int|None=Noneauthorized_users:list[int]|None=Noneartifact_count:int|None=Nonecontainer_id:str|None=None
[docs]defto_dict(self)->dict[str,Any]:"""Convert the container to a dictionary (needed for save_container)."""returnself.model_dump(exclude_none=True)