elasticai.creator.ir.base.attributes_descriptor#

Module Contents#

Classes#

AttributesDescriptor

Read values from the data dict, while hiding key, value that show up in _fields of the owning instance.

API#

class elasticai.creator.ir.base.attributes_descriptor.AttributesDescriptor[source]#

Read values from the data dict, while hiding key, value that show up in _fields of the owning instance.

The use for this are cases where mandatory fields are treated in a special way and you want write/read access to all other elements from data, e.g., while converting an old ir data object into a new one, and you just want to get the missing values from data.

NOTE: The returned Mapping is read only

__get__(instance: elasticai.creator.ir.base.attributes_descriptor._IrData, owner=type[_IrData] | None)[source]#