class Google::Apis::DatastoreV1beta2::Entity

An entity.

Attributes

key[RW]

A unique identifier for an entity. Corresponds to the JSON property `key` @return [Google::Apis::DatastoreV1beta2::Key]

properties[RW]

The entity's properties. Corresponds to the JSON property `properties` @return [Hash<String,Google::Apis::DatastoreV1beta2::Property>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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