{-# 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.Get
(
OrganizationsStoredInfoTypesGetResource
, organizationsStoredInfoTypesGet
, OrganizationsStoredInfoTypesGet
, ositgXgafv
, ositgUploadProtocol
, ositgAccessToken
, ositgUploadType
, ositgName
, ositgCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsStoredInfoTypesGetResource =
"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 OrganizationsStoredInfoTypesGet = OrganizationsStoredInfoTypesGet'
{ _ositgXgafv :: !(Maybe Xgafv)
, _ositgUploadProtocol :: !(Maybe Text)
, _ositgAccessToken :: !(Maybe Text)
, _ositgUploadType :: !(Maybe Text)
, _ositgName :: !Text
, _ositgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsStoredInfoTypesGet
:: Text
-> OrganizationsStoredInfoTypesGet
organizationsStoredInfoTypesGet pOsitgName_ =
OrganizationsStoredInfoTypesGet'
{ _ositgXgafv = Nothing
, _ositgUploadProtocol = Nothing
, _ositgAccessToken = Nothing
, _ositgUploadType = Nothing
, _ositgName = pOsitgName_
, _ositgCallback = Nothing
}
ositgXgafv :: Lens' OrganizationsStoredInfoTypesGet (Maybe Xgafv)
ositgXgafv
= lens _ositgXgafv (\ s a -> s{_ositgXgafv = a})
ositgUploadProtocol :: Lens' OrganizationsStoredInfoTypesGet (Maybe Text)
ositgUploadProtocol
= lens _ositgUploadProtocol
(\ s a -> s{_ositgUploadProtocol = a})
ositgAccessToken :: Lens' OrganizationsStoredInfoTypesGet (Maybe Text)
ositgAccessToken
= lens _ositgAccessToken
(\ s a -> s{_ositgAccessToken = a})
ositgUploadType :: Lens' OrganizationsStoredInfoTypesGet (Maybe Text)
ositgUploadType
= lens _ositgUploadType
(\ s a -> s{_ositgUploadType = a})
ositgName :: Lens' OrganizationsStoredInfoTypesGet Text
ositgName
= lens _ositgName (\ s a -> s{_ositgName = a})
ositgCallback :: Lens' OrganizationsStoredInfoTypesGet (Maybe Text)
ositgCallback
= lens _ositgCallback
(\ s a -> s{_ositgCallback = a})
instance GoogleRequest
OrganizationsStoredInfoTypesGet where
type Rs OrganizationsStoredInfoTypesGet =
GooglePrivacyDlpV2StoredInfoType
type Scopes OrganizationsStoredInfoTypesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsStoredInfoTypesGet'{..}
= go _ositgName _ositgXgafv _ositgUploadProtocol
_ositgAccessToken
_ositgUploadType
_ositgCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsStoredInfoTypesGetResource)
mempty