{-# 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.JobTriggers.List
(
ProjectsJobTriggersListResource
, projectsJobTriggersList
, ProjectsJobTriggersList
, pjtlParent
, pjtlXgafv
, pjtlUploadProtocol
, pjtlOrderBy
, pjtlAccessToken
, pjtlUploadType
, pjtlPageToken
, pjtlPageSize
, pjtlCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsJobTriggersListResource =
"v2" :>
Capture "parent" Text :>
"jobTriggers" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON]
GooglePrivacyDlpV2ListJobTriggersResponse
data ProjectsJobTriggersList = ProjectsJobTriggersList'
{ _pjtlParent :: !Text
, _pjtlXgafv :: !(Maybe Xgafv)
, _pjtlUploadProtocol :: !(Maybe Text)
, _pjtlOrderBy :: !(Maybe Text)
, _pjtlAccessToken :: !(Maybe Text)
, _pjtlUploadType :: !(Maybe Text)
, _pjtlPageToken :: !(Maybe Text)
, _pjtlPageSize :: !(Maybe (Textual Int32))
, _pjtlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsJobTriggersList
:: Text
-> ProjectsJobTriggersList
projectsJobTriggersList pPjtlParent_ =
ProjectsJobTriggersList'
{ _pjtlParent = pPjtlParent_
, _pjtlXgafv = Nothing
, _pjtlUploadProtocol = Nothing
, _pjtlOrderBy = Nothing
, _pjtlAccessToken = Nothing
, _pjtlUploadType = Nothing
, _pjtlPageToken = Nothing
, _pjtlPageSize = Nothing
, _pjtlCallback = Nothing
}
pjtlParent :: Lens' ProjectsJobTriggersList Text
pjtlParent
= lens _pjtlParent (\ s a -> s{_pjtlParent = a})
pjtlXgafv :: Lens' ProjectsJobTriggersList (Maybe Xgafv)
pjtlXgafv
= lens _pjtlXgafv (\ s a -> s{_pjtlXgafv = a})
pjtlUploadProtocol :: Lens' ProjectsJobTriggersList (Maybe Text)
pjtlUploadProtocol
= lens _pjtlUploadProtocol
(\ s a -> s{_pjtlUploadProtocol = a})
pjtlOrderBy :: Lens' ProjectsJobTriggersList (Maybe Text)
pjtlOrderBy
= lens _pjtlOrderBy (\ s a -> s{_pjtlOrderBy = a})
pjtlAccessToken :: Lens' ProjectsJobTriggersList (Maybe Text)
pjtlAccessToken
= lens _pjtlAccessToken
(\ s a -> s{_pjtlAccessToken = a})
pjtlUploadType :: Lens' ProjectsJobTriggersList (Maybe Text)
pjtlUploadType
= lens _pjtlUploadType
(\ s a -> s{_pjtlUploadType = a})
pjtlPageToken :: Lens' ProjectsJobTriggersList (Maybe Text)
pjtlPageToken
= lens _pjtlPageToken
(\ s a -> s{_pjtlPageToken = a})
pjtlPageSize :: Lens' ProjectsJobTriggersList (Maybe Int32)
pjtlPageSize
= lens _pjtlPageSize (\ s a -> s{_pjtlPageSize = a})
. mapping _Coerce
pjtlCallback :: Lens' ProjectsJobTriggersList (Maybe Text)
pjtlCallback
= lens _pjtlCallback (\ s a -> s{_pjtlCallback = a})
instance GoogleRequest ProjectsJobTriggersList where
type Rs ProjectsJobTriggersList =
GooglePrivacyDlpV2ListJobTriggersResponse
type Scopes ProjectsJobTriggersList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsJobTriggersList'{..}
= go _pjtlParent _pjtlXgafv _pjtlUploadProtocol
_pjtlOrderBy
_pjtlAccessToken
_pjtlUploadType
_pjtlPageToken
_pjtlPageSize
_pjtlCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy :: Proxy ProjectsJobTriggersListResource)
mempty