Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Commits a transaction. The request includes the mutations to be applied to rows in the database. `Commit` might return an `ABORTED` error. This can occur at any time; commonly, the cause is conflicts with concurrent transactions. However, it can also happen for a variety of other reasons. If `Commit` returns `ABORTED`, the caller should re-attempt the transaction from the beginning, re-using the same session.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.commit
.
Synopsis
- type ProjectsInstancesDatabasesSessionsCommitResource = "v1" :> (CaptureMode "session" "commit" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CommitRequest :> Post '[JSON] CommitResponse))))))))
- projectsInstancesDatabasesSessionsCommit :: CommitRequest -> Text -> ProjectsInstancesDatabasesSessionsCommit
- data ProjectsInstancesDatabasesSessionsCommit
- pidscXgafv :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Xgafv)
- pidscUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text)
- pidscAccessToken :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text)
- pidscUploadType :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text)
- pidscPayload :: Lens' ProjectsInstancesDatabasesSessionsCommit CommitRequest
- pidscSession :: Lens' ProjectsInstancesDatabasesSessionsCommit Text
- pidscCallback :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsCommitResource = "v1" :> (CaptureMode "session" "commit" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CommitRequest :> Post '[JSON] CommitResponse)))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.commit
method which the
ProjectsInstancesDatabasesSessionsCommit
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsCommit Source #
Creates a value of ProjectsInstancesDatabasesSessionsCommit
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsCommit Source #
Commits a transaction. The request includes the mutations to be applied to rows in the database. `Commit` might return an `ABORTED` error. This can occur at any time; commonly, the cause is conflicts with concurrent transactions. However, it can also happen for a variety of other reasons. If `Commit` returns `ABORTED`, the caller should re-attempt the transaction from the beginning, re-using the same session.
See: projectsInstancesDatabasesSessionsCommit
smart constructor.
Instances
Request Lenses
pidscXgafv :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Xgafv) Source #
V1 error format.
pidscUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidscAccessToken :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text) Source #
OAuth access token.
pidscUploadType :: Lens' ProjectsInstancesDatabasesSessionsCommit (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidscPayload :: Lens' ProjectsInstancesDatabasesSessionsCommit CommitRequest Source #
Multipart request metadata.
pidscSession :: Lens' ProjectsInstancesDatabasesSessionsCommit Text Source #
Required. The session in which the transaction to be committed is running.