Class: Google::Apis::FirestoreV1::CommitRequest
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::CommitRequest
- 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.Commit.
Instance Attribute Summary collapse
-
#transaction ⇒ String
If set, applies all writes in this transaction, and commits it.
-
#writes ⇒ Array<Google::Apis::FirestoreV1::Write>
The writes to apply.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CommitRequest
constructor
A new instance of CommitRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CommitRequest
Returns a new instance of CommitRequest.
274 275 276 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 274 def initialize(**args) update!(**args) end |
Instance Attribute Details
#transaction ⇒ String
If set, applies all writes in this transaction, and commits it.
Corresponds to the JSON property transaction
NOTE: Values are automatically base64 encoded/decoded in the client library.
267 268 269 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 267 def transaction @transaction end |
#writes ⇒ Array<Google::Apis::FirestoreV1::Write>
The writes to apply. Always executed atomically and in order.
Corresponds to the JSON property writes
272 273 274 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 272 def writes @writes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
279 280 281 282 |
# File 'generated/google/apis/firestore_v1/classes.rb', line 279 def update!(**args) @transaction = args[:transaction] if args.key?(:transaction) @writes = args[:writes] if args.key?(:writes) end |