code: def update(self, role_sid=values.unset,
                 last_consumed_message_index=values.unset):
          
          data = values.of({'RoleSid': role_sid, 'LastConsumedMessageIndex': last_consumed_message_index, })
  
          payload = self._version.update(
              'POST',
              self._uri,
              data=data,
          )
  
          return MemberInstance(
              self._version,
              payload,
              service_sid=self._solution['service_sid'],
              channel_sid=self._solution['channel_sid'],
              sid=self._solution['sid'],
          )
docs: Update the MemberInstance
  
          :param unicode role_sid: The Role assigned to this member.
          :param unicode last_consumed_message_index: An Integer representing index of the last Message this Member has read within this Channel
  
          :returns: Updated MemberInstance
          :rtype: twilio.rest.chat.v1.service.channel.member.MemberInstance