Class: Google::Apis::FirestoreV1::BatchWriteRequest

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 request for Firestore.BatchWrite.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchWriteRequest

Returns a new instance of BatchWriteRequest.



154
155
156
# File 'generated/google/apis/firestore_v1/classes.rb', line 154

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

Instance Attribute Details

#labelsHash<String,String>

Labels associated with this batch write. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


145
146
147
# File 'generated/google/apis/firestore_v1/classes.rb', line 145

def labels
  @labels
end

#writesArray<Google::Apis::FirestoreV1::Write>

The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request. Corresponds to the JSON property writes



152
153
154
# File 'generated/google/apis/firestore_v1/classes.rb', line 152

def writes
  @writes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



159
160
161
162
# File 'generated/google/apis/firestore_v1/classes.rb', line 159

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