Syntax
A google_cloudfunctions_cloud_functions
is used to test a Google CloudFunction resource
Examples
describe google_cloudfunctions_cloud_functions(project: 'chef-gcp-inspec', location: 'europe-west1') do
its('descriptions') { should include 'A description of the function' }
its('entry_points') { should include 'hello' }
end
Properties
Properties that can be accessed from the google_cloudfunctions_cloud_functions
resource:
See googlecloudfunctionscloud_function.md for more detailed information
* names
: an array of google_cloudfunctions_cloud_function
name
* descriptions
: an array of google_cloudfunctions_cloud_function
description
* statuses
: an array of google_cloudfunctions_cloud_function
status
* entry_points
: an array of google_cloudfunctions_cloud_function
entrypoint
* runtimes
: an array of `googlecloudfunctionscloudfunctionruntime
*
timeouts: an array of
googlecloudfunctionscloudfunctiontimeout
*
availablememorymbs: an array of
googlecloudfunctionscloudfunctionavailable_memory_mb
*
serviceaccountemails: an array of
googlecloudfunctionscloudfunction` serviceaccountemail
* `updatetimes: an array of
googlecloudfunctionscloudfunction` updatetime
* version_ids
: an array of google_cloudfunctions_cloud_function
versionid
* labels
: an array of `googlecloudfunctionscloudfunctionlabels
*
environmentvariables: an array of
googlecloudfunctionscloudfunctionenvironment_variables
*
sourcearchiveurls: an array of
googlecloudfunctionscloudfunction` sourcearchiveurl
* `sourceuploadurls: an array of
googlecloudfunctionscloudfunctionsource_upload_url
*
sourcerepositories: an array of
googlecloudfunctionscloudfunctionsource_repository
*
httpstriggers: an array of
googlecloudfunctionscloudfunctionhttps_trigger
*
eventtriggers: an array of
googlecloudfunctionscloudfunctionevent_trigger
*
locations: an array of
googlecloudfunctionscloud_function` location
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 Cloud Functions API is enabled for the current project.