GoogleApi.BigQuery.V2.Api.Tabledata (google_api_big_query v0.70.1) 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

Specs

bigquery_tabledata_insert_all(
  Tesla.Env.client(),
  String.t(),
  String.t(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.BigQuery.V2.Model.TableDataInsertAllResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

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

Parameters

  • connection (type: GoogleApi.BigQuery.V2.Connection.t) - Connection to server
  • project_id (type: String.t) - Project ID of the destination table.
  • dataset_id (type: String.t) - Dataset ID of the destination table.
  • table_id (type: String.t) - Table ID of the destination table.
  • optional_params (type: keyword()) - Optional parameters
    • :alt (type: String.t) - Data format for the response.
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: 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 (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • :userIp (type: String.t) - Deprecated. Please use quotaUser instead.
    • :body (type: GoogleApi.BigQuery.V2.Model.TableDataInsertAllRequest.t) -
  • opts (type: keyword()) - Call options

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

Specs

bigquery_tabledata_list(
  Tesla.Env.client(),
  String.t(),
  String.t(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.BigQuery.V2.Model.TableDataList.t()}
  | {:ok, Tesla.Env.t()}
  | {:ok, list()}
  | {:error, any()}

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

Parameters

  • connection (type: GoogleApi.BigQuery.V2.Connection.t) - Connection to server
  • project_id (type: String.t) - Project ID of the table to read
  • dataset_id (type: String.t) - Dataset ID of the table to read
  • table_id (type: String.t) - Table ID of the table to read
  • optional_params (type: keyword()) - Optional parameters
    • :alt (type: String.t) - Data format for the response.
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: 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 (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
    • :userIp (type: String.t) - Deprecated. Please use quotaUser instead.
    • :maxResults (type: integer()) - Maximum number of results to return
    • :pageToken (type: String.t) - Page token, returned by a previous call, identifying the result set
    • :selectedFields (type: String.t) - List of fields to return (comma-separated). If unspecified, all fields are returned
    • :startIndex (type: String.t) - Zero-based index of the starting row to read
  • opts (type: keyword()) - Call options

Returns

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