Syntax

A google_bigquery_datasets is used to test a Google Dataset resource

Examples

describe google_bigquery_datasets(project: 'chef-gcp-inspec') do
  its('count') { should be >= 1 }
  its('friendly_names') { should include 'A BigQuery dataset test' }
  its('locations') { should include 'EU' }
end

Properties

Properties that can be accessed from the google_bigquery_datasets resource:

See googlebigquerydataset.md for more detailed information * dataset_references: an array of google_bigquery_dataset datasetreference * `friendlynames: an array ofgooglebigquerydatasetfriendly_name *ids: an array ofgooglebigquerydatasetid *labels: an array ofgooglebigquerydatasetlabels *locations: an array ofgooglebigquerydataset` location

Filter Criteria

This resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.

GCP Permissions

Ensure the BigQuery API is enabled for the current project.