Class: Google::Apis::DatastoreV1beta3::ReadWrite

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1beta3/classes.rb,
lib/google/apis/datastore_v1beta3/representations.rb,
lib/google/apis/datastore_v1beta3/representations.rb

Overview

Options specific to read / write transactions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReadWrite

Returns a new instance of ReadWrite.



2027
2028
2029
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 2027

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#previous_transactionString

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.

Returns:

  • (String)


2025
2026
2027
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 2025

def previous_transaction
  @previous_transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2032
2033
2034
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 2032

def update!(**args)
  @previous_transaction = args[:previous_transaction] if args.key?(:previous_transaction)
end