Class: Google::Apis::BigqueryV2::TableConstraints::PrimaryKey

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

Represents the primary key constraint on a table's columns.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrimaryKey

Returns a new instance of PrimaryKey.



10537
10538
10539
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10537

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

Instance Attribute Details

#columnsArray<String>

Required. The columns that are composed of the primary key constraint. Corresponds to the JSON property columns

Returns:

  • (Array<String>)


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

def columns
  @columns
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10542
10543
10544
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10542

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