{-# 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.Operations.List
(
EnterprisesDevicesOperationsListResource
, enterprisesDevicesOperationsList
, EnterprisesDevicesOperationsList
, edolXgafv
, edolUploadProtocol
, edolAccessToken
, edolUploadType
, edolName
, edolFilter
, edolPageToken
, edolPageSize
, edolCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesDevicesOperationsListResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListOperationsResponse
data EnterprisesDevicesOperationsList = EnterprisesDevicesOperationsList'
{ _edolXgafv :: !(Maybe Xgafv)
, _edolUploadProtocol :: !(Maybe Text)
, _edolAccessToken :: !(Maybe Text)
, _edolUploadType :: !(Maybe Text)
, _edolName :: !Text
, _edolFilter :: !(Maybe Text)
, _edolPageToken :: !(Maybe Text)
, _edolPageSize :: !(Maybe (Textual Int32))
, _edolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesDevicesOperationsList
:: Text
-> EnterprisesDevicesOperationsList
enterprisesDevicesOperationsList pEdolName_ =
EnterprisesDevicesOperationsList'
{ _edolXgafv = Nothing
, _edolUploadProtocol = Nothing
, _edolAccessToken = Nothing
, _edolUploadType = Nothing
, _edolName = pEdolName_
, _edolFilter = Nothing
, _edolPageToken = Nothing
, _edolPageSize = Nothing
, _edolCallback = Nothing
}
edolXgafv :: Lens' EnterprisesDevicesOperationsList (Maybe Xgafv)
edolXgafv
= lens _edolXgafv (\ s a -> s{_edolXgafv = a})
edolUploadProtocol :: Lens' EnterprisesDevicesOperationsList (Maybe Text)
edolUploadProtocol
= lens _edolUploadProtocol
(\ s a -> s{_edolUploadProtocol = a})
edolAccessToken :: Lens' EnterprisesDevicesOperationsList (Maybe Text)
edolAccessToken
= lens _edolAccessToken
(\ s a -> s{_edolAccessToken = a})
edolUploadType :: Lens' EnterprisesDevicesOperationsList (Maybe Text)
edolUploadType
= lens _edolUploadType
(\ s a -> s{_edolUploadType = a})
edolName :: Lens' EnterprisesDevicesOperationsList Text
edolName = lens _edolName (\ s a -> s{_edolName = a})
edolFilter :: Lens' EnterprisesDevicesOperationsList (Maybe Text)
edolFilter
= lens _edolFilter (\ s a -> s{_edolFilter = a})
edolPageToken :: Lens' EnterprisesDevicesOperationsList (Maybe Text)
edolPageToken
= lens _edolPageToken
(\ s a -> s{_edolPageToken = a})
edolPageSize :: Lens' EnterprisesDevicesOperationsList (Maybe Int32)
edolPageSize
= lens _edolPageSize (\ s a -> s{_edolPageSize = a})
. mapping _Coerce
edolCallback :: Lens' EnterprisesDevicesOperationsList (Maybe Text)
edolCallback
= lens _edolCallback (\ s a -> s{_edolCallback = a})
instance GoogleRequest
EnterprisesDevicesOperationsList where
type Rs EnterprisesDevicesOperationsList =
ListOperationsResponse
type Scopes EnterprisesDevicesOperationsList =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesDevicesOperationsList'{..}
= go _edolName _edolXgafv _edolUploadProtocol
_edolAccessToken
_edolUploadType
_edolFilter
_edolPageToken
_edolPageSize
_edolCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy ::
Proxy EnterprisesDevicesOperationsListResource)
mempty