Class: Google::Apis::DatastreamV1::SpannerTable

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

Overview

Spanner table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpannerTable

Returns a new instance of SpannerTable.



4498
4499
4500
# File 'lib/google/apis/datastream_v1/classes.rb', line 4498

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

Instance Attribute Details

#columnsArray<Google::Apis::DatastreamV1::SpannerColumn>

Optional. Spanner columns in the table. Corresponds to the JSON property columns



4491
4492
4493
# File 'lib/google/apis/datastream_v1/classes.rb', line 4491

def columns
  @columns
end

#tableString

Required. The table name. Corresponds to the JSON property table

Returns:

  • (String)


4496
4497
4498
# File 'lib/google/apis/datastream_v1/classes.rb', line 4496

def table
  @table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4503
4504
4505
4506
# File 'lib/google/apis/datastream_v1/classes.rb', line 4503

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