Class: Google::Datastore::V1::CommitRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb

Overview

The request for Datastore::Commit.

Defined Under Namespace

Modules: Mode

Instance Attribute Summary collapse

Instance Attribute Details

#modeGoogle::Datastore::V1::CommitRequest::Mode



135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 135

class CommitRequest
  # The modes available for commits.
  module Mode
    # Unspecified. This value must not be used.
    MODE_UNSPECIFIED = 0

    # Transactional: The mutations are either all applied, or none are applied.
    # Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
    TRANSACTIONAL = 1

    # Non-transactional: The mutations may not apply as all or none.
    NON_TRANSACTIONAL = 2
  end
end

#mutationsArray<Google::Datastore::V1::Mutation>



135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 135

class CommitRequest
  # The modes available for commits.
  module Mode
    # Unspecified. This value must not be used.
    MODE_UNSPECIFIED = 0

    # Transactional: The mutations are either all applied, or none are applied.
    # Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
    TRANSACTIONAL = 1

    # Non-transactional: The mutations may not apply as all or none.
    NON_TRANSACTIONAL = 2
  end
end

#project_idString



135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 135

class CommitRequest
  # The modes available for commits.
  module Mode
    # Unspecified. This value must not be used.
    MODE_UNSPECIFIED = 0

    # Transactional: The mutations are either all applied, or none are applied.
    # Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
    TRANSACTIONAL = 1

    # Non-transactional: The mutations may not apply as all or none.
    NON_TRANSACTIONAL = 2
  end
end

#transactionString



135
136
137
138
139
140
141
142
143
144
145
146
147
148
# File 'lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb', line 135

class CommitRequest
  # The modes available for commits.
  module Mode
    # Unspecified. This value must not be used.
    MODE_UNSPECIFIED = 0

    # Transactional: The mutations are either all applied, or none are applied.
    # Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
    TRANSACTIONAL = 1

    # Non-transactional: The mutations may not apply as all or none.
    NON_TRANSACTIONAL = 2
  end
end