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