Class CommitRequest
The request for Datastore.Commit.
Inheritance
System.Object
CommitRequest
Implements
Google.Apis.Requests.IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Datastore.v1.Data
Assembly: Google.Apis.Datastore.v1.dll
Syntax
public class CommitRequest : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Mode
The type of commit to perform. Defaults to TRANSACTIONAL.
Declaration
[JsonProperty("mode")]
public virtual string Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| System.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:
insertfollowed byinsert-updatefollowed byinsert-upsertfollowed byinsert-deletefollowed byupdate
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 |
|---|---|
| System.Collections.Generic.IList<Mutation> |
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 |
|---|---|
| System.String |
Implements
Google.Apis.Requests.IDirectResponseSchema