{-# 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.AndroidEnterprise.ManagedConfigurationsforUser.List
(
ManagedConfigurationsforUserListResource
, managedConfigurationsforUserList
, ManagedConfigurationsforUserList
, mculEnterpriseId
, mculUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ManagedConfigurationsforUserListResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"managedConfigurationsForUser" :>
QueryParam "alt" AltJSON :>
Get '[JSON] ManagedConfigurationsForUserListResponse
data ManagedConfigurationsforUserList = ManagedConfigurationsforUserList'
{ _mculEnterpriseId :: !Text
, _mculUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managedConfigurationsforUserList
:: Text
-> Text
-> ManagedConfigurationsforUserList
managedConfigurationsforUserList pMculEnterpriseId_ pMculUserId_ =
ManagedConfigurationsforUserList'
{ _mculEnterpriseId = pMculEnterpriseId_
, _mculUserId = pMculUserId_
}
mculEnterpriseId :: Lens' ManagedConfigurationsforUserList Text
mculEnterpriseId
= lens _mculEnterpriseId
(\ s a -> s{_mculEnterpriseId = a})
mculUserId :: Lens' ManagedConfigurationsforUserList Text
mculUserId
= lens _mculUserId (\ s a -> s{_mculUserId = a})
instance GoogleRequest
ManagedConfigurationsforUserList where
type Rs ManagedConfigurationsforUserList =
ManagedConfigurationsForUserListResponse
type Scopes ManagedConfigurationsforUserList =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ManagedConfigurationsforUserList'{..}
= go _mculEnterpriseId _mculUserId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy ManagedConfigurationsforUserListResource)
mempty