Class: Google::Apis::BigqueryV2::TableSchema

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

Schema of a table

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableSchema

Returns a new instance of TableSchema.



10441
10442
10443
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10441

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

Instance Attribute Details

#fieldsArray<Google::Apis::BigqueryV2::TableFieldSchema>

Describes the fields in a table. Corresponds to the JSON property fields



10433
10434
10435
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10433

def fields
  @fields
end

#foreign_type_infoGoogle::Apis::BigqueryV2::ForeignTypeInfo

Metadata about the foreign data type definition such as the system in which the type is defined. Corresponds to the JSON property foreignTypeInfo



10439
10440
10441
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10439

def foreign_type_info
  @foreign_type_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10446
10447
10448
10449
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10446

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
  @foreign_type_info = args[:foreign_type_info] if args.key?(:foreign_type_info)
end