{-# 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.MobileApps.Get
(
MobileAppsGetResource
, mobileAppsGet
, MobileAppsGet
, magProFileId
, magId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type MobileAppsGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"mobileApps" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] MobileApp
data MobileAppsGet = MobileAppsGet'
{ _magProFileId :: !(Textual Int64)
, _magId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
mobileAppsGet
:: Int64
-> Text
-> MobileAppsGet
mobileAppsGet pMagProFileId_ pMagId_ =
MobileAppsGet'
{ _magProFileId = _Coerce # pMagProFileId_
, _magId = pMagId_
}
magProFileId :: Lens' MobileAppsGet Int64
magProFileId
= lens _magProFileId (\ s a -> s{_magProFileId = a})
. _Coerce
magId :: Lens' MobileAppsGet Text
magId = lens _magId (\ s a -> s{_magId = a})
instance GoogleRequest MobileAppsGet where
type Rs MobileAppsGet = MobileApp
type Scopes MobileAppsGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient MobileAppsGet'{..}
= go _magProFileId _magId (Just AltJSON)
dFAReportingService
where go
= buildClient (Proxy :: Proxy MobileAppsGetResource)
mempty