Class: Google::Apis::FirestoreV1::CommitRequest

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

Overview

The request for Firestore.Commit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommitRequest

Returns a new instance of CommitRequest.



464
465
466
# File 'lib/google/apis/firestore_v1/classes.rb', line 464

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

Instance Attribute Details

#transactionString

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.

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/firestore_v1/classes.rb', line 457

def transaction
  @transaction
end

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

The writes to apply. Always executed atomically and in order. Corresponds to the JSON property writes



462
463
464
# File 'lib/google/apis/firestore_v1/classes.rb', line 462

def writes
  @writes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
# File 'lib/google/apis/firestore_v1/classes.rb', line 469

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