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_job
nameuids
: an array ofgoogle_run_job
uidgenerations
: an array ofgoogle_run_job
generationlabels
: an array ofgoogle_run_job
labelsannotations
: an array ofgoogle_run_job
annotationscreate_times
: an array ofgoogle_run_job
create_timeupdate_times
: an array ofgoogle_run_job
update_timedelete_times
: an array ofgoogle_run_job
delete_timeexpire_times
: an array ofgoogle_run_job
expire_timecreators
: an array ofgoogle_run_job
creatorlast_modifiers
: an array ofgoogle_run_job
last_modifierclients
: an array ofgoogle_run_job
clientclient_versions
: an array ofgoogle_run_job
client_versionlaunch_stages
: an array ofgoogle_run_job
launch_stagebinary_authorizations
: an array ofgoogle_run_job
binary_authorizationtemplates
: an array ofgoogle_run_job
templateobserved_generations
: an array ofgoogle_run_job
observed_generationterminal_conditions
: an array ofgoogle_run_job
terminal_conditionconditions
: an array ofgoogle_run_job
conditionsexecution_counts
: an array ofgoogle_run_job
execution_countlatest_created_executions
: an array ofgoogle_run_job
latest_created_executionreconcilings
: an array ofgoogle_run_job
reconcilingsatisfies_pzs
: an array ofgoogle_run_job
satisfies_pzsstart_execution_tokens
: an array ofgoogle_run_job
start_execution_tokenrun_execution_tokens
: an array ofgoogle_run_job
run_execution_tokenetags
: an array ofgoogle_run_job
etag
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_job
nameuids
: an array ofgoogle_run_job
uidgenerations
: an array ofgoogle_run_job
generationlabels
: an array ofgoogle_run_job
labelsannotations
: an array ofgoogle_run_job
annotationscreate_times
: an array ofgoogle_run_job
create_timeupdate_times
: an array ofgoogle_run_job
update_timedelete_times
: an array ofgoogle_run_job
delete_timeexpire_times
: an array ofgoogle_run_job
expire_timecreators
: an array ofgoogle_run_job
creatorlast_modifiers
: an array ofgoogle_run_job
last_modifierclients
: an array ofgoogle_run_job
clientclient_versions
: an array ofgoogle_run_job
client_versionlaunch_stages
: an array ofgoogle_run_job
launch_stagebinary_authorizations
: an array ofgoogle_run_job
binary_authorizationtemplates
: an array ofgoogle_run_job
templateobserved_generations
: an array ofgoogle_run_job
observed_generationterminal_conditions
: an array ofgoogle_run_job
terminal_conditionconditions
: an array ofgoogle_run_job
conditionsexecution_counts
: an array ofgoogle_run_job
execution_countlatest_created_executions
: an array ofgoogle_run_job
latest_created_executionreconcilings
: an array ofgoogle_run_job
reconcilingsatisfies_pzs
: an array ofgoogle_run_job
satisfies_pzsstart_execution_tokens
: an array ofgoogle_run_job
start_execution_tokenrun_execution_tokens
: an array ofgoogle_run_job
run_execution_tokenetags
: an array ofgoogle_run_job
etag
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.