Class: Google::Apis::DatastoreV1::RollbackRequest
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1::RollbackRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastore_v1/classes.rb,
lib/google/apis/datastore_v1/representations.rb,
lib/google/apis/datastore_v1/representations.rb more...
Overview
The request for Datastore.Rollback.
Instance Attribute Summary collapse
-
#database_id ⇒ String
The ID of the database against which to make the request.
-
#transaction ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RollbackRequest
constructor
A new instance of RollbackRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RollbackRequest
Returns a new instance of RollbackRequest.
2300 2301 2302 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2300 def initialize(**args) update!(**args) end |
Instance Attribute Details
#database_id ⇒ String
The ID of the database against which to make the request. '(default)' is not
allowed; please use empty string '' to refer the default database.
Corresponds to the JSON property databaseId
2291 2292 2293 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2291 def database_id @database_id end |
#transaction ⇒ String
Required. The transaction identifier, returned by a call to Datastore.
BeginTransaction.
Corresponds to the JSON property transaction
NOTE: Values are automatically base64 encoded/decoded in the client library.
2298 2299 2300 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2298 def transaction @transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2305 2306 2307 2308 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 2305 def update!(**args) @database_id = args[:database_id] if args.key?(:database_id) @transaction = args[:transaction] if args.key?(:transaction) end |