Show / Hide Table of Contents

Class Mutation

A mutation to apply to an entity.

Inheritance
object
Mutation
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Datastore.v1beta3.Data
Assembly: Google.Apis.Datastore.v1beta3.dll
Syntax
public class Mutation : IDirectResponseSchema

Properties

BaseVersion

The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.

Declaration
[JsonProperty("baseVersion")]
public virtual long? BaseVersion { get; set; }
Property Value
Type Description
long?

ConflictResolutionStrategy

The strategy to use when a conflict is detected. Defaults to SERVER_VALUE. If this is set, then conflict_detection_strategy must also be set.

Declaration
[JsonProperty("conflictResolutionStrategy")]
public virtual string ConflictResolutionStrategy { get; set; }
Property Value
Type Description
string

Delete

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

Declaration
[JsonProperty("delete")]
public virtual Key Delete { get; set; }
Property Value
Type Description
Key

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Insert

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

Declaration
[JsonProperty("insert")]
public virtual Entity Insert { get; set; }
Property Value
Type Description
Entity

PropertyMask

The properties to write in this mutation. None of the properties in the mask may have a reserved name, except for __key__. This field is ignored for delete. If the entity already exists, only properties referenced in the mask are updated, others are left untouched. Properties referenced in the mask but not in the entity are deleted.

Declaration
[JsonProperty("propertyMask")]
public virtual PropertyMask PropertyMask { get; set; }
Property Value
Type Description
PropertyMask

PropertyTransforms

Optional. The transforms to perform on the entity. This field can be set only when the operation is insert, update, or upsert. If present, the transforms are be applied to the entity regardless of the property mask, in order, after the operation.

Declaration
[JsonProperty("propertyTransforms")]
public virtual IList<PropertyTransform> PropertyTransforms { get; set; }
Property Value
Type Description
IList<PropertyTransform>

Update

The entity to update. The entity must already exist. Must have a complete key path.

Declaration
[JsonProperty("update")]
public virtual Entity Update { get; set; }
Property Value
Type Description
Entity

UpdateTime

object representation of UpdateTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type Description
object

UpdateTimeDateTimeOffset

DateTimeOffset representation of UpdateTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

UpdateTimeRaw

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type Description
string

Upsert

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

Declaration
[JsonProperty("upsert")]
public virtual Entity Upsert { get; set; }
Property Value
Type Description
Entity

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX