Ресурс google_project_services
Синтаксис
Для проверки ресурса Google Service используется google_project_services
Ресурс Beta
Этот ресурс имеет доступные поля beta-версии. Для получения этих полей, включите beta: true в конструктор ресурса.
Примеры
describe.one do
google_project_services(project: 'chef-gcp-inspec').names.each do |name|
describe name do
it { should match 'maps-android-backend.googleapis.com' }
end
end
end
Свойства
Свойства, к которым можно получить доступ из ресурса google_project_services:
Для получения дополнительной информации см. ресурс google_project_service.
names- массив из
google_project_serviceимен parents- массив из
google_project_serviceродительских элементов states- массив из
google_project_serviceсостояний disable_dependent_services- массив из
google_project_serviceзначений disable_dependent_services configs- массив из
google_project_serviceнастроек (config)
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут быть использованы с where в виде блока или метода.
Разрешения GCP
Убедитесь, что API использования сервисов Service Usage API включен для текущего проекта.
© 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_project_services/