{-# 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.Get
(
InstallsGetResource
, installsGet
, InstallsGet
, igEnterpriseId
, igUserId
, igInstallId
, igDeviceId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type InstallsGetResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"devices" :>
Capture "deviceId" Text :>
"installs" :>
Capture "installId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Install
data InstallsGet = InstallsGet'
{ _igEnterpriseId :: !Text
, _igUserId :: !Text
, _igInstallId :: !Text
, _igDeviceId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
installsGet
:: Text
-> Text
-> Text
-> Text
-> InstallsGet
installsGet pIgEnterpriseId_ pIgUserId_ pIgInstallId_ pIgDeviceId_ =
InstallsGet'
{ _igEnterpriseId = pIgEnterpriseId_
, _igUserId = pIgUserId_
, _igInstallId = pIgInstallId_
, _igDeviceId = pIgDeviceId_
}
igEnterpriseId :: Lens' InstallsGet Text
igEnterpriseId
= lens _igEnterpriseId
(\ s a -> s{_igEnterpriseId = a})
igUserId :: Lens' InstallsGet Text
igUserId = lens _igUserId (\ s a -> s{_igUserId = a})
igInstallId :: Lens' InstallsGet Text
igInstallId
= lens _igInstallId (\ s a -> s{_igInstallId = a})
igDeviceId :: Lens' InstallsGet Text
igDeviceId
= lens _igDeviceId (\ s a -> s{_igDeviceId = a})
instance GoogleRequest InstallsGet where
type Rs InstallsGet = Install
type Scopes InstallsGet =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient InstallsGet'{..}
= go _igEnterpriseId _igUserId _igDeviceId
_igInstallId
(Just AltJSON)
androidEnterpriseService
where go
= buildClient (Proxy :: Proxy InstallsGetResource)
mempty