Class: Google::Apis::DatastreamV1::SpannerSchema
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::SpannerSchema
- 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 schema.
Instance Attribute Summary collapse
-
#schema ⇒ String
Required.
-
#tables ⇒ Array<Google::Apis::DatastreamV1::SpannerTable>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpannerSchema
constructor
A new instance of SpannerSchema.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpannerSchema
Returns a new instance of SpannerSchema.
4404 4405 4406 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4404 def initialize(**args) update!(**args) end |
Instance Attribute Details
#schema ⇒ String
Required. The schema name.
Corresponds to the JSON property schema
4397 4398 4399 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4397 def schema @schema end |
#tables ⇒ Array<Google::Apis::DatastreamV1::SpannerTable>
Optional. Spanner tables in the schema.
Corresponds to the JSON property tables
4402 4403 4404 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4402 def tables @tables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4409 4410 4411 4412 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4409 def update!(**args) @schema = args[:schema] if args.key?(:schema) @tables = args[:tables] if args.key?(:tables) end |