{-# 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.Update
(
ManagedConfigurationsforUserUpdateResource
, managedConfigurationsforUserUpdate
, ManagedConfigurationsforUserUpdate
, mcuuEnterpriseId
, mcuuPayload
, mcuuUserId
, mcuuManagedConfigurationForUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ManagedConfigurationsforUserUpdateResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"managedConfigurationsForUser" :>
Capture "managedConfigurationForUserId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ManagedConfiguration :>
Put '[JSON] ManagedConfiguration
data ManagedConfigurationsforUserUpdate = ManagedConfigurationsforUserUpdate'
{ _mcuuEnterpriseId :: !Text
, _mcuuPayload :: !ManagedConfiguration
, _mcuuUserId :: !Text
, _mcuuManagedConfigurationForUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managedConfigurationsforUserUpdate
:: Text
-> ManagedConfiguration
-> Text
-> Text
-> ManagedConfigurationsforUserUpdate
managedConfigurationsforUserUpdate pMcuuEnterpriseId_ pMcuuPayload_ pMcuuUserId_ pMcuuManagedConfigurationForUserId_ =
ManagedConfigurationsforUserUpdate'
{ _mcuuEnterpriseId = pMcuuEnterpriseId_
, _mcuuPayload = pMcuuPayload_
, _mcuuUserId = pMcuuUserId_
, _mcuuManagedConfigurationForUserId = pMcuuManagedConfigurationForUserId_
}
mcuuEnterpriseId :: Lens' ManagedConfigurationsforUserUpdate Text
mcuuEnterpriseId
= lens _mcuuEnterpriseId
(\ s a -> s{_mcuuEnterpriseId = a})
mcuuPayload :: Lens' ManagedConfigurationsforUserUpdate ManagedConfiguration
mcuuPayload
= lens _mcuuPayload (\ s a -> s{_mcuuPayload = a})
mcuuUserId :: Lens' ManagedConfigurationsforUserUpdate Text
mcuuUserId
= lens _mcuuUserId (\ s a -> s{_mcuuUserId = a})
mcuuManagedConfigurationForUserId :: Lens' ManagedConfigurationsforUserUpdate Text
mcuuManagedConfigurationForUserId
= lens _mcuuManagedConfigurationForUserId
(\ s a -> s{_mcuuManagedConfigurationForUserId = a})
instance GoogleRequest
ManagedConfigurationsforUserUpdate where
type Rs ManagedConfigurationsforUserUpdate =
ManagedConfiguration
type Scopes ManagedConfigurationsforUserUpdate =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ManagedConfigurationsforUserUpdate'{..}
= go _mcuuEnterpriseId _mcuuUserId
_mcuuManagedConfigurationForUserId
(Just AltJSON)
_mcuuPayload
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy ManagedConfigurationsforUserUpdateResource)
mempty