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 |
Rolls back a transaction, releasing any locks it holds. It is a good idea to call this for any transaction that includes one or more Read or ExecuteSql requests and ultimately decides not to commit. `Rollback` returns `OK` if it successfully aborts the transaction, the transaction was already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.rollback
.
Synopsis
- type ProjectsInstancesDatabasesSessionsRollbackResource = "v1" :> (CaptureMode "session" "rollback" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RollbackRequest :> Post '[JSON] Empty))))))))
- projectsInstancesDatabasesSessionsRollback :: RollbackRequest -> Text -> ProjectsInstancesDatabasesSessionsRollback
- data ProjectsInstancesDatabasesSessionsRollback
- proXgafv :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Xgafv)
- proUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text)
- proAccessToken :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text)
- proUploadType :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text)
- proPayload :: Lens' ProjectsInstancesDatabasesSessionsRollback RollbackRequest
- proSession :: Lens' ProjectsInstancesDatabasesSessionsRollback Text
- proCallback :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsRollbackResource = "v1" :> (CaptureMode "session" "rollback" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RollbackRequest :> Post '[JSON] Empty)))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.rollback
method which the
ProjectsInstancesDatabasesSessionsRollback
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsRollback Source #
Creates a value of ProjectsInstancesDatabasesSessionsRollback
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsRollback Source #
Rolls back a transaction, releasing any locks it holds. It is a good idea to call this for any transaction that includes one or more Read or ExecuteSql requests and ultimately decides not to commit. `Rollback` returns `OK` if it successfully aborts the transaction, the transaction was already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`.
See: projectsInstancesDatabasesSessionsRollback
smart constructor.
Instances
Request Lenses
proUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
proAccessToken :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text) Source #
OAuth access token.
proUploadType :: Lens' ProjectsInstancesDatabasesSessionsRollback (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
proPayload :: Lens' ProjectsInstancesDatabasesSessionsRollback RollbackRequest Source #
Multipart request metadata.
proSession :: Lens' ProjectsInstancesDatabasesSessionsRollback Text Source #
Required. The session in which the transaction to roll back is running.