class Google::Apis::DatastoreV1beta3::Mutation

A mutation to apply to an entity.

Attributes

base_version[RW]

The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts. Corresponds to the JSON property `baseVersion` @return [Fixnum]

delete[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 `delete` @return [Google::Apis::DatastoreV1beta3::Key]

insert[RW]

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. Corresponds to the JSON property `insert` @return [Google::Apis::DatastoreV1beta3::Entity]

update[RW]

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. Corresponds to the JSON property `update` @return [Google::Apis::DatastoreV1beta3::Entity]

upsert[RW]

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. Corresponds to the JSON property `upsert` @return [Google::Apis::DatastoreV1beta3::Entity]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datastore_v1beta3/classes.rb, line 1075
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 1080
def update!(**args)
  @base_version = args[:base_version] if args.key?(:base_version)
  @delete = args[:delete] if args.key?(:delete)
  @insert = args[:insert] if args.key?(:insert)
  @update = args[:update] if args.key?(:update)
  @upsert = args[:upsert] if args.key?(:upsert)
end