Class: Google::Apis::DatastoreV1beta2::MutationResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datastore_v1beta2/classes.rb,
generated/google/apis/datastore_v1beta2/representations.rb,
generated/google/apis/datastore_v1beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MutationResult

Returns a new instance of MutationResult.



578
579
580
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 578

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#index_updatesFixnum

Number of index writes. Corresponds to the JSON property indexUpdates

Returns:

  • (Fixnum)


570
571
572
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 570

def index_updates
  @index_updates
end

#insert_auto_id_keysArray<Google::Apis::DatastoreV1beta2::Key>

Keys for insertAutoId entities. One per entity from the request, in the same order. Corresponds to the JSON property insertAutoIdKeys



576
577
578
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 576

def insert_auto_id_keys
  @insert_auto_id_keys
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



583
584
585
586
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 583

def update!(**args)
  @index_updates = args[:index_updates] if args.key?(:index_updates)
  @insert_auto_id_keys = args[:insert_auto_id_keys] if args.key?(:insert_auto_id_keys)
end