import avesterra as av
[docs]
def create_company(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.
"""
company_entity = av.create_object(
name=name,
key=name.lower(),
context=av.AvContext.ORCHESTRA,
category=av.AvCategory.PERSON,
klass=av.AvClass.PERSON,
authorization=auth
)
return company_entity