feat: Adds dataset_view parameter to get_dataset method by chalmerlowe · Pull Request #2198 · googleapis/python-bigquery

@google-labs-jules

This commit introduces a new `dataset_view` parameter to the `get_dataset`
method in the BigQuery client. This allows you to specify the level of
detail (METADATA, ACL, FULL) returned when fetching a dataset.

The `DatasetView` enum has been added to `enums.py`.

Unit tests have been added to verify:
- Correct query parameter (`view`) formation for each enum value.
- Correct behavior when `dataset_view` is None.
- AttributeError is raised for invalid `dataset_view` types.

@chalmerlowe requested a review from a team

May 22, 2025 12:12

chalmerlowe

@chalmerlowe

@chalmerlowe

shollyman

This was referenced

Jul 22, 2025