{-# 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.Get
(
OrganizationsDeidentifyTemplatesGetResource
, organizationsDeidentifyTemplatesGet
, OrganizationsDeidentifyTemplatesGet
, odtgXgafv
, odtgUploadProtocol
, odtgAccessToken
, odtgUploadType
, odtgName
, odtgCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsDeidentifyTemplatesGetResource =
"v2" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GooglePrivacyDlpV2DeidentifyTemplate
data OrganizationsDeidentifyTemplatesGet = OrganizationsDeidentifyTemplatesGet'
{ _odtgXgafv :: !(Maybe Xgafv)
, _odtgUploadProtocol :: !(Maybe Text)
, _odtgAccessToken :: !(Maybe Text)
, _odtgUploadType :: !(Maybe Text)
, _odtgName :: !Text
, _odtgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsDeidentifyTemplatesGet
:: Text
-> OrganizationsDeidentifyTemplatesGet
organizationsDeidentifyTemplatesGet pOdtgName_ =
OrganizationsDeidentifyTemplatesGet'
{ _odtgXgafv = Nothing
, _odtgUploadProtocol = Nothing
, _odtgAccessToken = Nothing
, _odtgUploadType = Nothing
, _odtgName = pOdtgName_
, _odtgCallback = Nothing
}
odtgXgafv :: Lens' OrganizationsDeidentifyTemplatesGet (Maybe Xgafv)
odtgXgafv
= lens _odtgXgafv (\ s a -> s{_odtgXgafv = a})
odtgUploadProtocol :: Lens' OrganizationsDeidentifyTemplatesGet (Maybe Text)
odtgUploadProtocol
= lens _odtgUploadProtocol
(\ s a -> s{_odtgUploadProtocol = a})
odtgAccessToken :: Lens' OrganizationsDeidentifyTemplatesGet (Maybe Text)
odtgAccessToken
= lens _odtgAccessToken
(\ s a -> s{_odtgAccessToken = a})
odtgUploadType :: Lens' OrganizationsDeidentifyTemplatesGet (Maybe Text)
odtgUploadType
= lens _odtgUploadType
(\ s a -> s{_odtgUploadType = a})
odtgName :: Lens' OrganizationsDeidentifyTemplatesGet Text
odtgName = lens _odtgName (\ s a -> s{_odtgName = a})
odtgCallback :: Lens' OrganizationsDeidentifyTemplatesGet (Maybe Text)
odtgCallback
= lens _odtgCallback (\ s a -> s{_odtgCallback = a})
instance GoogleRequest
OrganizationsDeidentifyTemplatesGet where
type Rs OrganizationsDeidentifyTemplatesGet =
GooglePrivacyDlpV2DeidentifyTemplate
type Scopes OrganizationsDeidentifyTemplatesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
OrganizationsDeidentifyTemplatesGet'{..}
= go _odtgName _odtgXgafv _odtgUploadProtocol
_odtgAccessToken
_odtgUploadType
_odtgCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsDeidentifyTemplatesGetResource)
mempty