View Source GoogleApi.Datastore.V1.Model.MutationResult (google_api_datastore v0.22.0)

The result of applying a mutation.

Attributes

  • conflictDetected (type: boolean(), default: nil) - Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
  • createTime (type: DateTime.t, default: nil) - The create time of the entity. This field will not be set after a 'delete'.
  • key (type: GoogleApi.Datastore.V1.Model.Key.t, default: nil) - The automatically allocated key. Set only when the mutation allocated a key.
  • updateTime (type: DateTime.t, default: nil) - The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
  • version (type: String.t, default: nil) - The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Datastore.V1.Model.MutationResult{
  conflictDetected: boolean() | nil,
  createTime: DateTime.t() | nil,
  key: GoogleApi.Datastore.V1.Model.Key.t() | nil,
  updateTime: DateTime.t() | nil,
  version: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.