Class: Google::Apis::DatastoreV1::ReadWrite
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatastoreV1::ReadWrite
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/datastore_v1/classes.rb,
 generated/google/apis/datastore_v1/representations.rb,
 generated/google/apis/datastore_v1/representations.rb
Overview
Options specific to read / write transactions.
Instance Attribute Summary collapse
- 
  
    
      #previous_transaction  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The transaction identifier of the transaction being retried. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ReadWrite 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ReadWrite. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReadWrite
Returns a new instance of ReadWrite
| 1810 1811 1812 | # File 'generated/google/apis/datastore_v1/classes.rb', line 1810 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#previous_transaction ⇒ String
The transaction identifier of the transaction being retried.
Corresponds to the JSON property previousTransaction
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 1808 1809 1810 | # File 'generated/google/apis/datastore_v1/classes.rb', line 1808 def previous_transaction @previous_transaction end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1815 1816 1817 | # File 'generated/google/apis/datastore_v1/classes.rb', line 1815 def update!(**args) @previous_transaction = args[:previous_transaction] if args.key?(:previous_transaction) end |