class Google::Apis::DatastoreV1beta2::CommitRequest

Attributes

ignore_read_only[RW]

Corresponds to the JSON property `ignoreReadOnly` @return [Boolean]

ignore_read_only?[RW]

Corresponds to the JSON property `ignoreReadOnly` @return [Boolean]

mode[RW]

The type of commit to perform. Either TRANSACTIONAL or NON_TRANSACTIONAL. Corresponds to the JSON property `mode` @return [String]

mutation[RW]

A set of changes to apply. Corresponds to the JSON property `mutation` @return [Google::Apis::DatastoreV1beta2::Mutation]

transaction[RW]

The transaction identifier, returned by a call to beginTransaction. Must be set when mode is TRANSACTIONAL. Corresponds to the JSON property `transaction` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/datastore_v1beta2/classes.rb, line 146
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/datastore_v1beta2/classes.rb, line 151
def update!(**args)
  @ignore_read_only = args[:ignore_read_only] if args.key?(:ignore_read_only)
  @mode = args[:mode] if args.key?(:mode)
  @mutation = args[:mutation] if args.key?(:mutation)
  @transaction = args[:transaction] if args.key?(:transaction)
end