Tree#
- class ansys.dynamicreporting.core.serverless.item.Tree(*args, **kwargs)#
Bases:
SimplePayloadMixin,ItemItem representing a hierarchical tree payload.
Methods
Tree.add_tag(tag[, value])Add or update a single tag.
Tree.as_dict([recursive])Serialize the model into a plain dictionary.
Tree.create(**kwargs)Factory-style creation that dispatches to the correct subclass.
Delete this object from the database.
Tree.filter(**kwargs)Return a collection of items, scoped by subclass type.
Tree.find([query])Search for items using an ADR query string.
Tree.get(**kwargs)Retrieve a single item instance, scoped by subclass type.
Return the raw tag string stored on this object.
Reset the in-memory ORM state for this object.
Tree.rem_tag(tag)Remove a tag by key, if it exists.
Tree.remove_tag(tag)Alias for
rem_tag()for backwards compatibility.Tree.render(*[, context, request])Render the item as HTML.
Tree.save(**kwargs)Serialize the current content into the ORM
payloaddatafield.Tree.set_tags(tag_str)Replace all tags with the given tag string.
Attributes
Validated tree structure content for this item.
Dataset associated with this item.
Database alias in which this object is stored.
Human-readable name for the item.
Whether this object has been successfully saved to the database.
Sequence index for ordering items within a dataset/session.
Session that owns this item.
Optional free-form source identifier for this item.
Tag string used to group and filter objects.
Item type identifier for tree items.
Timestamp when the item was created.
Globally unique identifier for this object.
- exception DoesNotExist(extra_detail: str = None)#
Bases:
DoesNotExist
- exception IntegrityError(extra_detail: str = None)#
Bases:
IntegrityError
- exception MultipleObjectsReturned(extra_detail: str = None)#
Bases:
MultipleObjectsReturned
- content: TreeContent = None#
Validated tree structure content for this item.