Class CommitRequest
The request for Datastore.Commit.
Implements
Inherited Members
Namespace: Google.Apis.Datastore.v1.Data
Assembly: Google.Apis.Datastore.v1.dll
Syntax
public class CommitRequest : IDirectResponseSchema
Properties
DatabaseId
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
Declaration
[JsonProperty("databaseId")]
public virtual string DatabaseId { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Mode
The type of commit to perform. Defaults to TRANSACTIONAL
.
Declaration
[JsonProperty("mode")]
public virtual string Mode { get; set; }
Property Value
Type | Description |
---|---|
string |
Mutations
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 single Commit
request: - insert
followed by insert
- update
followed by insert
- upsert
followed by insert
-
delete
followed by update
When mode is NON_TRANSACTIONAL
, no two mutations may affect a single entity.
Declaration
[JsonProperty("mutations")]
public virtual IList<Mutation> Mutations { get; set; }
Property Value
Type | Description |
---|---|
IList<Mutation> |
SingleUseTransaction
Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, TransactionOptions.mode must be TransactionOptions.ReadWrite.
Declaration
[JsonProperty("singleUseTransaction")]
public virtual TransactionOptions SingleUseTransaction { get; set; }
Property Value
Type | Description |
---|---|
TransactionOptions |
Transaction
The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
Declaration
[JsonProperty("transaction")]
public virtual string Transaction { get; set; }
Property Value
Type | Description |
---|---|
string |