benchling_api_client.models.simple_note_part module

class SimpleNotePart

Bases: object

Simple note parts include the following types: - ‘text’: plain text - ‘code’: preformatted code block - ‘list_bullet’: one “line” of a bulleted list - ‘list_number’: one “line” of a numbered list

__init__(links: Union[benchling_api_client.types.Unset, List[EntryLink]] = attr_dict['_links'].default, text: Union[benchling_api_client.types.Unset, str] = attr_dict['_text'].default, type: Union[benchling_api_client.types.Unset, SimpleNotePartType] = attr_dict['_type'].default, indentation: Union[benchling_api_client.types.Unset, int] = attr_dict['_indentation'].default) None

Method generated by attrs for class SimpleNotePart.

property additional_keys: List[str]
additional_properties: Dict[str, Any]
classmethod from_dict(src_dict: Dict[str, Any]) benchling_api_client.models.simple_note_part.T
get(key, default=None) Optional[Any]
property indentation: int

All notes have an indentation level - the default is 0 for no indent. For lists, indentation gives notes hierarchy - a bulleted list with children is modeled as one note part with indentation 1 followed by note parts with indentation 2, for example.

Array of links referenced in text via an @-mention, hyperlink, or the drag-n-dropped preview attached to the note.

property text: str

The textual contents of the note.

to_dict() Dict[str, Any]
property type: SimpleNotePartType