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.
See: Cloud Datastore API Reference for datastore.projects.beginTransaction
.
Synopsis
- type ProjectsBeginTransactionResource = "v1" :> ("projects" :> (CaptureMode "projectId" "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] BeginTransactionResponse)))))))))
- projectsBeginTransaction :: BeginTransactionRequest -> Text -> ProjectsBeginTransaction
- data ProjectsBeginTransaction
- pbtXgafv :: Lens' ProjectsBeginTransaction (Maybe Xgafv)
- pbtUploadProtocol :: Lens' ProjectsBeginTransaction (Maybe Text)
- pbtAccessToken :: Lens' ProjectsBeginTransaction (Maybe Text)
- pbtUploadType :: Lens' ProjectsBeginTransaction (Maybe Text)
- pbtPayload :: Lens' ProjectsBeginTransaction BeginTransactionRequest
- pbtProjectId :: Lens' ProjectsBeginTransaction Text
- pbtCallback :: Lens' ProjectsBeginTransaction (Maybe Text)
REST Resource
type ProjectsBeginTransactionResource = "v1" :> ("projects" :> (CaptureMode "projectId" "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] BeginTransactionResponse))))))))) Source #
A resource alias for datastore.projects.beginTransaction
method which the
ProjectsBeginTransaction
request conforms to.
Creating a Request
projectsBeginTransaction Source #
Creates a value of ProjectsBeginTransaction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsBeginTransaction Source #
Begins a new transaction.
See: projectsBeginTransaction
smart constructor.
Instances
Request Lenses
pbtUploadProtocol :: Lens' ProjectsBeginTransaction (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pbtAccessToken :: Lens' ProjectsBeginTransaction (Maybe Text) Source #
OAuth access token.
pbtUploadType :: Lens' ProjectsBeginTransaction (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pbtPayload :: Lens' ProjectsBeginTransaction BeginTransactionRequest Source #
Multipart request metadata.
pbtProjectId :: Lens' ProjectsBeginTransaction Text Source #
The ID of the project against which to make the request.
pbtCallback :: Lens' ProjectsBeginTransaction (Maybe Text) Source #
JSONP