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