-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: Use DatasetListItem for client.list_datasets #4439
Conversation
dad8587
to
cb10a2b
Compare
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
:rtype: str | ||
:returns: the dataset ID. | ||
""" | ||
return self._properties.get('datasetReference').get('datasetId') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
: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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.