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

[Optional] The primary key of the table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrimaryKey

Returns a new instance of PrimaryKey.



7986
7987
7988
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7986

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

Instance Attribute Details

#columnsArray<String>

Corresponds to the JSON property columns

Returns:

  • (Array<String>)


7984
7985
7986
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7984

def columns
  @columns
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7991
7992
7993
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7991

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