def METHOD_NAME(self, authclient_data):
    authclient = (
        self.db.query(models.AuthClient)
        .filter_by(name=authclient_data["name"])
        .one_or_none()
    )
    if not authclient:
        authclient = models.AuthClient()
        self.db.add(authclient)
    self.setattrs(authclient, authclient_data)