Class: Google::Apis::SpannerV1::GetDatabaseDdlResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb

Overview

The response for GetDatabaseDdl.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GetDatabaseDdlResponse

Returns a new instance of GetDatabaseDdlResponse.



2898
2899
2900
# File 'lib/google/apis/spanner_v1/classes.rb', line 2898

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

Instance Attribute Details

#proto_descriptorsString

Proto descriptors stored in the database. Contains a protobuf-serialized google.protobuf.FileDescriptorSet. For more details, see protobuffer self description. Corresponds to the JSON property protoDescriptors NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2890
2891
2892
# File 'lib/google/apis/spanner_v1/classes.rb', line 2890

def proto_descriptors
  @proto_descriptors
end

#statementsArray<String>

A list of formatted DDL statements defining the schema of the database specified in the request. Corresponds to the JSON property statements

Returns:

  • (Array<String>)


2896
2897
2898
# File 'lib/google/apis/spanner_v1/classes.rb', line 2896

def statements
  @statements
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2903
2904
2905
2906
# File 'lib/google/apis/spanner_v1/classes.rb', line 2903

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