{-# 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.DLP.Projects.DeidentifyTemplates.Delete
(
ProjectsDeidentifyTemplatesDeleteResource
, projectsDeidentifyTemplatesDelete
, ProjectsDeidentifyTemplatesDelete
, pdtdXgafv
, pdtdUploadProtocol
, pdtdAccessToken
, pdtdUploadType
, pdtdName
, pdtdCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsDeidentifyTemplatesDeleteResource =
"v2" :>
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] GoogleProtobufEmpty
data ProjectsDeidentifyTemplatesDelete = ProjectsDeidentifyTemplatesDelete'
{ _pdtdXgafv :: !(Maybe Xgafv)
, _pdtdUploadProtocol :: !(Maybe Text)
, _pdtdAccessToken :: !(Maybe Text)
, _pdtdUploadType :: !(Maybe Text)
, _pdtdName :: !Text
, _pdtdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDeidentifyTemplatesDelete
:: Text
-> ProjectsDeidentifyTemplatesDelete
projectsDeidentifyTemplatesDelete pPdtdName_ =
ProjectsDeidentifyTemplatesDelete'
{ _pdtdXgafv = Nothing
, _pdtdUploadProtocol = Nothing
, _pdtdAccessToken = Nothing
, _pdtdUploadType = Nothing
, _pdtdName = pPdtdName_
, _pdtdCallback = Nothing
}
pdtdXgafv :: Lens' ProjectsDeidentifyTemplatesDelete (Maybe Xgafv)
pdtdXgafv
= lens _pdtdXgafv (\ s a -> s{_pdtdXgafv = a})
pdtdUploadProtocol :: Lens' ProjectsDeidentifyTemplatesDelete (Maybe Text)
pdtdUploadProtocol
= lens _pdtdUploadProtocol
(\ s a -> s{_pdtdUploadProtocol = a})
pdtdAccessToken :: Lens' ProjectsDeidentifyTemplatesDelete (Maybe Text)
pdtdAccessToken
= lens _pdtdAccessToken
(\ s a -> s{_pdtdAccessToken = a})
pdtdUploadType :: Lens' ProjectsDeidentifyTemplatesDelete (Maybe Text)
pdtdUploadType
= lens _pdtdUploadType
(\ s a -> s{_pdtdUploadType = a})
pdtdName :: Lens' ProjectsDeidentifyTemplatesDelete Text
pdtdName = lens _pdtdName (\ s a -> s{_pdtdName = a})
pdtdCallback :: Lens' ProjectsDeidentifyTemplatesDelete (Maybe Text)
pdtdCallback
= lens _pdtdCallback (\ s a -> s{_pdtdCallback = a})
instance GoogleRequest
ProjectsDeidentifyTemplatesDelete where
type Rs ProjectsDeidentifyTemplatesDelete =
GoogleProtobufEmpty
type Scopes ProjectsDeidentifyTemplatesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsDeidentifyTemplatesDelete'{..}
= go _pdtdName _pdtdXgafv _pdtdUploadProtocol
_pdtdAccessToken
_pdtdUploadType
_pdtdCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy ProjectsDeidentifyTemplatesDeleteResource)
mempty