code: func (s *ClusterRerouteService) Validate() error {
  	if s.body == nil && len(s.commands) == 0 {
  		return errors.New("missing allocate commands or raw body")
  	}
  	return nil
  }
docs: // Validate checks if the operation is valid.