google_api_datastore v0.4.0 GoogleApi.Datastore.V1.Model.Mutation View Source
A mutation to apply to an entity.
Attributes
- baseVersion (String.t): 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. Defaults to
nil
. - delete (GoogleApi.Datastore.V1.Model.Key.t): 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. Defaults to
nil
. - insert (GoogleApi.Datastore.V1.Model.Entity.t): The entity to insert. The entity must not already exist.
The entity key's final path element may be incomplete. Defaults to
nil
. - update (GoogleApi.Datastore.V1.Model.Entity.t): The entity to update. The entity must already exist.
Must have a complete key path. Defaults to
nil
. - upsert (GoogleApi.Datastore.V1.Model.Entity.t): The entity to upsert. The entity may or may not already exist.
The entity key's final path element may be incomplete. Defaults to
nil
.
Link to this section Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %GoogleApi.Datastore.V1.Model.Mutation{
baseVersion: String.t(),
delete: GoogleApi.Datastore.V1.Model.Key.t(),
insert: GoogleApi.Datastore.V1.Model.Entity.t(),
update: GoogleApi.Datastore.V1.Model.Entity.t(),
upsert: GoogleApi.Datastore.V1.Model.Entity.t()
}
t() :: %GoogleApi.Datastore.V1.Model.Mutation{ baseVersion: String.t(), delete: GoogleApi.Datastore.V1.Model.Key.t(), insert: GoogleApi.Datastore.V1.Model.Entity.t(), update: GoogleApi.Datastore.V1.Model.Entity.t(), upsert: GoogleApi.Datastore.V1.Model.Entity.t() }
Link to this section Functions
Link to this function
decode(value, options) View Source
Unwrap a decoded JSON object into its complex fields.