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