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 |
Starts a new transaction.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.beginTransaction
.
Synopsis
- type ProjectsDatabasesDocumentsBeginTransactionResource = "v1" :> (Capture "database" Text :> ("documents:beginTransaction" :> (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)))))))))
- projectsDatabasesDocumentsBeginTransaction :: Text -> BeginTransactionRequest -> ProjectsDatabasesDocumentsBeginTransaction
- data ProjectsDatabasesDocumentsBeginTransaction
- pddbtXgafv :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Xgafv)
- pddbtUploadProtocol :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text)
- pddbtDatabase :: Lens' ProjectsDatabasesDocumentsBeginTransaction Text
- pddbtAccessToken :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text)
- pddbtUploadType :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text)
- pddbtPayload :: Lens' ProjectsDatabasesDocumentsBeginTransaction BeginTransactionRequest
- pddbtCallback :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsBeginTransactionResource = "v1" :> (Capture "database" Text :> ("documents:beginTransaction" :> (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 firestore.projects.databases.documents.beginTransaction
method which the
ProjectsDatabasesDocumentsBeginTransaction
request conforms to.
Creating a Request
projectsDatabasesDocumentsBeginTransaction Source #
Creates a value of ProjectsDatabasesDocumentsBeginTransaction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsBeginTransaction Source #
Starts a new transaction.
See: projectsDatabasesDocumentsBeginTransaction
smart constructor.
Instances
Request Lenses
pddbtXgafv :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Xgafv) Source #
V1 error format.
pddbtUploadProtocol :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pddbtDatabase :: Lens' ProjectsDatabasesDocumentsBeginTransaction Text Source #
The database name. In the format: `projects/{project_id}/databases/{database_id}`.
pddbtAccessToken :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text) Source #
OAuth access token.
pddbtUploadType :: Lens' ProjectsDatabasesDocumentsBeginTransaction (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pddbtPayload :: Lens' ProjectsDatabasesDocumentsBeginTransaction BeginTransactionRequest Source #
Multipart request metadata.