Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python docstring. #128

Merged
merged 1 commit into from
Oct 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bigquery/api/load_data_by_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@

# [START make_post]
def load_data(schema_path, data_path, project_id, dataset_id, table_id):
"""
Creates an http POST request for loading data into
a bigquery table
"""Loads the given data file into BigQuery.

Args:
schema_path: the path to a file containing a valid bigquery schema.
see https://cloud.google.com/bigquery/docs/reference/v2/tables
data_path: the name of the file to insert into the table.

Returns: an http.request object
project_id: The project id that the table exists under. This is also
assumed to be the project id this request is to be made under.
dataset_id: The dataset id of the destination table.
table_id: The table id to load data into.
"""
# Create a bigquery service object, using the application's default auth
credentials = GoogleCredentials.get_application_default()
Expand Down