Class: Google::Apis::BigqueryV2::TransformColumn

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransformColumn

Returns a new instance of TransformColumn.



11252
11253
11254
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11252

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Output only. Name of the column. Corresponds to the JSON property name

Returns:

  • (String)


11235
11236
11237
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11235

def name
  @name
end

#transform_sqlString

Output only. The SQL expression used in the column transform. Corresponds to the JSON property transformSql

Returns:

  • (String)


11240
11241
11242
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11240

def transform_sql
  @transform_sql
end

#typeGoogle::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" ] Corresponds to the JSON property type



11250
11251
11252
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11250

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11257
11258
11259
11260
11261
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11257

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