Ресурс google_cloud_scheduler_jobs
Синтаксис
Для проверки ресурса задачи Google используется google_cloud_scheduler_jobs
Примеры
google_cloud_scheduler_jobs(project: 'chef-gcp-inspec', region: ).names.each do |name|
describe google_cloud_scheduler_job(project: 'chef-gcp-inspec', region: us-central1, name: name) do
it { should exist }
its('description') { should cmp 'A description' }
its('schedule') { should cmp '*/8 * * * *' }
its('time_zone') { should cmp 'America/New_York' }
its('http_target.http_method') { should cmp 'POST' }
its('http_target.uri') { should cmp 'https://example.com/ping' }
end
end
Свойства
Свойства, к которым можно получить доступ из ресурса google_cloud_scheduler_jobs:
Дополнительную информацию см. в ресурсе google_cloud_scheduler_job.
names- массив
google_cloud_scheduler_jobимён descriptions- массив
google_cloud_scheduler_jobописаний schedules- массив
google_cloud_scheduler_jobрасписаний time_zones- массив
google_cloud_scheduler_jobчасовых поясов attempt_deadlines- массив
google_cloud_scheduler_jobсроков завершения попыток retry_configs- массив
google_cloud_scheduler_jobконфигураций повторных попыток pubsub_targets- массив
google_cloud_scheduler_jobцелевых объектов Pub/Sub app_engine_http_targets- массив
google_cloud_scheduler_jobцелевых объектов App Engine HTTP http_targets- массив
google_cloud_scheduler_jobцелевых объектов HTTP regions- массив
google_cloud_scheduler_jobрегионов
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства как критерии фильтрации, которые могут использоваться с where в качестве блока или метода.
Разрешения GCP
© 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_cloud_scheduler_jobs/