google.cloud.bigquery.dataset.DatasetListItem¶
- class google.cloud.bigquery.dataset.DatasetListItem(resource)[source]¶
A read-only dataset resource from a list operation.
For performance reasons, the BigQuery API only includes some of the dataset properties when listing datasets. Notably,
access_entries
is missing.For a full list of the properties that the BigQuery API returns, see the REST documentation for datasets.list.
- Parameters
resource (Dict[str, str]) – A dataset-like resource object from a dataset list response. A
datasetReference
property is required.- Raises
ValueError – If
datasetReference
or one of its required members is missing fromresource
.
Methods
__init__
(resource)Initialize self.
model
(model_id)Constructs a ModelReference.
routine
(routine_id)Constructs a RoutineReference.
table
(table_id)Constructs a TableReference.
Attributes
Dataset ID.
Title of the dataset as set by the user (defaults to
None
).ID for the dataset resource (
None
until set from the server)Labels for the dataset.
Project bound to the dataset.
A reference to this dataset.
- property full_dataset_id¶
ID for the dataset resource (
None
until set from the server)In the format
project_id:dataset_id
.
- model(model_id)¶
Constructs a ModelReference.
- Parameters
model_id (str) – the ID of the model.
- Returns
A ModelReference for a model in this dataset.
- Return type
- property reference¶
A reference to this dataset.
- routine(routine_id)¶
Constructs a RoutineReference.
- Parameters
routine_id (str) – the ID of the routine.
- Returns
A RoutineReference for a routine in this dataset.
- Return type
- table(table_id: str) → google.cloud.bigquery.table.TableReference¶
Constructs a TableReference.
- Parameters
table_id (str) – The ID of the table.
- Returns
A table reference for a table in this dataset.
- Return type