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.



4821
4822
4823
# File 'lib/google/apis/datastream_v1/classes.rb', line 4821

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#schemaString

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

Returns:

  • (String)


4814
4815
4816
# File 'lib/google/apis/datastream_v1/classes.rb', line 4814

def schema
  @schema
end

#tablesArray<Google::Apis::DatastreamV1::SpannerTable>

Optional. Spanner tables in the schema. Corresponds to the JSON property tables



4819
4820
4821
# File 'lib/google/apis/datastream_v1/classes.rb', line 4819

def tables
  @tables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4826
4827
4828
4829
# File 'lib/google/apis/datastream_v1/classes.rb', line 4826

def update!(**args)
  @schema = args[:schema] if args.key?(:schema)
  @tables = args[:tables] if args.key?(:tables)
end