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 |
Updates or inserts a document.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.patch
.
Synopsis
- type ProjectsDatabasesDocumentsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParams "updateMask.fieldPaths" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "currentDocument.exists" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "currentDocument.updateTime" DateTime' :> (QueryParams "mask.fieldPaths" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Document :> Patch '[JSON] Document))))))))))))
- projectsDatabasesDocumentsPatch :: Document -> Text -> ProjectsDatabasesDocumentsPatch
- data ProjectsDatabasesDocumentsPatch
- pddpXgafv :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Xgafv)
- pddpUpdateMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsPatch [Text]
- pddpUploadProtocol :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text)
- pddpCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Bool)
- pddpAccessToken :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text)
- pddpUploadType :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text)
- pddpPayload :: Lens' ProjectsDatabasesDocumentsPatch Document
- pddpCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsPatch (Maybe UTCTime)
- pddpName :: Lens' ProjectsDatabasesDocumentsPatch Text
- pddpMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsPatch [Text]
- pddpCallback :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParams "updateMask.fieldPaths" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "currentDocument.exists" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "currentDocument.updateTime" DateTime' :> (QueryParams "mask.fieldPaths" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Document :> Patch '[JSON] Document)))))))))))) Source #
A resource alias for firestore.projects.databases.documents.patch
method which the
ProjectsDatabasesDocumentsPatch
request conforms to.
Creating a Request
projectsDatabasesDocumentsPatch Source #
Creates a value of ProjectsDatabasesDocumentsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsPatch Source #
Updates or inserts a document.
See: projectsDatabasesDocumentsPatch
smart constructor.
Instances
Request Lenses
pddpUpdateMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsPatch [Text] Source #
The list of field paths in the mask. See Document.fields for a field path syntax reference.
pddpUploadProtocol :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pddpCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Bool) Source #
When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
pddpAccessToken :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text) Source #
OAuth access token.
pddpUploadType :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pddpPayload :: Lens' ProjectsDatabasesDocumentsPatch Document Source #
Multipart request metadata.
pddpCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsPatch (Maybe UTCTime) Source #
When set, the target document must exist and have been last updated at that time.
pddpName :: Lens' ProjectsDatabasesDocumentsPatch Text Source #
The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
pddpMaskFieldPaths :: Lens' ProjectsDatabasesDocumentsPatch [Text] Source #
The list of field paths in the mask. See Document.fields for a field path syntax reference.
pddpCallback :: Lens' ProjectsDatabasesDocumentsPatch (Maybe Text) Source #
JSONP