title | platform |
---|---|
About the google_bigquery_tables resource |
gcp |
A google_bigquery_tables
is used to test a Google Table resource
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 that can be accessed from the google_bigquery_tables
resource:
See google_bigquery_table.md for more detailed information
table_references
: an array ofgoogle_bigquery_table
table_referenceclusterings
: an array ofgoogle_bigquery_table
clusteringcreation_times
: an array ofgoogle_bigquery_table
creation_timefriendly_names
: an array ofgoogle_bigquery_table
friendly_nameids
: an array ofgoogle_bigquery_table
idlabels
: an array ofgoogle_bigquery_table
labelslast_modified_times
: an array ofgoogle_bigquery_table
last_modified_timelocations
: an array ofgoogle_bigquery_table
locationnum_bytes
: an array ofgoogle_bigquery_table
num_bytesnum_long_term_bytes
: an array ofgoogle_bigquery_table
num_long_term_bytesnum_rows
: an array ofgoogle_bigquery_table
num_rowsrequire_partition_filters
: an array ofgoogle_bigquery_table
require_partition_filtertypes
: an array ofgoogle_bigquery_table
typeviews
: an array ofgoogle_bigquery_table
viewtime_partitionings
: an array ofgoogle_bigquery_table
time_partitioningstreaming_buffers
: an array ofgoogle_bigquery_table
streaming_bufferschemas
: an array ofgoogle_bigquery_table
schemaencryption_configurations
: an array ofgoogle_bigquery_table
encryption_configurationexpiration_times
: an array ofgoogle_bigquery_table
expiration_timeexternal_data_configurations
: an array ofgoogle_bigquery_table
external_data_configurationdatasets
: an array ofgoogle_bigquery_table
dataset
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
Ensure the BigQuery API is enabled for the current project.