google_api_big_query v0.2.0 GoogleApi.BigQuery.V2.Api.Tabledata View Source

API calls for all endpoints tagged Tabledata.

Link to this section Summary

Functions

Streams data into BigQuery one record at a time without needing to run a load job. Requires the WRITER dataset role

Retrieves table data from a specified set of rows. Requires the READER dataset role

Link to this section Functions

Link to this function bigquery_tabledata_insert_all(connection, project_id, dataset_id, table_id, optional_params \\ [], opts \\ []) View Source

Streams data into BigQuery one record at a time without needing to run a load job. Requires the WRITER dataset role.

Parameters

  • connection (GoogleApi.BigQuery.V2.Connection): Connection to server
  • project_id (String.t): Project ID of the destination table.
  • dataset_id (String.t): Dataset ID of the destination table.
  • table_id (String.t): Table ID of the destination table.
  • optional_params (KeywordList): [optional] Optional parameters

    • :alt (String.t): Data format for the response.
    • :fields (String.t): Selector specifying which fields to include in a partial response.
    • :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (String.t): OAuth 2.0 token for the current user.
    • :prettyPrint (boolean()): Returns response with indentations and line breaks.
    • :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • :userIp (String.t): Deprecated. Please use quotaUser instead.
    • :body (TableDataInsertAllRequest):

Returns

{:ok, %GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponse{}} on success {:error, info} on failure

Link to this function bigquery_tabledata_list(connection, project_id, dataset_id, table_id, optional_params \\ [], opts \\ []) View Source

Retrieves table data from a specified set of rows. Requires the READER dataset role.

Parameters

  • connection (GoogleApi.BigQuery.V2.Connection): Connection to server
  • project_id (String.t): Project ID of the table to read
  • dataset_id (String.t): Dataset ID of the table to read
  • table_id (String.t): Table ID of the table to read
  • optional_params (KeywordList): [optional] Optional parameters

    • :alt (String.t): Data format for the response.
    • :fields (String.t): Selector specifying which fields to include in a partial response.
    • :key (String.t): API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (String.t): OAuth 2.0 token for the current user.
    • :prettyPrint (boolean()): Returns response with indentations and line breaks.
    • :quotaUser (String.t): An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • :userIp (String.t): Deprecated. Please use quotaUser instead.
    • :maxResults (integer()): Maximum number of results to return
    • :pageToken (String.t): Page token, returned by a previous call, identifying the result set
    • :selectedFields (String.t): List of fields to return (comma-separated). If unspecified, all fields are returned
    • :startIndex (String.t): Zero-based index of the starting row to read

Returns

{:ok, %GoogleApi.BigQuery.V2.Model.TableDataList{}} on success {:error, info} on failure