// ListBigQueries returns the list of BigQueries for the configuration version.
ListBigQueries returns the list of BigQueries for the configuration version.
// ListBigQueries returns the list of BigQueries for the configuration version .
func (c *Client) ListBigQueries(i *ListBigQueriesInput) ([]*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.Get(path, nil)
	if err != nil {
		return nil, err
	}
	var bigQueries []*BigQuery
	if err := decodeBodyMap(resp.Body, &bigQueries); err != nil {
		return nil, err
	}
	sort.Stable(bigQueriesByName(bigQueries))
	return bigQueries, nil
}
func ( c * Client ) ListBigQueries ( i * ListBigQueriesInput ) ( [ ] * 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 . Get ( path , nil ) if err != nil { return nil , err } var bigQueries [ ] * BigQuery if err := decodeBodyMap ( resp . Body , & bigQueries ) ; err != nil { return nil , err } sort . Stable ( bigQueriesByName ( bigQueries ) ) return bigQueries , nil }
ListBigQueries returns the list of BigQueries for the configuration version.
ListBigQueries returns the list of BigQueries for the configuration version .