Class: Google::Datastore::V1::Mutation
- Inherits:
-
Object
- Object
- Google::Datastore::V1::Mutation
- 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
-
#base_version ⇒ Integer
The version of the entity that this mutation is being applied to.
-
#delete ⇒ Google::Datastore::V1::Key
The key of the entity to delete.
-
#insert ⇒ Google::Datastore::V1::Entity
The entity to insert.
-
#update ⇒ Google::Datastore::V1::Entity
The entity to update.
-
#upsert ⇒ Google::Datastore::V1::Entity
The entity to upsert.
Instance Attribute Details
#base_version ⇒ Integer
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.
214 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214 class Mutation; end |
#delete ⇒ Google::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.
214 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214 class Mutation; end |
#insert ⇒ Google::Datastore::V1::Entity
Returns 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 |
#update ⇒ Google::Datastore::V1::Entity
Returns The entity to update. The entity must already exist. Must have a complete key path.
214 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214 class Mutation; end |
#upsert ⇒ Google::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.
214 |
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 214 class Mutation; end |