{-# 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.ManagedConfigurationsforDevice.List
(
ManagedConfigurationsforDeviceListResource
, managedConfigurationsforDeviceList
, ManagedConfigurationsforDeviceList
, mcdlEnterpriseId
, mcdlUserId
, mcdlDeviceId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ManagedConfigurationsforDeviceListResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"devices" :>
Capture "deviceId" Text :>
"managedConfigurationsForDevice" :>
QueryParam "alt" AltJSON :>
Get '[JSON]
ManagedConfigurationsForDeviceListResponse
data ManagedConfigurationsforDeviceList = ManagedConfigurationsforDeviceList'
{ _mcdlEnterpriseId :: !Text
, _mcdlUserId :: !Text
, _mcdlDeviceId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managedConfigurationsforDeviceList
:: Text
-> Text
-> Text
-> ManagedConfigurationsforDeviceList
managedConfigurationsforDeviceList pMcdlEnterpriseId_ pMcdlUserId_ pMcdlDeviceId_ =
ManagedConfigurationsforDeviceList'
{ _mcdlEnterpriseId = pMcdlEnterpriseId_
, _mcdlUserId = pMcdlUserId_
, _mcdlDeviceId = pMcdlDeviceId_
}
mcdlEnterpriseId :: Lens' ManagedConfigurationsforDeviceList Text
mcdlEnterpriseId
= lens _mcdlEnterpriseId
(\ s a -> s{_mcdlEnterpriseId = a})
mcdlUserId :: Lens' ManagedConfigurationsforDeviceList Text
mcdlUserId
= lens _mcdlUserId (\ s a -> s{_mcdlUserId = a})
mcdlDeviceId :: Lens' ManagedConfigurationsforDeviceList Text
mcdlDeviceId
= lens _mcdlDeviceId (\ s a -> s{_mcdlDeviceId = a})
instance GoogleRequest
ManagedConfigurationsforDeviceList where
type Rs ManagedConfigurationsforDeviceList =
ManagedConfigurationsForDeviceListResponse
type Scopes ManagedConfigurationsforDeviceList =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ManagedConfigurationsforDeviceList'{..}
= go _mcdlEnterpriseId _mcdlUserId _mcdlDeviceId
(Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy ManagedConfigurationsforDeviceListResource)
mempty