code: func (e *events) UpdateWithEventNamespace(event *api.Event) (*api.Event, error) {
  	result := &api.Event{}
  	err := e.client.Put().
  		NamespaceIfScoped(event.Namespace, len(event.Namespace) > 0).
  		Resource("events").
  		Name(event.Name).
  		Body(event).
  		Do().
  		Into(result)
  	return result, err
  }
docs: // UpdateWithEventNamespace modifies an existing event. It returns the copy of the event that the server returns,
  // or an error. The namespace and key to update the event within is deduced from the event. The
  // namespace must either match this event client's namespace, or this event client must have been
  // created with the "" namespace. Update also requires the ResourceVersion to be set in the event
  // object.