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 |
Streams batches of document updates and deletes, in order.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.write
.
Synopsis
- type ProjectsDatabasesDocumentsWriteResource = "v1" :> (Capture "database" Text :> ("documents:write" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WriteRequest :> Post '[JSON] WriteResponse)))))))))
- projectsDatabasesDocumentsWrite :: Text -> WriteRequest -> ProjectsDatabasesDocumentsWrite
- data ProjectsDatabasesDocumentsWrite
- pddwXgafv :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Xgafv)
- pddwUploadProtocol :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text)
- pddwDatabase :: Lens' ProjectsDatabasesDocumentsWrite Text
- pddwAccessToken :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text)
- pddwUploadType :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text)
- pddwPayload :: Lens' ProjectsDatabasesDocumentsWrite WriteRequest
- pddwCallback :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsWriteResource = "v1" :> (Capture "database" Text :> ("documents:write" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] WriteRequest :> Post '[JSON] WriteResponse))))))))) Source #
A resource alias for firestore.projects.databases.documents.write
method which the
ProjectsDatabasesDocumentsWrite
request conforms to.
Creating a Request
projectsDatabasesDocumentsWrite Source #
Creates a value of ProjectsDatabasesDocumentsWrite
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsWrite Source #
Streams batches of document updates and deletes, in order.
See: projectsDatabasesDocumentsWrite
smart constructor.
Instances
Request Lenses
pddwUploadProtocol :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pddwDatabase :: Lens' ProjectsDatabasesDocumentsWrite Text Source #
The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message.
pddwAccessToken :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text) Source #
OAuth access token.
pddwUploadType :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pddwPayload :: Lens' ProjectsDatabasesDocumentsWrite WriteRequest Source #
Multipart request metadata.
pddwCallback :: Lens' ProjectsDatabasesDocumentsWrite (Maybe Text) Source #
JSONP