{-# 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.InspectTemplates.Delete
(
OrganizationsInspectTemplatesDeleteResource
, organizationsInspectTemplatesDelete
, OrganizationsInspectTemplatesDelete
, oitdXgafv
, oitdUploadProtocol
, oitdAccessToken
, oitdUploadType
, oitdName
, oitdCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsInspectTemplatesDeleteResource =
"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 OrganizationsInspectTemplatesDelete = OrganizationsInspectTemplatesDelete'
{ _oitdXgafv :: !(Maybe Xgafv)
, _oitdUploadProtocol :: !(Maybe Text)
, _oitdAccessToken :: !(Maybe Text)
, _oitdUploadType :: !(Maybe Text)
, _oitdName :: !Text
, _oitdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsInspectTemplatesDelete
:: Text
-> OrganizationsInspectTemplatesDelete
organizationsInspectTemplatesDelete pOitdName_ =
OrganizationsInspectTemplatesDelete'
{ _oitdXgafv = Nothing
, _oitdUploadProtocol = Nothing
, _oitdAccessToken = Nothing
, _oitdUploadType = Nothing
, _oitdName = pOitdName_
, _oitdCallback = Nothing
}
oitdXgafv :: Lens' OrganizationsInspectTemplatesDelete (Maybe Xgafv)
oitdXgafv
= lens _oitdXgafv (\ s a -> s{_oitdXgafv = a})
oitdUploadProtocol :: Lens' OrganizationsInspectTemplatesDelete (Maybe Text)
oitdUploadProtocol
= lens _oitdUploadProtocol
(\ s a -> s{_oitdUploadProtocol = a})
oitdAccessToken :: Lens' OrganizationsInspectTemplatesDelete (Maybe Text)
oitdAccessToken
= lens _oitdAccessToken
(\ s a -> s{_oitdAccessToken = a})
oitdUploadType :: Lens' OrganizationsInspectTemplatesDelete (Maybe Text)
oitdUploadType
= lens _oitdUploadType
(\ s a -> s{_oitdUploadType = a})
oitdName :: Lens' OrganizationsInspectTemplatesDelete Text
oitdName = lens _oitdName (\ s a -> s{_oitdName = a})
oitdCallback :: Lens' OrganizationsInspectTemplatesDelete (Maybe Text)
oitdCallback
= lens _oitdCallback (\ s a -> s{_oitdCallback = a})
instance GoogleRequest
OrganizationsInspectTemplatesDelete where
type Rs OrganizationsInspectTemplatesDelete =
GoogleProtobufEmpty
type Scopes OrganizationsInspectTemplatesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
OrganizationsInspectTemplatesDelete'{..}
= go _oitdName _oitdXgafv _oitdUploadProtocol
_oitdAccessToken
_oitdUploadType
_oitdCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsInspectTemplatesDeleteResource)
mempty