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.
4431 4432 4433 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4431 def initialize(**args) update!(**args) end |
Instance Attribute Details
#schema ⇒ String
Required. The schema name.
Corresponds to the JSON property schema
4424 4425 4426 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4424 def schema @schema end |
#tables ⇒ Array<Google::Apis::DatastreamV1::SpannerTable>
Optional. Spanner tables in the schema.
Corresponds to the JSON property tables
4429 4430 4431 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4429 def tables @tables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4436 4437 4438 4439 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 4436 def update!(**args) @schema = args[:schema] if args.key?(:schema) @tables = args[:tables] if args.key?(:tables) end |