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.



10528
10529
10530
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10528

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



10520
10521
10522
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10520

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



10526
10527
10528
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10526

def foreign_type_info
  @foreign_type_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10533
10534
10535
10536
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10533

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