Skip to content

Latest commit

 

History

History
88 lines (74 loc) · 3.85 KB

google_dataproc_batches.md

File metadata and controls

88 lines (74 loc) · 3.85 KB

+++

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.

Installation

{{% inspec_gcp_install %}}

Syntax

A google_dataproc_batches is used to test a Google 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

Properties that can be accessed from the google_dataproc_batches resource:

See google_dataproc_batch.md for more detailed information

  • names: an array of google_dataproc_batch name
  • uuids: an array of google_dataproc_batch uuid
  • create_times: an array of google_dataproc_batch create_time
  • pyspark_batches: an array of google_dataproc_batch pyspark_batch
  • spark_batches: an array of google_dataproc_batch spark_batch
  • spark_r_batches: an array of google_dataproc_batch spark_r_batch
  • spark_sql_batches: an array of google_dataproc_batch spark_sql_batch
  • runtime_infos: an array of google_dataproc_batch runtime_info
  • states: an array of google_dataproc_batch state
  • state_messages: an array of google_dataproc_batch state_message
  • state_times: an array of google_dataproc_batch state_time
  • creators: an array of google_dataproc_batch creator
  • labels: an array of google_dataproc_batch labels
  • runtime_configs: an array of google_dataproc_batch runtime_config
  • environment_configs: an array of google_dataproc_batch environment_config
  • operations: an array of google_dataproc_batch operation
  • state_histories: an array of google_dataproc_batch state_history

Properties

Properties that can be accessed from the google_dataproc_batches resource:

See google_dataproc_batch.md for more detailed information

  • names: an array of google_dataproc_batch name
  • uuids: an array of google_dataproc_batch uuid
  • create_times: an array of google_dataproc_batch create_time
  • pyspark_batches: an array of google_dataproc_batch pyspark_batch
  • spark_batches: an array of google_dataproc_batch spark_batch
  • spark_r_batches: an array of google_dataproc_batch spark_r_batch
  • spark_sql_batches: an array of google_dataproc_batch spark_sql_batch
  • runtime_infos: an array of google_dataproc_batch runtime_info
  • states: an array of google_dataproc_batch state
  • state_messages: an array of google_dataproc_batch state_message
  • state_times: an array of google_dataproc_batch state_time
  • creators: an array of google_dataproc_batch creator
  • labels: an array of google_dataproc_batch labels
  • runtime_configs: an array of google_dataproc_batch runtime_config
  • environment_configs: an array of google_dataproc_batch environment_config
  • operations: an array of google_dataproc_batch operation
  • state_histories: an array of google_dataproc_batch state_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.