code: def update(self, role_sid=values.unset, attributes=values.unset,
                 friendly_name=values.unset):
          
          data = values.of({'RoleSid': role_sid, 'Attributes': attributes, 'FriendlyName': friendly_name, })
  
          payload = self._version.update(
              'POST',
              self._uri,
              data=data,
          )
  
          return UserInstance(
              self._version,
              payload,
              service_sid=self._solution['service_sid'],
              sid=self._solution['sid'],
          )
docs: Update the UserInstance
  
          :param unicode role_sid: The SID id of the Role assigned to this user
          :param unicode attributes: A valid JSON string that contains application-specific data
          :param unicode friendly_name: A string to describe the resource
  
          :returns: Updated UserInstance
          :rtype: twilio.rest.chat.v2.service.user.UserInstance