Class: Google::Apis::BigqueryV2::TableConstraints
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TableConstraints
- 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: ForeignKey, PrimaryKey
Instance Attribute Summary collapse
-
#foreign_keys ⇒ Array<Google::Apis::BigqueryV2::TableConstraints::ForeignKey>
[Optional] The foreign keys of the tables.
-
#primary_key ⇒ Google::Apis::BigqueryV2::TableConstraints::PrimaryKey
[Optional] The primary key of the table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TableConstraints
constructor
A new instance of TableConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TableConstraints
Returns a new instance of TableConstraints.
7880 7881 7882 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7880 def initialize(**args) update!(**args) end |
Instance Attribute Details
#foreign_keys ⇒ Array<Google::Apis::BigqueryV2::TableConstraints::ForeignKey>
[Optional] The foreign keys of the tables.
Corresponds to the JSON property foreignKeys
7873 7874 7875 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7873 def foreign_keys @foreign_keys end |
#primary_key ⇒ Google::Apis::BigqueryV2::TableConstraints::PrimaryKey
[Optional] The primary key of the table.
Corresponds to the JSON property primaryKey
7878 7879 7880 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7878 def primary_key @primary_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7885 7886 7887 7888 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7885 def update!(**args) @foreign_keys = args[:foreign_keys] if args.key?(:foreign_keys) @primary_key = args[:primary_key] if args.key?(:primary_key) end |