code: func (c *Client) CreateBigQuery(i *CreateBigQueryInput) (*BigQuery, error) {
  	if i.Service == "" {
  		return nil, ErrMissingService
  	}
  
  	if i.Version == 0 {
  		return nil, ErrMissingVersion
  	}
  
  	if i.Name == "" {
  		return nil, ErrMissingName
  	}
  
  	if i.ProjectID == "" {
  		return nil, ErrMissingProjectID
  	}
  
  	if i.Dataset == "" {
  		return nil, ErrMissingDataset
  	}
  
  	if i.Table == "" {
  		return nil, ErrMissingTable
  	}
  
  	if i.User == "" {
  		return nil, ErrMissingUser
  	}
  
  	if i.SecretKey == "" {
  		return nil, ErrMissingSecretKey
  	}
  
  	params := make(map[string]string)
  	params["name"] = i.Name
  	params["project_id"] = i.ProjectID
  	params["dataset"] = i.Dataset
  	params["table"] = i.Table
  	params["user"] = i.User
  	params["secret_key"] = i.SecretKey
  	if i.Format != "" {
  		params["format"] = i.Format
  	}
  	if i.ResponseCondition != "" {
  		params["response_condition"] = i.ResponseCondition
  	}
  	if i.Template != "" {
  		params["template_suffix"] = i.Template
  	}
  
  	if i.Placement != "" {
  		params["placement"] = i.Placement
  	}
  
  	path := fmt.Sprintf("/service/%s/version/%d/logging/bigquery", i.Service, i.Version)
  	resp, err := c.PostForm(path, i, &RequestOptions{
  		Params: params,
  	})
  	if err != nil {
  		return nil, err
  	}
  
  	var b *BigQuery
  	if err := decodeJSON(&b, resp.Body); err != nil {
  		return nil, err
  	}
  	return b, nil
  }
docs: // CreateBigQuery creates a new Fastly BigQuery logging endpoint.