Class: Google::Apis::FirestoreV1::BatchWriteResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchWriteResponse

Returns a new instance of BatchWriteResponse.



289
290
291
# File 'lib/google/apis/firestore_v1/classes.rb', line 289

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

Instance Attribute Details

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



281
282
283
# File 'lib/google/apis/firestore_v1/classes.rb', line 281

def status
  @status
end

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



287
288
289
# File 'lib/google/apis/firestore_v1/classes.rb', line 287

def write_results
  @write_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



294
295
296
297
# File 'lib/google/apis/firestore_v1/classes.rb', line 294

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