Class: Google::Datastore::V1::Mutation

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb

Overview

A mutation to apply to an entity.

Instance Attribute Summary collapse

Instance Attribute Details

#base_versionInteger

Returns 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.

Returns:

  • (Integer)

    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.



214
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214

class Mutation; end

#deleteGoogle::Datastore::V1::Key

Returns The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

Returns:

  • (Google::Datastore::V1::Key)

    The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.



214
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214

class Mutation; end

#insertGoogle::Datastore::V1::Entity

Returns The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

Returns:

  • (Google::Datastore::V1::Entity)

    The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.



214
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214

class Mutation; end

#updateGoogle::Datastore::V1::Entity

Returns The entity to update. The entity must already exist. Must have a complete key path.

Returns:



214
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214

class Mutation; end

#upsertGoogle::Datastore::V1::Entity

Returns The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

Returns:

  • (Google::Datastore::V1::Entity)

    The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.



214
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214

class Mutation; end