Class: Google::Apis::FirestoreV1::CommitResponse
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::CommitResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb
Overview
The response for Firestore.Commit.
Instance Attribute Summary collapse
-
#commit_time ⇒ String
The time at which the commit occurred.
-
#write_results ⇒ Array<Google::Apis::FirestoreV1::WriteResult>
The result of applying the writes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CommitResponse
constructor
A new instance of CommitResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CommitResponse
Returns a new instance of CommitResponse.
491 492 493 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 491 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commit_time ⇒ String
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
483 484 485 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 483 def commit_time @commit_time end |
#write_results ⇒ Array<Google::Apis::FirestoreV1::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
489 490 491 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 489 def write_results @write_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
496 497 498 499 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 496 def update!(**args) @commit_time = args[:commit_time] if args.key?(:commit_time) @write_results = args[:write_results] if args.key?(:write_results) end |