Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1SpannerTableSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datacatalog_v1beta1/classes.rb,
lib/google/apis/datacatalog_v1beta1/representations.rb,
lib/google/apis/datacatalog_v1beta1/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.



2067
2068
2069
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2067

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

Instance Attribute Details

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

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



2060
2061
2062
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2060

def foreign_keys
  @foreign_keys
end

#primary_keyGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey

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



2065
2066
2067
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2065

def primary_key
  @primary_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2072
2073
2074
2075
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2072

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