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

A Datastore data object. Must not exceed 1 MiB - 4 bytes.

Attributes

  • key (type: GoogleApi.Datastore.V1.Model.Key.t, default: nil) - The entity's key. An entity must have a key, unless otherwise documented (for example, an entity in Value.entity_value may have no key). An entity's kind is its key path's last element's kind, or null if it has no key.
  • properties (type: %{optional(String.t) => GoogleApi.Datastore.V1.Model.Value.t}, default: nil) - The entity's properties. The map's keys are property names. A property name matching regex __.*__ is reserved. A reserved property name is forbidden in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Datastore.V1.Model.Entity{
  key: GoogleApi.Datastore.V1.Model.Key.t() | nil,
  properties:
    %{optional(String.t()) => GoogleApi.Datastore.V1.Model.Value.t()} | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.