Class: Google::Apis::DatastoreV1beta2::CommitResponse

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) ⇒ CommitResponse

Returns a new instance of CommitResponse.



173
174
175
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 173

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

Instance Attribute Details

#headerGoogle::Apis::DatastoreV1beta2::ResponseHeader

Corresponds to the JSON property header



166
167
168
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 166

def header
  @header
end

#mutation_resultGoogle::Apis::DatastoreV1beta2::MutationResult

The result of performing the mutation (if any). Corresponds to the JSON property mutationResult



171
172
173
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 171

def mutation_result
  @mutation_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



178
179
180
181
# File 'generated/google/apis/datastore_v1beta2/classes.rb', line 178

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