Class: Google::Apis::BigqueryV2::TableConstraints::ForeignKey::ColumnReference
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TableConstraints::ForeignKey::ColumnReference
- 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
The pair of the foreign key column and primary key column.
Instance Attribute Summary collapse
-
#referenced_column ⇒ String
Required.
-
#referencing_column ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ColumnReference
constructor
A new instance of ColumnReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ColumnReference
Returns a new instance of ColumnReference.
9727 9728 9729 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#referenced_column ⇒ String
Required. The column in the primary key that are referenced by the
referencing_column.
Corresponds to the JSON property referencedColumn
9720 9721 9722 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9720 def referenced_column @referenced_column end |
#referencing_column ⇒ String
Required. The column that composes the foreign key.
Corresponds to the JSON property referencingColumn
9725 9726 9727 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9725 def referencing_column @referencing_column end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9732 9733 9734 9735 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9732 def update!(**args) @referenced_column = args[:referenced_column] if args.key?(:referenced_column) @referencing_column = args[:referencing_column] if args.key?(:referencing_column) end |