{-# 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.DeidentifyTemplates.List
(
ProjectsDeidentifyTemplatesListResource
, projectsDeidentifyTemplatesList
, ProjectsDeidentifyTemplatesList
, pdtlParent
, pdtlXgafv
, pdtlUploadProtocol
, pdtlOrderBy
, pdtlAccessToken
, pdtlUploadType
, pdtlPageToken
, pdtlPageSize
, pdtlCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsDeidentifyTemplatesListResource =
"v2" :>
Capture "parent" Text :>
"deidentifyTemplates" :>
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]
GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
data ProjectsDeidentifyTemplatesList = ProjectsDeidentifyTemplatesList'
{ _pdtlParent :: !Text
, _pdtlXgafv :: !(Maybe Xgafv)
, _pdtlUploadProtocol :: !(Maybe Text)
, _pdtlOrderBy :: !(Maybe Text)
, _pdtlAccessToken :: !(Maybe Text)
, _pdtlUploadType :: !(Maybe Text)
, _pdtlPageToken :: !(Maybe Text)
, _pdtlPageSize :: !(Maybe (Textual Int32))
, _pdtlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDeidentifyTemplatesList
:: Text
-> ProjectsDeidentifyTemplatesList
projectsDeidentifyTemplatesList pPdtlParent_ =
ProjectsDeidentifyTemplatesList'
{ _pdtlParent = pPdtlParent_
, _pdtlXgafv = Nothing
, _pdtlUploadProtocol = Nothing
, _pdtlOrderBy = Nothing
, _pdtlAccessToken = Nothing
, _pdtlUploadType = Nothing
, _pdtlPageToken = Nothing
, _pdtlPageSize = Nothing
, _pdtlCallback = Nothing
}
pdtlParent :: Lens' ProjectsDeidentifyTemplatesList Text
pdtlParent
= lens _pdtlParent (\ s a -> s{_pdtlParent = a})
pdtlXgafv :: Lens' ProjectsDeidentifyTemplatesList (Maybe Xgafv)
pdtlXgafv
= lens _pdtlXgafv (\ s a -> s{_pdtlXgafv = a})
pdtlUploadProtocol :: Lens' ProjectsDeidentifyTemplatesList (Maybe Text)
pdtlUploadProtocol
= lens _pdtlUploadProtocol
(\ s a -> s{_pdtlUploadProtocol = a})
pdtlOrderBy :: Lens' ProjectsDeidentifyTemplatesList (Maybe Text)
pdtlOrderBy
= lens _pdtlOrderBy (\ s a -> s{_pdtlOrderBy = a})
pdtlAccessToken :: Lens' ProjectsDeidentifyTemplatesList (Maybe Text)
pdtlAccessToken
= lens _pdtlAccessToken
(\ s a -> s{_pdtlAccessToken = a})
pdtlUploadType :: Lens' ProjectsDeidentifyTemplatesList (Maybe Text)
pdtlUploadType
= lens _pdtlUploadType
(\ s a -> s{_pdtlUploadType = a})
pdtlPageToken :: Lens' ProjectsDeidentifyTemplatesList (Maybe Text)
pdtlPageToken
= lens _pdtlPageToken
(\ s a -> s{_pdtlPageToken = a})
pdtlPageSize :: Lens' ProjectsDeidentifyTemplatesList (Maybe Int32)
pdtlPageSize
= lens _pdtlPageSize (\ s a -> s{_pdtlPageSize = a})
. mapping _Coerce
pdtlCallback :: Lens' ProjectsDeidentifyTemplatesList (Maybe Text)
pdtlCallback
= lens _pdtlCallback (\ s a -> s{_pdtlCallback = a})
instance GoogleRequest
ProjectsDeidentifyTemplatesList where
type Rs ProjectsDeidentifyTemplatesList =
GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
type Scopes ProjectsDeidentifyTemplatesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsDeidentifyTemplatesList'{..}
= go _pdtlParent _pdtlXgafv _pdtlUploadProtocol
_pdtlOrderBy
_pdtlAccessToken
_pdtlUploadType
_pdtlPageToken
_pdtlPageSize
_pdtlCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy ProjectsDeidentifyTemplatesListResource)
mempty