{-# 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.Directory.ChromeosDevices.MoveDevicesToOu
(
ChromeosDevicesMoveDevicesToOuResource
, chromeosDevicesMoveDevicesToOu
, ChromeosDevicesMoveDevicesToOu
, cdmdtoPayload
, cdmdtoOrgUnitPath
, cdmdtoCustomerId
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type ChromeosDevicesMoveDevicesToOuResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customerId" Text :>
"devices" :>
"chromeos" :>
"moveDevicesToOu" :>
QueryParam "orgUnitPath" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ChromeOSMoveDevicesToOu :>
Post '[JSON] ()
data ChromeosDevicesMoveDevicesToOu = ChromeosDevicesMoveDevicesToOu'
{ _cdmdtoPayload :: !ChromeOSMoveDevicesToOu
, _cdmdtoOrgUnitPath :: !Text
, _cdmdtoCustomerId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
chromeosDevicesMoveDevicesToOu
:: ChromeOSMoveDevicesToOu
-> Text
-> Text
-> ChromeosDevicesMoveDevicesToOu
chromeosDevicesMoveDevicesToOu pCdmdtoPayload_ pCdmdtoOrgUnitPath_ pCdmdtoCustomerId_ =
ChromeosDevicesMoveDevicesToOu'
{ _cdmdtoPayload = pCdmdtoPayload_
, _cdmdtoOrgUnitPath = pCdmdtoOrgUnitPath_
, _cdmdtoCustomerId = pCdmdtoCustomerId_
}
cdmdtoPayload :: Lens' ChromeosDevicesMoveDevicesToOu ChromeOSMoveDevicesToOu
cdmdtoPayload
= lens _cdmdtoPayload
(\ s a -> s{_cdmdtoPayload = a})
cdmdtoOrgUnitPath :: Lens' ChromeosDevicesMoveDevicesToOu Text
cdmdtoOrgUnitPath
= lens _cdmdtoOrgUnitPath
(\ s a -> s{_cdmdtoOrgUnitPath = a})
cdmdtoCustomerId :: Lens' ChromeosDevicesMoveDevicesToOu Text
cdmdtoCustomerId
= lens _cdmdtoCustomerId
(\ s a -> s{_cdmdtoCustomerId = a})
instance GoogleRequest ChromeosDevicesMoveDevicesToOu
where
type Rs ChromeosDevicesMoveDevicesToOu = ()
type Scopes ChromeosDevicesMoveDevicesToOu =
'["https://www.googleapis.com/auth/admin.directory.device.chromeos"]
requestClient ChromeosDevicesMoveDevicesToOu'{..}
= go _cdmdtoCustomerId (Just _cdmdtoOrgUnitPath)
(Just AltJSON)
_cdmdtoPayload
directoryService
where go
= buildClient
(Proxy ::
Proxy ChromeosDevicesMoveDevicesToOuResource)
mempty