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

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

Overview

The response for Datastore.Commit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommitResponse

Returns a new instance of CommitResponse.



354
355
356
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 354

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

Instance Attribute Details

#commit_timeString

The transaction commit timestamp. Not set for non-transactional commits. Corresponds to the JSON property commitTime

Returns:

  • (String)


340
341
342
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 340

def commit_time
  @commit_time
end

#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)


346
347
348
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 346

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



352
353
354
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 352

def mutation_results
  @mutation_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



359
360
361
362
363
# File 'lib/google/apis/datastore_v1beta3/classes.rb', line 359

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