On this page
google_bigquery_tables resource
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 the google_bigquery_table resource for more information.
-
table_references -
an array of
google_bigquery_tabletable_reference -
clusterings -
an array of
google_bigquery_tableclustering -
creation_times -
an array of
google_bigquery_tablecreation_time -
friendly_names -
an array of
google_bigquery_tablefriendly_name -
ids -
an array of
google_bigquery_tableid -
labels -
an array of
google_bigquery_tablelabels -
last_modified_times -
an array of
google_bigquery_tablelast_modified_time -
locations -
an array of
google_bigquery_tablelocation -
num_bytes -
an array of
google_bigquery_tablenum_bytes -
num_long_term_bytes -
an array of
google_bigquery_tablenum_long_term_bytes -
num_rows -
an array of
google_bigquery_tablenum_rows -
require_partition_filters -
an array of
google_bigquery_tablerequire_partition_filter -
types -
an array of
google_bigquery_tabletype -
views -
an array of
google_bigquery_tableview -
time_partitionings -
an array of
google_bigquery_tabletime_partitioning -
streaming_buffers -
an array of
google_bigquery_tablestreaming_buffer -
schemas -
an array of
google_bigquery_tableschema -
encryption_configurations -
an array of
google_bigquery_tableencryption_configuration -
expiration_times -
an array of
google_bigquery_tableexpiration_time -
external_data_configurations -
an array of
google_bigquery_tableexternal_data_configuration -
datasets -
an array of
google_bigquery_tabledataset
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.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_bigquery_tables/