{-# 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.Get
(
ManagedConfigurationsforUserGetResource
, managedConfigurationsforUserGet
, ManagedConfigurationsforUserGet
, mcugEnterpriseId
, mcugUserId
, mcugManagedConfigurationForUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ManagedConfigurationsforUserGetResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"managedConfigurationsForUser" :>
Capture "managedConfigurationForUserId" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ManagedConfiguration
data ManagedConfigurationsforUserGet = ManagedConfigurationsforUserGet'
{ _mcugEnterpriseId :: !Text
, _mcugUserId :: !Text
, _mcugManagedConfigurationForUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managedConfigurationsforUserGet
:: Text
-> Text
-> Text
-> ManagedConfigurationsforUserGet
managedConfigurationsforUserGet pMcugEnterpriseId_ pMcugUserId_ pMcugManagedConfigurationForUserId_ =
ManagedConfigurationsforUserGet'
{ _mcugEnterpriseId = pMcugEnterpriseId_
, _mcugUserId = pMcugUserId_
, _mcugManagedConfigurationForUserId = pMcugManagedConfigurationForUserId_
}
mcugEnterpriseId :: Lens' ManagedConfigurationsforUserGet Text
mcugEnterpriseId
= lens _mcugEnterpriseId
(\ s a -> s{_mcugEnterpriseId = a})
mcugUserId :: Lens' ManagedConfigurationsforUserGet Text
mcugUserId
= lens _mcugUserId (\ s a -> s{_mcugUserId = a})
mcugManagedConfigurationForUserId :: Lens' ManagedConfigurationsforUserGet Text
mcugManagedConfigurationForUserId
= lens _mcugManagedConfigurationForUserId
(\ s a -> s{_mcugManagedConfigurationForUserId = a})
instance GoogleRequest
ManagedConfigurationsforUserGet where
type Rs ManagedConfigurationsforUserGet =
ManagedConfiguration
type Scopes ManagedConfigurationsforUserGet =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ManagedConfigurationsforUserGet'{..}
= go _mcugEnterpriseId _mcugUserId
_mcugManagedConfigurationForUserId
(Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy ManagedConfigurationsforUserGetResource)
mempty