code: def update_service_endpoint(self, endpoint, project, endpoint_id, operation=None):
          
          route_values = {}
          if project is not None:
              route_values['project'] = self._serialize.url('project', project, 'str')
          if endpoint_id is not None:
              route_values['endpointId'] = self._serialize.url('endpoint_id', endpoint_id, 'str')
          query_parameters = {}
          if operation is not None:
              query_parameters['operation'] = self._serialize.query('operation', operation, 'str')
          content = self._serialize.body(endpoint, 'ServiceEndpoint')
          response = self._send(http_method='PUT',
                                location_id='e85f1c62-adfc-4b74-b618-11a150fb195e',
                                version='5.0-preview.2',
                                route_values=route_values,
                                query_parameters=query_parameters,
                                content=content)
          return self._deserialize('ServiceEndpoint', response)
docs: UpdateServiceEndpoint.
          [Preview API] Update a service endpoint.
          :param :class:`<ServiceEndpoint> <azure.devops.v5_0.service_endpoint.models.ServiceEndpoint>` endpoint: Service endpoint to update.
          :param str project: Project ID or project name
          :param str endpoint_id: Id of the service endpoint to update.
          :param str operation: Operation for the service endpoint.
          :rtype: :class:`<ServiceEndpoint> <azure.devops.v5_0.service_endpoint.models.ServiceEndpoint>`