Class: Google::Apis::SpannerV1::BatchWriteRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::BatchWriteRequest
- 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
-
#exclude_txn_from_change_streams ⇒ Boolean
(also: #exclude_txn_from_change_streams?)
Optional.
-
#mutation_groups ⇒ Array<Google::Apis::SpannerV1::MutationGroup>
Required.
-
#request_options ⇒ Google::Apis::SpannerV1::RequestOptions
Common request options for various APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchWriteRequest
constructor
A new instance of BatchWriteRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BatchWriteRequest
Returns a new instance of BatchWriteRequest.
594 595 596 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 594 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclude_txn_from_change_streams ⇒ Boolean Also known as: exclude_txn_from_change_streams?
Optional. When exclude_txn_from_change_streams is set to true: *
Modifications from all transactions in this batch write operation will not be
recorded in change streams with DDL option allow_txn_exclusion=true that are
tracking columns modified by these transactions. * Modifications from all
transactions in this batch write operation will be recorded in change streams
with DDL option allow_txn_exclusion=false or not set that are tracking
columns modified by these transactions. When exclude_txn_from_change_streams
is set to false or not set, Modifications from all transactions in this
batch write operation will be recorded in all change streams that are tracking
columns modified by these transactions.
Corresponds to the JSON property excludeTxnFromChangeStreams
581 582 583 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 581 def exclude_txn_from_change_streams @exclude_txn_from_change_streams end |
#mutation_groups ⇒ Array<Google::Apis::SpannerV1::MutationGroup>
Required. The groups of mutations to be applied.
Corresponds to the JSON property mutationGroups
587 588 589 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 587 def mutation_groups @mutation_groups end |
#request_options ⇒ Google::Apis::SpannerV1::RequestOptions
Common request options for various APIs.
Corresponds to the JSON property requestOptions
592 593 594 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 592 def @request_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
599 600 601 602 603 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 599 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 |