Ресурс google_bigquery_tables
Синтаксис
Используется для проверки ресурса таблицы Google.
Примеры
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
Свойства
Свойства, доступные для ресурса google_bigquery_tables:
Дополнительную информацию см. в ресурсе google_bigquery_table.
table_references- массив
google_bigquery_tabletable_reference clusterings- массив
google_bigquery_tableclustering creation_times- массив
google_bigquery_tablecreation_time friendly_names- массив
google_bigquery_tablefriendly_name ids- массив
google_bigquery_tableid labels- массив
google_bigquery_tablelabels last_modified_times- массив
google_bigquery_tablelast_modified_time locations- массив
google_bigquery_tablelocation num_bytes- массив
google_bigquery_tablenum_bytes num_long_term_bytes- массив
google_bigquery_tablenum_long_term_bytes num_rows- массив
google_bigquery_tablenum_rows require_partition_filters- массив
google_bigquery_tablerequire_partition_filter types- массив
google_bigquery_tabletype views- массив
google_bigquery_tableview time_partitionings- массив
google_bigquery_tabletime_partitioning streaming_buffers- массив
google_bigquery_tablestreaming_buffer schemas- массив
google_bigquery_tableschema encryption_configurations- массив
google_bigquery_tableencryption_configuration expiration_times- массив
google_bigquery_tableexpiration_time external_data_configurations- массив
google_bigquery_tableexternal_data_configuration datasets- массив
google_bigquery_tabledataset
Критерии фильтрации
Этот ресурс поддерживает все перечисленные выше свойства в качестве критериев фильтрации, которые могут быть использованы с where в виде блока или метода.
Разрешения GCP
Убедитесь, что для текущего проекта включен API BigQuery.
© 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/