Class: Google::Apis::SpannerV1::UpdateDatabaseDdlMetadata

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

Overview

Metadata type for the operation returned by UpdateDatabaseDdl.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UpdateDatabaseDdlMetadata

Returns a new instance of UpdateDatabaseDdlMetadata.



3779
3780
3781
# File 'generated/google/apis/spanner_v1/classes.rb', line 3779

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

Instance Attribute Details

#commit_timestampsArray<String>

Reports the commit timestamps of all statements that have succeeded so far, where commit_timestamps[i] is the commit timestamp for the statement statements[i]. Corresponds to the JSON property commitTimestamps

Returns:

  • (Array<String>)


3766
3767
3768
# File 'generated/google/apis/spanner_v1/classes.rb', line 3766

def commit_timestamps
  @commit_timestamps
end

#databaseString

The database being modified. Corresponds to the JSON property database

Returns:

  • (String)


3771
3772
3773
# File 'generated/google/apis/spanner_v1/classes.rb', line 3771

def database
  @database
end

#statementsArray<String>

For an update this list contains all the statements. For an individual statement, this list contains only that statement. Corresponds to the JSON property statements

Returns:

  • (Array<String>)


3777
3778
3779
# File 'generated/google/apis/spanner_v1/classes.rb', line 3777

def statements
  @statements
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3784
3785
3786
3787
3788
# File 'generated/google/apis/spanner_v1/classes.rb', line 3784

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