Class: Google::Apis::FirestoreV1beta1::BeginTransactionRequest
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::BeginTransactionRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1beta1/classes.rb,
lib/google/apis/firestore_v1beta1/representations.rb,
lib/google/apis/firestore_v1beta1/representations.rb
Overview
The request for Firestore.BeginTransaction.
Instance Attribute Summary collapse
-
#options ⇒ Google::Apis::FirestoreV1beta1::TransactionOptions
Options for creating a new transaction.
-
#request_options ⇒ Google::Apis::FirestoreV1beta1::RequestOptions
Options for a server request.
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.
326 327 328 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 326 def initialize(**args) update!(**args) end |
Instance Attribute Details
#options ⇒ Google::Apis::FirestoreV1beta1::TransactionOptions
Options for creating a new transaction.
Corresponds to the JSON property options
319 320 321 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 319 def @options end |
#request_options ⇒ Google::Apis::FirestoreV1beta1::RequestOptions
Options for a server request.
Corresponds to the JSON property requestOptions
324 325 326 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 324 def @request_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
331 332 333 334 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 331 def update!(**args) @options = args[:options] if args.key?(:options) @request_options = args[:request_options] if args.key?(:request_options) end |