code: def update(self, permission):
          
          data = values.of({'Permission': serialize.map(permission, lambda e: e), })
  
          payload = self._version.update(
              'POST',
              self._uri,
              data=data,
          )
  
          return RoleInstance(
              self._version,
              payload,
              service_sid=self._solution['service_sid'],
              sid=self._solution['sid'],
          )
docs: Update the RoleInstance
  
          :param unicode permission: A permission the role should have
  
          :returns: Updated RoleInstance
          :rtype: twilio.rest.chat.v2.service.role.RoleInstance