{-# 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.StoredInfoTypes.Delete
(
ProjectsStoredInfoTypesDeleteResource
, projectsStoredInfoTypesDelete
, ProjectsStoredInfoTypesDelete
, psitdXgafv
, psitdUploadProtocol
, psitdAccessToken
, psitdUploadType
, psitdName
, psitdCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsStoredInfoTypesDeleteResource =
"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 ProjectsStoredInfoTypesDelete = ProjectsStoredInfoTypesDelete'
{ _psitdXgafv :: !(Maybe Xgafv)
, _psitdUploadProtocol :: !(Maybe Text)
, _psitdAccessToken :: !(Maybe Text)
, _psitdUploadType :: !(Maybe Text)
, _psitdName :: !Text
, _psitdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsStoredInfoTypesDelete
:: Text
-> ProjectsStoredInfoTypesDelete
projectsStoredInfoTypesDelete pPsitdName_ =
ProjectsStoredInfoTypesDelete'
{ _psitdXgafv = Nothing
, _psitdUploadProtocol = Nothing
, _psitdAccessToken = Nothing
, _psitdUploadType = Nothing
, _psitdName = pPsitdName_
, _psitdCallback = Nothing
}
psitdXgafv :: Lens' ProjectsStoredInfoTypesDelete (Maybe Xgafv)
psitdXgafv
= lens _psitdXgafv (\ s a -> s{_psitdXgafv = a})
psitdUploadProtocol :: Lens' ProjectsStoredInfoTypesDelete (Maybe Text)
psitdUploadProtocol
= lens _psitdUploadProtocol
(\ s a -> s{_psitdUploadProtocol = a})
psitdAccessToken :: Lens' ProjectsStoredInfoTypesDelete (Maybe Text)
psitdAccessToken
= lens _psitdAccessToken
(\ s a -> s{_psitdAccessToken = a})
psitdUploadType :: Lens' ProjectsStoredInfoTypesDelete (Maybe Text)
psitdUploadType
= lens _psitdUploadType
(\ s a -> s{_psitdUploadType = a})
psitdName :: Lens' ProjectsStoredInfoTypesDelete Text
psitdName
= lens _psitdName (\ s a -> s{_psitdName = a})
psitdCallback :: Lens' ProjectsStoredInfoTypesDelete (Maybe Text)
psitdCallback
= lens _psitdCallback
(\ s a -> s{_psitdCallback = a})
instance GoogleRequest ProjectsStoredInfoTypesDelete
where
type Rs ProjectsStoredInfoTypesDelete =
GoogleProtobufEmpty
type Scopes ProjectsStoredInfoTypesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsStoredInfoTypesDelete'{..}
= go _psitdName _psitdXgafv _psitdUploadProtocol
_psitdAccessToken
_psitdUploadType
_psitdCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy ProjectsStoredInfoTypesDeleteResource)
mempty