Spec-Zone.ru › Chef 18

Ресурс google_bigquery_tables

[править на GitHub]

Синтаксис

Используется для проверки ресурса таблицы 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_table table_reference
clusterings
массив google_bigquery_table clustering
creation_times
массив google_bigquery_table creation_time
friendly_names
массив google_bigquery_table friendly_name
ids
массив google_bigquery_table id
labels
массив google_bigquery_table labels
last_modified_times
массив google_bigquery_table last_modified_time
locations
массив google_bigquery_table location
num_bytes
массив google_bigquery_table num_bytes
num_long_term_bytes
массив google_bigquery_table num_long_term_bytes
num_rows
массив google_bigquery_table num_rows
require_partition_filters
массив google_bigquery_table require_partition_filter
types
массив google_bigquery_table type
views
массив google_bigquery_table view
time_partitionings
массив google_bigquery_table time_partitioning
streaming_buffers
массив google_bigquery_table streaming_buffer
schemas
массив google_bigquery_table schema
encryption_configurations
массив google_bigquery_table encryption_configuration
expiration_times
массив google_bigquery_table expiration_time
external_data_configurations
массив google_bigquery_table external_data_configuration
datasets
массив google_bigquery_table dataset

Критерии фильтрации

Этот ресурс поддерживает все перечисленные выше свойства в качестве критериев фильтрации, которые могут быть использованы с 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/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API