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

Represents a database relation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #additional_options

    def additional_options() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.

### #additional_options=

    def additional_options=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Additional options that will be provided as key/value pairs into the options clause of a create table/view statement. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language for more information on which options are supported.

### #cluster_expressions

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

**Returns**

- (::Array\<::String\>) --- A list of columns or SQL expressions used to cluster the table.

### #cluster_expressions=

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

**Parameter**

- **value** (::Array\<::String\>) --- A list of columns or SQL expressions used to cluster the table.
**Returns**

- (::Array\<::String\>) --- A list of columns or SQL expressions used to cluster the table.

### #connection

    def connection() -> ::String

**Returns**

- (::String) --- Optional. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection can have the form `{project}.{location}.{connection_id}` or `projects/{project}/locations/{location}/connections/{connection_id}`, or be set to DEFAULT.

### #connection=

    def connection=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection can have the form `{project}.{location}.{connection_id}` or `projects/{project}/locations/{location}/connections/{connection_id}`, or be set to DEFAULT.
**Returns**

- (::String) --- Optional. The connection specifying the credentials to be used to read and write to external storage, such as Cloud Storage. The connection can have the form `{project}.{location}.{connection_id}` or `projects/{project}/locations/{location}/connections/{connection_id}`, or be set to DEFAULT.

### #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).

### #file_format

    def file_format() -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::FileFormat

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::FileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-FileFormat)) --- Optional. The file format for the BigQuery table.

### #file_format=

    def file_format=(value) -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::FileFormat

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::FileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-FileFormat)) --- Optional. The file format for the BigQuery table.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::FileFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-FileFormat)) --- Optional. The file format for the BigQuery table.

### #incremental_table_config

    def incremental_table_config() -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::IncrementalTableConfig

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::IncrementalTableConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-IncrementalTableConfig)) --- Configures `INCREMENTAL_TABLE` settings for this relation. Only set if `relation_type` is `INCREMENTAL_TABLE`.

### #incremental_table_config=

    def incremental_table_config=(value) -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::IncrementalTableConfig

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::IncrementalTableConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-IncrementalTableConfig)) --- Configures `INCREMENTAL_TABLE` settings for this relation. Only set if `relation_type` is `INCREMENTAL_TABLE`.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::IncrementalTableConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-IncrementalTableConfig)) --- Configures `INCREMENTAL_TABLE` settings for this relation. Only set if `relation_type` is `INCREMENTAL_TABLE`.

### #partition_expiration_days

    def partition_expiration_days() -> ::Integer

**Returns**

- (::Integer) --- Sets the partition expiration in days.

### #partition_expiration_days=

    def partition_expiration_days=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Sets the partition expiration in days.
**Returns**

- (::Integer) --- Sets the partition expiration in days.

### #partition_expression

    def partition_expression() -> ::String

**Returns**

- (::String) --- The SQL expression used to partition the relation.

### #partition_expression=

    def partition_expression=(value) -> ::String

**Parameter**

- **value** (::String) --- The SQL expression used to partition the relation.
**Returns**

- (::String) --- The SQL expression used to partition the relation.

### #post_operations

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

**Returns**

- (::Array\<::String\>) --- SQL statements to be executed after creating the relation.

### #post_operations=

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

**Parameter**

- **value** (::Array\<::String\>) --- SQL statements to be executed after creating the relation.
**Returns**

- (::Array\<::String\>) --- SQL statements to be executed after creating the relation.

### #pre_operations

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

**Returns**

- (::Array\<::String\>) --- SQL statements to be executed before creating the relation.

### #pre_operations=

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

**Parameter**

- **value** (::Array\<::String\>) --- SQL statements to be executed before creating the relation.
**Returns**

- (::Array\<::String\>) --- SQL statements to be executed before creating the relation.

### #relation_descriptor

    def relation_descriptor() -> ::Google::Cloud::Dataform::V1beta1::RelationDescriptor

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::RelationDescriptor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-RelationDescriptor)) --- Descriptor for the relation and its columns.

### #relation_descriptor=

    def relation_descriptor=(value) -> ::Google::Cloud::Dataform::V1beta1::RelationDescriptor

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::RelationDescriptor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-RelationDescriptor)) --- Descriptor for the relation and its columns.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::RelationDescriptor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-RelationDescriptor)) --- Descriptor for the relation and its columns.

### #relation_type

    def relation_type() -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::RelationType

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::RelationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-RelationType)) --- The type of this relation.

### #relation_type=

    def relation_type=(value) -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::RelationType

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::RelationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-RelationType)) --- The type of this relation.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::RelationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-RelationType)) --- The type of this relation.

### #require_partition_filter

    def require_partition_filter() -> ::Boolean

**Returns**

- (::Boolean) --- Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.

### #require_partition_filter=

    def require_partition_filter=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.
**Returns**

- (::Boolean) --- Specifies whether queries on this table must include a predicate filter that filters on the partitioning column.

### #select_query

    def select_query() -> ::String

**Returns**

- (::String) --- The SELECT query which returns rows which this relation should contain.

### #select_query=

    def select_query=(value) -> ::String

**Parameter**

- **value** (::String) --- The SELECT query which returns rows which this relation should contain.
**Returns**

- (::String) --- The SELECT query which returns rows which this relation should contain.

### #storage_uri

    def storage_uri() -> ::String

**Returns**

- (::String) --- Optional. The fully qualified location prefix of the external folder where table data is stored. The URI should be in the format `gs://bucket/path_to_table/`.

### #storage_uri=

    def storage_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The fully qualified location prefix of the external folder where table data is stored. The URI should be in the format `gs://bucket/path_to_table/`.
**Returns**

- (::String) --- Optional. The fully qualified location prefix of the external folder where table data is stored. The URI should be in the format `gs://bucket/path_to_table/`.

### #table_format

    def table_format() -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::TableFormat

**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::TableFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-TableFormat)) --- Optional. The table format for the BigQuery table.

### #table_format=

    def table_format=(value) -> ::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::TableFormat

**Parameter**

- **value** ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::TableFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-TableFormat)) --- Optional. The table format for the BigQuery table.
**Returns**

- ([::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation::TableFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest/Google-Cloud-Dataform-V1beta1-CompilationResultAction-Relation-TableFormat)) --- Optional. The table format for the BigQuery table.

### #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.