Class: Google::Apis::FirestoreV1beta1::WriteResult
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::WriteResult
- 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 result of applying a write.
Instance Attribute Summary collapse
-
#transform_results ⇒ Array<Google::Apis::FirestoreV1beta1::Value>
The results of applying each DocumentTransform.FieldTransform, in the same order.
-
#update_time ⇒ String
The last update time of the document after applying the write.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WriteResult
constructor
A new instance of WriteResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ WriteResult
Returns a new instance of WriteResult
2307 2308 2309 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2307 def initialize(**args) update!(**args) end |
Instance Attribute Details
#transform_results ⇒ Array<Google::Apis::FirestoreV1beta1::Value>
The results of applying each DocumentTransform.FieldTransform, in the
same order.
Corresponds to the JSON property transformResults
2297 2298 2299 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2297 def transform_results @transform_results end |
#update_time ⇒ String
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
Corresponds to the JSON property updateTime
2305 2306 2307 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2305 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2312 2313 2314 2315 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 2312 def update!(**args) @transform_results = args[:transform_results] if args.key?(:transform_results) @update_time = args[:update_time] if args.key?(:update_time) end |