Reference documentation and code samples for the Firestore in Datastore mode V1 API class Google::Cloud::Datastore::V1::CommitRequest.
The request for Datastore.Commit.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#database_id
def database_id() -> ::String
-
(::String) — The ID of the database against which to make the request.
'(default)' is not allowed; please use empty string '' to refer the default database.
#database_id=
def database_id=(value) -> ::String
-
value (::String) — The ID of the database against which to make the request.
'(default)' is not allowed; please use empty string '' to refer the default database.
-
(::String) — The ID of the database against which to make the request.
'(default)' is not allowed; please use empty string '' to refer the default database.
#mode
def mode() -> ::Google::Cloud::Datastore::V1::CommitRequest::Mode
-
(::Google::Cloud::Datastore::V1::CommitRequest::Mode) — The type of commit to perform. Defaults to
TRANSACTIONAL
.
#mode=
def mode=(value) -> ::Google::Cloud::Datastore::V1::CommitRequest::Mode
-
value (::Google::Cloud::Datastore::V1::CommitRequest::Mode) — The type of commit to perform. Defaults to
TRANSACTIONAL
.
-
(::Google::Cloud::Datastore::V1::CommitRequest::Mode) — The type of commit to perform. Defaults to
TRANSACTIONAL
.
#mutations
def mutations() -> ::Array<::Google::Cloud::Datastore::V1::Mutation>
-
(::Array<::Google::Cloud::Datastore::V1::Mutation>) — The mutations to perform.
When mode is
TRANSACTIONAL
, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a singleCommit
request:insert
followed byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode is
NON_TRANSACTIONAL
, no two mutations may affect a single entity.
#mutations=
def mutations=(value) -> ::Array<::Google::Cloud::Datastore::V1::Mutation>
-
value (::Array<::Google::Cloud::Datastore::V1::Mutation>) — The mutations to perform.
When mode is
TRANSACTIONAL
, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a singleCommit
request:insert
followed byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode is
NON_TRANSACTIONAL
, no two mutations may affect a single entity.
-
(::Array<::Google::Cloud::Datastore::V1::Mutation>) — The mutations to perform.
When mode is
TRANSACTIONAL
, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a singleCommit
request:insert
followed byinsert
update
followed byinsert
upsert
followed byinsert
delete
followed byupdate
When mode is
NON_TRANSACTIONAL
, no two mutations may affect a single entity.
#project_id
def project_id() -> ::String
- (::String) — Required. The ID of the project against which to make the request.
#project_id=
def project_id=(value) -> ::String
- value (::String) — Required. The ID of the project against which to make the request.
- (::String) — Required. The ID of the project against which to make the request.
#transaction
def transaction() -> ::String
- (::String) — The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
#transaction=
def transaction=(value) -> ::String
- value (::String) — The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
- (::String) — The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.