{-# 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.AndroidManagement.Enterprises.Devices.List
(
EnterprisesDevicesListResource
, enterprisesDevicesList
, EnterprisesDevicesList
, edlParent
, edlXgafv
, edlUploadProtocol
, edlAccessToken
, edlUploadType
, edlPageToken
, edlPageSize
, edlCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesDevicesListResource =
"v1" :>
Capture "parent" Text :>
"devices" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListDevicesResponse
data EnterprisesDevicesList = EnterprisesDevicesList'
{ _edlParent :: !Text
, _edlXgafv :: !(Maybe Xgafv)
, _edlUploadProtocol :: !(Maybe Text)
, _edlAccessToken :: !(Maybe Text)
, _edlUploadType :: !(Maybe Text)
, _edlPageToken :: !(Maybe Text)
, _edlPageSize :: !(Maybe (Textual Int32))
, _edlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesDevicesList
:: Text
-> EnterprisesDevicesList
enterprisesDevicesList pEdlParent_ =
EnterprisesDevicesList'
{ _edlParent = pEdlParent_
, _edlXgafv = Nothing
, _edlUploadProtocol = Nothing
, _edlAccessToken = Nothing
, _edlUploadType = Nothing
, _edlPageToken = Nothing
, _edlPageSize = Nothing
, _edlCallback = Nothing
}
edlParent :: Lens' EnterprisesDevicesList Text
edlParent
= lens _edlParent (\ s a -> s{_edlParent = a})
edlXgafv :: Lens' EnterprisesDevicesList (Maybe Xgafv)
edlXgafv = lens _edlXgafv (\ s a -> s{_edlXgafv = a})
edlUploadProtocol :: Lens' EnterprisesDevicesList (Maybe Text)
edlUploadProtocol
= lens _edlUploadProtocol
(\ s a -> s{_edlUploadProtocol = a})
edlAccessToken :: Lens' EnterprisesDevicesList (Maybe Text)
edlAccessToken
= lens _edlAccessToken
(\ s a -> s{_edlAccessToken = a})
edlUploadType :: Lens' EnterprisesDevicesList (Maybe Text)
edlUploadType
= lens _edlUploadType
(\ s a -> s{_edlUploadType = a})
edlPageToken :: Lens' EnterprisesDevicesList (Maybe Text)
edlPageToken
= lens _edlPageToken (\ s a -> s{_edlPageToken = a})
edlPageSize :: Lens' EnterprisesDevicesList (Maybe Int32)
edlPageSize
= lens _edlPageSize (\ s a -> s{_edlPageSize = a}) .
mapping _Coerce
edlCallback :: Lens' EnterprisesDevicesList (Maybe Text)
edlCallback
= lens _edlCallback (\ s a -> s{_edlCallback = a})
instance GoogleRequest EnterprisesDevicesList where
type Rs EnterprisesDevicesList = ListDevicesResponse
type Scopes EnterprisesDevicesList =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesDevicesList'{..}
= go _edlParent _edlXgafv _edlUploadProtocol
_edlAccessToken
_edlUploadType
_edlPageToken
_edlPageSize
_edlCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy :: Proxy EnterprisesDevicesListResource)
mempty