Class: Google::Apis::BigqueryV2::TableConstraints::ForeignKey::ColumnReference

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

The pair of the foreign key column and primary key column.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ColumnReference

Returns a new instance of ColumnReference.



9674
9675
9676
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9674

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

Instance Attribute Details

#referenced_columnString

Required. The column in the primary key that are referenced by the referencing_column. Corresponds to the JSON property referencedColumn

Returns:

  • (String)


9667
9668
9669
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9667

def referenced_column
  @referenced_column
end

#referencing_columnString

Required. The column that composes the foreign key. Corresponds to the JSON property referencingColumn

Returns:

  • (String)


9672
9673
9674
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9672

def referencing_column
  @referencing_column
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9679
9680
9681
9682
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9679

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