class Google::Apis::SpannerV1::Mutation

A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.

Attributes

delete[RW]

Arguments to delete operations. Corresponds to the JSON property `delete` @return [Google::Apis::SpannerV1::Delete]

insert[RW]

Arguments to insert, update, insert_or_update, and replace operations. Corresponds to the JSON property `insert` @return [Google::Apis::SpannerV1::Write]

insert_or_update[RW]

Arguments to insert, update, insert_or_update, and replace operations. Corresponds to the JSON property `insertOrUpdate` @return [Google::Apis::SpannerV1::Write]

replace[RW]

Arguments to insert, update, insert_or_update, and replace operations. Corresponds to the JSON property `replace` @return [Google::Apis::SpannerV1::Write]

update[RW]

Arguments to insert, update, insert_or_update, and replace operations. Corresponds to the JSON property `update` @return [Google::Apis::SpannerV1::Write]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 2422
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 2427
def update!(**args)
  @delete = args[:delete] if args.key?(:delete)
  @insert = args[:insert] if args.key?(:insert)
  @insert_or_update = args[:insert_or_update] if args.key?(:insert_or_update)
  @replace = args[:replace] if args.key?(:replace)
  @update = args[:update] if args.key?(:update)
end