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 |
Begins a new transaction. This step can often be skipped: Read, ExecuteSql and Commit can begin a new transaction as a side-effect.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.beginTransaction
.
Synopsis
- type ProjectsInstancesDatabasesSessionsBeginTransactionResource = "v1" :> (CaptureMode "session" "beginTransaction" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BeginTransactionRequest :> Post '[JSON] Transaction))))))))
- projectsInstancesDatabasesSessionsBeginTransaction :: BeginTransactionRequest -> Text -> ProjectsInstancesDatabasesSessionsBeginTransaction
- data ProjectsInstancesDatabasesSessionsBeginTransaction
- pidsbtXgafv :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Xgafv)
- pidsbtUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text)
- pidsbtAccessToken :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text)
- pidsbtUploadType :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text)
- pidsbtPayload :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction BeginTransactionRequest
- pidsbtSession :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction Text
- pidsbtCallback :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsBeginTransactionResource = "v1" :> (CaptureMode "session" "beginTransaction" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BeginTransactionRequest :> Post '[JSON] Transaction)))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.beginTransaction
method which the
ProjectsInstancesDatabasesSessionsBeginTransaction
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsBeginTransaction Source #
Creates a value of ProjectsInstancesDatabasesSessionsBeginTransaction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsBeginTransaction Source #
Begins a new transaction. This step can often be skipped: Read, ExecuteSql and Commit can begin a new transaction as a side-effect.
See: projectsInstancesDatabasesSessionsBeginTransaction
smart constructor.
Instances
Request Lenses
pidsbtXgafv :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Xgafv) Source #
V1 error format.
pidsbtUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidsbtAccessToken :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text) Source #
OAuth access token.
pidsbtUploadType :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidsbtPayload :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction BeginTransactionRequest Source #
Multipart request metadata.
pidsbtSession :: Lens' ProjectsInstancesDatabasesSessionsBeginTransaction Text Source #
Required. The session in which the transaction runs.