{-# 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.Get
(
ProjectsDlpJobsGetResource
, projectsDlpJobsGet
, ProjectsDlpJobsGet
, pdjgXgafv
, pdjgUploadProtocol
, pdjgAccessToken
, pdjgUploadType
, pdjgName
, pdjgCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsDlpJobsGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GooglePrivacyDlpV2DlpJob
data ProjectsDlpJobsGet = ProjectsDlpJobsGet'
{ _pdjgXgafv :: !(Maybe Xgafv)
, _pdjgUploadProtocol :: !(Maybe Text)
, _pdjgAccessToken :: !(Maybe Text)
, _pdjgUploadType :: !(Maybe Text)
, _pdjgName :: !Text
, _pdjgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDlpJobsGet
:: Text
-> ProjectsDlpJobsGet
projectsDlpJobsGet pPdjgName_ =
ProjectsDlpJobsGet'
{ _pdjgXgafv = Nothing
, _pdjgUploadProtocol = Nothing
, _pdjgAccessToken = Nothing
, _pdjgUploadType = Nothing
, _pdjgName = pPdjgName_
, _pdjgCallback = Nothing
}
pdjgXgafv :: Lens' ProjectsDlpJobsGet (Maybe Xgafv)
pdjgXgafv
= lens _pdjgXgafv (\ s a -> s{_pdjgXgafv = a})
pdjgUploadProtocol :: Lens' ProjectsDlpJobsGet (Maybe Text)
pdjgUploadProtocol
= lens _pdjgUploadProtocol
(\ s a -> s{_pdjgUploadProtocol = a})
pdjgAccessToken :: Lens' ProjectsDlpJobsGet (Maybe Text)
pdjgAccessToken
= lens _pdjgAccessToken
(\ s a -> s{_pdjgAccessToken = a})
pdjgUploadType :: Lens' ProjectsDlpJobsGet (Maybe Text)
pdjgUploadType
= lens _pdjgUploadType
(\ s a -> s{_pdjgUploadType = a})
pdjgName :: Lens' ProjectsDlpJobsGet Text
pdjgName = lens _pdjgName (\ s a -> s{_pdjgName = a})
pdjgCallback :: Lens' ProjectsDlpJobsGet (Maybe Text)
pdjgCallback
= lens _pdjgCallback (\ s a -> s{_pdjgCallback = a})
instance GoogleRequest ProjectsDlpJobsGet where
type Rs ProjectsDlpJobsGet = GooglePrivacyDlpV2DlpJob
type Scopes ProjectsDlpJobsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsDlpJobsGet'{..}
= go _pdjgName _pdjgXgafv _pdjgUploadProtocol
_pdjgAccessToken
_pdjgUploadType
_pdjgCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy :: Proxy ProjectsDlpJobsGetResource)
mempty