Class: Google::Apis::DatastoreV1beta3::BeginTransactionRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatastoreV1beta3::BeginTransactionRequest
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1beta3/classes.rb,
 generated/google/apis/datastore_v1beta3/representations.rb,
 generated/google/apis/datastore_v1beta3/representations.rb
Overview
The request for Datastore.BeginTransaction.
Instance Attribute Summary collapse
- 
  
    
      #transaction_options  ⇒ Google::Apis::DatastoreV1beta3::TransactionOptions 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Options for beginning a new transaction. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BeginTransactionRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of BeginTransactionRequest. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BeginTransactionRequest
Returns a new instance of BeginTransactionRequest
| 98 99 100 | # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 98 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#transaction_options ⇒ Google::Apis::DatastoreV1beta3::TransactionOptions
Options for beginning a new transaction.
Transactions can be created explicitly with calls to
Datastore.BeginTransaction or implicitly by setting
ReadOptions.new_transaction in read requests.
Corresponds to the JSON property transactionOptions
| 96 97 98 | # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 96 def @transaction_options end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 103 104 105 | # File 'generated/google/apis/datastore_v1beta3/classes.rb', line 103 def update!(**args) @transaction_options = args[:transaction_options] if args.key?(:transaction_options) end |