code: def update(self, activity_sid=values.unset, attributes=values.unset,
                 friendly_name=values.unset,
                 reject_pending_reservations=values.unset):
          
          data = values.of({
              'ActivitySid': activity_sid,
              'Attributes': attributes,
              'FriendlyName': friendly_name,
              'RejectPendingReservations': reject_pending_reservations,
          })
  
          payload = self._version.update(
              'POST',
              self._uri,
              data=data,
          )
  
          return WorkerInstance(
              self._version,
              payload,
              workspace_sid=self._solution['workspace_sid'],
              sid=self._solution['sid'],
          )
docs: Update the WorkerInstance
  
          :param unicode activity_sid: The activity_sid
          :param unicode attributes: The attributes
          :param unicode friendly_name: The friendly_name
          :param bool reject_pending_reservations: The reject_pending_reservations
  
          :returns: Updated WorkerInstance
          :rtype: twilio.rest.taskrouter.v1.workspace.worker.WorkerInstance