{-# 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.InspectTemplates.List
(
OrganizationsInspectTemplatesListResource
, organizationsInspectTemplatesList
, OrganizationsInspectTemplatesList
, oitlParent
, oitlXgafv
, oitlUploadProtocol
, oitlOrderBy
, oitlAccessToken
, oitlUploadType
, oitlPageToken
, oitlPageSize
, oitlCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsInspectTemplatesListResource =
"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 OrganizationsInspectTemplatesList = OrganizationsInspectTemplatesList'
{ _oitlParent :: !Text
, _oitlXgafv :: !(Maybe Xgafv)
, _oitlUploadProtocol :: !(Maybe Text)
, _oitlOrderBy :: !(Maybe Text)
, _oitlAccessToken :: !(Maybe Text)
, _oitlUploadType :: !(Maybe Text)
, _oitlPageToken :: !(Maybe Text)
, _oitlPageSize :: !(Maybe (Textual Int32))
, _oitlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsInspectTemplatesList
:: Text
-> OrganizationsInspectTemplatesList
organizationsInspectTemplatesList pOitlParent_ =
OrganizationsInspectTemplatesList'
{ _oitlParent = pOitlParent_
, _oitlXgafv = Nothing
, _oitlUploadProtocol = Nothing
, _oitlOrderBy = Nothing
, _oitlAccessToken = Nothing
, _oitlUploadType = Nothing
, _oitlPageToken = Nothing
, _oitlPageSize = Nothing
, _oitlCallback = Nothing
}
oitlParent :: Lens' OrganizationsInspectTemplatesList Text
oitlParent
= lens _oitlParent (\ s a -> s{_oitlParent = a})
oitlXgafv :: Lens' OrganizationsInspectTemplatesList (Maybe Xgafv)
oitlXgafv
= lens _oitlXgafv (\ s a -> s{_oitlXgafv = a})
oitlUploadProtocol :: Lens' OrganizationsInspectTemplatesList (Maybe Text)
oitlUploadProtocol
= lens _oitlUploadProtocol
(\ s a -> s{_oitlUploadProtocol = a})
oitlOrderBy :: Lens' OrganizationsInspectTemplatesList (Maybe Text)
oitlOrderBy
= lens _oitlOrderBy (\ s a -> s{_oitlOrderBy = a})
oitlAccessToken :: Lens' OrganizationsInspectTemplatesList (Maybe Text)
oitlAccessToken
= lens _oitlAccessToken
(\ s a -> s{_oitlAccessToken = a})
oitlUploadType :: Lens' OrganizationsInspectTemplatesList (Maybe Text)
oitlUploadType
= lens _oitlUploadType
(\ s a -> s{_oitlUploadType = a})
oitlPageToken :: Lens' OrganizationsInspectTemplatesList (Maybe Text)
oitlPageToken
= lens _oitlPageToken
(\ s a -> s{_oitlPageToken = a})
oitlPageSize :: Lens' OrganizationsInspectTemplatesList (Maybe Int32)
oitlPageSize
= lens _oitlPageSize (\ s a -> s{_oitlPageSize = a})
. mapping _Coerce
oitlCallback :: Lens' OrganizationsInspectTemplatesList (Maybe Text)
oitlCallback
= lens _oitlCallback (\ s a -> s{_oitlCallback = a})
instance GoogleRequest
OrganizationsInspectTemplatesList where
type Rs OrganizationsInspectTemplatesList =
GooglePrivacyDlpV2ListInspectTemplatesResponse
type Scopes OrganizationsInspectTemplatesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsInspectTemplatesList'{..}
= go _oitlParent _oitlXgafv _oitlUploadProtocol
_oitlOrderBy
_oitlAccessToken
_oitlUploadType
_oitlPageToken
_oitlPageSize
_oitlCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsInspectTemplatesListResource)
mempty