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