Class: Google::Apis::DatastoreV1beta2::BeginTransactionRequest
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta2::BeginTransactionRequest
- 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
-
#isolation_level ⇒ String
The transaction isolation level.
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.
85 86 87 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 85 def initialize(**args) update!(**args) end |
Instance Attribute Details
#isolation_level ⇒ String
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
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 |