google_dlp_jobs resource
Use the google_dlp_jobs InSpec audit resource to to test a Google Cloud Job resource.
Examples
describe google_dlp_jobs(parent: "projects/#{'chef-gcp-inspec'}/locations/#{'us-east-2'}") do
it { should exist }
its('names') { should include 'i-inspec-gcp-dlp' }
its('types') { should include 'INSPECT_JOB' }
its('states') { should include 'ACTIVE' }
end
Properties
Properties that can be accessed from the google_dlp_jobs resource:
See google_dlp_job for more detailed information.
names: an array ofgoogle_dlp_jobnametypes: an array ofgoogle_dlp_jobtypestates: an array ofgoogle_dlp_jobstatecreate_times: an array ofgoogle_dlp_jobcreate_timestart_times: an array ofgoogle_dlp_jobstart_timeend_times: an array ofgoogle_dlp_jobend_timejob_trigger_names: an array ofgoogle_dlp_jobjob_trigger_nameerrors: an array ofgoogle_dlp_joberrorsact_dets: an array ofgoogle_dlp_jobact_detrisk_details: an array ofgoogle_dlp_jobrisk_detailsinspect_details: an array ofgoogle_dlp_jobinspect_detailsparents: an array ofgoogle_dlp_jobparent
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.