google_api_datastore v0.6.0 GoogleApi.Datastore.V1.Model.Entity View Source

A Datastore data object.

An entity is limited to 1 megabyte when stored. That roughly corresponds to a limit of 1 megabyte for the serialized form of this message.

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 name must not contain more than 500 characters. The name cannot be "".

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() :: %GoogleApi.Datastore.V1.Model.Entity{
  key: GoogleApi.Datastore.V1.Model.Key.t(),
  properties: %{optional(String.t()) => GoogleApi.Datastore.V1.Model.Value.t()}
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.