Class: Google::Apis::DatastreamV1::SpannerSchema

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 schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#schemaString

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

Returns:

  • (String)


4397
4398
4399
# File 'lib/google/apis/datastream_v1/classes.rb', line 4397

def schema
  @schema
end

#tablesArray<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