google_run_jobs resource
Use the google_run_jobs InSpec audit resource to test the properties of a Google Cloud Job resource.
Examples
describe google_run_jobs(parent: 'projects/{project}/locations/{location}') do
it { should exist }
its('names') { should include 'value_name' }
its('creators') { should include 'value_creator' }
end
Parameters
Parameters that can be accessed from the google_run_jobs resource:
See google_run_job for more detailed information.
names: an array ofgoogle_run_jobnameuids: an array ofgoogle_run_jobuidgenerations: an array ofgoogle_run_jobgenerationlabels: an array ofgoogle_run_joblabelsannotations: an array ofgoogle_run_jobannotationscreate_times: an array ofgoogle_run_jobcreate_timeupdate_times: an array ofgoogle_run_jobupdate_timedelete_times: an array ofgoogle_run_jobdelete_timeexpire_times: an array ofgoogle_run_jobexpire_timecreators: an array ofgoogle_run_jobcreatorlast_modifiers: an array ofgoogle_run_joblast_modifierclients: an array ofgoogle_run_jobclientclient_versions: an array ofgoogle_run_jobclient_versionlaunch_stages: an array ofgoogle_run_joblaunch_stagebinary_authorizations: an array ofgoogle_run_jobbinary_authorizationtemplates: an array ofgoogle_run_jobtemplateobserved_generations: an array ofgoogle_run_jobobserved_generationterminal_conditions: an array ofgoogle_run_jobterminal_conditionconditions: an array ofgoogle_run_jobconditionsexecution_counts: an array ofgoogle_run_jobexecution_countlatest_created_executions: an array ofgoogle_run_joblatest_created_executionreconcilings: an array ofgoogle_run_jobreconcilingsatisfies_pzs: an array ofgoogle_run_jobsatisfies_pzsstart_execution_tokens: an array ofgoogle_run_jobstart_execution_tokenrun_execution_tokens: an array ofgoogle_run_jobrun_execution_tokenetags: an array ofgoogle_run_jobetag
Properties
Properties that can be accessed from the google_run_jobs resource:
See google_run_job for more detailed information.
names: an array ofgoogle_run_jobnameuids: an array ofgoogle_run_jobuidgenerations: an array ofgoogle_run_jobgenerationlabels: an array ofgoogle_run_joblabelsannotations: an array ofgoogle_run_jobannotationscreate_times: an array ofgoogle_run_jobcreate_timeupdate_times: an array ofgoogle_run_jobupdate_timedelete_times: an array ofgoogle_run_jobdelete_timeexpire_times: an array ofgoogle_run_jobexpire_timecreators: an array ofgoogle_run_jobcreatorlast_modifiers: an array ofgoogle_run_joblast_modifierclients: an array ofgoogle_run_jobclientclient_versions: an array ofgoogle_run_jobclient_versionlaunch_stages: an array ofgoogle_run_joblaunch_stagebinary_authorizations: an array ofgoogle_run_jobbinary_authorizationtemplates: an array ofgoogle_run_jobtemplateobserved_generations: an array ofgoogle_run_jobobserved_generationterminal_conditions: an array ofgoogle_run_jobterminal_conditionconditions: an array ofgoogle_run_jobconditionsexecution_counts: an array ofgoogle_run_jobexecution_countlatest_created_executions: an array ofgoogle_run_joblatest_created_executionreconcilings: an array ofgoogle_run_jobreconcilingsatisfies_pzs: an array ofgoogle_run_jobsatisfies_pzsstart_execution_tokens: an array ofgoogle_run_jobstart_execution_tokenrun_execution_tokens: an array ofgoogle_run_jobrun_execution_tokenetags: an array ofgoogle_run_jobetag
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 https://run.googleapis.com/ is enabled for the current project.