Library

Module: thinkiq.model.library

Library

class thinkiq.model.library.Library(**kwargs)

Library - ThinkIQ entity representing a collection of types, enumeration types, and related assets.

Libraries are used to group functionality together for different verticals and can also be used to package 3rd party smart apps so they are easily installable.

A Library represents a collection of types, enumeration types, and related assets.

Properties:

id: int
types: dict[str, Node]

All Types that belong to the Library.

enumeration_types: dict[str, Node]

All Enumeration Types that belong to the Library.

last_updated: datetime

Timestamp of the latest updated node in this Library.

Methods

__init__(**kwargs)

Construct a Node (aka Thing) object using keyword arguments that will become properties of the returned object.

get_types()

Get all Types that belong to this Library. Returns a dict keyed by relative_name_id.

Return type:

dict[str, Node]

get_enum_types()

Get all Enumeration Types that belong to this Library. Returns a dict keyed by relative_name_id.

Return type:

dict[str, Node]

get_last_updated()

Get the timestamp of the latest updated node from this Library.

Return type:

Optional[datetime]