{-# 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.MobileCarriers.Get
(
MobileCarriersGetResource
, mobileCarriersGet
, MobileCarriersGet
, mcgProFileId
, mcgId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type MobileCarriersGetResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"mobileCarriers" :>
Capture "id" (Textual Int64) :>
QueryParam "alt" AltJSON :> Get '[JSON] MobileCarrier
data MobileCarriersGet = MobileCarriersGet'
{ _mcgProFileId :: !(Textual Int64)
, _mcgId :: !(Textual Int64)
} deriving (Eq,Show,Data,Typeable,Generic)
mobileCarriersGet
:: Int64
-> Int64
-> MobileCarriersGet
mobileCarriersGet pMcgProFileId_ pMcgId_ =
MobileCarriersGet'
{ _mcgProFileId = _Coerce # pMcgProFileId_
, _mcgId = _Coerce # pMcgId_
}
mcgProFileId :: Lens' MobileCarriersGet Int64
mcgProFileId
= lens _mcgProFileId (\ s a -> s{_mcgProFileId = a})
. _Coerce
mcgId :: Lens' MobileCarriersGet Int64
mcgId
= lens _mcgId (\ s a -> s{_mcgId = a}) . _Coerce
instance GoogleRequest MobileCarriersGet where
type Rs MobileCarriersGet = MobileCarrier
type Scopes MobileCarriersGet =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient MobileCarriersGet'{..}
= go _mcgProFileId _mcgId (Just AltJSON)
dFAReportingService
where go
= buildClient
(Proxy :: Proxy MobileCarriersGetResource)
mempty