{-# 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.Organizations.DeidentifyTemplates.Delete
(
OrganizationsDeidentifyTemplatesDeleteResource
, organizationsDeidentifyTemplatesDelete
, OrganizationsDeidentifyTemplatesDelete
, odtdXgafv
, odtdUploadProtocol
, odtdAccessToken
, odtdUploadType
, odtdName
, odtdCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsDeidentifyTemplatesDeleteResource =
"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 OrganizationsDeidentifyTemplatesDelete = OrganizationsDeidentifyTemplatesDelete'
{ _odtdXgafv :: !(Maybe Xgafv)
, _odtdUploadProtocol :: !(Maybe Text)
, _odtdAccessToken :: !(Maybe Text)
, _odtdUploadType :: !(Maybe Text)
, _odtdName :: !Text
, _odtdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsDeidentifyTemplatesDelete
:: Text
-> OrganizationsDeidentifyTemplatesDelete
organizationsDeidentifyTemplatesDelete pOdtdName_ =
OrganizationsDeidentifyTemplatesDelete'
{ _odtdXgafv = Nothing
, _odtdUploadProtocol = Nothing
, _odtdAccessToken = Nothing
, _odtdUploadType = Nothing
, _odtdName = pOdtdName_
, _odtdCallback = Nothing
}
odtdXgafv :: Lens' OrganizationsDeidentifyTemplatesDelete (Maybe Xgafv)
odtdXgafv
= lens _odtdXgafv (\ s a -> s{_odtdXgafv = a})
odtdUploadProtocol :: Lens' OrganizationsDeidentifyTemplatesDelete (Maybe Text)
odtdUploadProtocol
= lens _odtdUploadProtocol
(\ s a -> s{_odtdUploadProtocol = a})
odtdAccessToken :: Lens' OrganizationsDeidentifyTemplatesDelete (Maybe Text)
odtdAccessToken
= lens _odtdAccessToken
(\ s a -> s{_odtdAccessToken = a})
odtdUploadType :: Lens' OrganizationsDeidentifyTemplatesDelete (Maybe Text)
odtdUploadType
= lens _odtdUploadType
(\ s a -> s{_odtdUploadType = a})
odtdName :: Lens' OrganizationsDeidentifyTemplatesDelete Text
odtdName = lens _odtdName (\ s a -> s{_odtdName = a})
odtdCallback :: Lens' OrganizationsDeidentifyTemplatesDelete (Maybe Text)
odtdCallback
= lens _odtdCallback (\ s a -> s{_odtdCallback = a})
instance GoogleRequest
OrganizationsDeidentifyTemplatesDelete where
type Rs OrganizationsDeidentifyTemplatesDelete =
GoogleProtobufEmpty
type Scopes OrganizationsDeidentifyTemplatesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
OrganizationsDeidentifyTemplatesDelete'{..}
= go _odtdName _odtdXgafv _odtdUploadProtocol
_odtdAccessToken
_odtdUploadType
_odtdCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsDeidentifyTemplatesDeleteResource)
mempty