google_dataproc_batches resource
Use the google_dataproc_batches InSpec audit resource to test the properties of a Google Cloud Batch resource.
Examples
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
Parameters
Parameters that can be accessed from the google_dataproc_batches resource:
See google_dataproc_batch for more detailed information.
names: an array ofgoogle_dataproc_batchnameuuids: an array ofgoogle_dataproc_batchuuidcreate_times: an array ofgoogle_dataproc_batchcreate_timepyspark_batches: an array ofgoogle_dataproc_batchpyspark_batchspark_batches: an array ofgoogle_dataproc_batchspark_batchspark_r_batches: an array ofgoogle_dataproc_batchspark_r_batchspark_sql_batches: an array ofgoogle_dataproc_batchspark_sql_batchruntime_infos: an array ofgoogle_dataproc_batchruntime_infostates: an array ofgoogle_dataproc_batchstatestate_messages: an array ofgoogle_dataproc_batchstate_messagestate_times: an array ofgoogle_dataproc_batchstate_timecreators: an array ofgoogle_dataproc_batchcreatorlabels: an array ofgoogle_dataproc_batchlabelsruntime_configs: an array ofgoogle_dataproc_batchruntime_configenvironment_configs: an array ofgoogle_dataproc_batchenvironment_configoperations: an array ofgoogle_dataproc_batchoperationstate_histories: an array ofgoogle_dataproc_batchstate_history
Properties
Properties that can be accessed from the google_dataproc_batches resource:
See google_dataproc_batch for more detailed information.
names: an array ofgoogle_dataproc_batchnameuuids: an array ofgoogle_dataproc_batchuuidcreate_times: an array ofgoogle_dataproc_batchcreate_timepyspark_batches: an array ofgoogle_dataproc_batchpyspark_batchspark_batches: an array ofgoogle_dataproc_batchspark_batchspark_r_batches: an array ofgoogle_dataproc_batchspark_r_batchspark_sql_batches: an array ofgoogle_dataproc_batchspark_sql_batchruntime_infos: an array ofgoogle_dataproc_batchruntime_infostates: an array ofgoogle_dataproc_batchstatestate_messages: an array ofgoogle_dataproc_batchstate_messagestate_times: an array ofgoogle_dataproc_batchstate_timecreators: an array ofgoogle_dataproc_batchcreatorlabels: an array ofgoogle_dataproc_batchlabelsruntime_configs: an array ofgoogle_dataproc_batchruntime_configenvironment_configs: an array ofgoogle_dataproc_batchenvironment_configoperations: an array ofgoogle_dataproc_batchoperationstate_histories: an array ofgoogle_dataproc_batchstate_history
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 Dataproc API is enabled for the current project.