Source code for module.utils.create_person_entity

import avesterra as av


[docs] def create_entity(name: str, auth: av.AvAuthorization) -> av.AvEntity: """ This function shows how to create an entity representing a person. :param name: The name of the person to create. :param auth: The Orchestra server authorization that allows entity operations. :return: The created person entity. """ person_entity = av.create_object( name=name, key=name.lower(), context=av.AvContext.ORCHESTRA, category=av.AvCategory.PERSON, klass=av.AvClass.PERSON, authorization=auth ) return person_entity