Class: Google::Apis::DatastoreV1beta2::BeginTransactionRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BeginTransactionRequest

Returns a new instance of BeginTransactionRequest



85
86
87
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 85

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

Instance Attribute Details

#isolation_levelString

The transaction isolation level. Either snapshot or serializable. The default isolation level is snapshot isolation, which means that another transaction may not concurrently modify the data that is modified by this transaction. Optionally, a transaction can request to be made serializable which means that another transaction cannot concurrently modify the data that is read or modified by this transaction. Corresponds to the JSON property isolationLevel

Returns:

  • (String)


83
84
85
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 83

def isolation_level
  @isolation_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



90
91
92
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 90

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