google_bigquery_tables resource
Use the google_bigquery_tables InSpec audit resource to to test a Google Cloud 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 google_bigquery_table for more detailed information.
table_references: an array ofgoogle_bigquery_tabletable_referenceclusterings: an array ofgoogle_bigquery_tableclusteringcreation_times: an array ofgoogle_bigquery_tablecreation_timefriendly_names: an array ofgoogle_bigquery_tablefriendly_nameids: an array ofgoogle_bigquery_tableidlabels: an array ofgoogle_bigquery_tablelabelslast_modified_times: an array ofgoogle_bigquery_tablelast_modified_timelocations: an array ofgoogle_bigquery_tablelocationnum_bytes: an array ofgoogle_bigquery_tablenum_bytesnum_long_term_bytes: an array ofgoogle_bigquery_tablenum_long_term_bytesnum_rows: an array ofgoogle_bigquery_tablenum_rowsrequire_partition_filters: an array ofgoogle_bigquery_tablerequire_partition_filtertypes: an array ofgoogle_bigquery_tabletypeviews: an array ofgoogle_bigquery_tableviewtime_partitionings: an array ofgoogle_bigquery_tabletime_partitioningstreaming_buffers: an array ofgoogle_bigquery_tablestreaming_bufferschemas: an array ofgoogle_bigquery_tableschemaencryption_configurations: an array ofgoogle_bigquery_tableencryption_configurationexpiration_times: an array ofgoogle_bigquery_tableexpiration_timeexternal_data_configurations: an array ofgoogle_bigquery_tableexternal_data_configurationdatasets: an array ofgoogle_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.