# Dataform V1beta1 API - Class Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::DataPreparationAction (v0.15.0)

0.15.0 (latest) 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Dataform V1beta1 API class Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::DataPreparationAction.

Represents a workflow action that will run a Data Preparation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #contents_sql

    def contents_sql() -> ::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-WorkflowInvocationAction-DataPreparationAction-ActionSqlDefinition)) --- SQL definition for a Data Preparation. Contains a SQL query and additional context information.


  Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #contents_sql=

    def contents_sql=(value) -> ::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-WorkflowInvocationAction-DataPreparationAction-ActionSqlDefinition)) --- SQL definition for a Data Preparation. Contains a SQL query and additional context information.


  Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::DataPreparationAction::ActionSqlDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-WorkflowInvocationAction-DataPreparationAction-ActionSqlDefinition)) --- SQL definition for a Data Preparation. Contains a SQL query and additional context information.


  Note: The following fields are mutually exclusive: `contents_sql`, `contents_yaml`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #contents_yaml

    def contents_yaml() -> ::String

**Returns**

- (::String) --- Output only. YAML representing the contents of the data preparation. Can be used to show the customer what the input was to their workflow.

  Note: The following fields are mutually exclusive: `contents_yaml`, `contents_sql`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #generated_sql

    def generated_sql() -> ::String

**Returns**

- (::String) --- Output only. The generated BigQuery SQL script that will be executed. For reference only.

### #job_id

    def job_id() -> ::String

**Returns**

- (::String) --- Output only. The ID of the BigQuery job that executed the SQL in sql_script. Only set once the job has started to run.