10BC0 BigQuery: add reference property to Table and Dataset by tswast · Pull Request #4405 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content

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).

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
0