{-# 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.InspectTemplates.List
(
ProjectsInspectTemplatesListResource
, projectsInspectTemplatesList
, ProjectsInspectTemplatesList
, pitlParent
, pitlXgafv
, pitlUploadProtocol
, pitlOrderBy
, pitlAccessToken
, pitlUploadType
, pitlPageToken
, pitlPageSize
, pitlCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsInspectTemplatesListResource =
"v2" :>
Capture "parent" Text :>
"inspectTemplates" :>
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]
GooglePrivacyDlpV2ListInspectTemplatesResponse
data ProjectsInspectTemplatesList = ProjectsInspectTemplatesList'
{ _pitlParent :: !Text
, _pitlXgafv :: !(Maybe Xgafv)
, _pitlUploadProtocol :: !(Maybe Text)
, _pitlOrderBy :: !(Maybe Text)
, _pitlAccessToken :: !(Maybe Text)
, _pitlUploadType :: !(Maybe Text)
, _pitlPageToken :: !(Maybe Text)
, _pitlPageSize :: !(Maybe (Textual Int32))
, _pitlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInspectTemplatesList
:: Text
-> ProjectsInspectTemplatesList
projectsInspectTemplatesList pPitlParent_ =
ProjectsInspectTemplatesList'
{ _pitlParent = pPitlParent_
, _pitlXgafv = Nothing
, _pitlUploadProtocol = Nothing
, _pitlOrderBy = Nothing
, _pitlAccessToken = Nothing
, _pitlUploadType = Nothing
, _pitlPageToken = Nothing
, _pitlPageSize = Nothing
, _pitlCallback = Nothing
}
pitlParent :: Lens' ProjectsInspectTemplatesList Text
pitlParent
= lens _pitlParent (\ s a -> s{_pitlParent = a})
pitlXgafv :: Lens' ProjectsInspectTemplatesList (Maybe Xgafv)
pitlXgafv
= lens _pitlXgafv (\ s a -> s{_pitlXgafv = a})
pitlUploadProtocol :: Lens' ProjectsInspectTemplatesList (Maybe Text)
pitlUploadProtocol
= lens _pitlUploadProtocol
(\ s a -> s{_pitlUploadProtocol = a})
pitlOrderBy :: Lens' ProjectsInspectTemplatesList (Maybe Text)
pitlOrderBy
= lens _pitlOrderBy (\ s a -> s{_pitlOrderBy = a})
pitlAccessToken :: Lens' ProjectsInspectTemplatesList (Maybe Text)
pitlAccessToken
= lens _pitlAccessToken
(\ s a -> s{_pitlAccessToken = a})
pitlUploadType :: Lens' ProjectsInspectTemplatesList (Maybe Text)
pitlUploadType
= lens _pitlUploadType
(\ s a -> s{_pitlUploadType = a})
pitlPageToken :: Lens' ProjectsInspectTemplatesList (Maybe Text)
pitlPageToken
= lens _pitlPageToken
(\ s a -> s{_pitlPageToken = a})
pitlPageSize :: Lens' ProjectsInspectTemplatesList (Maybe Int32)
pitlPageSize
= lens _pitlPageSize (\ s a -> s{_pitlPageSize = a})
. mapping _Coerce
pitlCallback :: Lens' ProjectsInspectTemplatesList (Maybe Text)
pitlCallback
= lens _pitlCallback (\ s a -> s{_pitlCallback = a})
instance GoogleRequest ProjectsInspectTemplatesList
where
type Rs ProjectsInspectTemplatesList =
GooglePrivacyDlpV2ListInspectTemplatesResponse
type Scopes ProjectsInspectTemplatesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsInspectTemplatesList'{..}
= go _pitlParent _pitlXgafv _pitlUploadProtocol
_pitlOrderBy
_pitlAccessToken
_pitlUploadType
_pitlPageToken
_pitlPageSize
_pitlCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy :: Proxy ProjectsInspectTemplatesListResource)
mempty