{-# 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.Installs.List
(
InstallsListResource
, installsList
, InstallsList
, ilEnterpriseId
, ilUserId
, ilDeviceId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type InstallsListResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"devices" :>
Capture "deviceId" Text :>
"installs" :>
QueryParam "alt" AltJSON :>
Get '[JSON] InstallsListResponse
data InstallsList = InstallsList'
{ _ilEnterpriseId :: !Text
, _ilUserId :: !Text
, _ilDeviceId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
installsList
:: Text
-> Text
-> Text
-> InstallsList
installsList pIlEnterpriseId_ pIlUserId_ pIlDeviceId_ =
InstallsList'
{ _ilEnterpriseId = pIlEnterpriseId_
, _ilUserId = pIlUserId_
, _ilDeviceId = pIlDeviceId_
}
ilEnterpriseId :: Lens' InstallsList Text
ilEnterpriseId
= lens _ilEnterpriseId
(\ s a -> s{_ilEnterpriseId = a})
ilUserId :: Lens' InstallsList Text
ilUserId = lens _ilUserId (\ s a -> s{_ilUserId = a})
ilDeviceId :: Lens' InstallsList Text
ilDeviceId
= lens _ilDeviceId (\ s a -> s{_ilDeviceId = a})
instance GoogleRequest InstallsList where
type Rs InstallsList = InstallsListResponse
type Scopes InstallsList =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient InstallsList'{..}
= go _ilEnterpriseId _ilUserId _ilDeviceId
(Just AltJSON)
androidEnterpriseService
where go
= buildClient (Proxy :: Proxy InstallsListResource)
mempty