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.
4948 4949 4950 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4948 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
4941 4942 4943 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4941 def columns @columns end |
#table ⇒ String
Required. The table name.
Corresponds to the JSON property table
4946 4947 4948 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4946 def table @table end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4953 4954 4955 4956 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4953 def update!(**args) @columns = args[:columns] if args.key?(:columns) @table = args[:table] if args.key?(:table) end |