Class: Google::Apis::FirestoreV1beta1::DocumentDelete
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::DocumentDelete
- 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
A Document has been deleted. May be the result of multiple writes, including updates, the last of which deleted the Document. Multiple DocumentDelete messages may be returned for the same logical delete, if multiple targets are affected.
Instance Attribute Summary collapse
-
#document ⇒ String
The resource name of the Document that was deleted.
-
#read_time ⇒ String
The read timestamp at which the delete was observed.
-
#removed_target_ids ⇒ Array<Fixnum>
A set of target IDs for targets that previously matched this entity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DocumentDelete
constructor
A new instance of DocumentDelete.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DocumentDelete
Returns a new instance of DocumentDelete.
442 443 444 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 442 def initialize(**args) update!(**args) end |
Instance Attribute Details
#document ⇒ String
The resource name of the Document that was deleted.
Corresponds to the JSON property document
429 430 431 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 429 def document @document end |
#read_time ⇒ String
The read timestamp at which the delete was observed.
Greater or equal to the commit_time
of the delete.
Corresponds to the JSON property readTime
435 436 437 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 435 def read_time @read_time end |
#removed_target_ids ⇒ Array<Fixnum>
A set of target IDs for targets that previously matched this entity.
Corresponds to the JSON property removedTargetIds
440 441 442 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 440 def removed_target_ids @removed_target_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
447 448 449 450 451 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 447 def update!(**args) @document = args[:document] if args.key?(:document) @read_time = args[:read_time] if args.key?(:read_time) @removed_target_ids = args[:removed_target_ids] if args.key?(:removed_target_ids) end |