Class: Google::Apis::DatastoreV1beta2::CommitRequest
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1beta2::CommitRequest
- 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
-
#ignore_read_only ⇒ Boolean
(also: #ignore_read_only?)
Corresponds to the JSON property
ignoreReadOnly
. -
#mode ⇒ String
The type of commit to perform.
-
#mutation ⇒ Google::Apis::DatastoreV1beta2::Mutation
A set of changes to apply.
-
#transaction ⇒ String
The transaction identifier, returned by a call to beginTransaction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CommitRequest
constructor
A new instance of CommitRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CommitRequest
Returns a new instance of CommitRequest.
146 147 148 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 146 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ignore_read_only ⇒ Boolean Also known as: ignore_read_only?
Corresponds to the JSON property ignoreReadOnly
127 128 129 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 127 def ignore_read_only @ignore_read_only end |
#mode ⇒ String
The type of commit to perform. Either TRANSACTIONAL or NON_TRANSACTIONAL.
Corresponds to the JSON property mode
133 134 135 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 133 def mode @mode end |
#mutation ⇒ Google::Apis::DatastoreV1beta2::Mutation
A set of changes to apply.
Corresponds to the JSON property mutation
138 139 140 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 138 def mutation @mutation end |
#transaction ⇒ String
The transaction identifier, returned by a call to beginTransaction. Must be
set when mode is TRANSACTIONAL.
Corresponds to the JSON property transaction
144 145 146 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 144 def transaction @transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
151 152 153 154 155 156 |
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 151 def update!(**args) @ignore_read_only = args[:ignore_read_only] if args.key?(:ignore_read_only) @mode = args[:mode] if args.key?(:mode) @mutation = args[:mutation] if args.key?(:mutation) @transaction = args[:transaction] if args.key?(:transaction) end |