Finding Template Data Classes
reptor.models.FindingTemplate.FindingTemplate
Attributes:
id(str) – Finding template ID (uuid).created(datetime) – Finding template creation time.updated(datetime) – Finding template last update time.translations(List[FindingTemplateTranslation]) – List of translations for the finding template. This holds the action finding template data.tags(List[str]) – List of finding template tags.usage_count(int) – Number of times the template has been used for creating a finding.source(FindingTemplateSources) – Source of the finding template (one ofcreated,imported,customized,imported_dependency,snapshot).images(str) – Finding template images API endpoint (URL).details(str) – Finding template details API endpoint (URL).
Methods:
get_main_title– Get the main title of the finding template.get_main_translation– Get the main translation of the finding template.to_dict– Convert to a dictionary representation.
reptor.models.FindingTemplate.FindingTemplateTranslation
Attributes: id (str): Translation ID (uuid). created (datetime): Translation creation time. updated (datetime): Translation last update time.
language (str): Language code (e.g., "en-US"). status (str): Status of the translation (e.g., "in-progress", etc.). is_main (bool): Whether this translation is the main one for the finding template. data (FindingDataRaw): Finding template data for this translation.
data
Type: FindingDataRaw
is_main
Type: bool
language
Type: str
status
Type: str
to_dict
python
def to_dict() -> dictreptor.models.Base.FindingTemplateSources
Enum for finding template sources.
CREATED
CUSTOMIZED
IMPORTED
IMPORTED_DEPENDENCY
SNAPSHOT
Source
python
class FindingTemplateSources(enum.Enum):
"""
Enum for finding template sources.
"""
CREATED = "created"
IMPORTED = "imported"
IMPORTED_DEPENDENCY = "imported_dependency"
CUSTOMIZED = "customized"
SNAPSHOT = "snapshot"