{-# 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.StoredInfoTypes.Patch
(
OrganizationsStoredInfoTypesPatchResource
, organizationsStoredInfoTypesPatch
, OrganizationsStoredInfoTypesPatch
, ositpXgafv
, ositpUploadProtocol
, ositpAccessToken
, ositpUploadType
, ositpPayload
, ositpName
, ositpCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsStoredInfoTypesPatchResource =
"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 OrganizationsStoredInfoTypesPatch = OrganizationsStoredInfoTypesPatch'
{ _ositpXgafv :: !(Maybe Xgafv)
, _ositpUploadProtocol :: !(Maybe Text)
, _ositpAccessToken :: !(Maybe Text)
, _ositpUploadType :: !(Maybe Text)
, _ositpPayload :: !GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
, _ositpName :: !Text
, _ositpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsStoredInfoTypesPatch
:: GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
-> Text
-> OrganizationsStoredInfoTypesPatch
organizationsStoredInfoTypesPatch pOsitpPayload_ pOsitpName_ =
OrganizationsStoredInfoTypesPatch'
{ _ositpXgafv = Nothing
, _ositpUploadProtocol = Nothing
, _ositpAccessToken = Nothing
, _ositpUploadType = Nothing
, _ositpPayload = pOsitpPayload_
, _ositpName = pOsitpName_
, _ositpCallback = Nothing
}
ositpXgafv :: Lens' OrganizationsStoredInfoTypesPatch (Maybe Xgafv)
ositpXgafv
= lens _ositpXgafv (\ s a -> s{_ositpXgafv = a})
ositpUploadProtocol :: Lens' OrganizationsStoredInfoTypesPatch (Maybe Text)
ositpUploadProtocol
= lens _ositpUploadProtocol
(\ s a -> s{_ositpUploadProtocol = a})
ositpAccessToken :: Lens' OrganizationsStoredInfoTypesPatch (Maybe Text)
ositpAccessToken
= lens _ositpAccessToken
(\ s a -> s{_ositpAccessToken = a})
ositpUploadType :: Lens' OrganizationsStoredInfoTypesPatch (Maybe Text)
ositpUploadType
= lens _ositpUploadType
(\ s a -> s{_ositpUploadType = a})
ositpPayload :: Lens' OrganizationsStoredInfoTypesPatch GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
ositpPayload
= lens _ositpPayload (\ s a -> s{_ositpPayload = a})
ositpName :: Lens' OrganizationsStoredInfoTypesPatch Text
ositpName
= lens _ositpName (\ s a -> s{_ositpName = a})
ositpCallback :: Lens' OrganizationsStoredInfoTypesPatch (Maybe Text)
ositpCallback
= lens _ositpCallback
(\ s a -> s{_ositpCallback = a})
instance GoogleRequest
OrganizationsStoredInfoTypesPatch where
type Rs OrganizationsStoredInfoTypesPatch =
GooglePrivacyDlpV2StoredInfoType
type Scopes OrganizationsStoredInfoTypesPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsStoredInfoTypesPatch'{..}
= go _ositpName _ositpXgafv _ositpUploadProtocol
_ositpAccessToken
_ositpUploadType
_ositpCallback
(Just AltJSON)
_ositpPayload
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsStoredInfoTypesPatchResource)
mempty