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 |
Deletes a document.
See: Cloud Firestore API Reference for firestore.projects.databases.documents.delete
.
Synopsis
- type ProjectsDatabasesDocumentsDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "currentDocument.exists" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "currentDocument.updateTime" DateTime' :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))))
- projectsDatabasesDocumentsDelete :: Text -> ProjectsDatabasesDocumentsDelete
- data ProjectsDatabasesDocumentsDelete
- pdddXgafv :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Xgafv)
- pdddUploadProtocol :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)
- pdddCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Bool)
- pdddAccessToken :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)
- pdddUploadType :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)
- pdddCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsDelete (Maybe UTCTime)
- pdddName :: Lens' ProjectsDatabasesDocumentsDelete Text
- pdddCallback :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)
REST Resource
type ProjectsDatabasesDocumentsDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "currentDocument.exists" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "currentDocument.updateTime" DateTime' :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))) Source #
A resource alias for firestore.projects.databases.documents.delete
method which the
ProjectsDatabasesDocumentsDelete
request conforms to.
Creating a Request
projectsDatabasesDocumentsDelete Source #
Creates a value of ProjectsDatabasesDocumentsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsDatabasesDocumentsDelete Source #
Deletes a document.
See: projectsDatabasesDocumentsDelete
smart constructor.
Instances
Request Lenses
pdddUploadProtocol :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdddCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Bool) Source #
When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
pdddAccessToken :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text) Source #
OAuth access token.
pdddUploadType :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdddCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsDelete (Maybe UTCTime) Source #
When set, the target document must exist and have been last updated at that time.