'Update the UserInstance
:param unicode role_sid: The role_sid
:param unicode attributes: The attributes
:param unicode friendly_name: The friendly_name
:returns: Updated UserInstance
:rtype: twilio.rest.chat.v1.service.user.UserInstance'

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'])
