Class: Google::Apis::DatastoreV1beta3::CommitResponse

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

Overview

The response for Datastore.Commit.

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) ⇒ CommitResponse

Returns a new instance of CommitResponse



1110
1111
1112
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1110

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

Instance Attribute Details

#index_updatesFixnum

The number of index entries updated during the commit, or zero if none were updated. Corresponds to the JSON property indexUpdates

Returns:

  • (Fixnum)


1108
1109
1110
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1108

def index_updates
  @index_updates
end

#mutation_resultsArray<Google::Apis::DatastoreV1beta3::MutationResult>

The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request. Corresponds to the JSON property mutationResults



1102
1103
1104
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1102

def mutation_results
  @mutation_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1115
1116
1117
1118
# File 'generated/google/apis/datastore_v1beta3/classes.rb', line 1115

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