# Dataform V1beta1 API - Class Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation (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::CompilationResultAction::DataPreparation.

Defines a compiled Data Preparation entity

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #contents_sql

    def contents_sql() -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation::SqlDefinition

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation::SqlDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation-SqlDefinition)) --- 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::CompilationResultAction::DataPreparation::SqlDefinition

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation::SqlDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation-SqlDefinition)) --- 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::CompilationResultAction::DataPreparation::SqlDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation-SqlDefinition)) --- 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) --- The data preparation definition, stored as a YAML string.

  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.

### #contents_yaml=

    def contents_yaml=(value) -> ::String

**Parameter**

- **value** (::String) --- The data preparation definition, stored as a YAML string.


  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.
**Returns**

- (::String) --- The data preparation definition, stored as a YAML string.

  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.

### #dependency_targets

    def dependency_targets() -> ::Array<::Google::Cloud::Dataform::V1beta1::Target>

**Returns**

- (::Array\<[::Google::Cloud::Dataform::V1beta1::Target](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-Target)\>) --- A list of actions that this action depends on.

### #dependency_targets=

    def dependency_targets=(value) -> ::Array<::Google::Cloud::Dataform::V1beta1::Target>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dataform::V1beta1::Target](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-Target)\>) --- A list of actions that this action depends on.
**Returns**

- (::Array\<[::Google::Cloud::Dataform::V1beta1::Target](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-Target)\>) --- A list of actions that this action depends on.

### #disabled

    def disabled() -> ::Boolean

**Returns**

- (::Boolean) --- Whether this action is disabled (i.e. should not be run).

### #disabled=

    def disabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether this action is disabled (i.e. should not be run).
**Returns**

- (::Boolean) --- Whether this action is disabled (i.e. should not be run).

### #tags

    def tags() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Arbitrary, user-defined tags on this action.

### #tags=

    def tags=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Arbitrary, user-defined tags on this action.
**Returns**

- (::Array\<::String\>) --- Arbitrary, user-defined tags on this action.