class Google::Apis::DatastoreV1beta3::Entity

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[RW]

A unique identifier for an entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. Corresponds to the JSON property `key` @return [Google::Apis::DatastoreV1beta3::Key]

properties[RW]

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 `“”`. Corresponds to the JSON property `properties` @return [Hash<String,Google::Apis::DatastoreV1beta3::Value>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datastore_v1beta3/classes.rb, line 237
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datastore_v1beta3/classes.rb, line 242
def update!(**args)
  @key = args[:key] if args.key?(:key)
  @properties = args[:properties] if args.key?(:properties)
end