{-# 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.Operations.Delete
(
ProjectsDatabasesOperationsDeleteResource
, projectsDatabasesOperationsDelete
, ProjectsDatabasesOperationsDelete
, pdodXgafv
, pdodUploadProtocol
, pdodAccessToken
, pdodUploadType
, pdodName
, pdodCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
type ProjectsDatabasesOperationsDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsDatabasesOperationsDelete = ProjectsDatabasesOperationsDelete'
{ _pdodXgafv :: !(Maybe Xgafv)
, _pdodUploadProtocol :: !(Maybe Text)
, _pdodAccessToken :: !(Maybe Text)
, _pdodUploadType :: !(Maybe Text)
, _pdodName :: !Text
, _pdodCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDatabasesOperationsDelete
:: Text
-> ProjectsDatabasesOperationsDelete
projectsDatabasesOperationsDelete pPdodName_ =
ProjectsDatabasesOperationsDelete'
{ _pdodXgafv = Nothing
, _pdodUploadProtocol = Nothing
, _pdodAccessToken = Nothing
, _pdodUploadType = Nothing
, _pdodName = pPdodName_
, _pdodCallback = Nothing
}
pdodXgafv :: Lens' ProjectsDatabasesOperationsDelete (Maybe Xgafv)
pdodXgafv
= lens _pdodXgafv (\ s a -> s{_pdodXgafv = a})
pdodUploadProtocol :: Lens' ProjectsDatabasesOperationsDelete (Maybe Text)
pdodUploadProtocol
= lens _pdodUploadProtocol
(\ s a -> s{_pdodUploadProtocol = a})
pdodAccessToken :: Lens' ProjectsDatabasesOperationsDelete (Maybe Text)
pdodAccessToken
= lens _pdodAccessToken
(\ s a -> s{_pdodAccessToken = a})
pdodUploadType :: Lens' ProjectsDatabasesOperationsDelete (Maybe Text)
pdodUploadType
= lens _pdodUploadType
(\ s a -> s{_pdodUploadType = a})
pdodName :: Lens' ProjectsDatabasesOperationsDelete Text
pdodName = lens _pdodName (\ s a -> s{_pdodName = a})
pdodCallback :: Lens' ProjectsDatabasesOperationsDelete (Maybe Text)
pdodCallback
= lens _pdodCallback (\ s a -> s{_pdodCallback = a})
instance GoogleRequest
ProjectsDatabasesOperationsDelete where
type Rs ProjectsDatabasesOperationsDelete = Empty
type Scopes ProjectsDatabasesOperationsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient ProjectsDatabasesOperationsDelete'{..}
= go _pdodName _pdodXgafv _pdodUploadProtocol
_pdodAccessToken
_pdodUploadType
_pdodCallback
(Just AltJSON)
fireStoreService
where go
= buildClient
(Proxy ::
Proxy ProjectsDatabasesOperationsDeleteResource)
mempty