Reference documentation and code samples for the Dataform V1beta1 API class Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation.
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.
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.
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
defcontents_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=
defcontents_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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Dataform V1beta1 API - Class Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation (v0.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.13.0 (latest)](/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.12.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.12.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.11.1](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.11.1/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.10.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.10.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.9.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.9.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.8.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.8.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.7.1](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.7.1/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.6.2](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.6.2/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.5.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.5.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.4.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.4.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.3.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.3.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.2.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.2.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation)\n- [0.1.0](/ruby/docs/reference/google-cloud-dataform-v1beta1/0.1.0/Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation) \nReference documentation and code samples for the Dataform V1beta1 API class Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation.\n\nDefines a compiled Data Preparation entity \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #contents_sql\n\n def contents_sql() -\u003e ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation::SqlDefinition\n\n**Returns**\n\n- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation::SqlDefinition](./Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation-SqlDefinition)) --- SQL definition for a Data Preparation. Contains a SQL query and additional context information.\n\n\n 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.\n\n### #contents_sql=\n\n def contents_sql=(value) -\u003e ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation::SqlDefinition\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation::SqlDefinition](./Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation-SqlDefinition)) --- SQL definition for a Data Preparation. Contains a SQL query and additional context information.\n\n\nNote: 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. \n**Returns**\n\n- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation::SqlDefinition](./Google-Cloud-Dataform-V1beta1-CompilationResultAction-DataPreparation-SqlDefinition)) --- SQL definition for a Data Preparation. Contains a SQL query and additional context information.\n\n\n 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.\n\n### #contents_yaml\n\n def contents_yaml() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The data preparation definition, stored as a YAML string.\n\n 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.\n\n### #contents_yaml=\n\n def contents_yaml=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The data preparation definition, stored as a YAML string.\n\n\nNote: 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. \n**Returns**\n\n- (::String) --- The data preparation definition, stored as a YAML string.\n\n 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.\n\n### #dependency_targets\n\n def dependency_targets() -\u003e ::Array\u003c::Google::Cloud::Dataform::V1beta1::Target\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Dataform::V1beta1::Target](./Google-Cloud-Dataform-V1beta1-Target)\\\u003e) --- A list of actions that this action depends on.\n\n### #dependency_targets=\n\n def dependency_targets=(value) -\u003e ::Array\u003c::Google::Cloud::Dataform::V1beta1::Target\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Dataform::V1beta1::Target](./Google-Cloud-Dataform-V1beta1-Target)\\\u003e) --- A list of actions that this action depends on. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Dataform::V1beta1::Target](./Google-Cloud-Dataform-V1beta1-Target)\\\u003e) --- A list of actions that this action depends on.\n\n### #disabled\n\n def disabled() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Whether this action is disabled (i.e. should not be run).\n\n### #disabled=\n\n def disabled=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Whether this action is disabled (i.e. should not be run). \n**Returns**\n\n- (::Boolean) --- Whether this action is disabled (i.e. should not be run).\n\n### #tags\n\n def tags() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Arbitrary, user-defined tags on this action.\n\n### #tags=\n\n def tags=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Arbitrary, user-defined tags on this action. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Arbitrary, user-defined tags on this action."]]