{-# 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.Patch
(
OrganizationsDeidentifyTemplatesPatchResource
, organizationsDeidentifyTemplatesPatch
, OrganizationsDeidentifyTemplatesPatch
, odtpXgafv
, odtpUploadProtocol
, odtpAccessToken
, odtpUploadType
, odtpPayload
, odtpName
, odtpCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsDeidentifyTemplatesPatchResource =
"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 OrganizationsDeidentifyTemplatesPatch = OrganizationsDeidentifyTemplatesPatch'
{ _odtpXgafv :: !(Maybe Xgafv)
, _odtpUploadProtocol :: !(Maybe Text)
, _odtpAccessToken :: !(Maybe Text)
, _odtpUploadType :: !(Maybe Text)
, _odtpPayload :: !GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
, _odtpName :: !Text
, _odtpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsDeidentifyTemplatesPatch
:: GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
-> Text
-> OrganizationsDeidentifyTemplatesPatch
organizationsDeidentifyTemplatesPatch pOdtpPayload_ pOdtpName_ =
OrganizationsDeidentifyTemplatesPatch'
{ _odtpXgafv = Nothing
, _odtpUploadProtocol = Nothing
, _odtpAccessToken = Nothing
, _odtpUploadType = Nothing
, _odtpPayload = pOdtpPayload_
, _odtpName = pOdtpName_
, _odtpCallback = Nothing
}
odtpXgafv :: Lens' OrganizationsDeidentifyTemplatesPatch (Maybe Xgafv)
odtpXgafv
= lens _odtpXgafv (\ s a -> s{_odtpXgafv = a})
odtpUploadProtocol :: Lens' OrganizationsDeidentifyTemplatesPatch (Maybe Text)
odtpUploadProtocol
= lens _odtpUploadProtocol
(\ s a -> s{_odtpUploadProtocol = a})
odtpAccessToken :: Lens' OrganizationsDeidentifyTemplatesPatch (Maybe Text)
odtpAccessToken
= lens _odtpAccessToken
(\ s a -> s{_odtpAccessToken = a})
odtpUploadType :: Lens' OrganizationsDeidentifyTemplatesPatch (Maybe Text)
odtpUploadType
= lens _odtpUploadType
(\ s a -> s{_odtpUploadType = a})
odtpPayload :: Lens' OrganizationsDeidentifyTemplatesPatch GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
odtpPayload
= lens _odtpPayload (\ s a -> s{_odtpPayload = a})
odtpName :: Lens' OrganizationsDeidentifyTemplatesPatch Text
odtpName = lens _odtpName (\ s a -> s{_odtpName = a})
odtpCallback :: Lens' OrganizationsDeidentifyTemplatesPatch (Maybe Text)
odtpCallback
= lens _odtpCallback (\ s a -> s{_odtpCallback = a})
instance GoogleRequest
OrganizationsDeidentifyTemplatesPatch where
type Rs OrganizationsDeidentifyTemplatesPatch =
GooglePrivacyDlpV2DeidentifyTemplate
type Scopes OrganizationsDeidentifyTemplatesPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
OrganizationsDeidentifyTemplatesPatch'{..}
= go _odtpName _odtpXgafv _odtpUploadProtocol
_odtpAccessToken
_odtpUploadType
_odtpCallback
(Just AltJSON)
_odtpPayload
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsDeidentifyTemplatesPatchResource)
mempty