{-# 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.Organizations.DeidentifyTemplates.List
(
OrganizationsDeidentifyTemplatesListResource
, organizationsDeidentifyTemplatesList
, OrganizationsDeidentifyTemplatesList
, odtlParent
, odtlXgafv
, odtlUploadProtocol
, odtlOrderBy
, odtlAccessToken
, odtlUploadType
, odtlPageToken
, odtlPageSize
, odtlCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsDeidentifyTemplatesListResource =
"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 OrganizationsDeidentifyTemplatesList = OrganizationsDeidentifyTemplatesList'
{ _odtlParent :: !Text
, _odtlXgafv :: !(Maybe Xgafv)
, _odtlUploadProtocol :: !(Maybe Text)
, _odtlOrderBy :: !(Maybe Text)
, _odtlAccessToken :: !(Maybe Text)
, _odtlUploadType :: !(Maybe Text)
, _odtlPageToken :: !(Maybe Text)
, _odtlPageSize :: !(Maybe (Textual Int32))
, _odtlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsDeidentifyTemplatesList
:: Text
-> OrganizationsDeidentifyTemplatesList
organizationsDeidentifyTemplatesList pOdtlParent_ =
OrganizationsDeidentifyTemplatesList'
{ _odtlParent = pOdtlParent_
, _odtlXgafv = Nothing
, _odtlUploadProtocol = Nothing
, _odtlOrderBy = Nothing
, _odtlAccessToken = Nothing
, _odtlUploadType = Nothing
, _odtlPageToken = Nothing
, _odtlPageSize = Nothing
, _odtlCallback = Nothing
}
odtlParent :: Lens' OrganizationsDeidentifyTemplatesList Text
odtlParent
= lens _odtlParent (\ s a -> s{_odtlParent = a})
odtlXgafv :: Lens' OrganizationsDeidentifyTemplatesList (Maybe Xgafv)
odtlXgafv
= lens _odtlXgafv (\ s a -> s{_odtlXgafv = a})
odtlUploadProtocol :: Lens' OrganizationsDeidentifyTemplatesList (Maybe Text)
odtlUploadProtocol
= lens _odtlUploadProtocol
(\ s a -> s{_odtlUploadProtocol = a})
odtlOrderBy :: Lens' OrganizationsDeidentifyTemplatesList (Maybe Text)
odtlOrderBy
= lens _odtlOrderBy (\ s a -> s{_odtlOrderBy = a})
odtlAccessToken :: Lens' OrganizationsDeidentifyTemplatesList (Maybe Text)
odtlAccessToken
= lens _odtlAccessToken
(\ s a -> s{_odtlAccessToken = a})
odtlUploadType :: Lens' OrganizationsDeidentifyTemplatesList (Maybe Text)
odtlUploadType
= lens _odtlUploadType
(\ s a -> s{_odtlUploadType = a})
odtlPageToken :: Lens' OrganizationsDeidentifyTemplatesList (Maybe Text)
odtlPageToken
= lens _odtlPageToken
(\ s a -> s{_odtlPageToken = a})
odtlPageSize :: Lens' OrganizationsDeidentifyTemplatesList (Maybe Int32)
odtlPageSize
= lens _odtlPageSize (\ s a -> s{_odtlPageSize = a})
. mapping _Coerce
odtlCallback :: Lens' OrganizationsDeidentifyTemplatesList (Maybe Text)
odtlCallback
= lens _odtlCallback (\ s a -> s{_odtlCallback = a})
instance GoogleRequest
OrganizationsDeidentifyTemplatesList where
type Rs OrganizationsDeidentifyTemplatesList =
GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
type Scopes OrganizationsDeidentifyTemplatesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
OrganizationsDeidentifyTemplatesList'{..}
= go _odtlParent _odtlXgafv _odtlUploadProtocol
_odtlOrderBy
_odtlAccessToken
_odtlUploadType
_odtlPageToken
_odtlPageSize
_odtlCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsDeidentifyTemplatesListResource)
mempty