FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BigQuery: Use DatasetListItem for client.list_datasets by tswast · Pull Request #4439 · googleapis/google-cloud-python · GitHub

BigQuery: Use DatasetListItem for client.list_datasets - #4439

Merged
tswast merged 4 commits into
googleapis:masterfrom
tswast:bq-datasetref
Dec 6, 2017
Merged

BigQuery: Use DatasetListItem for client.list_datasets#4439
tswast merged 4 commits into
googleapis:masterfrom
tswast:bq-datasetref

Conversation

tswast commented Nov 22, 2017

Copy link
Copy Markdown
Contributor

Listing datasets only includes a subset of the properties available on a
dataset. The DatasetListItem class is used to explicitly document which
features are available and to prevent confusion from trying to use the
resulting object in other contexts, like updating.

Closes #4373.

tswast added the api: bigquery Issues related to the BigQuery API. label Nov 22, 2017
googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 22, 2017
tswast requested a review from theacodes November 29, 2017 23:43

tswast commented Dec 5, 2017

Copy link
Copy Markdown
Contributor Author

Ping. Please review.

Listing datasets only includes a subset of the properties available on a
dataset. The DatasetListItem class is used to explicitly document which
features are available and to prevent confusion from trying to use the
resulting object in other contexts, like updating.
:rtype: str
:returns: the project.
"""
return self._properties.get('datasetReference').get('projectId')

This comment was marked as spam.

This comment was marked as spam.

:rtype: str
:returns: the dataset ID.
"""
return self._properties.get('datasetReference').get('datasetId')

This comment was marked as spam.

:rtype: dict, {str -> str}
:returns: A dict of the the dataset's labels.
"""
return self._properties['labels']

This comment was marked as spam.

This comment was marked as spam.

tswast merged commit cc852af into googleapis:master Dec 6, 2017
tswast deleted the bq-datasetref branch December 6, 2017 00:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL