{-# 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.List
(
ChromeosDevicesListResource
, chromeosDevicesList
, ChromeosDevicesList
, cdlOrderBy
, cdlOrgUnitPath
, cdlCustomerId
, cdlSortOrder
, cdlQuery
, cdlProjection
, cdlPageToken
, cdlMaxResults
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type ChromeosDevicesListResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customerId" Text :>
"devices" :>
"chromeos" :>
QueryParam "orderBy" ChromeosDevicesListOrderBy :>
QueryParam "orgUnitPath" Text :>
QueryParam "sortOrder" ChromeosDevicesListSortOrder
:>
QueryParam "query" Text :>
QueryParam "projection" ChromeosDevicesListProjection
:>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] ChromeOSDevices
data ChromeosDevicesList = ChromeosDevicesList'
{ _cdlOrderBy :: !(Maybe ChromeosDevicesListOrderBy)
, _cdlOrgUnitPath :: !(Maybe Text)
, _cdlCustomerId :: !Text
, _cdlSortOrder :: !(Maybe ChromeosDevicesListSortOrder)
, _cdlQuery :: !(Maybe Text)
, _cdlProjection :: !(Maybe ChromeosDevicesListProjection)
, _cdlPageToken :: !(Maybe Text)
, _cdlMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
chromeosDevicesList
:: Text
-> ChromeosDevicesList
chromeosDevicesList pCdlCustomerId_ =
ChromeosDevicesList'
{ _cdlOrderBy = Nothing
, _cdlOrgUnitPath = Nothing
, _cdlCustomerId = pCdlCustomerId_
, _cdlSortOrder = Nothing
, _cdlQuery = Nothing
, _cdlProjection = Nothing
, _cdlPageToken = Nothing
, _cdlMaxResults = Nothing
}
cdlOrderBy :: Lens' ChromeosDevicesList (Maybe ChromeosDevicesListOrderBy)
cdlOrderBy
= lens _cdlOrderBy (\ s a -> s{_cdlOrderBy = a})
cdlOrgUnitPath :: Lens' ChromeosDevicesList (Maybe Text)
cdlOrgUnitPath
= lens _cdlOrgUnitPath
(\ s a -> s{_cdlOrgUnitPath = a})
cdlCustomerId :: Lens' ChromeosDevicesList Text
cdlCustomerId
= lens _cdlCustomerId
(\ s a -> s{_cdlCustomerId = a})
cdlSortOrder :: Lens' ChromeosDevicesList (Maybe ChromeosDevicesListSortOrder)
cdlSortOrder
= lens _cdlSortOrder (\ s a -> s{_cdlSortOrder = a})
cdlQuery :: Lens' ChromeosDevicesList (Maybe Text)
cdlQuery = lens _cdlQuery (\ s a -> s{_cdlQuery = a})
cdlProjection :: Lens' ChromeosDevicesList (Maybe ChromeosDevicesListProjection)
cdlProjection
= lens _cdlProjection
(\ s a -> s{_cdlProjection = a})
cdlPageToken :: Lens' ChromeosDevicesList (Maybe Text)
cdlPageToken
= lens _cdlPageToken (\ s a -> s{_cdlPageToken = a})
cdlMaxResults :: Lens' ChromeosDevicesList (Maybe Int32)
cdlMaxResults
= lens _cdlMaxResults
(\ s a -> s{_cdlMaxResults = a})
. mapping _Coerce
instance GoogleRequest ChromeosDevicesList where
type Rs ChromeosDevicesList = ChromeOSDevices
type Scopes ChromeosDevicesList =
'["https://www.googleapis.com/auth/admin.directory.device.chromeos",
"https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"]
requestClient ChromeosDevicesList'{..}
= go _cdlCustomerId _cdlOrderBy _cdlOrgUnitPath
_cdlSortOrder
_cdlQuery
_cdlProjection
_cdlPageToken
_cdlMaxResults
(Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy ChromeosDevicesListResource)
mempty