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

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

Metadata type for the operation returned by UpdateDatabaseDdl.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateDatabaseDdlMetadata

Returns a new instance of UpdateDatabaseDdlMetadata.



6984
6985
6986
# File 'lib/google/apis/spanner_v1/classes.rb', line 6984

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

Instance Attribute Details

#actionsArray<Google::Apis::SpannerV1::DdlStatementActionInfo>

The brief action info for the DDL statements. actions[i] is the brief info for statements[i]. Corresponds to the JSON property actions



6947
6948
6949
# File 'lib/google/apis/spanner_v1/classes.rb', line 6947

def actions
  @actions
end

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


6954
6955
6956
# File 'lib/google/apis/spanner_v1/classes.rb', line 6954

def commit_timestamps
  @commit_timestamps
end

#databaseString

The database being modified. Corresponds to the JSON property database

Returns:

  • (String)


6959
6960
6961
# File 'lib/google/apis/spanner_v1/classes.rb', line 6959

def database
  @database
end

#progressArray<Google::Apis::SpannerV1::OperationProgress>

The progress of the UpdateDatabaseDdl operations. All DDL statements will have continuously updating progress, and progress[i] is the operation progress for statements[i]. Also, progress[i] will have start time and end time populated with commit timestamp of operation, as well as a progress of 100% once the operation has completed. Corresponds to the JSON property progress



6968
6969
6970
# File 'lib/google/apis/spanner_v1/classes.rb', line 6968

def progress
  @progress
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>)


6974
6975
6976
# File 'lib/google/apis/spanner_v1/classes.rb', line 6974

def statements
  @statements
end

#throttledBoolean Also known as: throttled?

Output only. When true, indicates that the operation is throttled e.g. due to resource constraints. When resources become available the operation will resume and this field will be false again. Corresponds to the JSON property throttled

Returns:

  • (Boolean)


6981
6982
6983
# File 'lib/google/apis/spanner_v1/classes.rb', line 6981

def throttled
  @throttled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6989
6990
6991
6992
6993
6994
6995
6996
# File 'lib/google/apis/spanner_v1/classes.rb', line 6989

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