{-# 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.Get
(
ProjectsStoredInfoTypesGetResource
, projectsStoredInfoTypesGet
, ProjectsStoredInfoTypesGet
, psitgXgafv
, psitgUploadProtocol
, psitgAccessToken
, psitgUploadType
, psitgName
, psitgCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type ProjectsStoredInfoTypesGetResource =
"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] GooglePrivacyDlpV2StoredInfoType
data ProjectsStoredInfoTypesGet = ProjectsStoredInfoTypesGet'
{ _psitgXgafv :: !(Maybe Xgafv)
, _psitgUploadProtocol :: !(Maybe Text)
, _psitgAccessToken :: !(Maybe Text)
, _psitgUploadType :: !(Maybe Text)
, _psitgName :: !Text
, _psitgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsStoredInfoTypesGet
:: Text
-> ProjectsStoredInfoTypesGet
projectsStoredInfoTypesGet pPsitgName_ =
ProjectsStoredInfoTypesGet'
{ _psitgXgafv = Nothing
, _psitgUploadProtocol = Nothing
, _psitgAccessToken = Nothing
, _psitgUploadType = Nothing
, _psitgName = pPsitgName_
, _psitgCallback = Nothing
}
psitgXgafv :: Lens' ProjectsStoredInfoTypesGet (Maybe Xgafv)
psitgXgafv
= lens _psitgXgafv (\ s a -> s{_psitgXgafv = a})
psitgUploadProtocol :: Lens' ProjectsStoredInfoTypesGet (Maybe Text)
psitgUploadProtocol
= lens _psitgUploadProtocol
(\ s a -> s{_psitgUploadProtocol = a})
psitgAccessToken :: Lens' ProjectsStoredInfoTypesGet (Maybe Text)
psitgAccessToken
= lens _psitgAccessToken
(\ s a -> s{_psitgAccessToken = a})
psitgUploadType :: Lens' ProjectsStoredInfoTypesGet (Maybe Text)
psitgUploadType
= lens _psitgUploadType
(\ s a -> s{_psitgUploadType = a})
psitgName :: Lens' ProjectsStoredInfoTypesGet Text
psitgName
= lens _psitgName (\ s a -> s{_psitgName = a})
psitgCallback :: Lens' ProjectsStoredInfoTypesGet (Maybe Text)
psitgCallback
= lens _psitgCallback
(\ s a -> s{_psitgCallback = a})
instance GoogleRequest ProjectsStoredInfoTypesGet
where
type Rs ProjectsStoredInfoTypesGet =
GooglePrivacyDlpV2StoredInfoType
type Scopes ProjectsStoredInfoTypesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsStoredInfoTypesGet'{..}
= go _psitgName _psitgXgafv _psitgUploadProtocol
_psitgAccessToken
_psitgUploadType
_psitgCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy :: Proxy ProjectsStoredInfoTypesGetResource)
mempty