def put(self, device_id: int) -> Device:
        """
        Updates the Device Resource with the
        name.
        """
        device = self._get_or_abort(device_id)
        self.update(device)
        session.commit()
        session.add(device)
        return device
Updates the Device Resource with the
        name.