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 |
Creates a new document.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.createDocument
.
Synopsis
- type ProjectsDatabasesDocumentsCreateDocumentResource = "v1" :> (Capture "parent" Text :> (Capture "collectionId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "documentId" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "mask.fieldPaths" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Document :> Post '[JSON] Document)))))))))))
- projectsDatabasesDocumentsCreateDocument :: Text -> Text -> Document -> ProjectsDatabasesDocumentsCreateDocument
- data ProjectsDatabasesDocumentsCreateDocument
- pddcdParent :: Lens' ProjectsDatabasesDocumentsCreateDocument Text
- pddcdXgafv :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Xgafv)
- pddcdDocumentId :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)
- pddcdUploadProtocol :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)
- pddcdAccessToken :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)
- pddcdCollectionId :: Lens' ProjectsDatabasesDocumentsCreateDocument Text
- pddcdUploadType :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)
- pddcdPayload :: Lens' ProjectsDatabasesDocumentsCreateDocument Document
- pddcdMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsCreateDocument [Text]
- pddcdCallback :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsCreateDocumentResource = "v1" :> (Capture "parent" Text :> (Capture "collectionId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "documentId" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "mask.fieldPaths" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Document :> Post '[JSON] Document))))))))))) Source #
A resource alias for firestore.projects.databases.documents.createDocument
method which the
ProjectsDatabasesDocumentsCreateDocument
request conforms to.
Creating a Request
projectsDatabasesDocumentsCreateDocument Source #
Creates a value of ProjectsDatabasesDocumentsCreateDocument
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsCreateDocument Source #
Creates a new document.
See: projectsDatabasesDocumentsCreateDocument
smart constructor.
Instances
Request Lenses
pddcdParent :: Lens' ProjectsDatabasesDocumentsCreateDocument Text Source #
The parent resource. For example: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
pddcdXgafv :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Xgafv) Source #
V1 error format.
pddcdDocumentId :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text) Source #
The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.
pddcdUploadProtocol :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pddcdAccessToken :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text) Source #
OAuth access token.
pddcdCollectionId :: Lens' ProjectsDatabasesDocumentsCreateDocument Text Source #
The collection ID, relative to `parent`, to list. For example: `chatrooms`.
pddcdUploadType :: Lens' ProjectsDatabasesDocumentsCreateDocument (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pddcdPayload :: Lens' ProjectsDatabasesDocumentsCreateDocument Document Source #
Multipart request metadata.
pddcdMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsCreateDocument [Text] Source #
The list of field paths in the mask. See Document.fields for a field path syntax reference.