Class: Google::Apis::SpannerV1::BeginTransactionRequest
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::BeginTransactionRequest
- 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 BeginTransaction.
Instance Attribute Summary collapse
-
#mutation_key ⇒ Google::Apis::SpannerV1::Mutation
A modification to one or more Cloud Spanner rows.
-
#options ⇒ Google::Apis::SpannerV1::TransactionOptions
Options to use for transactions.
-
#request_options ⇒ Google::Apis::SpannerV1::RequestOptions
Common request options for various APIs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BeginTransactionRequest
constructor
A new instance of BeginTransactionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BeginTransactionRequest
Returns a new instance of BeginTransactionRequest.
813 814 815 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 813 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mutation_key ⇒ 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.
Corresponds to the JSON property mutationKey
801 802 803 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 801 def mutation_key @mutation_key end |
#options ⇒ Google::Apis::SpannerV1::TransactionOptions
Options to use for transactions.
Corresponds to the JSON property options
806 807 808 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 806 def @options end |
#request_options ⇒ Google::Apis::SpannerV1::RequestOptions
Common request options for various APIs.
Corresponds to the JSON property requestOptions
811 812 813 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 811 def @request_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
818 819 820 821 822 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 818 def update!(**args) @mutation_key = args[:mutation_key] if args.key?(:mutation_key) @options = args[:options] if args.key?(:options) @request_options = args[:request_options] if args.key?(:request_options) end |