{-# 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.DFAReporting.AccountUserProFiles.Get
(
AccountUserProFilesGetResource
, accountUserProFilesGet
, AccountUserProFilesGet
, aupfgProFileId
, aupfgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type AccountUserProFilesGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"accountUserProfiles" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :>
Get '[JSON] AccountUserProFile
data AccountUserProFilesGet = AccountUserProFilesGet'
{ _aupfgProFileId :: !(Textual Int64)
, _aupfgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
accountUserProFilesGet
:: Int64
-> Int64
-> AccountUserProFilesGet
accountUserProFilesGet pAupfgProFileId_ pAupfgId_ =
AccountUserProFilesGet'
{ _aupfgProFileId = _Coerce # pAupfgProFileId_
, _aupfgId = _Coerce # pAupfgId_
}
aupfgProFileId :: Lens' AccountUserProFilesGet Int64
aupfgProFileId
= lens _aupfgProFileId
(\ s a -> s{_aupfgProFileId = a})
. _Coerce
aupfgId :: Lens' AccountUserProFilesGet Int64
aupfgId
= lens _aupfgId (\ s a -> s{_aupfgId = a}) . _Coerce
instance GoogleRequest AccountUserProFilesGet where
type Rs AccountUserProFilesGet = AccountUserProFile
type Scopes AccountUserProFilesGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient AccountUserProFilesGet'{..}
= go _aupfgProFileId _aupfgId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy AccountUserProFilesGetResource)
mempty