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, while optionally updating documents.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.commit
.
Synopsis
- type ProjectsDatabasesDocumentsCommitResource = "v1" :> (Capture "database" Text :> ("documents:commit" :> (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)))))))))
- projectsDatabasesDocumentsCommit :: Text -> CommitRequest -> ProjectsDatabasesDocumentsCommit
- data ProjectsDatabasesDocumentsCommit
- pddcXgafv :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Xgafv)
- pddcUploadProtocol :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text)
- pddcDatabase :: Lens' ProjectsDatabasesDocumentsCommit Text
- pddcAccessToken :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text)
- pddcUploadType :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text)
- pddcPayload :: Lens' ProjectsDatabasesDocumentsCommit CommitRequest
- pddcCallback :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsCommitResource = "v1" :> (Capture "database" Text :> ("documents:commit" :> (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 firestore.projects.databases.documents.commit
method which the
ProjectsDatabasesDocumentsCommit
request conforms to.
Creating a Request
projectsDatabasesDocumentsCommit Source #
Creates a value of ProjectsDatabasesDocumentsCommit
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsCommit Source #
Commits a transaction, while optionally updating documents.
See: projectsDatabasesDocumentsCommit
smart constructor.
Instances
Request Lenses
pddcUploadProtocol :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pddcDatabase :: Lens' ProjectsDatabasesDocumentsCommit Text Source #
The database name. In the format: `projects/{project_id}/databases/{database_id}`.
pddcAccessToken :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text) Source #
OAuth access token.
pddcUploadType :: Lens' ProjectsDatabasesDocumentsCommit (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pddcPayload :: Lens' ProjectsDatabasesDocumentsCommit CommitRequest Source #
Multipart request metadata.