{-# 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.List
(
ProjectsDlpJobsListResource
, projectsDlpJobsList
, ProjectsDlpJobsList
, pdjlParent
, pdjlXgafv
, pdjlUploadProtocol
, pdjlOrderBy
, pdjlAccessToken
, pdjlUploadType
, pdjlFilter
, pdjlPageToken
, pdjlType
, pdjlPageSize
, pdjlCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsDlpJobsListResource =
"v2" :>
Capture "parent" Text :>
"dlpJobs" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "type" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON]
GooglePrivacyDlpV2ListDlpJobsResponse
data ProjectsDlpJobsList = ProjectsDlpJobsList'
{ _pdjlParent :: !Text
, _pdjlXgafv :: !(Maybe Xgafv)
, _pdjlUploadProtocol :: !(Maybe Text)
, _pdjlOrderBy :: !(Maybe Text)
, _pdjlAccessToken :: !(Maybe Text)
, _pdjlUploadType :: !(Maybe Text)
, _pdjlFilter :: !(Maybe Text)
, _pdjlPageToken :: !(Maybe Text)
, _pdjlType :: !(Maybe Text)
, _pdjlPageSize :: !(Maybe (Textual Int32))
, _pdjlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDlpJobsList
:: Text
-> ProjectsDlpJobsList
projectsDlpJobsList pPdjlParent_ =
ProjectsDlpJobsList'
{ _pdjlParent = pPdjlParent_
, _pdjlXgafv = Nothing
, _pdjlUploadProtocol = Nothing
, _pdjlOrderBy = Nothing
, _pdjlAccessToken = Nothing
, _pdjlUploadType = Nothing
, _pdjlFilter = Nothing
, _pdjlPageToken = Nothing
, _pdjlType = Nothing
, _pdjlPageSize = Nothing
, _pdjlCallback = Nothing
}
pdjlParent :: Lens' ProjectsDlpJobsList Text
pdjlParent
= lens _pdjlParent (\ s a -> s{_pdjlParent = a})
pdjlXgafv :: Lens' ProjectsDlpJobsList (Maybe Xgafv)
pdjlXgafv
= lens _pdjlXgafv (\ s a -> s{_pdjlXgafv = a})
pdjlUploadProtocol :: Lens' ProjectsDlpJobsList (Maybe Text)
pdjlUploadProtocol
= lens _pdjlUploadProtocol
(\ s a -> s{_pdjlUploadProtocol = a})
pdjlOrderBy :: Lens' ProjectsDlpJobsList (Maybe Text)
pdjlOrderBy
= lens _pdjlOrderBy (\ s a -> s{_pdjlOrderBy = a})
pdjlAccessToken :: Lens' ProjectsDlpJobsList (Maybe Text)
pdjlAccessToken
= lens _pdjlAccessToken
(\ s a -> s{_pdjlAccessToken = a})
pdjlUploadType :: Lens' ProjectsDlpJobsList (Maybe Text)
pdjlUploadType
= lens _pdjlUploadType
(\ s a -> s{_pdjlUploadType = a})
pdjlFilter :: Lens' ProjectsDlpJobsList (Maybe Text)
pdjlFilter
= lens _pdjlFilter (\ s a -> s{_pdjlFilter = a})
pdjlPageToken :: Lens' ProjectsDlpJobsList (Maybe Text)
pdjlPageToken
= lens _pdjlPageToken
(\ s a -> s{_pdjlPageToken = a})
pdjlType :: Lens' ProjectsDlpJobsList (Maybe Text)
pdjlType = lens _pdjlType (\ s a -> s{_pdjlType = a})
pdjlPageSize :: Lens' ProjectsDlpJobsList (Maybe Int32)
pdjlPageSize
= lens _pdjlPageSize (\ s a -> s{_pdjlPageSize = a})
. mapping _Coerce
pdjlCallback :: Lens' ProjectsDlpJobsList (Maybe Text)
pdjlCallback
= lens _pdjlCallback (\ s a -> s{_pdjlCallback = a})
instance GoogleRequest ProjectsDlpJobsList where
type Rs ProjectsDlpJobsList =
GooglePrivacyDlpV2ListDlpJobsResponse
type Scopes ProjectsDlpJobsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsDlpJobsList'{..}
= go _pdjlParent _pdjlXgafv _pdjlUploadProtocol
_pdjlOrderBy
_pdjlAccessToken
_pdjlUploadType
_pdjlFilter
_pdjlPageToken
_pdjlType
_pdjlPageSize
_pdjlCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy :: Proxy ProjectsDlpJobsListResource)
mempty