{-# 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.DlpJobs.Delete
(
ProjectsDlpJobsDeleteResource
, projectsDlpJobsDelete
, ProjectsDlpJobsDelete
, pdjdXgafv
, pdjdUploadProtocol
, pdjdAccessToken
, pdjdUploadType
, pdjdName
, pdjdCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsDlpJobsDeleteResource =
"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 ProjectsDlpJobsDelete = ProjectsDlpJobsDelete'
{ _pdjdXgafv :: !(Maybe Xgafv)
, _pdjdUploadProtocol :: !(Maybe Text)
, _pdjdAccessToken :: !(Maybe Text)
, _pdjdUploadType :: !(Maybe Text)
, _pdjdName :: !Text
, _pdjdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDlpJobsDelete
:: Text
-> ProjectsDlpJobsDelete
projectsDlpJobsDelete pPdjdName_ =
ProjectsDlpJobsDelete'
{ _pdjdXgafv = Nothing
, _pdjdUploadProtocol = Nothing
, _pdjdAccessToken = Nothing
, _pdjdUploadType = Nothing
, _pdjdName = pPdjdName_
, _pdjdCallback = Nothing
}
pdjdXgafv :: Lens' ProjectsDlpJobsDelete (Maybe Xgafv)
pdjdXgafv
= lens _pdjdXgafv (\ s a -> s{_pdjdXgafv = a})
pdjdUploadProtocol :: Lens' ProjectsDlpJobsDelete (Maybe Text)
pdjdUploadProtocol
= lens _pdjdUploadProtocol
(\ s a -> s{_pdjdUploadProtocol = a})
pdjdAccessToken :: Lens' ProjectsDlpJobsDelete (Maybe Text)
pdjdAccessToken
= lens _pdjdAccessToken
(\ s a -> s{_pdjdAccessToken = a})
pdjdUploadType :: Lens' ProjectsDlpJobsDelete (Maybe Text)
pdjdUploadType
= lens _pdjdUploadType
(\ s a -> s{_pdjdUploadType = a})
pdjdName :: Lens' ProjectsDlpJobsDelete Text
pdjdName = lens _pdjdName (\ s a -> s{_pdjdName = a})
pdjdCallback :: Lens' ProjectsDlpJobsDelete (Maybe Text)
pdjdCallback
= lens _pdjdCallback (\ s a -> s{_pdjdCallback = a})
instance GoogleRequest ProjectsDlpJobsDelete where
type Rs ProjectsDlpJobsDelete = GoogleProtobufEmpty
type Scopes ProjectsDlpJobsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsDlpJobsDelete'{..}
= go _pdjdName _pdjdXgafv _pdjdUploadProtocol
_pdjdAccessToken
_pdjdUploadType
_pdjdCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy :: Proxy ProjectsDlpJobsDeleteResource)
mempty