Class: Google::Apis::SpannerV1::BatchWriteRequest

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 request for BatchWrite.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchWriteRequest

Returns a new instance of BatchWriteRequest.



743
744
745
# File 'lib/google/apis/spanner_v1/classes.rb', line 743

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

Instance Attribute Details

#exclude_txn_from_change_streamsBoolean Also known as: exclude_txn_from_change_streams?

Optional. If you don't set the exclude_txn_from_change_streams option or if it's set to false, then any change streams monitoring columns modified by transactions will capture the updates made within that transaction. Corresponds to the JSON property excludeTxnFromChangeStreams

Returns:

  • (Boolean)


730
731
732
# File 'lib/google/apis/spanner_v1/classes.rb', line 730

def exclude_txn_from_change_streams
  @exclude_txn_from_change_streams
end

#mutation_groupsArray<Google::Apis::SpannerV1::MutationGroup>

Required. The groups of mutations to be applied. Corresponds to the JSON property mutationGroups



736
737
738
# File 'lib/google/apis/spanner_v1/classes.rb', line 736

def mutation_groups
  @mutation_groups
end

#request_optionsGoogle::Apis::SpannerV1::RequestOptions

Common request options for various APIs. Corresponds to the JSON property requestOptions



741
742
743
# File 'lib/google/apis/spanner_v1/classes.rb', line 741

def request_options
  @request_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



748
749
750
751
752
# File 'lib/google/apis/spanner_v1/classes.rb', line 748

def update!(**args)
  @exclude_txn_from_change_streams = args[:exclude_txn_from_change_streams] if args.key?(:exclude_txn_from_change_streams)
  @mutation_groups = args[:mutation_groups] if args.key?(:mutation_groups)
  @request_options = args[:request_options] if args.key?(:request_options)
end