{-# 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.TagManager.Accounts.UserPermissions.Get
(
AccountsUserPermissionsGetResource
, accountsUserPermissionsGet
, AccountsUserPermissionsGet
, aupgPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsUserPermissionsGetResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] UserPermission
newtype AccountsUserPermissionsGet = AccountsUserPermissionsGet'
{ _aupgPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsUserPermissionsGet
:: Text
-> AccountsUserPermissionsGet
accountsUserPermissionsGet pAupgPath_ =
AccountsUserPermissionsGet'
{ _aupgPath = pAupgPath_
}
aupgPath :: Lens' AccountsUserPermissionsGet Text
aupgPath = lens _aupgPath (\ s a -> s{_aupgPath = a})
instance GoogleRequest AccountsUserPermissionsGet
where
type Rs AccountsUserPermissionsGet = UserPermission
type Scopes AccountsUserPermissionsGet =
'["https://www.googleapis.com/auth/tagmanager.manage.users"]
requestClient AccountsUserPermissionsGet'{..}
= go _aupgPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy :: Proxy AccountsUserPermissionsGetResource)
mempty