Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SpannerTableSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datacatalog_v1/classes.rb,
lib/google/apis/datacatalog_v1/representations.rb,
lib/google/apis/datacatalog_v1/representations.rb

Overview

Specification of a Spanner table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1SpannerTableSpec

Returns a new instance of GoogleCloudDatacatalogV1SpannerTableSpec.



3065
3066
3067
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 3065

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

Instance Attribute Details

#foreign_keysArray<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SpannerTableSpecSpannerForeignKey>

Output only. The foreign keys of the table. Corresponds to the JSON property foreignKeys



3058
3059
3060
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 3058

def foreign_keys
  @foreign_keys
end

#primary_keyGoogle::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey

Specification of a Spanner primary key. Corresponds to the JSON property primaryKey



3063
3064
3065
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 3063

def primary_key
  @primary_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3070
3071
3072
3073
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 3070

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