Class: Google::Apis::DatastreamV1::SpannerTable
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::SpannerTable
- 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
-
#columns ⇒ Array<Google::Apis::DatastreamV1::SpannerColumn>
Optional.
-
#table ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpannerTable
constructor
A new instance of SpannerTable.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#columns ⇒ Array<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 |
#table ⇒ String
Required. The table name.
Corresponds to the JSON property table
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 |