8000 BigQuery: Use DatasetListItem for client.list_datasets by tswast · Pull Request #4439 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content

Conversation

tswast
Copy link
Contributor
@tswast tswast commented Nov 22, 2017

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 tswast added the api: bigquery Issues related to the BigQuery API. label Nov 22, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 22, 2017
@tswast tswast requested a review from theacodes November 29, 2017 23:43
@tswast
Copy link
Contributor Author
tswast commented Dec 5, 2017

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 tswast merged commit cc852af into googleapis:master Dec 6, 2017
@tswast tswast deleted the bq-datasetref branch December 6, 2017 00:09
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

0