code: func (s *IndicesFreezeService) buildURL() (string, url.Values, error) {
  	// Build URL
  	path, err := uritemplates.Expand("/{index}/_freeze", map[string]string{
  		"index": s.index,
  	})
  	if err != nil {
  		return "", url.Values{}, err
  	}
  
  	// Add query string parameters
  	params := url.Values{}
  	if s.pretty {
  		params.Set("pretty", "true")
  	}
  	if s.timeout != "" {
  		params.Set("timeout", s.timeout)
  	}
  	if s.masterTimeout != "" {
  		params.Set("master_timeout", s.masterTimeout)
  	}
  	if s.expandWildcards != "" {
  		params.Set("expand_wildcards", s.expandWildcards)
  	}
  	if s.ignoreUnavailable != nil {
  		params.Set("ignore_unavailable", fmt.Sprintf("%v", *s.ignoreUnavailable))
  	}
  	if s.allowNoIndices != nil {
  		params.Set("allow_no_indices", fmt.Sprintf("%v", *s.allowNoIndices))
  	}
  	if s.expandWildcards != "" {
  		params.Set("expand_wildcards", s.expandWildcards)
  	}
  	if s.waitForActiveShards != "" {
  		params.Set("wait_for_active_shards", s.waitForActiveShards)
  	}
  	return path, params, nil
  }
docs: // buildURL builds the URL for the operation.