Class: Google::Apis::FirestoreV1beta1::WriteResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firestore_v1beta1/classes.rb,
lib/google/apis/firestore_v1beta1/representations.rb,
lib/google/apis/firestore_v1beta1/representations.rb

Overview

The result of applying a write.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WriteResult

Returns a new instance of WriteResult.



3112
3113
3114
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 3112

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

Instance Attribute Details

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

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



3103
3104
3105
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 3103

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)


3110
3111
3112
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 3110

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3117
3118
3119
3120
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 3117

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