{-# 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.Content.Reidentify
(
ProjectsContentReidentifyResource
, projectsContentReidentify
, ProjectsContentReidentify
, pcrParent
, pcrXgafv
, pcrUploadProtocol
, pcrAccessToken
, pcrUploadType
, pcrPayload
, pcrCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsContentReidentifyResource =
"v2" :>
Capture "parent" Text :>
"content:reidentify" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
GooglePrivacyDlpV2ReidentifyContentRequest
:>
Post '[JSON]
GooglePrivacyDlpV2ReidentifyContentResponse
data ProjectsContentReidentify = ProjectsContentReidentify'
{ _pcrParent :: !Text
, _pcrXgafv :: !(Maybe Xgafv)
, _pcrUploadProtocol :: !(Maybe Text)
, _pcrAccessToken :: !(Maybe Text)
, _pcrUploadType :: !(Maybe Text)
, _pcrPayload :: !GooglePrivacyDlpV2ReidentifyContentRequest
, _pcrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsContentReidentify
:: Text
-> GooglePrivacyDlpV2ReidentifyContentRequest
-> ProjectsContentReidentify
projectsContentReidentify pPcrParent_ pPcrPayload_ =
ProjectsContentReidentify'
{ _pcrParent = pPcrParent_
, _pcrXgafv = Nothing
, _pcrUploadProtocol = Nothing
, _pcrAccessToken = Nothing
, _pcrUploadType = Nothing
, _pcrPayload = pPcrPayload_
, _pcrCallback = Nothing
}
pcrParent :: Lens' ProjectsContentReidentify Text
pcrParent
= lens _pcrParent (\ s a -> s{_pcrParent = a})
pcrXgafv :: Lens' ProjectsContentReidentify (Maybe Xgafv)
pcrXgafv = lens _pcrXgafv (\ s a -> s{_pcrXgafv = a})
pcrUploadProtocol :: Lens' ProjectsContentReidentify (Maybe Text)
pcrUploadProtocol
= lens _pcrUploadProtocol
(\ s a -> s{_pcrUploadProtocol = a})
pcrAccessToken :: Lens' ProjectsContentReidentify (Maybe Text)
pcrAccessToken
= lens _pcrAccessToken
(\ s a -> s{_pcrAccessToken = a})
pcrUploadType :: Lens' ProjectsContentReidentify (Maybe Text)
pcrUploadType
= lens _pcrUploadType
(\ s a -> s{_pcrUploadType = a})
pcrPayload :: Lens' ProjectsContentReidentify GooglePrivacyDlpV2ReidentifyContentRequest
pcrPayload
= lens _pcrPayload (\ s a -> s{_pcrPayload = a})
pcrCallback :: Lens' ProjectsContentReidentify (Maybe Text)
pcrCallback
= lens _pcrCallback (\ s a -> s{_pcrCallback = a})
instance GoogleRequest ProjectsContentReidentify
where
type Rs ProjectsContentReidentify =
GooglePrivacyDlpV2ReidentifyContentResponse
type Scopes ProjectsContentReidentify =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsContentReidentify'{..}
= go _pcrParent _pcrXgafv _pcrUploadProtocol
_pcrAccessToken
_pcrUploadType
_pcrCallback
(Just AltJSON)
_pcrPayload
dLPService
where go
= buildClient
(Proxy :: Proxy ProjectsContentReidentifyResource)
mempty