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.



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

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



4485
4486
4487
# File 'lib/google/apis/datastream_v1/classes.rb', line 4485

def columns
  @columns
end

#tableString

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

Returns:

  • (String)


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

def table
  @table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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