{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.FireStore.Projects.Databases.Documents.Delete
(
ProjectsDatabasesDocumentsDeleteResource
, projectsDatabasesDocumentsDelete
, ProjectsDatabasesDocumentsDelete
, pdddXgafv
, pdddUploadProtocol
, pdddCurrentDocumentExists
, pdddAccessToken
, pdddUploadType
, pdddCurrentDocumentUpdateTime
, pdddName
, pdddCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
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
data ProjectsDatabasesDocumentsDelete = ProjectsDatabasesDocumentsDelete'
{ _pdddXgafv :: !(Maybe Xgafv)
, _pdddUploadProtocol :: !(Maybe Text)
, _pdddCurrentDocumentExists :: !(Maybe Bool)
, _pdddAccessToken :: !(Maybe Text)
, _pdddUploadType :: !(Maybe Text)
, _pdddCurrentDocumentUpdateTime :: !(Maybe DateTime')
, _pdddName :: !Text
, _pdddCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDatabasesDocumentsDelete
:: Text
-> ProjectsDatabasesDocumentsDelete
projectsDatabasesDocumentsDelete pPdddName_ =
ProjectsDatabasesDocumentsDelete'
{ _pdddXgafv = Nothing
, _pdddUploadProtocol = Nothing
, _pdddCurrentDocumentExists = Nothing
, _pdddAccessToken = Nothing
, _pdddUploadType = Nothing
, _pdddCurrentDocumentUpdateTime = Nothing
, _pdddName = pPdddName_
, _pdddCallback = Nothing
}
pdddXgafv :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Xgafv)
pdddXgafv
= lens _pdddXgafv (\ s a -> s{_pdddXgafv = a})
pdddUploadProtocol :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)
pdddUploadProtocol
= lens _pdddUploadProtocol
(\ s a -> s{_pdddUploadProtocol = a})
pdddCurrentDocumentExists :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Bool)
pdddCurrentDocumentExists
= lens _pdddCurrentDocumentExists
(\ s a -> s{_pdddCurrentDocumentExists = a})
pdddAccessToken :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)
pdddAccessToken
= lens _pdddAccessToken
(\ s a -> s{_pdddAccessToken = a})
pdddUploadType :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)
pdddUploadType
= lens _pdddUploadType
(\ s a -> s{_pdddUploadType = a})
pdddCurrentDocumentUpdateTime :: Lens' ProjectsDatabasesDocumentsDelete (Maybe UTCTime)
pdddCurrentDocumentUpdateTime
= lens _pdddCurrentDocumentUpdateTime
(\ s a -> s{_pdddCurrentDocumentUpdateTime = a})
. mapping _DateTime
pdddName :: Lens' ProjectsDatabasesDocumentsDelete Text
pdddName = lens _pdddName (\ s a -> s{_pdddName = a})
pdddCallback :: Lens' ProjectsDatabasesDocumentsDelete (Maybe Text)
pdddCallback
= lens _pdddCallback (\ s a -> s{_pdddCallback = a})
instance GoogleRequest
ProjectsDatabasesDocumentsDelete where
type Rs ProjectsDatabasesDocumentsDelete = Empty
type Scopes ProjectsDatabasesDocumentsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient ProjectsDatabasesDocumentsDelete'{..}
= go _pdddName _pdddXgafv _pdddUploadProtocol
_pdddCurrentDocumentExists
_pdddAccessToken
_pdddUploadType
_pdddCurrentDocumentUpdateTime
_pdddCallback
(Just AltJSON)
fireStoreService
where go
= buildClient
(Proxy ::
Proxy ProjectsDatabasesDocumentsDeleteResource)
mempty