

def update(self, newconf):
    payload = self._h._resource_serialize(newconf)
    r = self._h._http_resource(method='PATCH', resource=('apps', self.app.name, 'config-vars'), data=payload)
    r.raise_for_status()
    item = self._h._resource_deserialize(r.content.decode('utf-8'))
    return ConfigVars.new_from_dict(item, h=self)

dataset/ETHPy150Open martyzz1/heroku3.py/heroku3/models/configvars.py ConfigVars.update/original