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

docs(bigquery): add docstring for conflict exception #171

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions google/cloud/bigquery/client.py
Expand Up @@ -441,6 +441,10 @@ def create_dataset(
google.cloud.bigquery.dataset.Dataset:
A new ``Dataset`` returned from the API.

Raises:
google.cloud.exceptions.Conflict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Colons are missing at the end of exception types.

If the dataset already exists.

Example:

>>> from google.cloud import bigquery
Expand Down Expand Up @@ -496,6 +500,10 @@ def create_routine(
Returns:
google.cloud.bigquery.routine.Routine:
A new ``Routine`` returned from the service.

Raises:
google.cloud.exceptions.Conflict
If the routine already exists.
"""
reference = routine.reference
path = "/projects/{}/datasets/{}/routines".format(
Expand Down Expand Up @@ -540,6 +548,10 @@ def create_table(self, table, exists_ok=False, retry=DEFAULT_RETRY, timeout=None
Returns:
google.cloud.bigquery.table.Table:
A new ``Table`` returned from the service.

Raises:
google.cloud.exceptions.Conflict
If the table already exists.
"""
table = _table_arg_to_table(table, default_project=self.project)

Expand Down