'Get name of the managed entity.
:param entity: Reference to the entity
:return: Name of the managed entity'

def get_entity_name(self, entity):

    return self._session.invoke_api(vim_util, 'get_object_property', self._session.vim, entity, 'name')
