func (c *Client) CreateBigQuery(i *CreateBigQueryInput) (*BigQuery, error) {
	if i.Service == "" {
		return nil, ErrMissingService
	}

	if i.Version == 0 {
		return nil, ErrMissingVersion
	}

	path := fmt.Sprintf("/service/%s/version/%d/logging/bigquery", i.Service, i.Version)
	resp, err := c.PostForm(path, i, nil)
	if err != nil {
		return nil, err
	}

	var bigQuery *BigQuery
	if err := decodeBodyMap(resp.Body, &bigQuery); err != nil {
		return nil, err
	}
	return bigQuery, nil
}
// CreateBigQuery creates a new Fastly BigQuery.
CreateBigQuery creates a new Fastly BigQuery.
// CreateBigQuery creates a new Fastly BigQuery .
func (c *Client) CreateBigQuery(i *CreateBigQueryInput) (*BigQuery, error) {
	if i.Service == "" {
		return nil, ErrMissingService
	}
	if i.Version == 0 {
		return nil, ErrMissingVersion
	}
	path := fmt.Sprintf("/service/%s/version/%d/logging/bigquery", i.Service, i.Version)
	resp, err := c.PostForm(path, i, nil)
	if err != nil {
		return nil, err
	}
	var bigQuery *BigQuery
	if err := decodeBodyMap(resp.Body, &bigQuery); err != nil {
		return nil, err
	}
	return bigQuery, nil
}
func ( c * Client ) CreateBigQuery ( i * CreateBigQueryInput ) ( * BigQuery , error ) { if i . Service == " " { return nil , ErrMissingService } if i . Version == 0 { return nil , ErrMissingVersion } path := fmt . Sprintf ( " " , i . Service , i . Version ) resp , err := c . PostForm ( path , i , nil ) if err != nil { return nil , err } var bigQuery * BigQuery if err := decodeBodyMap ( resp . Body , & bigQuery ) ; err != nil { return nil , err } return bigQuery , nil }
CreateBigQuery creates a new Fastly BigQuery.
CreateBigQuery creates a new Fastly BigQuery .