Class: Google::Apis::FirestoreV1::WriteResult

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 result of applying a write.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WriteResult

Returns a new instance of WriteResult.



2574
2575
2576
# File 'generated/google/apis/firestore_v1/classes.rb', line 2574

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

Instance Attribute Details

#transform_resultsArray<Google::Apis::FirestoreV1::Value>

The results of applying each DocumentTransform.FieldTransform, in the same order. Corresponds to the JSON property transformResults



2564
2565
2566
# File 'generated/google/apis/firestore_v1/classes.rb', line 2564

def transform_results
  @transform_results
end

#update_timeString

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

Returns:

  • (String)


2572
2573
2574
# File 'generated/google/apis/firestore_v1/classes.rb', line 2572

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2579
2580
2581
2582
# File 'generated/google/apis/firestore_v1/classes.rb', line 2579

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