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

BigQuery: add reference property to Table and Dataset #4405

Merged
merged 2 commits into from
Nov 21, 2017

Conversation

tswast
Copy link
Contributor

@tswast tswast commented Nov 17, 2017

This makes it easier to call get_table, get_dataset, or other
functions that want just a reference, not a full resource.

Closes #4327

@tswast tswast added the api: bigquery Issues related to the BigQuery API. label Nov 17, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 17, 2017
@robfraz
Copy link

robfraz commented Nov 20, 2017

Thanks! LGTM (for what it's worth).

@@ -204,6 +204,20 @@ def table_id(self):
"""
return self._table_id

@property
def reference(self):

This comment was marked as spam.

This makes it easier to call `get_table`, `get_dataset`, or other
functions that want just a reference, not a full resource.
@tswast tswast merged commit 58b642e into googleapis:master Nov 21, 2017
@tswast tswast deleted the bq-tableref branch November 21, 2017 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants