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 * `creationtimes: an array ofgooglebigquerytablecreation_time *friendlynames: an array ofgooglebigquerytable` 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 ofgooglebigquerytablenum_long_term_bytes *numrows: an array ofgooglebigquerytable` numrows * 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 ofgooglebigquerytablestreaming_buffer *schemas: an array ofgooglebigquerytableschema *encryptionconfigurations: an array ofgooglebigquerytable` encryptionconfiguration * expiration_times: an array of google_bigquery_table expirationtime * `externaldataconfigurations: an array ofgooglebigquerytable` 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.