Class: Google::Apis::FirestoreV1beta1::CommitResponse

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

Overview

The response for Firestore.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.



253
254
255
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 253

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

Instance Attribute Details

#commit_timeString

The time at which the commit occurred. Any read with an equal or greater read_time is guaranteed to see the effects of the commit. Corresponds to the JSON property commitTime

Returns:

  • (String)


244
245
246
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 244

def commit_time
  @commit_time
end

#write_resultsArray<Google::Apis::FirestoreV1beta1::WriteResult>

The result of applying the writes. This i-th write result corresponds to the i-th write in the request. Corresponds to the JSON property writeResults



251
252
253
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 251

def write_results
  @write_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



258
259
260
261
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 258

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