Skip to content

sift_py.file_attachment.entity

Entities represent things that files can be attached to.

CLASS DESCRIPTION
Entity

An abstract entity that represents the thing that we want to attach files to.

EntityType

Represents the types of entities that supports file attachments.

Entity

Entity(entity_id: str, entity_type: EntityType)

An abstract entity that represents the thing that we want to attach files to.

ATTRIBUTE DESCRIPTION
entity_id

TYPE: str

entity_type

TYPE: EntityType

entity_id instance-attribute

entity_id: str = entity_id

entity_type instance-attribute

entity_type: EntityType = entity_type

EntityType

Bases: Enum

Represents the types of entities that supports file attachments.

ATTRIBUTE DESCRIPTION
ANNOTATION

ANNOTATION_LOG

RUN

ANNOTATION class-attribute instance-attribute

ANNOTATION = 'annotations'

ANNOTATION_LOG class-attribute instance-attribute

ANNOTATION_LOG = 'annotation_logs'

RUN class-attribute instance-attribute

RUN = 'runs'