Class: Google::Apis::FirestoreV1::BatchWriteResponse
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::BatchWriteResponse
- 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 from Firestore.BatchWrite.
Instance Attribute Summary collapse
-
#status ⇒ Array<Google::Apis::FirestoreV1::Status>
The status of applying the writes.
-
#write_results ⇒ Array<Google::Apis::FirestoreV1::WriteResult>
The result of applying the writes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchWriteResponse
constructor
A new instance of BatchWriteResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BatchWriteResponse
Returns a new instance of BatchWriteResponse.
238 239 240 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 238 def initialize(**args) update!(**args) end |
Instance Attribute Details
#status ⇒ Array<Google::Apis::FirestoreV1::Status>
The status of applying the writes. This i-th write status corresponds to the i-
th write in the request.
Corresponds to the JSON property status
230 231 232 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 230 def status @status 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
236 237 238 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 236 def write_results @write_results end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
243 244 245 246 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 243 def update!(**args) @status = args[:status] if args.key?(:status) @write_results = args[:write_results] if args.key?(:write_results) end |