class Google::Apis::DatastoreV1beta2::Mutation

A set of changes to apply.

Attributes

delete[RW]

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>]

force[RW]

Ignore a user specified read-only period. Optional. Corresponds to the JSON property `force` @return [Boolean]

force?[RW]

Ignore a user specified read-only period. Optional. Corresponds to the JSON property `force` @return [Boolean]

insert[RW]

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_auto_id[RW]

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>]

update[RW]

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>]

upsert[RW]

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

new(**args) click to toggle source
# File generated/google/apis/datastore_v1beta2/classes.rb, line 548
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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