<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def put(self, vpn_id: int) -> Vpn: """ Updates the Vpn Resource with the name. """

        vpn = self._get_or_abort(vpn_id)
        self.update(vpn)
        session.commit()
        return vpn