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