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