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