{-# 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.CollectionGroups.Indexes.Delete
(
ProjectsDatabasesCollectionGroupsIndexesDeleteResource
, projectsDatabasesCollectionGroupsIndexesDelete
, ProjectsDatabasesCollectionGroupsIndexesDelete
, pdcgidXgafv
, pdcgidUploadProtocol
, pdcgidAccessToken
, pdcgidUploadType
, pdcgidName
, pdcgidCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
type ProjectsDatabasesCollectionGroupsIndexesDeleteResource
=
"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 ProjectsDatabasesCollectionGroupsIndexesDelete = ProjectsDatabasesCollectionGroupsIndexesDelete'
{ _pdcgidXgafv :: !(Maybe Xgafv)
, _pdcgidUploadProtocol :: !(Maybe Text)
, _pdcgidAccessToken :: !(Maybe Text)
, _pdcgidUploadType :: !(Maybe Text)
, _pdcgidName :: !Text
, _pdcgidCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDatabasesCollectionGroupsIndexesDelete
:: Text
-> ProjectsDatabasesCollectionGroupsIndexesDelete
projectsDatabasesCollectionGroupsIndexesDelete pPdcgidName_ =
ProjectsDatabasesCollectionGroupsIndexesDelete'
{ _pdcgidXgafv = Nothing
, _pdcgidUploadProtocol = Nothing
, _pdcgidAccessToken = Nothing
, _pdcgidUploadType = Nothing
, _pdcgidName = pPdcgidName_
, _pdcgidCallback = Nothing
}
pdcgidXgafv :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Xgafv)
pdcgidXgafv
= lens _pdcgidXgafv (\ s a -> s{_pdcgidXgafv = a})
pdcgidUploadProtocol :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Text)
pdcgidUploadProtocol
= lens _pdcgidUploadProtocol
(\ s a -> s{_pdcgidUploadProtocol = a})
pdcgidAccessToken :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Text)
pdcgidAccessToken
= lens _pdcgidAccessToken
(\ s a -> s{_pdcgidAccessToken = a})
pdcgidUploadType :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Text)
pdcgidUploadType
= lens _pdcgidUploadType
(\ s a -> s{_pdcgidUploadType = a})
pdcgidName :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete Text
pdcgidName
= lens _pdcgidName (\ s a -> s{_pdcgidName = a})
pdcgidCallback :: Lens' ProjectsDatabasesCollectionGroupsIndexesDelete (Maybe Text)
pdcgidCallback
= lens _pdcgidCallback
(\ s a -> s{_pdcgidCallback = a})
instance GoogleRequest
ProjectsDatabasesCollectionGroupsIndexesDelete where
type Rs
ProjectsDatabasesCollectionGroupsIndexesDelete
= Empty
type Scopes
ProjectsDatabasesCollectionGroupsIndexesDelete
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient
ProjectsDatabasesCollectionGroupsIndexesDelete'{..}
= go _pdcgidName _pdcgidXgafv _pdcgidUploadProtocol
_pdcgidAccessToken
_pdcgidUploadType
_pdcgidCallback
(Just AltJSON)
fireStoreService
where go
= buildClient
(Proxy ::
Proxy
ProjectsDatabasesCollectionGroupsIndexesDeleteResource)
mempty