Class: Google::Apis::SpannerV1::ExecuteBatchDmlRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::ExecuteBatchDmlRequest
- 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 ExecuteBatchDml.
Instance Attribute Summary collapse
-
#request_options ⇒ Google::Apis::SpannerV1::RequestOptions
Common request options for various APIs.
-
#seqno ⇒ Fixnum
Required.
-
#statements ⇒ Array<Google::Apis::SpannerV1::Statement>
Required.
-
#transaction ⇒ Google::Apis::SpannerV1::TransactionSelector
This message is used to select the transaction in which a Read or ExecuteSql call runs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecuteBatchDmlRequest
constructor
A new instance of ExecuteBatchDmlRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecuteBatchDmlRequest
Returns a new instance of ExecuteBatchDmlRequest.
1266 1267 1268 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#request_options ⇒ Google::Apis::SpannerV1::RequestOptions
Common request options for various APIs.
Corresponds to the JSON property requestOptions
1238 1239 1240 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1238 def @request_options end |
#seqno ⇒ Fixnum
Required. A per-transaction sequence number used to identify this request.
This field makes each request idempotent such that if the request is received
multiple times, at most one will succeed. The sequence number must be
monotonically increasing within the transaction. If a request arrives for the
first time with an out-of-order sequence number, the transaction may be
aborted. Replays of previously handled requests will yield the same response
as the first execution.
Corresponds to the JSON property seqno
1249 1250 1251 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1249 def seqno @seqno end |
#statements ⇒ Array<Google::Apis::SpannerV1::Statement>
Required. The list of statements to execute in this batch. Statements are
executed serially, such that the effects of statement i are visible to
statement i+1. Each statement must be a DML statement. Execution stops at
the first failed statement; the remaining statements are not executed. Callers
must provide at least one statement.
Corresponds to the JSON property statements
1258 1259 1260 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1258 def statements @statements end |
#transaction ⇒ Google::Apis::SpannerV1::TransactionSelector
This message is used to select the transaction in which a Read or ExecuteSql
call runs. See TransactionOptions for more information about transactions.
Corresponds to the JSON property transaction
1264 1265 1266 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1264 def transaction @transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1271 1272 1273 1274 1275 1276 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1271 def update!(**args) @request_options = args[:request_options] if args.key?(:request_options) @seqno = args[:seqno] if args.key?(:seqno) @statements = args[:statements] if args.key?(:statements) @transaction = args[:transaction] if args.key?(:transaction) end |