code: def update(self, role_sid=values.unset,
                 last_consumed_message_index=values.unset,
                 last_consumption_timestamp=values.unset, date_created=values.unset,
                 date_updated=values.unset, attributes=values.unset):
          
          data = values.of({
              'RoleSid': role_sid,
              'LastConsumedMessageIndex': last_consumed_message_index,
              'LastConsumptionTimestamp': serialize.iso8601_datetime(last_consumption_timestamp),
              'DateCreated': serialize.iso8601_datetime(date_created),
              'DateUpdated': serialize.iso8601_datetime(date_updated),
              'Attributes': attributes,
          })
  
          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 SID of the Role to assign to the member
          :param unicode last_consumed_message_index: The index of the last consumed Message for the Channel for the Member
          :param datetime last_consumption_timestamp: The ISO 8601 based timestamp string representing the date-time of the last Message read event for the Member within the Channel
          :param datetime date_created: The ISO 8601 date and time in GMT when the resource was created
          :param datetime date_updated: The ISO 8601 date and time in GMT when the resource was updated
          :param unicode attributes: A valid JSON string that contains application-specific data
  
          :returns: Updated MemberInstance
          :rtype: twilio.rest.chat.v2.service.channel.member.MemberInstance