Class: Google::Apis::DatastoreV1beta2::BeginTransactionResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BeginTransactionResponse

Returns a new instance of BeginTransactionResponse.



109
110
111
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 109

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

Instance Attribute Details

#headerGoogle::Apis::DatastoreV1beta2::ResponseHeader

Corresponds to the JSON property header



102
103
104
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 102

def header
  @header
end

#transactionString

The transaction identifier (always present). Corresponds to the JSON property transaction

Returns:

  • (String)


107
108
109
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 107

def transaction
  @transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 114

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