class Google::Apis::DatastoreV1::MutationResult

The result of applying a mutation.

Attributes

conflict_detected[RW]

Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation. Corresponds to the JSON property `conflictDetected` @return [Boolean]

conflict_detected?[RW]

Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation. Corresponds to the JSON property `conflictDetected` @return [Boolean]

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::DatastoreV1::Key]

version[RW]

The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity. Corresponds to the JSON property `version` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datastore_v1/classes.rb, line 1416
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_v1/classes.rb, line 1421
def update!(**args)
  @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
  @key = args[:key] if args.key?(:key)
  @version = args[:version] if args.key?(:version)
end