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.



10508
10509
10510
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10508

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



10500
10501
10502
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10500

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



10506
10507
10508
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10506

def foreign_type_info
  @foreign_type_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10513
10514
10515
10516
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10513

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