Class: Google::Apis::BigqueryV2::TableConstraints::ForeignKey
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TableConstraints::ForeignKey
- 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
Defined Under Namespace
Classes: ColumnReference, ReferencedTable
Instance Attribute Summary collapse
-
#column_references ⇒ Array<Google::Apis::BigqueryV2::TableConstraints::ForeignKey::ColumnReference>
Corresponds to the JSON property
columnReferences. -
#name ⇒ String
Corresponds to the JSON property
name. -
#referenced_table ⇒ Google::Apis::BigqueryV2::TableConstraints::ForeignKey::ReferencedTable
Corresponds to the JSON property
referencedTable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ForeignKey
constructor
A new instance of ForeignKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ForeignKey
Returns a new instance of ForeignKey.
7909 7910 7911 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7909 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column_references ⇒ Array<Google::Apis::BigqueryV2::TableConstraints::ForeignKey::ColumnReference>
Corresponds to the JSON property columnReferences
7897 7898 7899 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7897 def column_references @column_references end |
#name ⇒ String
Corresponds to the JSON property name
7902 7903 7904 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7902 def name @name end |
#referenced_table ⇒ Google::Apis::BigqueryV2::TableConstraints::ForeignKey::ReferencedTable
Corresponds to the JSON property referencedTable
7907 7908 7909 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7907 def referenced_table @referenced_table end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7914 7915 7916 7917 7918 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7914 def update!(**args) @column_references = args[:column_references] if args.key?(:column_references) @name = args[:name] if args.key?(:name) @referenced_table = args[:referenced_table] if args.key?(:referenced_table) end |