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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firestore_v1/classes.rb,
generated/google/apis/firestore_v1/representations.rb,
generated/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.



181
182
183
# File 'generated/google/apis/firestore_v1/classes.rb', line 181

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



173
174
175
# File 'generated/google/apis/firestore_v1/classes.rb', line 173

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



179
180
181
# File 'generated/google/apis/firestore_v1/classes.rb', line 179

def write_results
  @write_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



186
187
188
189
# File 'generated/google/apis/firestore_v1/classes.rb', line 186

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