{-# 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.InspectTemplates.Get
(
OrganizationsInspectTemplatesGetResource
, organizationsInspectTemplatesGet
, OrganizationsInspectTemplatesGet
, oitgXgafv
, oitgUploadProtocol
, oitgAccessToken
, oitgUploadType
, oitgName
, oitgCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsInspectTemplatesGetResource =
"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] GooglePrivacyDlpV2InspectTemplate
data OrganizationsInspectTemplatesGet = OrganizationsInspectTemplatesGet'
{ _oitgXgafv :: !(Maybe Xgafv)
, _oitgUploadProtocol :: !(Maybe Text)
, _oitgAccessToken :: !(Maybe Text)
, _oitgUploadType :: !(Maybe Text)
, _oitgName :: !Text
, _oitgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsInspectTemplatesGet
:: Text
-> OrganizationsInspectTemplatesGet
organizationsInspectTemplatesGet pOitgName_ =
OrganizationsInspectTemplatesGet'
{ _oitgXgafv = Nothing
, _oitgUploadProtocol = Nothing
, _oitgAccessToken = Nothing
, _oitgUploadType = Nothing
, _oitgName = pOitgName_
, _oitgCallback = Nothing
}
oitgXgafv :: Lens' OrganizationsInspectTemplatesGet (Maybe Xgafv)
oitgXgafv
= lens _oitgXgafv (\ s a -> s{_oitgXgafv = a})
oitgUploadProtocol :: Lens' OrganizationsInspectTemplatesGet (Maybe Text)
oitgUploadProtocol
= lens _oitgUploadProtocol
(\ s a -> s{_oitgUploadProtocol = a})
oitgAccessToken :: Lens' OrganizationsInspectTemplatesGet (Maybe Text)
oitgAccessToken
= lens _oitgAccessToken
(\ s a -> s{_oitgAccessToken = a})
oitgUploadType :: Lens' OrganizationsInspectTemplatesGet (Maybe Text)
oitgUploadType
= lens _oitgUploadType
(\ s a -> s{_oitgUploadType = a})
oitgName :: Lens' OrganizationsInspectTemplatesGet Text
oitgName = lens _oitgName (\ s a -> s{_oitgName = a})
oitgCallback :: Lens' OrganizationsInspectTemplatesGet (Maybe Text)
oitgCallback
= lens _oitgCallback (\ s a -> s{_oitgCallback = a})
instance GoogleRequest
OrganizationsInspectTemplatesGet where
type Rs OrganizationsInspectTemplatesGet =
GooglePrivacyDlpV2InspectTemplate
type Scopes OrganizationsInspectTemplatesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsInspectTemplatesGet'{..}
= go _oitgName _oitgXgafv _oitgUploadProtocol
_oitgAccessToken
_oitgUploadType
_oitgCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsInspectTemplatesGetResource)
mempty