'Creates a new entity in the parent, with all properties configured as in the file
:param entity_class: The class of the entity
:param parent: The parent of the entity
:param properties: The set of properties of the entity
:return: The entity'

def _create_entity(self, entity_class, parent, properties):

    entity = entity_class(**properties)
    try:
        parent.create_child(entity)
    except BambouHTTPError as error:
        self.module.fail_json(msg='Unable    to    create    entity:    {0}'.format(error))
    self.result['changed'] = True
    return entity
