google_project_services resource
Syntax
A google_project_services is used to test a Google Service resource
Beta Resource
This resource has beta fields available. To retrieve these fields, include beta: true in the constructor for the resource.
Examples
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
Properties
Properties that can be accessed from the google_project_services resource:
See google_project_service for more detailed information.
names: an array ofgoogle_project_servicenameparents: an array ofgoogle_project_serviceparentstates: an array ofgoogle_project_servicestatedisable_dependent_services: an array ofgoogle_project_servicedisable_dependent_servicesconfigs: an array ofgoogle_project_serviceconfig
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 Service Usage API is enabled for the current project.