Class: Google::Apis::BigqueryV2::TableConstraints::PrimaryKey
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TableConstraints::PrimaryKey
- 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
-
#columns ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrimaryKey
constructor
A new instance of PrimaryKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrimaryKey
Returns a new instance of PrimaryKey.
9726 9727 9728 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9726 def initialize(**args) update!(**args) end |
Instance Attribute Details
#columns ⇒ Array<String>
Required. The columns that are composed of the primary key constraint.
Corresponds to the JSON property columns
9724 9725 9726 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9724 def columns @columns end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9731 9732 9733 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9731 def update!(**args) @columns = args[:columns] if args.key?(:columns) end |