Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey

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 primary key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey

Returns a new instance of GoogleCloudDatacatalogV1SpannerTableSpecSpannerPrimaryKey.



3145
3146
3147
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 3145

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

Instance Attribute Details

#columnsArray<String>

Output only. Column names of the primary key. Corresponds to the JSON property columns

Returns:

  • (Array<String>)


3143
3144
3145
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 3143

def columns
  @columns
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3150
3151
3152
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 3150

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