Class: Google::Apis::FirestoreV1::RollbackRequest

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.Rollback.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RollbackRequest

Returns a new instance of RollbackRequest.



4358
4359
4360
# File 'lib/google/apis/firestore_v1/classes.rb', line 4358

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

Instance Attribute Details

#request_optionsGoogle::Apis::FirestoreV1::RequestOptions

Options for a server request. Corresponds to the JSON property requestOptions



4350
4351
4352
# File 'lib/google/apis/firestore_v1/classes.rb', line 4350

def request_options
  @request_options
end

#transactionString

Required. The transaction to roll back. Corresponds to the JSON property transaction NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4356
4357
4358
# File 'lib/google/apis/firestore_v1/classes.rb', line 4356

def transaction
  @transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4363
4364
4365
4366
# File 'lib/google/apis/firestore_v1/classes.rb', line 4363

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