{-# 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.Get
(
EnterprisesDevicesGetResource
, enterprisesDevicesGet
, EnterprisesDevicesGet
, edgXgafv
, edgUploadProtocol
, edgAccessToken
, edgUploadType
, edgName
, edgCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesDevicesGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Device
data EnterprisesDevicesGet = EnterprisesDevicesGet'
{ _edgXgafv :: !(Maybe Xgafv)
, _edgUploadProtocol :: !(Maybe Text)
, _edgAccessToken :: !(Maybe Text)
, _edgUploadType :: !(Maybe Text)
, _edgName :: !Text
, _edgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesDevicesGet
:: Text
-> EnterprisesDevicesGet
enterprisesDevicesGet pEdgName_ =
EnterprisesDevicesGet'
{ _edgXgafv = Nothing
, _edgUploadProtocol = Nothing
, _edgAccessToken = Nothing
, _edgUploadType = Nothing
, _edgName = pEdgName_
, _edgCallback = Nothing
}
edgXgafv :: Lens' EnterprisesDevicesGet (Maybe Xgafv)
edgXgafv = lens _edgXgafv (\ s a -> s{_edgXgafv = a})
edgUploadProtocol :: Lens' EnterprisesDevicesGet (Maybe Text)
edgUploadProtocol
= lens _edgUploadProtocol
(\ s a -> s{_edgUploadProtocol = a})
edgAccessToken :: Lens' EnterprisesDevicesGet (Maybe Text)
edgAccessToken
= lens _edgAccessToken
(\ s a -> s{_edgAccessToken = a})
edgUploadType :: Lens' EnterprisesDevicesGet (Maybe Text)
edgUploadType
= lens _edgUploadType
(\ s a -> s{_edgUploadType = a})
edgName :: Lens' EnterprisesDevicesGet Text
edgName = lens _edgName (\ s a -> s{_edgName = a})
edgCallback :: Lens' EnterprisesDevicesGet (Maybe Text)
edgCallback
= lens _edgCallback (\ s a -> s{_edgCallback = a})
instance GoogleRequest EnterprisesDevicesGet where
type Rs EnterprisesDevicesGet = Device
type Scopes EnterprisesDevicesGet =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesDevicesGet'{..}
= go _edgName _edgXgafv _edgUploadProtocol
_edgAccessToken
_edgUploadType
_edgCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy :: Proxy EnterprisesDevicesGetResource)
mempty