+++
title = "google_dataproc_batches Resource" platform = "gcp" draft = false gh_repo = "inspec-gcp"
[menu.inspec]
title = "google_dataproc_batches" identifier = "inspec/resources/gcp/google_dataproc_batches Resource" parent = "inspec/resources/gcp" +++
Use the google_dataproc_batches
InSpec audit resource to test the properties of a test a Google Batch.
{{% inspec_gcp_install %}}
A google_dataproc_batches
is used to test a Google Batch resource
describe google_dataproc_batches(parent: 'projects/*/locations/*') do
it { should exist }
its('names') { should include 'value_name' }
its('uuids') { should include 'value_uuid' }
its('create_times') { should include 'value_createtime' }
its('states') { should include 'value_state' }
its('state_messages') { should include 'value_statemessage' }
its('state_times') { should include 'value_statetime' }
its('creators') { should include 'value_creator' }
its('operations') { should include 'value_operation' }
end
Properties that can be accessed from the google_dataproc_batches
resource:
See google_dataproc_batch.md for more detailed information
names
: an array ofgoogle_dataproc_batch
nameuuids
: an array ofgoogle_dataproc_batch
uuidcreate_times
: an array ofgoogle_dataproc_batch
create_timepyspark_batches
: an array ofgoogle_dataproc_batch
pyspark_batchspark_batches
: an array ofgoogle_dataproc_batch
spark_batchspark_r_batches
: an array ofgoogle_dataproc_batch
spark_r_batchspark_sql_batches
: an array ofgoogle_dataproc_batch
spark_sql_batchruntime_infos
: an array ofgoogle_dataproc_batch
runtime_infostates
: an array ofgoogle_dataproc_batch
statestate_messages
: an array ofgoogle_dataproc_batch
state_messagestate_times
: an array ofgoogle_dataproc_batch
state_timecreators
: an array ofgoogle_dataproc_batch
creatorlabels
: an array ofgoogle_dataproc_batch
labelsruntime_configs
: an array ofgoogle_dataproc_batch
runtime_configenvironment_configs
: an array ofgoogle_dataproc_batch
environment_configoperations
: an array ofgoogle_dataproc_batch
operationstate_histories
: an array ofgoogle_dataproc_batch
state_history
Properties that can be accessed from the google_dataproc_batches
resource:
See google_dataproc_batch.md for more detailed information
names
: an array ofgoogle_dataproc_batch
nameuuids
: an array ofgoogle_dataproc_batch
uuidcreate_times
: an array ofgoogle_dataproc_batch
create_timepyspark_batches
: an array ofgoogle_dataproc_batch
pyspark_batchspark_batches
: an array ofgoogle_dataproc_batch
spark_batchspark_r_batches
: an array ofgoogle_dataproc_batch
spark_r_batchspark_sql_batches
: an array ofgoogle_dataproc_batch
spark_sql_batchruntime_infos
: an array ofgoogle_dataproc_batch
runtime_infostates
: an array ofgoogle_dataproc_batch
statestate_messages
: an array ofgoogle_dataproc_batch
state_messagestate_times
: an array ofgoogle_dataproc_batch
state_timecreators
: an array ofgoogle_dataproc_batch
creatorlabels
: an array ofgoogle_dataproc_batch
labelsruntime_configs
: an array ofgoogle_dataproc_batch
runtime_configenvironment_configs
: an array ofgoogle_dataproc_batch
environment_configoperations
: an array ofgoogle_dataproc_batch
operationstate_histories
: an array ofgoogle_dataproc_batch
state_history
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
Ensure the Cloud Dataproc API is enabled for the current project.