class Google::Apis::DatastoreV1beta2::Mutation
A set of changes to apply.
Attributes
Keys of entities to delete. Each key must have a complete key path and must not be reserved/read-only. Corresponds to the JSON property `delete` @return [Array<Google::Apis::DatastoreV1beta2::Key>]
Ignore a user specified read-only period. Optional. Corresponds to the JSON property `force` @return [Boolean]
Ignore a user specified read-only period. Optional. Corresponds to the JSON property `force` @return [Boolean]
Entities to insert. Each inserted entity's key must have a complete path and must not be reserved/read-only. Corresponds to the JSON property `insert` @return [Array<Google::Apis::DatastoreV1beta2::Entity>]
Insert entities with a newly allocated ID. Each inserted entity's key must omit the final identifier in its path and must not be reserved/read-only. Corresponds to the JSON property `insertAutoId` @return [Array<Google::Apis::DatastoreV1beta2::Entity>]
Entities to update. Each updated entity's key must have a complete path and must not be reserved/read-only. Corresponds to the JSON property `update` @return [Array<Google::Apis::DatastoreV1beta2::Entity>]
Entities to upsert. Each upserted entity's key must have a complete path and must not be reserved/read-only. Corresponds to the JSON property `upsert` @return [Array<Google::Apis::DatastoreV1beta2::Entity>]
Public Class Methods
# File generated/google/apis/datastore_v1beta2/classes.rb, line 548 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/datastore_v1beta2/classes.rb, line 553 def update!(**args) @delete = args[:delete] if args.key?(:delete) @force = args[:force] if args.key?(:force) @insert = args[:insert] if args.key?(:insert) @insert_auto_id = args[:insert_auto_id] if args.key?(:insert_auto_id) @update = args[:update] if args.key?(:update) @upsert = args[:upsert] if args.key?(:upsert) end