Class: Google::Apis::BigqueryV2::TransformColumn
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TransformColumn
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
Information about a single transform column.
Instance Attribute Summary collapse
-
#name ⇒ String
Output only.
-
#transform_sql ⇒ String
Output only.
-
#type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as a function argument.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransformColumn
constructor
A new instance of TransformColumn.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransformColumn
Returns a new instance of TransformColumn.
11349 11350 11351 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11349 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. Name of the column.
Corresponds to the JSON property name
11331 11332 11333 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11331 def name @name end |
#transform_sql ⇒ String
Output only. The SQL expression used in the column transform.
Corresponds to the JSON property transformSql
11336 11337 11338 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11336 def transform_sql @transform_sql end |
#type ⇒ Google::Apis::BigqueryV2::StandardSqlDataType
The data type of a variable such as a function argument. Examples include: *
INT64: "typeKind": "INT64" * ARRAY: "typeKind": "ARRAY", "
arrayElementType":"typeKind": "STRING" * STRUCT>: "typeKind": "STRUCT",
"structType": "fields": [ "name": "x", "type":"typeKind": "STRING",
"name": "y", "type": "typeKind": "ARRAY", "arrayElementType": "typeKind": "
DATE" ] * RANGE: "typeKind": "RANGE", "rangeElementType":"
typeKind": "DATE"
Corresponds to the JSON property type
11347 11348 11349 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11347 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11354 11355 11356 11357 11358 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11354 def update!(**args) @name = args[:name] if args.key?(:name) @transform_sql = args[:transform_sql] if args.key?(:transform_sql) @type = args[:type] if args.key?(:type) end |