Syntax
A google_bigquery_tables
is used to test a Google Table resource
Examples
describe.one do
google_bigquery_tables(project: 'chef-gcp-inspec', dataset: 'inspec_gcp_dataset').table_references.each do |table_reference|
describe google_bigquery_table(project: 'chef-gcp-inspec', dataset: 'inspec_gcp_dataset', name: table_reference.table_id) do
its('expiration_time') { should cmp '1738882264000' }
its('description') { should eq 'A BigQuery table' }
end
end
end
Properties
Properties that can be accessed from the google_bigquery_tables
resource:
See googlebigquerytable.md for more detailed information
* table_references
: an array of google_bigquery_table
tablereference
* clusterings
: an array of `googlebigquerytableclustering
*
creationtimes: an array of
googlebigquerytablecreation_time
*
friendlynames: an array of
googlebigquerytable` friendlyname
* ids
: an array of google_bigquery_table
id
* labels
: an array of google_bigquery_table
labels
* last_modified_times
: an array of google_bigquery_table
lastmodifiedtime
* locations
: an array of google_bigquery_table
location
* num_bytes
: an array of google_bigquery_table
numbytes
* `numlongtermbytes: an array of
googlebigquerytablenum_long_term_bytes
*
numrows: an array of
googlebigquerytable` numrows
* require_partition_filters
: an array of google_bigquery_table
requirepartitionfilter
* types
: an array of google_bigquery_table
type
* views
: an array of google_bigquery_table
view
* time_partitionings
: an array of google_bigquery_table
timepartitioning
* `streamingbuffers: an array of
googlebigquerytablestreaming_buffer
*
schemas: an array of
googlebigquerytableschema
*
encryptionconfigurations: an array of
googlebigquerytable` encryptionconfiguration
* expiration_times
: an array of google_bigquery_table
expirationtime
* `externaldataconfigurations: an array of
googlebigquerytable` externaldataconfiguration
* datasets
: an array of `googlebigquery_table` dataset
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.