{-# 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.List
(
MobileCarriersListResource
, mobileCarriersList
, MobileCarriersList
, mclProFileId
) where
import Network.Google.DFAReporting.Types
import Network.Google.Prelude
type MobileCarriersListResource =
"dfareporting" :>
"v3.2" :>
"userprofiles" :>
Capture "profileId" (Textual Int64) :>
"mobileCarriers" :>
QueryParam "alt" AltJSON :>
Get '[JSON] MobileCarriersListResponse
newtype MobileCarriersList = MobileCarriersList'
{ _mclProFileId :: Textual Int64
} deriving (Eq,Show,Data,Typeable,Generic)
mobileCarriersList
:: Int64
-> MobileCarriersList
mobileCarriersList pMclProFileId_ =
MobileCarriersList'
{ _mclProFileId = _Coerce # pMclProFileId_
}
mclProFileId :: Lens' MobileCarriersList Int64
mclProFileId
= lens _mclProFileId (\ s a -> s{_mclProFileId = a})
. _Coerce
instance GoogleRequest MobileCarriersList where
type Rs MobileCarriersList =
MobileCarriersListResponse
type Scopes MobileCarriersList =
'["https://www.googleapis.com/auth/dfatrafficking"]
requestClient MobileCarriersList'{..}
= go _mclProFileId (Just AltJSON) dFAReportingService
where go
= buildClient
(Proxy :: Proxy MobileCarriersListResource)
mempty