{-# 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.Patch
(
ProjectsDeidentifyTemplatesPatchResource
, projectsDeidentifyTemplatesPatch
, ProjectsDeidentifyTemplatesPatch
, pdtpXgafv
, pdtpUploadProtocol
, pdtpAccessToken
, pdtpUploadType
, pdtpPayload
, pdtpName
, pdtpCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsDeidentifyTemplatesPatchResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
:> Patch '[JSON] GooglePrivacyDlpV2DeidentifyTemplate
data ProjectsDeidentifyTemplatesPatch = ProjectsDeidentifyTemplatesPatch'
{ _pdtpXgafv :: !(Maybe Xgafv)
, _pdtpUploadProtocol :: !(Maybe Text)
, _pdtpAccessToken :: !(Maybe Text)
, _pdtpUploadType :: !(Maybe Text)
, _pdtpPayload :: !GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
, _pdtpName :: !Text
, _pdtpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDeidentifyTemplatesPatch
:: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
-> Text
-> ProjectsDeidentifyTemplatesPatch
projectsDeidentifyTemplatesPatch pPdtpPayload_ pPdtpName_ =
ProjectsDeidentifyTemplatesPatch'
{ _pdtpXgafv = Nothing
, _pdtpUploadProtocol = Nothing
, _pdtpAccessToken = Nothing
, _pdtpUploadType = Nothing
, _pdtpPayload = pPdtpPayload_
, _pdtpName = pPdtpName_
, _pdtpCallback = Nothing
}
pdtpXgafv :: Lens' ProjectsDeidentifyTemplatesPatch (Maybe Xgafv)
pdtpXgafv
= lens _pdtpXgafv (\ s a -> s{_pdtpXgafv = a})
pdtpUploadProtocol :: Lens' ProjectsDeidentifyTemplatesPatch (Maybe Text)
pdtpUploadProtocol
= lens _pdtpUploadProtocol
(\ s a -> s{_pdtpUploadProtocol = a})
pdtpAccessToken :: Lens' ProjectsDeidentifyTemplatesPatch (Maybe Text)
pdtpAccessToken
= lens _pdtpAccessToken
(\ s a -> s{_pdtpAccessToken = a})
pdtpUploadType :: Lens' ProjectsDeidentifyTemplatesPatch (Maybe Text)
pdtpUploadType
= lens _pdtpUploadType
(\ s a -> s{_pdtpUploadType = a})
pdtpPayload :: Lens' ProjectsDeidentifyTemplatesPatch GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
pdtpPayload
= lens _pdtpPayload (\ s a -> s{_pdtpPayload = a})
pdtpName :: Lens' ProjectsDeidentifyTemplatesPatch Text
pdtpName = lens _pdtpName (\ s a -> s{_pdtpName = a})
pdtpCallback :: Lens' ProjectsDeidentifyTemplatesPatch (Maybe Text)
pdtpCallback
= lens _pdtpCallback (\ s a -> s{_pdtpCallback = a})
instance GoogleRequest
ProjectsDeidentifyTemplatesPatch where
type Rs ProjectsDeidentifyTemplatesPatch =
GooglePrivacyDlpV2DeidentifyTemplate
type Scopes ProjectsDeidentifyTemplatesPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsDeidentifyTemplatesPatch'{..}
= go _pdtpName _pdtpXgafv _pdtpUploadProtocol
_pdtpAccessToken
_pdtpUploadType
_pdtpCallback
(Just AltJSON)
_pdtpPayload
dLPService
where go
= buildClient
(Proxy ::
Proxy ProjectsDeidentifyTemplatesPatchResource)
mempty