class Google::Apis::FirestoreV1beta1::Precondition

A precondition on a document, used for conditional operations.

Attributes

exists[RW]

When set to `true`, the target document must exist. When set to `false`, the target document must not exist. Corresponds to the JSON property `exists` @return [Boolean]

exists?[RW]

When set to `true`, the target document must exist. When set to `false`, the target document must not exist. Corresponds to the JSON property `exists` @return [Boolean]

update_time[RW]

When set, the target document must exist and have been last updated at that time. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1beta1/classes.rb, line 1557
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1beta1/classes.rb, line 1562
def update!(**args)
  @exists = args[:exists] if args.key?(:exists)
  @update_time = args[:update_time] if args.key?(:update_time)
end