{-# 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.StoredInfoTypes.Patch
(
ProjectsStoredInfoTypesPatchResource
, projectsStoredInfoTypesPatch
, ProjectsStoredInfoTypesPatch
, psitpXgafv
, psitpUploadProtocol
, psitpAccessToken
, psitpUploadType
, psitpPayload
, psitpName
, psitpCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsStoredInfoTypesPatchResource =
"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]
GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
:> Patch '[JSON] GooglePrivacyDlpV2StoredInfoType
data ProjectsStoredInfoTypesPatch = ProjectsStoredInfoTypesPatch'
{ _psitpXgafv :: !(Maybe Xgafv)
, _psitpUploadProtocol :: !(Maybe Text)
, _psitpAccessToken :: !(Maybe Text)
, _psitpUploadType :: !(Maybe Text)
, _psitpPayload :: !GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
, _psitpName :: !Text
, _psitpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsStoredInfoTypesPatch
:: GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
-> Text
-> ProjectsStoredInfoTypesPatch
projectsStoredInfoTypesPatch pPsitpPayload_ pPsitpName_ =
ProjectsStoredInfoTypesPatch'
{ _psitpXgafv = Nothing
, _psitpUploadProtocol = Nothing
, _psitpAccessToken = Nothing
, _psitpUploadType = Nothing
, _psitpPayload = pPsitpPayload_
, _psitpName = pPsitpName_
, _psitpCallback = Nothing
}
psitpXgafv :: Lens' ProjectsStoredInfoTypesPatch (Maybe Xgafv)
psitpXgafv
= lens _psitpXgafv (\ s a -> s{_psitpXgafv = a})
psitpUploadProtocol :: Lens' ProjectsStoredInfoTypesPatch (Maybe Text)
psitpUploadProtocol
= lens _psitpUploadProtocol
(\ s a -> s{_psitpUploadProtocol = a})
psitpAccessToken :: Lens' ProjectsStoredInfoTypesPatch (Maybe Text)
psitpAccessToken
= lens _psitpAccessToken
(\ s a -> s{_psitpAccessToken = a})
psitpUploadType :: Lens' ProjectsStoredInfoTypesPatch (Maybe Text)
psitpUploadType
= lens _psitpUploadType
(\ s a -> s{_psitpUploadType = a})
psitpPayload :: Lens' ProjectsStoredInfoTypesPatch GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
psitpPayload
= lens _psitpPayload (\ s a -> s{_psitpPayload = a})
psitpName :: Lens' ProjectsStoredInfoTypesPatch Text
psitpName
= lens _psitpName (\ s a -> s{_psitpName = a})
psitpCallback :: Lens' ProjectsStoredInfoTypesPatch (Maybe Text)
psitpCallback
= lens _psitpCallback
(\ s a -> s{_psitpCallback = a})
instance GoogleRequest ProjectsStoredInfoTypesPatch
where
type Rs ProjectsStoredInfoTypesPatch =
GooglePrivacyDlpV2StoredInfoType
type Scopes ProjectsStoredInfoTypesPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsStoredInfoTypesPatch'{..}
= go _psitpName _psitpXgafv _psitpUploadProtocol
_psitpAccessToken
_psitpUploadType
_psitpCallback
(Just AltJSON)
_psitpPayload
dLPService
where go
= buildClient
(Proxy :: Proxy ProjectsStoredInfoTypesPatchResource)
mempty